/* Member dashboard editing: add-item picker, edit dialog, row edit button */
.btn-sm{min-height:44px;padding:8px 16px;font-size:14px}
.btn .plus,.add-row .plus{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.panel-h{gap:14px;flex-wrap:wrap}
.add-foot{padding:14px 24px 18px;border-top:1px solid var(--line)}
.add-row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:12px 16px;border:1.5px dashed var(--line);border-radius:14px;background:transparent;color:var(--ink);font-weight:700;font-size:15px;cursor:pointer}
.add-row:hover{border-color:var(--teal-deep);background:var(--teal-soft)}
.add-said{margin:10px 0 0;font-size:14px;color:var(--muted);min-height:1em}
.row.is-new{background:color-mix(in srgb,var(--teal-soft) 55%,transparent);animation:none}
.row-edit{display:flex;align-items:center;gap:6px;min-height:32px;margin:4px 0 -6px -8px;padding:0 8px;border:0;background:none;color:var(--ink);font-weight:600;font-size:14px;border-radius:10px;cursor:pointer}
.row-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.row-edit:hover{background:var(--cream2)}
.dlg{width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:0;border-radius:22px;padding:30px 32px 26px;background:var(--paper);color:var(--ink);box-shadow:0 30px 80px #0B1F3A55}
.dlg::backdrop{background:#0B1F3Acc}
.dlg h2{font-size:30px;line-height:1.1;margin:4px 0 8px;letter-spacing:-.01em}
.dlg-sub{color:var(--muted);margin:0 0 16px;font-size:16px;line-height:1.5}
.dlg-x{position:absolute;top:14px;right:14px;margin:0}
.dlg-x button{width:44px;height:44px;border:0;border-radius:50%;background:var(--cream2);font-size:24px;line-height:1;color:var(--ink);cursor:pointer}
.dlg input[type=search],.dlg input[type=text],.dlg select,.dlg textarea{width:100%;min-height:48px;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:16px;color:var(--ink)}
.dlg textarea{resize:vertical}
.dlg .lbl{display:block;font-size:13px;font-weight:700;letter-spacing:.04em;margin:16px 0 6px;color:var(--ink)}
.add-list{margin-top:14px;max-height:300px;overflow:auto;padding-right:4px}
.add-group h4{margin:14px 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.add-chips{display:flex;flex-wrap:wrap;gap:8px}
.add-chip{min-height:44px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font:inherit;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.add-chip span{font-size:12px;font-weight:600;color:var(--muted)}
.add-chip:disabled{background:var(--cream2);color:var(--muted);cursor:default}
.add-chip.is-picked{background:var(--navy);border-color:var(--navy);color:var(--paper)}
.add-empty{color:var(--muted);font-size:15px}
.add-opts{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:end;margin-top:6px}
.add-opts .lbl{margin-top:16px}
.dlg .seg button{width:auto;padding:0 14px;gap:6px;display:inline-flex;font:inherit;font-size:14px;font-weight:600}
.dlg .seg svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4}
.dlg-go{width:100%;justify-content:center;margin-top:20px}
.dlg-go:disabled{opacity:.5;cursor:not-allowed}
.add-suggest{margin-top:18px;padding-top:4px;border-top:1px solid var(--line)}
.row-in{display:flex;gap:8px}.row-in input{flex:1}
.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dlg-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px;flex-wrap:wrap}
.btn-ghost-danger{background:transparent;color:#9E2F20;border:1.5px solid #E7C4BD}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:700px){
  .dlg{padding:24px 18px 20px;border-radius:18px}
  .add-opts,.two{grid-template-columns:1fr}
}
.row{grid-template-columns:minmax(0,1fr) 118px 146px 140px;gap:14px}
