/* VigorBooks Proforma Invoice Maker, "Studio" layout.
   Locked VigorBooks app design (ui-concept/Main.dc.html): Geist, flat periwinkle
   pills, white 20px cards, the dark "cash" deck gradient for the hero panel.
   Nothing moves unless the reader does something. */

.pim {
  --accent: #5b5fc7; --accent-h: #4f53bb; --soft: #eeeefb; --softink: #3a3e9e; --softline: #d2d3f2;
  --ink: #15151f; --ink2: #4a4962; --ink3: #6a6982; --line: #e8e7f1; --line2: #d9d8e7;
  --s2: #f6f6fb; --s3: #eeedf6; --island: #fff; --good: #0c7a57; --warn: #b0440a;
  --deck: linear-gradient(150deg, #191a3d 0%, #2a2c6e 58%, #4347a8 100%);
  --decksh: 0 26px 50px -30px rgba(43,45,120,.95);
  --softsh: 0 1px 2px rgba(20,20,40,.04), 0 8px 20px -6px rgba(20,20,40,.10);
  --ease: cubic-bezier(.23,1,.32,1);
  font-family: Geist, Inter, system-ui, sans-serif; color: var(--ink);
  font-size: 14px; line-height: 1.5; text-align: left; -webkit-font-smoothing: antialiased;
}
.pim *, .pim *::before, .pim *::after { box-sizing: border-box; }
.pim button, .pim input, .pim select, .pim textarea { font: inherit; color: inherit; }
.pim [hidden] { display: none !important; }

.pim-stage {
  position: relative; border-radius: 28px; padding: 20px;
  background:
    radial-gradient(55% 60% at 0% 0%, #e9e8fb 0%, transparent 60%),
    radial-gradient(45% 55% at 100% 0%, #e3f4ef 0%, transparent 60%),
    radial-gradient(55% 55% at 50% 100%, #e6f0fb 0%, transparent 60%),
    #f4f4f9;
  border: 1px solid var(--line);
}
.pim-head { display: flex; align-items: center; gap: 12px; margin: 2px 2px 16px; }
.pim-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--island); border: 1px solid var(--softline); color: var(--softink); font-size: 12px; font-weight: 600; }
.pim-badge svg { width: 14px; height: 14px; }
.pim-title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }

.pim-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .pim-grid { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); align-items: start; } }

/* ── Form ─────────────────────────────────────────────────────── */
.pim-card { background: var(--island); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--softsh); }
.pim-form { padding: 4px 18px 16px; }
.pim-g { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pim-g:last-child { border-bottom: 0; }
.pim-g h4 { margin: 0 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -.005em; color: var(--ink); }
.pim-f { display: grid; gap: 6px; min-width: 0; }
.pim-f > span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.pim-f + .pim-f { margin-top: 12px; }
.pim-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pim-two .pim-f + .pim-f { margin-top: 0; }
.pim-in {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--island); font-size: 14.5px; font-weight: 500; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.pim-in::placeholder { color: #9a99b1; font-weight: 400; }
.pim-in:hover { border-color: #c9c8db; }
.pim-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,95,199,.16); }
.pim-in.num { font-family: "Geist Mono", ui-monospace, monospace; text-align: right; font-weight: 500; }
textarea.pim-in { height: auto; min-height: 70px; padding: 10px 13px; resize: vertical; line-height: 1.45; }

/* "+ Address & TRN" style reveal links */
.pim-more { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--softink); font-size: 13px; font-weight: 600; cursor: pointer; }
.pim-more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.pim-more[aria-expanded="true"] svg { transform: rotate(45deg); }
.pim-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pim-morebox { margin-top: 10px; }

