/* How they read it: the owner's drawer. Markup is the standard .filter-panel--drawer (spacing from the --drawer-* tokens);
   this file only styles what is inside it. Text is body size (--text-base) throughout. */
.pin__lead { margin: 0; font-size: var(--text-base); font-weight: var(--weight-medium, 500); color: var(--color-text); }
.pin__msg { margin: 0; font-size: var(--text-base); color: var(--color-text-muted); }
.pin__sec { display: flex; flex-direction: column; gap: var(--space-3); }
.pin__h { margin: 0; font-size: var(--text-base); font-weight: var(--weight-medium, 500); color: var(--color-text); }
.pin__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--drawer-row-gap); }
.pin__list--plain { gap: var(--space-2); }
.pin__list--plain li { font-size: var(--text-base); color: var(--color-text); }
.pin__row { display: flex; flex-direction: column; gap: var(--space-1); }
.pin__who { font-size: var(--text-base); color: var(--color-text); overflow-wrap: anywhere; }
.pin__sub { margin: 0; font-size: var(--text-base); color: var(--color-text-muted); }
.pin__bar { display: grid; grid-template-columns: 1fr; gap: var(--space-1); }
.pin__name { font-size: var(--text-base); color: var(--color-text); }
.pin__track { display: block; height: 8px; border-radius: var(--radius-full); background: var(--color-bg-subtle); overflow: hidden; }
.pin__fill { display: block; height: 100%; border-radius: var(--radius-full); background: var(--color-text); }
.pin__val { font-size: var(--text-base); color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .pin__fill { transition: none; } }

/* each visit with its Watch button, and the alert switches */
.pin__row--visit { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-3); }
.pin__row--visit > span { display: flex; flex-direction: column; min-width: 0; }
.pin__pref { display: flex; margin-top: var(--space-2); }   /* the switch of input.css, one to a line, as on Settings, My account (12 Nov 2026) */
.pin__pref > input:disabled { opacity: .5; cursor: not-allowed; }   /* provisional */

/* BEFORE IT IS SENT: the two stacked picture cards of the quick way (jobs.css .qk-fold, the same shape), what Bullet
   shows, and the one line on what is kept (Peter, 12 Nov 2026) */
.pin__sell { display: flex; flex-direction: column; gap: var(--space-4); }
.pin__fold { position: relative; width: 224px; height: 206px; pointer-events: none; }
.pin__fold > i { position: absolute; display: block; overflow: hidden; font-style: normal; border-radius: 24px; /* provisional: the card corner of .qk-fold */ background: var(--color-border) center / cover no-repeat; box-shadow: var(--shadow-modal); }
.pin__fold > i:first-child { left: 4px; top: 2px; width: 122px; height: 162px; transform: rotate(-7deg); background-image: url(../jobs/img/fold3-read-a.jpg?v=2); }
.pin__fold > i:last-child { left: 84px; top: 22px; width: 132px; height: 176px; transform: rotate(3deg); background-image: url(../jobs/img/fold3-read-b.jpg); --pin-fold-tint: #283c39; /* provisional: the photo's own teal */ }
.pin__fold > i:last-child::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, var(--pin-fold-tint) 34%, transparent); }
.pin__fold > i:last-child::after { content: "How they read it"; position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); color: var(--color-surface); font-family: 'Instrument Serif', Georgia, serif; font-size: 1.75rem; /* provisional: a magazine serif, as on his Sana cards (Peter, 12 Nov 2026: "make it more marketing-looking rather than like inter") */ font-weight: 400; line-height: 1; letter-spacing: -.01em; }
/* the words under the cards read well (Peter, 12 Nov 2026: "the text doesn't look like the prettiest"): a bigger first line, then each point on its own row with a thin tick and a hairline */
.pin__sell .pin__lead { margin: var(--space-2) 0 0; font-size: var(--text-section); line-height: 1.3; color: var(--color-text); }
.pin__points { list-style: none; margin: 0; padding: 0; font-size: var(--text-base); color: var(--color-text); }
.pin__points li { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-top: var(--border-width) solid var(--color-border); }
.pin__points li:last-child { border-bottom: var(--border-width) solid var(--color-border); }
.pin__points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--color-text-muted); }
.pin__demo { margin: 0; }

