/* Redundancy sweep Oct 30 · ppl */
/* Price sheet (non-Gil buyers): the colour legend repeats what the price tap shows. */
.pp-subpage .buyer-price-legend{display:none}
/* › pages: rows drawn as calm rows (All buys, Outreach notes) sit flush like the person page. */
.pp-subpage .pe-grp .calm-row .cr-t.pp-code{font-variant-numeric:tabular-nums}
/* Holdback page: the Save dock sits inside the terms card, so its spacer only left a gap. */
.pp-subpage #buyerTermsBox .calm-dock-sp{display:none}
.pp-subpage .person-terms #termsMarkdownHelp{margin:8px 0 0;font-size:13px;color:var(--muted)}

/* People bug sweep Oct 30 (build 1k) */
/* Sales and payments: "short" = the buyer still owes you → green; "over" = you owe them → red (colour rule). */
.ldg-so.short{color:#0F6B53}
.ldg-so.over{color:#A12B21}
/* Very long names: the one button stays on one line; headings and the hero wrap instead of pushing the page sideways. */
#profilesView .pp-page .calm-dock .ov-go{display:block !important;text-align:center;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0}
.pp-page .calm-dock .pe-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#profilesView .pp-page .calm-dock .pe-note .inv-link{display:inline-block;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#profilesView .pe-sec{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-who h2,.pp-cap,#profilesView .cr-t{overflow-wrap:anywhere}

/* People Reads fixes, build Nov 2a (Kris, Oct 30) */
/* #1 buttons 44px / 16px like Buy and Sell; the main button keeps the .ov-go size */
#profilesView :is(.act,.pback), #contactModal .act, #ledgerModal .act{min-height:44px;font-size:16px !important}
#profilesView .pp-page .calm-dock .ov-go{min-height:52px;font-size:17px !important;padding:14px 16px !important;line-height:24px}
/* #2 the link under the main button: whole, 44px tall */
.pp-page .calm-dock .pe-note{overflow:visible}
#profilesView .pp-page .calm-dock .pe-note .inv-link{display:inline-block;line-height:44px;min-height:44px;margin:0;padding:0 8px;vertical-align:top}
/* #12 tap areas: back link, switches row, listing ×, segments; tabular money in rows and buttons */
#profilesView .pback,#profilesView .pc-back,#profilesView .calm-back{min-height:44px;min-width:44px;display:inline-flex;align-items:center}
#profilesView .cr-t,#profilesView .cr-v,#profilesView .ov-go,#profilesView .inv-link{font-variant-numeric:tabular-nums}
/* D2: the main button wraps to a second line instead of cutting the amount or the name */
#profilesView .pp-page .calm-dock .ov-go{white-space:normal !important;overflow:visible;text-overflow:clip;line-height:22px}

/* D4: add / edit someone is a bottom sheet (Kris, Oct 30) */
#contactModal.ct-sheet{align-items:flex-end;padding:0;overflow:hidden}
#contactModal.ct-sheet .modal-box{max-width:560px !important;width:100%;margin:0 auto;padding:0;border-radius:16px 16px 0 0;background:var(--paper,#F7F5EF);max-height:92vh;display:flex;flex-direction:column;box-shadow:none}
#contactModal.ct-sheet .modal-close{display:none}
#contactModal.ct-sheet #contactModalBody{display:flex;flex-direction:column;min-height:0;flex:1}
#contactModal.ct-sheet .nq-hd b{font-size:17px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#contactModal.ct-sheet .ct-save{justify-self:end;font-weight:600}
#contactModal.ct-sheet .ct-body{flex:1;overflow-y:auto;padding:4px 16px 16px;-webkit-overflow-scrolling:touch}
#contactModal.ct-sheet .calm-row{min-height:50px}
#contactModal.ct-sheet .calm-row .cr-main{flex:0 0 96px}
#contactModal.ct-sheet .iv-in{flex:1;min-width:0;border:0;background:transparent;font-size:16px;text-align:right;padding:12px 0;color:var(--ink);font-family:inherit}
#contactModal.ct-sheet .iv-in:disabled{color:#6D6A60;-webkit-text-fill-color:#6D6A60;opacity:1}
#contactModal.ct-sheet .ct-notes{align-items:flex-start}
#contactModal.ct-sheet .ct-notes .cr-main{padding-top:14px}
#contactModal.ct-sheet textarea.iv-in{text-align:left;min-height:88px;resize:vertical}
#contactModal.ct-sheet .ct-remove,#contactModal.ct-sheet .people-remove{text-align:center;margin-top:14px}
#contactModal.ct-sheet .ct-remove .inv-link,#contactModal.ct-sheet .people-remove .act{color:#A12B21 !important;background:none !important;border:0 !important;font-size:16px !important;min-height:44px;font-weight:400}
#contactModal.ct-sheet .ct-bar{padding:12px 16px calc(16px + env(safe-area-inset-bottom));flex:none}
#contactModal.ct-sheet .ct-bar .pc-big:disabled{opacity:.4}
#contactModal.ct-sheet .ct-remove:empty{display:none}

/* Fits #2: People's sheets (Add an entry, Log a message, OfferUp) */
#ppSheet{display:none;position:fixed;inset:0;z-index:9999;flex-direction:column;justify-content:flex-end}
#ppSheet .pp-sheet{height:auto;max-height:92vh}
#ppSheet .pp-sb{flex:1;overflow-y:auto;padding:4px 16px 12px;-webkit-overflow-scrolling:touch}
#ppSheet .pp-sbar{padding:12px 16px calc(16px + env(safe-area-inset-bottom));flex:none}
#ppSheet .nq-hd b{font-size:17px}
#ppSheet .pp-done{justify-self:end;font-weight:600}
#ppSheet .calm-row{min-height:50px}
#ppSheet .pp-v{color:var(--ink);font-size:16px}
#ppSheet .pp-daterow{position:relative;cursor:pointer}
#ppSheet .pp-daterow input[type=date]{position:absolute;inset:0;opacity:0;width:100%;height:100%;font-size:16px;cursor:pointer}
#ppSheet .pp-noterow{display:block;padding:0}
#ppSheet .pp-noterow textarea{width:100%;min-height:80px;border:0;background:transparent;font:inherit;font-size:16px;padding:14px;resize:vertical;color:var(--ink);box-sizing:border-box}
#ppSheet .pp-amt{display:flex;align-items:baseline;justify-content:center;margin:18px 0 0;gap:2px}
#ppSheet .pp-amt label{font-size:36px;font-weight:700;color:var(--ink)}
#ppSheet .pp-amt input{width:6.2ch;font-size:52px;font-weight:700;border:0;border-bottom:2px dashed #CFC8B8;background:transparent;text-align:center;color:var(--ink);font-variant-numeric:tabular-nums;padding:0;-moz-appearance:textfield}
#ppSheet .pp-amt input::-webkit-outer-spin-button,#ppSheet .pp-amt input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#ppSheet .pp-ck{color:var(--accent);font-weight:700;font-size:18px;min-width:18px;text-align:right}
#ppSheet .pp-chrow{gap:10px}
#ppSheet .pp-chin{width:140px;flex:none;font-size:16px;min-height:40px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;background:#fff}
#ppSheet .pp-kinds{display:none}
#ppSheet .pp-sheet.picking .pp-sb>*:not(.pp-kinds){display:none}
#ppSheet .pp-sheet.picking .pp-kinds{display:block}
#ppSheet .pp-sheet.picking .pp-sbar{display:none}
#ppSheet button,#ppSheet input,#ppSheet textarea{font-family:inherit}
html body #ppSheet .pp-v{font-weight:400;color:#6D6A60}
html body #ppSheet .pp-amt input{width:2.2ch !important;font-size:52px !important;font-weight:700 !important;height:auto !important;min-height:0 !important;border:0 !important;border-bottom:2px dashed #CFC8B8 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;outline:none;padding:0 !important;line-height:1.1}
html body #ppSheet .pp-amt input:focus{border-bottom-color:var(--accent) !important}
#ppSheet .pp-noterow textarea:focus{outline:none}
/* Fits #4: Buy's Payments sheet uses the same sheet frame */
#ppSheet .nq-hd b{text-align:center}
#ppSheet .pp-shsub{display:block;font-size:13px;font-weight:400;color:#6D6A60}
#ppSheet .bf-psh .ov-hero{text-align:center;margin:4px 0 6px}
#ppSheet .bf-psh .ov-big{justify-content:center}
#ppSheet .ov-sec{margin:16px 4px 8px}
#ppSheet .pp-sbar .pe-note{text-align:center;margin-top:6px}
/* Fits #5: delete confirm sheet */
#ppSheet .pp-cf{text-align:center;margin:2px 0 12px}
#ppSheet .pp-cf .ov-cap{margin:0}
#ppSheet .pp-cfline{font-size:16px;line-height:1.45;color:var(--ink);margin:0 2px}
html body #ppSheet .pp-cfgo{background:#fff !important;color:#A12B21 !important;border:1px solid #E0B3AD !important}
/* Running tab as grouped rows (Money module stress test, build Nov 3k) */
.ldg-terms{font-size:13px !important}
.ldg-list{margin-top:12px}
.ldg-r{min-height:56px}
.ldg-r .cr-t{font-size:16px}
.ldg-code{font-weight:600}
.ldg-st{font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}
.ldg-rv{display:flex;flex-direction:column;align-items:flex-end}
.ldg-amt{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.ldg-left{font-size:13px;color:var(--muted);white-space:nowrap}
.ldg-lines{background:#FAF8F3}
.ldg-l{min-height:44px;padding-left:28px !important}
.ldg-l .cr-t{font-size:15px;color:var(--muted)}
.ldg-tot .cr-t{font-weight:600}
/* Buy Payments sheet: the same big number as Sell's (Nov 3k) */
#ppSheet .bf-psh .ov-big{font-size:56px !important;letter-spacing:-1.5px;line-height:1.1;font-variant-numeric:tabular-nums}
#ppSheet .bf-psh .ov-cap{font-size:13px;text-transform:uppercase;letter-spacing:.4px}
/* The order code drops on narrow screens so the settle button stays one line (D2; Nov 3k) */
@media (max-width:374px){ .pp-bcode{display:none} }
.ov-go{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* People rebuild (Kris, Nov 2, build Nov 4a) */
.pp-amb{color:#9A5B00 !important}
.pp-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:1px;box-sizing:border-box}
.pp-dot-green{background:#0F6B53}.pp-dot-amber{background:#E0A13A}.pp-dot-red{background:#A12B21}.pp-dot-none{background:#D9D3C6}.pp-dot-gil{border:1.5px solid #9C978C}

/* Texts (build Nov 12b) */
#txPage{display:none;position:fixed;inset:0;z-index:85;background:#F7F5EF}
#txPage.open{display:block}
@media (max-width:760px){ #txPage{bottom:calc(59px + env(safe-area-inset-bottom))} }
body.tx-on{overflow:hidden}
#txPage .tx-scroll{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}
#txPage .tx-in{max-width:640px;margin:0 auto;padding:6px 16px 24px}
.tx-row{gap:10px}
.tx-row .cr-main{flex:1;min-width:0}
.tx-row .cr-s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-dot{width:9px;height:9px;border-radius:50%;flex:none;background:transparent}
.tx-dot.on{background:#0F6B53}
.tx-rt{display:inline-flex;align-items:center;gap:8px}
.tx-tm{font-size:13px;font-weight:400;color:#6D6A60}
.tx-empty{padding:40px 0;text-align:center;color:#6D6A60;font-size:15px}
.tx-thread{height:100%;display:flex;flex-direction:column;max-width:640px;margin:0 auto}
.tx-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:52px;padding:0 8px;border-bottom:1px solid #EFEBE2}
.tx-nav .calm-back{justify-self:start}
.tx-who{text-align:center;line-height:1.2;min-width:0}
.tx-who b{display:block;font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
.tx-who small{font-size:13px;color:#6D6A60}
.tx-open{justify-self:end;background:none;border:0;color:#0F6B53;font-size:16px;min-height:44px;padding:0 8px;cursor:pointer}
.tx-msgs{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px;padding:10px 12px 14px}
.tx-stamp{font-size:12px;color:#6D6A60;text-align:center;margin:8px 0 2px}
.tx-b{max-width:78%;padding:8px 12px;border-radius:18px;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.tx-b.th{align-self:flex-start;background:#fff;border:1px solid #EFEBE2;color:#16202B}
.tx-b.us{align-self:flex-end;background:#0F6B53;color:#fff}
.tx-b.pend{opacity:.6}
.tx-b.tx-bp{padding:3px;background:transparent;border:0}
.tx-ph{width:180px;min-height:120px;border-radius:14px;background:#ECE9E1;display:flex;align-items:center;justify-content:center;color:#6D6A60;font-size:13px;overflow:hidden;cursor:pointer}
.tx-ph.ok{min-height:0;background:none}
.tx-ph img{display:block;max-width:220px;max-height:260px;border-radius:14px}
.tx-file{padding:8px 12px;border-radius:14px;background:#ECE9E1;font-size:14px}
.tx-foot{font-size:12px;color:#6D6A60;text-align:right;padding-right:4px}
.tx-foot.tx-bad{color:#A12B21}
.tx-cmp{display:flex;gap:8px;align-items:flex-end;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #EFEBE2;background:#F7F5EF}
@media (max-width:760px){ .tx-cmp{padding-bottom:8px} }
.tx-cmp textarea{flex:1;min-height:40px;max-height:120px;resize:none;border:1px solid #D9D3C6;border-radius:20px;padding:9px 14px;font:16px var(--font-ui);background:#fff;color:#16202B;box-sizing:border-box}
.tx-send{min-height:40px;min-width:64px;border:0;border-radius:20px;background:#0F6B53;color:#fff;font:600 16px var(--font-ui);padding:0 16px;cursor:pointer}
.tx-send:disabled{opacity:.5}
#tabBar .tx-badge{position:absolute;top:3px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#0F6B53;color:#fff;font:600 11px/18px var(--font-ui);text-align:center;box-sizing:border-box}
#tmList .tx-cnt{margin-left:auto;font-size:15px;font-weight:600;color:#0F6B53}

/* Order texts (build Nov 12c) */
.ot-to{text-align:center;font-size:13px;color:#6D6A60;margin:2px 0 10px}
textarea.ot-bub{display:block;width:calc(100% - 32px);margin:0 0 0 32px;box-sizing:border-box;background:#0F6B53;color:#fff;border:0;border-radius:18px;
  padding:12px 14px;font:16px/1.4 var(--font-ui);resize:none;min-height:120px;outline:none}
textarea.ot-bub:focus{box-shadow:0 0 0 3px #E6F0EC}
.ot-hint{text-align:right;font-size:13px;color:#6D6A60;margin-top:6px}

/* Ask Claude (build Nov 12d) */
.ai-ask{align-self:center;margin:10px 0 2px;min-height:36px;padding:0 16px;border:1px solid #D9D3C6;border-radius:18px;background:#fff;color:#0F6B53;font:500 15px var(--font-ui);cursor:pointer}
.ai-wait{align-self:center;margin:10px 0 2px;font-size:14px;color:#6D6A60}
.ai-err{align-self:center;margin:10px 0 0;font-size:14px;color:#A12B21;text-align:center;max-width:90%}
.tx-b.ai-draft{align-self:flex-end;background:#fff;color:#16202B;border:1.5px dashed #0F6B53}
.ai-acts{display:flex;gap:8px;align-self:flex-end}
.ai-acts button{min-height:36px;padding:0 14px;border-radius:18px;border:1px solid #D9D3C6;background:#fff;font:500 14px var(--font-ui);color:#16202B;cursor:pointer}
.ai-acts button.on{background:#0F6B53;border-color:#0F6B53;color:#fff}
.ai-card{align-self:stretch;display:block;text-align:left;background:#fff;border:1px solid #EFEBE2;border-radius:12px;padding:10px 12px;margin:6px 0 2px;font:15px var(--font-ui);color:#16202B;cursor:pointer}
.ai-card>span{display:flex;justify-content:space-between;gap:8px}
.ai-card b{font-weight:600}
.ai-card small{display:block;font-size:13px;color:#6D6A60;margin-top:2px}
textarea.ai-note{display:block;width:100%;box-sizing:border-box;margin-top:12px;border:1px solid #D9D3C6;border-radius:12px;padding:10px 12px;font:16px var(--font-ui);background:#fff;resize:none}

/* Claude runs the pricing (build Nov 12f) */
.ai-bar{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:14px;border-bottom:1px solid #EFEBE2}
.ai-bar span{flex:1;min-width:0}
.ai-bar.on{background:#E6F0EC;color:#0F6B53}
.ai-bar.off{background:#FBF1E0;color:#9A5B00}
.ai-bar button{min-height:32px;padding:0 12px;border-radius:16px;border:1px solid currentColor;background:transparent;color:inherit;font:500 14px var(--font-ui);cursor:pointer}
.tx-by{align-self:flex-end;font-size:11px;color:#6D6A60;margin:-2px 4px 2px}
.ai-fq{align-self:stretch;background:#fff;border:1px solid #EFEBE2;border-radius:12px;padding:10px 12px;margin:8px 0 2px;font-size:15px}
.ai-fq .r{display:flex;justify-content:space-between;gap:8px}
.ai-fq b{font-weight:600}
.ai-fq small{display:block;font-size:13px;color:#6D6A60;margin-top:2px}
.ai-fqb{display:flex;gap:8px;margin-top:10px}
.ai-fqb button{flex:1;min-height:40px;border-radius:12px;font:600 15px var(--font-ui);cursor:pointer}
.ai-fqb .cr{background:#0F6B53;color:#fff;border:0}
.ai-fqb .dl{background:#fff;color:#A12B21;border:1px solid #D9D3C6}
.ai-fqb .dl.sk{color:#1F1E1B}
.ai-sh-sub{text-align:center;font-size:13px;color:#6D6A60;margin:0 0 10px}
.ai-sh-link{margin-top:12px;background:#fff;border:1px solid #EFEBE2;border-radius:12px}
