.pf-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.pf-head h1 { margin: 0; }
.pf-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: var(--on-ink); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.pf-avatar.emoji { background: var(--wash); color: var(--ink); font-size: 34px; border: 1.5px solid var(--gold); }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-width: 560px; }
.icons button { height: 46px; font-size: 22px; background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; line-height: 1; color: var(--ink); }
.icons button.ini { font-size: 13px; font-weight: 600; }
.icons button:hover { border-color: var(--faint); }
.icons button[aria-checked="true"] { border-color: var(--gold); background: var(--wash); box-shadow: inset 0 0 0 1px var(--gold); }
.banks { display: grid; gap: 10px; }
.bank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bank .main { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); white-space: nowrap; padding-bottom: 10px; }
.bank .rm { background: none; border: 0; color: var(--mute); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 0 10px; }
.bank .rm:hover { color: var(--red); }
.bank-tools { display: flex; gap: 14px; align-items: flex-end; }
.sig { position: relative; max-width: 560px; aspect-ratio: 14 / 5; border: 1.5px dashed var(--faint); background: #fff; touch-action: none; }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sig-line { position: absolute; left: 8%; right: 8%; bottom: 24%; height: 1px; background: #d8d8d8; pointer-events: none; }
.sig-empty { position: absolute; left: 8%; bottom: 10%; font-size: 12px; color: #9a9a9a; pointer-events: none; }
.sig-acts { display: flex; gap: 8px; }
.sig-acts label.btn { cursor: pointer; }
.sig-acts { flex-wrap: wrap; align-items: center; }
.sig-ink { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.sig-ink input { width: 130px; }
@media (max-width: 640px) {
  .bank { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bank .main, .bank .rm { padding-bottom: 0; }
  .pf-avatar { width: 52px; height: 52px; font-size: 20px; }
}
/* the page is a grid: let its children shrink to the phone width */
#prof > *, #f-prof, #f-prof .sec, #f-prof .sec > *, .grid2 > * { min-width: 0; }
.icons { width: 100%; }
.sig { width: 100%; }
.bank > *, .banks { min-width: 0; }
.bank .field input { width: 100%; }