/* HOW THEY READ IT AS A PAGE, ON A PROPOSAL (Peter, 12 Nov 2026: "don't do a drawer for the analytics ... create a what
   happened page"). It takes the place of the proposal's frame (page.css .pro-frame, the same margin and corner); the
   proposal is under it. Text is body size throughout; titles are Home's yellow card title. */
body.pro-reading #pro-frame { display: none; }
.pin-page { flex: 1 1 0; min-height: 0; margin: 0 12px 12px 0; border-radius: 28px; overflow-x: hidden; overflow-y: auto; background: var(--color-bg-subtle-light); box-shadow: 0 0 0 var(--border-width) var(--color-border); animation: pinPageIn .45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pinPageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin-page { animation: none; } }
.pin-page__in { max-width: 1080px; margin: 0 auto; padding: var(--space-10, 40px) var(--space-8, 32px) var(--space-12, 48px); display: flex; flex-direction: column; gap: var(--space-8, 32px); }
.pin-page__head { display: flex; align-items: center; gap: var(--space-3); }
.pin-page__title, .pin-top__line { margin: 0; font-size: 24px; /* provisional: Home's yellow card title, no token holds 24px */ font-weight: var(--weight-medium); line-height: 1.3; color: var(--color-text); }
.pin-page__body { display: flex; flex-direction: column; gap: var(--space-8, 32px); }
.pin-top { display: flex; flex-direction: column; gap: var(--space-3); }
.pin-top__line { font-weight: var(--weight-regular); }
.pin-top__pills { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pin-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.pin-nums li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-6, 24px); border-radius: var(--radius-md); background: var(--color-surface); border: var(--border-width) solid var(--color-border); }
.pin-nums b { font-size: var(--text-title); font-weight: var(--weight-regular); line-height: 1.2; color: var(--color-text); }
.pin-nums span { font-size: var(--text-base); color: var(--color-text-muted); }
.pin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-8, 32px); align-items: start; }
.pin-col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.pin-h { margin: 0; font-size: var(--text-section); font-weight: var(--weight-medium); color: var(--color-text); }
.pin-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6, 24px); border-radius: var(--radius-md); background: var(--color-surface); border: var(--border-width) solid var(--color-border); }
/* the bar chart: the name and the time on one line, the bar under them; the part they read most is in ink */
.pin-bars .pin__bar { gap: var(--space-2); }
.pin-bars__row { display: flex; justify-content: space-between; gap: var(--space-3); }
.pin-bars .pin__track { height: 12px; }
.pin-bars .pin__fill { background: var(--color-border-strong, var(--color-text-muted)); transform-origin: left; animation: pinBar .7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pin-bars .pin__bar--top .pin__fill { background: var(--color-text); }
@keyframes pinBar { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin-bars .pin__fill { animation: none; } }
/* What happened: the spine and its arrows are the invoice page's (invoice-detail.html .tl-ev), with body size text */
.pin-tl__group + .pin-tl__group { margin-top: var(--space-2); }
.pin-tl__date { margin: 0 0 var(--space-3); font-size: var(--text-base); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.pin-tl__line { list-style: none; margin: 0; padding: 0 0 0 8px; }
.pin-tl__ev { position: relative; padding: 0 0 14px 28px; }
.pin-tl__ev::before { content: "\2193"; position: absolute; left: 3px; top: 32px; transform: translate(-50%, -50%); color: var(--color-text-muted); font-size: var(--text-base); line-height: 1; background: var(--color-bg-subtle-light); padding: 3px 0; z-index: 1; }
.pin-tl__ev:not(:last-child)::after, .pin-tl__group:not(:last-child) .pin-tl__ev:last-child::after { content: ""; position: absolute; left: 3px; transform: translateX(-50%); top: 32px; bottom: -32px; width: 1px; background: var(--color-border); }
.pin-tl__card { display: flex; align-items: center; gap: var(--space-4); padding: 18px; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-base); }
.pin-tl__time { flex: none; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.pin-tl__what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); color: var(--color-text); }
.pin-tl__what strong { font-weight: var(--weight-medium); }
.pin-tl__watch { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); }
.pin-tl__watch svg { width: 16px; height: 16px; }
@media (max-width: 1100px) { .pin-grid { grid-template-columns: minmax(0, 1fr); } .pin-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pin-page__in { padding: var(--space-6, 24px) var(--space-4, 16px); } .pin-tl__card { flex-wrap: wrap; } }
.pin-page .status-pill { font-size: var(--text-base); }   /* nothing on this page is smaller than the body (Peter, 6 Nov 2026) */

