/* Borrower experience layer: "Ink ledger" personal welcome. Borrower page only. */
.bp-welcome{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"head stats" "links stats";gap:18px 32px;margin:0 0 30px;padding:28px clamp(18px,3vw,36px);background:#161616;color:#f4f4f2;border-radius:12px;box-shadow:6px 6px 0 #8a8a87;overflow:hidden}
.bp-welcome::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 31px,#ffffff0d 31px 32px)}
.bp-welcome>*{position:relative;z-index:1;min-width:0}
.bp-welcome-head{grid-area:head;align-self:end}
.bp-welcome-kicker{margin:0;font:800 11px/1 var(--tk-mono);letter-spacing:.2em;text-transform:uppercase;color:#b5b5b2}
.bp-welcome-name{margin:10px 0 10px;color:#f4f4f2;font-family:var(--tk-display);font-style:italic;font-weight:700;font-size:clamp(32px,5vw,54px);line-height:1.02;letter-spacing:-.025em;overflow-wrap:anywhere}
.bp-welcome-status{margin:0;max-width:44ch;color:#d6d6d3;font-style:italic;line-height:1.5}
.bp-welcome-stats{grid-area:stats;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#3a3a39;border:1px solid #3a3a39;border-radius:8px;overflow:hidden;align-self:stretch}
.bp-stat{margin:0;padding:16px 18px;background:#1f1f1e;display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0}
.bp-stat dt{font:700 10.5px/1.3 var(--tk-mono);letter-spacing:.14em;text-transform:uppercase;color:#b5b5b2}
.bp-stat dd{margin:0;font-family:var(--tk-display);font-style:italic;font-weight:700;font-size:clamp(26px,3.4vw,38px);line-height:1;color:#f4f4f2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bp-stat-wide dd{font-size:clamp(17px,2vw,22px);line-height:1.2}
.bp-welcome-links{grid-area:links;display:flex;flex-wrap:wrap;gap:8px;align-self:end}
.bp-welcome-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid #6b6b69;border-radius:6px;color:#f4f4f2;font-weight:700;font-size:14px;text-decoration:none}
.bp-welcome-links a:first-child{background:#f4f4f2;color:#141414;border-color:#f4f4f2;font-style:italic}
.bp-welcome-links a:hover{background:#f4f4f2;color:#141414;border-color:#f4f4f2}
.bp-welcome-links a:first-child:hover{background:#d6d6d3}
:root .bp-welcome :focus-visible{outline:3px solid #f4f4f2;outline-offset:3px}

/* Catalog cards: photo / name / quantity only, uncropped photos */
:root .bp-tool{border-radius:10px;position:relative}
:root .bp-tool strong{font-weight:800;line-height:1.25}
:root .bp-tool .bp-tool-photo{background:#fbfbfa}
:root .bp-tool-photo img{object-fit:contain}
:root .bp-tool:hover{border-color:#161616;box-shadow:4px 4px 0 #161616;background:var(--card)}
:root .bp-tool[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #161616,4px 4px 0 #8a8a87}
.bp-tool .catalog-quantity b{font-family:var(--tk-display);font-style:italic;font-size:18px}

/* Section headings */
.bp-catalog .section-title h2,.bp-entry h2{font-style:italic}
.bp-intro{margin-bottom:22px}
.bp-intro h1{font-size:clamp(22px,3vw,30px)}

/* Profile avatar stays circular */
.bp-profile-avatar,.bp-profile-avatar img,.bp-profile-preview,.bp-profile-preview img{border-radius:50%}

/* Auth screens */
.bp .login-card h1{font-weight:800}
.bp .login-card .primary.full{box-shadow:4px 4px 0 #8a8a87}

@media (prefers-reduced-motion:no-preference){
 .bp-welcome{animation:bpxRise .45s var(--tk-ease) both}
 .bp-stat{animation:bpxRise .45s var(--tk-ease) both}
 .bp-stat:nth-child(2){animation-delay:.05s}.bp-stat:nth-child(3){animation-delay:.1s}.bp-stat:nth-child(4){animation-delay:.15s}
 .bp-welcome-links a{transition:background-color .16s,color .16s,border-color .16s,transform .16s var(--tk-ease)}
 .bp-welcome-links a:hover{transform:translate(-1px,-1px)}
 :root .bp-tool:hover{transform:translate(-2px,-2px)}
}
@keyframes bpxRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(max-width:860px){
 .bp-welcome{grid-template-columns:1fr;grid-template-areas:"head" "stats" "links";gap:20px}
}
@media(max-width:520px){
 .bp-welcome{padding:22px 16px;margin-bottom:22px;box-shadow:4px 4px 0 #8a8a87}
 .bp-stat{padding:13px 12px}
 .bp-stat dd{font-size:26px}
 .bp-stat-wide dd{font-size:16px}
 .bp-welcome-links a{flex:1 1 auto;justify-content:center}
}