/* Items */
.pim-items { display: grid; gap: 8px; }
.pim-item { display: grid; grid-template-columns: minmax(0, 1fr) 58px 96px 30px; gap: 8px; align-items: center; }
.pim-ih { margin-bottom: 6px; }
.pim-ih span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.pim-ih span:nth-child(2), .pim-ih span:nth-child(3) { text-align: right; padding-right: 2px; }
.pim-mini { display: block; min-width: 0; }
.pim-mini > span { display: none; }
.pim-x { width: 30px; height: 30px; border-radius: 999px; border: 0; background: transparent; color: var(--ink3); cursor: pointer; display: grid; place-items: center; }
.pim-x:hover { background: #fbe5ee; color: #a8235a; }
.pim-x svg { width: 15px; height: 15px; }
.pim-add { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--softline); background: var(--soft); color: var(--softink); font-weight: 600; font-size: 13px; cursor: pointer; }
.pim-add:hover { background: #e4e4fa; }
.pim-add svg { width: 15px; height: 15px; }

/* One-tap choices */
.pim-opt { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; }
.pim-opt + .pim-opt, .pim-rate + .pim-opt { margin-top: 10px; }
.pim-opt > span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.pim-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pim-chips button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--island); color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.pim-chips button:hover { border-color: var(--accent); color: var(--softink); }
.pim-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pim-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pim-rate { margin: 10px 0 0 84px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.pim-rate .pim-in { width: 110px; height: 34px; }

/* ── Deck: the document on the dark VigorBooks panel ─────────── */
.pim-deck { border-radius: 24px; padding: 18px; background: var(--deck); box-shadow: var(--decksh); color: #fff; min-width: 0; }
@media (min-width: 1000px) { .pim-deck { position: sticky; top: 96px; } }
.pim-deck-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 4px 4px 16px; }
.pim-sum span { display: block; font-size: 12.5px; font-weight: 500; color: #c9cbf5; }
.pim-sum b { display: block; margin-top: 2px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.pim-sum b i { font-style: normal; font-size: 14px; font-weight: 500; color: #c9cbf5; margin-right: 6px; vertical-align: 6px; font-family: Geist, Inter, sans-serif; }
.pim-sum small { display: block; margin-top: 4px; font-size: 12.5px; color: #c9cbf5; min-height: 18px; }
.pim-deck-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pim-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); }
.pim-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #d9daf7; font-size: 13px; font-weight: 600; cursor: pointer; }
.pim-tabs button[aria-pressed="true"] { background: #fff; color: #1d1f4f; }
.pim-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.pim-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), background .15s var(--ease); }
.pim-btn:active { transform: scale(.97); }
.pim-btn svg { width: 17px; height: 17px; }
.pim-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(91,95,199,.9); }
.pim-btn.primary:hover { background: var(--accent-h); }
.pim-btn.light { background: #fff; color: #1d1f4f; }
.pim-btn.light:hover { background: #eeeefb; }
.pim-btn.done { background: #e1f5ec; color: var(--good); }
.pim-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pim-paper { border-radius: 14px; }
.pim-doc {
  position: relative; background: #fff; color: #15151f; border-radius: 10px; padding: 32px 32px 28px;
  box-shadow: 0 30px 60px -30px rgba(8,8,30,.7);
  font-size: 12.5px; line-height: 1.5; min-height: 520px;
  transition: opacity .2s var(--ease), transform .3s var(--ease);
}
.pim-doc.swap { opacity: 0; transform: translateY(6px); }
.pim-doc-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pim-doc-from b { display: block; font-size: 15.5px; font-weight: 650; }
.pim-doc-from > span { display: block; color: #4a4962; }
.pim-doc-kind { text-align: right; }
.pim-doc-kind h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: #15151f; }
.pim-tag { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.pim-tag.pf { background: #eeeefb; color: #3a3e9e; }
.pim-tag.ti { background: #e1f5ec; color: #0c7a57; }
.pim-doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 22px 0 18px; padding: 12px 14px; border-radius: 10px; background: #f6f6fb; }
.pim-doc-meta div span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6a6982; }
.pim-doc-meta div b { display: block; font-weight: 600; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; }
.pim-doc-to { margin-bottom: 16px; }
.pim-doc-to > span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6a6982; }
.pim-doc-to b { display: block; font-size: 13.5px; font-weight: 600; }
.pim-doc-to i { font-style: normal; color: #4a4962; display: block; }
.pim-doc table { width: 100%; border-collapse: collapse; }
.pim-doc th { text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6a6982; font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid #d9d8e7; }
.pim-doc td { padding: 9px 0; border-bottom: 1px solid #e8e7f1; vertical-align: top; }
.pim-doc th + th, .pim-doc td + td { padding-left: 12px; }
.pim-doc .r { text-align: right; font-family: "Geist Mono", ui-monospace, monospace; }
.pim-doc th.r { font-family: inherit; }
.pim-doc .muted { color: #9a99b1; }
.pim-tot { margin: 14px 0 0 auto; width: min(100%, 290px); display: grid; gap: 6px; }
.pim-tot div { display: flex; justify-content: space-between; gap: 12px; }
.pim-tot div b { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 600; }
.pim-tot .grand { padding-top: 8px; border-top: 1px solid #d9d8e7; font-size: 14px; font-weight: 700; }
.pim-tot .aed { color: #4a4962; font-size: 12px; }
.pim-terms { margin-top: 18px; display: grid; gap: 4px; padding-top: 12px; border-top: 1px dashed #d9d8e7; color: #4a4962; }
.pim-terms b { color: #15151f; font-weight: 600; }
.pim-preview-note { position: absolute; left: 32px; right: 32px; bottom: 10px; text-align: center; font-size: 10.5px; color: #0c7a57; font-weight: 600; }

/* ── Flow: a slim timeline ───────────────────────────────────── */
.pim-flow { margin-top: 18px; padding: 18px 20px 16px; }
.pim-flow-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.pim-flow-h h4 { margin: 0; font-size: 15px; font-weight: 650; }
.pim-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.pim-dates label { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 36px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink2); }
.pim-dates .pim-in { height: 28px; width: 142px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; border-color: transparent; background: var(--island); }
.pim-map { position: relative; }
.pim-map::before { content: ""; position: absolute; left: 10%; right: 10%; top: 19px; height: 2px; background: var(--line2); }
.pim-map .fill { position: absolute; left: 10%; top: 19px; height: 2px; background: var(--accent); width: 0; transition: width .5s var(--ease), height .5s var(--ease); }
.pim-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.pim-stop { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.pim-stop button { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--line2); background: var(--island); color: var(--ink3); display: grid; place-items: center; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.pim-stop button svg { width: 18px; height: 18px; }
.pim-stop.reached button { border-color: var(--accent); color: var(--accent); }
.pim-stop.here button { background: var(--accent); border-color: var(--accent); color: #fff; }
.pim-stop.open button { box-shadow: 0 0 0 4px rgba(91,95,199,.18); }
.pim-stop button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pim-stop b { margin-top: 2px; font-size: 13px; font-weight: 600; }
.pim-stop small { font-size: 11.5px; color: var(--ink3); font-family: "Geist Mono", ui-monospace, monospace; }
.pim-stop small.due { color: var(--warn); font-weight: 600; }
.pim-say { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--s2); font-size: 13.5px; color: var(--ink2); }
.pim-say b { color: var(--ink); font-weight: 650; }
.pim-law { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--soft); color: var(--softink); font-size: 12px; font-weight: 600; text-decoration: none; }
.pim-law:hover { background: #e4e4fa; }

/* Closing call to action */
.pim-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--deck); box-shadow: var(--decksh); color: #fff; }
.pim-cta p { margin: 0; font-size: 14px; color: #d9daf7; }
.pim-cta p b { color: #fff; font-weight: 600; }

/* Phone and tablet: Edit / Preview switch and an action bar that stays in reach */
.pim-switch, .pim-dock { display: none; }
@media (max-width: 999px) {
  .pim-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--island); border: 1px solid var(--line); position: sticky; top: 72px; z-index: 5; box-shadow: var(--softsh); }
  .pim-switch button { height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-weight: 600; font-size: 14px; cursor: pointer; }
  .pim-switch button[aria-selected="true"] { background: var(--accent); color: #fff; }
  .pim[data-pane="edit"] [data-panel="preview"], .pim[data-pane="preview"] [data-panel="edit"] { display: none; }
  .pim-dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 12px; z-index: 5; margin-top: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: #15151f; color: #fff; box-shadow: 0 18px 40px -18px rgba(8,8,30,.6); }
  .pim-dock span { display: block; font-size: 11px; color: #a3a3bd; }
  .pim-dock b { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; font-weight: 600; }
}
@media (max-width: 640px) {
  .pim-stage { padding: 12px; border-radius: 22px; }
  .pim-form { padding: 2px 14px 12px; }
  .pim-two { grid-template-columns: 1fr; }
  .pim-two .pim-f + .pim-f { margin-top: 12px; }
  .pim-item { grid-template-columns: 70px minmax(0, 1fr) 30px; gap: 8px; align-items: end; }
  .pim-item .d { grid-column: 1 / -1; }
  .pim-ih { display: none; }
  .pim-items { gap: 16px; }
  .pim-mini { display: grid; gap: 4px; }
  .pim-mini > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); }
  .pim-opt { grid-template-columns: 1fr; gap: 6px; }
  .pim-rate { margin-left: 0; }
  .pim-deck { padding: 12px; border-radius: 20px; }
  .pim-deck-top { padding: 4px 4px 12px; }
  .pim-deck-act, .pim-deck-act .pim-tabs { width: 100%; }
  .pim-deck-act .pim-tabs button { flex: 1; }
  .pim-deck-act > .pim-btn { display: none; }
  .pim-doc { padding: 20px 16px 30px; min-height: 0; font-size: 12px; }
  .pim-doc-top { flex-direction: column; gap: 10px; }
  .pim-doc-kind { text-align: left; }
  .pim-doc-meta { grid-template-columns: 1fr 1fr; }
  .pim-doc th, .pim-doc td { font-size: 11px; }
  .pim-flow { padding: 14px; }
  .pim-dates, .pim-dates label { width: 100%; justify-content: space-between; }
  .pim-stops { grid-template-columns: 1fr; gap: 12px; }
  .pim-map::before { left: 19px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .pim-map .fill { left: 19px; top: 22px; width: 2px; height: 0; }
  .pim-stop { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 12px; row-gap: 0; }
  .pim-stop button { grid-row: span 2; }
  .pim-stop b { margin: 0; }
}


/* ── Examples, logo, WhatsApp, made-with line, next-step card ── */
.pim-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0 2px; }
.pim-ex > span { font-size: 12px; font-weight: 600; color: var(--ink3); margin-right: 2px; }
.pim-ex button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--softline); background: var(--soft); color: var(--softink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pim-ex button:hover { border-style: solid; }
.pim-ex button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pim-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pim-logo .pim-more { margin-top: 0; }
.pim-logo img { height: 34px; max-width: 120px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); padding: 3px; background: #fff; }
.pim-more.del { color: var(--ink3); font-weight: 500; }
.pim-doc-logo { display: block; max-height: 52px; max-width: 170px; object-fit: contain; margin-bottom: 10px; }
.pim-made { margin-top: 16px; font-size: 10px; color: #8b8aa3; text-align: center; letter-spacing: .01em; }
.pim-btn.wa { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.pim-btn.wa:hover { background: rgba(255,255,255,.2); }
.pim-btn.wa svg { color: #25d366; }
.pim-btn.wa.icon { width: 42px; padding: 0; }
.pim-btn.wa svg { width: 18px; height: 18px; }
.pim-next { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 18px; border-radius: 20px; background: var(--island); border: 1px solid var(--softline); box-shadow: var(--softsh); }
.pim-next-txt b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--ink); }
.pim-next-txt b svg { width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: #e1f5ec; color: #0c7a57; flex: none; }
.pim-next-txt ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pim-next-txt li { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--softink); font-size: 12.5px; font-weight: 600; }
.pim-next-go, .pim-cta-go { display: grid; justify-items: center; gap: 4px; }
.pim-next-go small { font-size: 11.5px; color: var(--ink3); }
.pim-cta-go small { font-size: 11.5px; color: #c9cbf5; }
.pim-cta b { display: block; font-size: 15.5px; font-weight: 650; color: #fff; }
.pim-cta div p { margin-top: 3px; max-width: 62ch; }
.pim-dock-go { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .pim-deck-act > .pim-btn.wa { display: none; }
  .pim-next, .pim-cta { flex-direction: column; align-items: stretch; }
  .pim-next-go .pim-btn, .pim-cta-go .pim-btn { width: 100%; }
}

/* Toast and screen-reader status */
.pim-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #15151f; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; z-index: 9999; transition: opacity .2s var(--ease), transform .3s var(--ease); font-family: Geist, Inter, system-ui, sans-serif; }
.pim-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pim-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Site dark theme: the tool's chrome follows it, the paper stays white */
[data-theme="dark"] .pim { --island: #1b1c2c; --ink: #f1f1f8; --ink2: #c9c9dc; --ink3: #a3a3bd; --line: #2c2d44; --line2: #3a3b57; --s2: #151625; --s3: #24253a; --soft: #26285a; --softink: #c3c5ff; --softline: #3d409a; --warn: #ff9b5e; --good: #4fd1a1; }
[data-theme="dark"] .pim-stage { background: radial-gradient(55% 60% at 0% 0%, #23244a 0%, transparent 60%), radial-gradient(45% 55% at 100% 0%, #17312b 0%, transparent 60%), #10111c; }
[data-theme="dark"] .pim-in::placeholder { color: #75758f; }
[data-theme="dark"] .pim-chips button:not([aria-pressed="true"]) { background: transparent; }
[data-theme="dark"] .pim-dock { background: #2a2c6e; }

@media (prefers-reduced-motion: reduce) { .pim *, .pim *::before { transition: none !important; } }

/* Print / PDF: only the document */
@media print {
  html.pim-printing body > *:not(#pim-print) { display: none !important; }
  html.pim-printing #pim-print { display: block !important; }
  #pim-print .pim-doc { box-shadow: none; border-radius: 0; padding: 0; min-height: 0; font-size: 11.5pt; }
  #pim-print .pim-preview-note { position: static; margin-top: 20px; }
  @page { size: A4; margin: 16mm; }
}
#pim-print { display: none; }

/* ── The maker's own page (vigorbooks.com/proforma-invoice-maker) ── */
.pim[data-mode="page"] .pim-cta { display: none; }
.pim-page { padding: 44px 16px 80px; font-family: Geist, Inter, system-ui, sans-serif; color: #15151f; }
.pim-page-h { margin: 0 0 16px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; letter-spacing: -.015em; color: var(--text-primary, #15151f); }
.pim-feats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 48px; }
.pim-feats > div { padding: 20px; border-radius: 20px; background: var(--bg-card, #fff); border: 1px solid #e8e7f1; box-shadow: 0 1px 2px rgba(20,20,40,.04), 0 8px 20px -6px rgba(20,20,40,.10); border-top: 3px solid #5b5fc7; }
.pim-feats h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; color: var(--text-primary, #15151f); }
.pim-feats p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #4a4962); }
.pim-feats a { color: #3a3e9e; }
.pim-page-two { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
@media (min-width: 900px) { .pim-page-two { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.pim-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.pim-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; background: var(--bg-card, #fff); border: 1px solid #e8e7f1; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary, #4a4962); }
.pim-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: #eeeefb; color: #3a3e9e; font-weight: 700; font-size: 13px; }
.pim-steps b { color: var(--text-primary, #15151f); font-weight: 650; }
.pim-faq { display: grid; gap: 10px; }
.pim-faq details { border-radius: 16px; background: var(--bg-card, #fff); border: 1px solid #e8e7f1; }
.pim-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-weight: 600; font-size: 15px; color: var(--text-primary, #15151f); }
.pim-faq summary::-webkit-details-marker { display: none; }
.pim-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #eeeefb; color: #3a3e9e; font-weight: 600; }
.pim-faq details[open] summary::after { content: "–"; }
.pim-faq p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #4a4962); }
.pim-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 28px; border-radius: 24px; background: linear-gradient(150deg, #191a3d 0%, #2a2c6e 58%, #4347a8 100%); box-shadow: 0 26px 50px -30px rgba(43,45,120,.95); color: #fff; }
.pim-final h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -.01em; color: #fff; }
.pim-final p { margin: 6px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: #d9daf7; }
.pim-final-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pim-final-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #1d1f4f; font-weight: 650; text-decoration: none; }
.pim-final-btn:hover { background: #eeeefb; }
.pim-final-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .pim-feats > div, [data-theme="dark"] .pim-steps li, [data-theme="dark"] .pim-faq details { background: #1b1c2c; border-color: #2c2d44; }
[data-theme="dark"] .pim-faq summary, [data-theme="dark"] .pim-feats h3, [data-theme="dark"] .pim-steps b, [data-theme="dark"] .pim-page-h { color: #f1f1f8; }
[data-theme="dark"] .pim-feats p, [data-theme="dark"] .pim-steps li, [data-theme="dark"] .pim-faq p { color: #c9c9dc; }
@media (max-width: 640px) { .pim-page { padding: 32px 4px 60px; } .pim-final { padding: 20px; } .pim-final-go { width: 100%; } .pim-final-btn { width: 100%; justify-content: center; } }

.pim-guide { margin: -20px 0 28px; font-size: 15px; color: var(--text-secondary, #4a4962); }
.pim-guide a { color: #3a3e9e; font-weight: 600; }
.pim-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pim-proof li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e8e7f1; font-size: 14px; font-weight: 600; color: #15151f; }
.pim-proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 999px; background: #5b5fc7; vertical-align: 2px; }