/* BULLET'S OWN LOOK (Peter, 12 Nov 2026: "apply our design system to that. It doesn't look like bullet and no grey bg. and
   put some colour into the charts"): the page is white; the top is the app's light blue section card with white sub
   cards for the four numbers (section-canvas.css, THE BIG SECTION CARD: #e1f0f4, black text, white sub cards); the bars
   have colour, the strong colours of the builder's picture cards, the part read most first. */
.pin-page { background: var(--color-surface); box-shadow: none; }
.pin-page__in { max-width: 1356px; padding-top: var(--space-6, 24px); }
.pin-sec { display: flex; flex-direction: column; gap: var(--space-6, 24px); padding: var(--space-8, 32px); border-radius: 28px; /* provisional: the section card's corner */ background: var(--sec-canvas-bg, #e1f0f4); /* provisional: the section card colour, section-canvas.css */ }
.pin-sec .pin-nums li { border: 0; padding: var(--space-5, 20px) var(--space-6, 24px); }
.pin-nums span { order: 0; } .pin-nums b { order: 1; }
.pin-card, .pin-tl__card { background: var(--color-surface); }
.pin-tl__ev::before { background: var(--color-surface); }
.pin-bars .pin__track { background: var(--color-bg-subtle); }
.pin-bars .pin__bar .pin__fill { background: var(--pin-c, var(--color-text-muted)); }
.pin-bars .pin__bar--c0 { --pin-c: #ee7a1c; /* provisional: the plan card's orange */ }
.pin-bars .pin__bar--c1 { --pin-c: #1f46d1; /* provisional: the look card's cobalt */ }
.pin-bars .pin__bar--c2 { --pin-c: #1f9e3a; /* provisional: the price card's green */ }
.pin-bars .pin__bar--c3 { --pin-c: #e0457e; /* provisional: the photos card's pink */ }
.pin-bars .pin__bar--c4 { --pin-c: #d99a00; /* provisional: the terms card's yellow */ }
.pin-bars .pin__bar--c5 { --pin-c: #d4202c; /* provisional: the job card's red */ }
/* the visit's window: the proposal's frame, lifted over the page */
body.pro-movie-win #pro-frame { display: block !important; position: fixed !important; overflow-x: hidden !important; overflow-y: auto !important;   /* a phone lets the page itself scroll (page.css, max-width 900px), so the window must scroll or the replay never moves down (Peter, 22 Nov 2026: "The play doesn't work") */
    /* !important: the before and after slider sets position: relative on the frame inline (page.js), which put the window in the wrong place */
   z-index: 76; left: 5vw; right: 5vw; top: 5vh; bottom: 5vh; margin: 0; border-radius: 28px;   /* round corners on a phone too: page.css squares the frame at 900px or less (Peter, 22 Nov 2026: "Add a radius to the corners") */
   box-shadow: var(--shadow-modal); animation: pinPageIn .4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pin-win__scrim { position: fixed; inset: 0; z-index: 75; background: rgba(0, 0, 0, .28); /* provisional: a dim behind the visit's window */ }
body.pro-movie-win .pro-movie { bottom: calc(5vh + 20px); }
/* NO BLACK SHAPE UNDER THE WINDOW (Peter, 22 Nov 2026: "Yes"): the price bar slides in at the foot of the screen as the replay
   passes the price, behind the window, so it hides while a visit plays in the window */
body.pro-movie-win .pro-acceptbar { display: none !important; }
@media (prefers-reduced-motion: reduce) { body.pro-movie-win #pro-frame { animation: none; } }
/* ON A PHONE THE PAGE IS AS TALL AS WHAT IS ON IT (18 Nov 2026): the main column has no fixed height there, so a part that only
   grows to fill it was 0 high and How they read it opened blank. It is now its own height, and the page scrolls. */
@media (max-width: 900px) { .pin-page { flex: 0 0 auto; overflow: visible; margin: 0 0 12px; } }
