/* ============================================================
   Living Extra — Agent Dashboard
   Uses the theme's design tokens (livingextra.css).
   ============================================================ */
.dash-wrap { padding: 34px 0 80px; }
.dash-wrap .wrap { max-width: 1180px; }

/* login gate reuse */
.dash-wrap .nl-gate { max-width: 460px; margin: 60px auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 46px 34px; box-shadow: var(--shadow); }
.dash-wrap .nl-gate h1 { font-family: var(--disp); font-size: 26px; margin: 0 0 10px; }
.dash-wrap .nl-gate p { color: var(--ink-2); margin: 0 0 22px; }

/* header */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-hello { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.dash-head h1 { font-family: var(--disp); font-size: clamp(26px, 4vw, 38px); margin: 2px 0 0; display: flex; align-items: center; gap: 12px; letter-spacing: -.02em; }
.dash-verified { display: inline-flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--mint); background: #E7F8F2; border: 1px solid #9FE6D0; padding: 4px 11px; border-radius: 100px; }
.dash-head-actions { display: flex; gap: 10px; }

/* summary tiles */
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 30px; }
.dash-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.dash-tile .dt-v { font-family: var(--disp); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-tile .dt-l { color: var(--ink-3); font-size: 13px; font-weight: 600; margin-top: 8px; }
.dash-tile.hot .dt-v { color: var(--rose); }

/* tabs */
.dash-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.dash-tab { appearance: none; background: none; border: none; padding: 12px 18px; font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; display: flex; align-items: center; gap: 8px; }
.dash-tab:hover { color: var(--ink); }
.dash-tab.active { color: var(--rose); border-bottom-color: var(--rose); }
.dash-tab .tabcount { font-size: 12px; background: var(--line); color: var(--ink-2); padding: 1px 8px; border-radius: 100px; font-weight: 700; }
.dash-tab.active .tabcount { background: var(--rose-l); color: var(--rose-d); }

.dash-panel { display: none; }
.dash-panel.active { display: block; animation: dashfade .25s ease; }
@keyframes dashfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash-panel.active { animation: none; } }

.dash-empty { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 40px 28px; text-align: center; color: var(--ink-2); }
.dash-empty a { color: var(--rose); font-weight: 700; }

/* tables */
.dash-tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dash-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.dash-table th { text-align: left; padding: 13px 16px; background: var(--bg); color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .muted { color: var(--ink-3); }

.lead-name { font-weight: 700; color: var(--ink); }
.lead-contact { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.lead-contact:hover { color: var(--rose); }
.lead-msg { color: var(--ink-2); max-width: 280px; }
.lst-title { font-weight: 700; }
.lst-price { font-weight: 700; white-space: nowrap; }
.lst-leads { font-weight: 700; font-variant-numeric: tabular-nums; }
.lst-actions { white-space: nowrap; }
.lst-actions a { color: var(--rose); font-weight: 700; margin-right: 12px; font-size: 13px; }

.lst-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 100px; }
.lst-badge.ok { background: #E7F8F2; color: #0A7A5A; }
.lst-badge.warn { background: #FFF3DE; color: #9A6B12; }
.lst-badge.muted { background: var(--line); color: var(--ink-2); }

/* lead + viewing status selects — colour-coded by stage */
.lead-status, .appt-status { appearance: none; border: 1px solid var(--line); border-radius: 100px; padding: 6px 30px 6px 13px; font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer; background-color: var(--card); background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8799' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.lead-status.saving, .appt-status.saving { opacity: .5; }
.le-lead-new { background-color: #EEF1FF; color: #3B49B5; border-color: #C9D2FF; }
.le-lead-contacted { background-color: #E9F5FF; color: #1E6FB0; border-color: #BEE2FA; }
.le-lead-viewing { background-color: #FFF3DE; color: #9A6B12; border-color: #F2D9A6; }
.le-lead-negotiating { background-color: #F3EAFE; color: #7A34C2; border-color: #DEC7F6; }
.le-lead-won { background-color: #E7F8F2; color: #0A7A5A; border-color: #9FE6D0; }
.le-lead-lost { background-color: #FBE9EC; color: #B42340; border-color: #F2C2CC; }

/* viewing appointment stages */
.le-appt-requested { background-color: #EEF1FF; color: #3B49B5; border-color: #C9D2FF; }
.le-appt-confirmed { background-color: #E7F8F2; color: #0A7A5A; border-color: #9FE6D0; }
.le-appt-completed { background-color: #EDEAF6; color: #574B8A; border-color: #D6CEEC; }
.le-appt-declined { background-color: #FBE9EC; color: #B42340; border-color: #F2C2CC; }
.le-appt-cancelled { background-color: var(--line); color: var(--ink-2); border-color: var(--line); }
.appt-when { font-weight: 700; white-space: nowrap; }
.appt-note { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; max-width: 240px; }

/* ============================================================
   Messaging inbox
   ============================================================ */
.dash-tab.has-unread { position: relative; }
.dash-tab.has-unread::after { content: ""; position: absolute; top: 8px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-height: 460px; }
.msg-threads { border-right: 1px solid var(--line); max-height: 560px; overflow-y: auto; }
.msg-thread { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line-2); padding: 13px 16px; cursor: pointer; font-family: var(--sans); }
.msg-thread:hover { background: var(--bg); }
.msg-thread.active { background: var(--rose-l); }
.mt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mt-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.mt-badge { background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.mt-badge[hidden] { display: none; }
.mt-prop { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.mt-last { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread.unread .mt-last { color: var(--ink); font-weight: 600; }

.msg-convo { display: flex; flex-direction: column; min-height: 460px; }
.msg-empty { margin: auto; color: var(--ink-3); padding: 40px; text-align: center; }
.msg-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--ink); }
.msg-head[hidden], .msg-body[hidden], .msg-reply[hidden] { display: none; }
.msg-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 430px; }
.msg-b { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-b .msg-bt p { margin: 0 0 6px; }
.msg-b .msg-bt p:last-child { margin: 0; }
.msg-b.them { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg-b.me { align-self: flex-end; background: var(--rose); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { display: block; font-size: 11px; margin-top: 4px; opacity: .72; }
.msg-loading { color: var(--ink-3); text-align: center; padding: 20px; }
.msg-reply { border-top: 1px solid var(--line); padding: 12px 14px; }
.msg-reply-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-reply textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 14px; resize: vertical; min-height: 42px; background: var(--card); color: var(--ink); }
.msg-reply textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.msg-reply .btn { white-space: nowrap; }
.msg-reply .le-fmsg { display: none; }
.msg-reply .le-fmsg.show { display: block; margin-bottom: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.msg-reply .le-fmsg.show.err { background: #FBE9EC; color: #B42340; }

@media (max-width: 720px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-threads { max-height: 240px; border-right: none; border-bottom: 1px solid var(--line); }
}

/* admin enquiry list pill (reused) */
.le-lead-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 100px; }

/* verification */
.dash-verify { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; box-shadow: var(--shadow); max-width: 620px; }
.dash-verify h3 { font-family: var(--disp); font-size: 22px; margin: 0 0 8px; }
.dash-verify p { color: var(--ink-2); margin: 0 0 18px; }
.dv-state { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; }
.dv-state.ok { background: #E7F8F2; color: #0A7A5A; }
.dv-state.warn { background: #FFF3DE; color: #9A6B12; }
.dv-state.err { background: #FBE9EC; color: #B42340; }
.dv-form { display: flex; flex-direction: column; gap: 16px; }
.dv-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.dv-form label small { font-weight: 500; color: var(--ink-3); }
.dv-form select, .dv-form input[type=file] { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: var(--sans); font-size: 14px; background: var(--card); }
.dv-form select:focus, .dv-form input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.dv-note { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* shared form message */
.dash-verify .le-fmsg { display: none; }
.dash-verify .le-fmsg.show { display: block; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dash-verify .le-fmsg.show.ok { background: #E7F8F2; color: #0A7A5A; }
.dash-verify .le-fmsg.show.err { background: #FBE9EC; color: #B42340; }
.le-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* edit button in the listings table (matches the action-link look) */
.dash-edit-btn { appearance: none; background: none; border: none; padding: 0; margin-right: 12px; color: var(--rose); font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer; }
.dash-edit-btn:hover { text-decoration: underline; }

/* ============================================================
   Edit-listing modal
   ============================================================ */
.dash-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.dash-modal.open { display: block; }
.dm-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 28, .55); backdrop-filter: blur(2px); }
.dm-dialog { position: relative; z-index: 1; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; margin: 24px auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(20, 16, 28, .3); padding: 28px 30px 26px; animation: dmpop .22s ease; }
@keyframes dmpop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dm-dialog { animation: none; } }
.dm-x { position: absolute; top: 14px; right: 16px; appearance: none; background: none; border: none; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.dm-x:hover { color: var(--ink); }
.dm-dialog h2 { font-family: var(--disp); font-size: 24px; margin: 0 0 18px; letter-spacing: -.02em; }

.dm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dm-form > .dm-full { grid-column: 1 / -1; }
.dm-form label, .dm-form .dm-full > .dm-lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.dm-form .dm-lbl { display: block; margin-bottom: 8px; }
.dm-form label small { font-weight: 500; color: var(--ink-3); }
.dm-form input[type=text], .dm-form input[type=tel], .dm-form input[type=email], .dm-form select, .dm-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 14px; background: var(--card); color: var(--ink); width: 100%; }
.dm-form textarea { resize: vertical; }
.dm-form input:focus, .dm-form select:focus, .dm-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.dm-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dm-row.three { grid-template-columns: 1fr 1fr 1fr; }

.dm-amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; }
.dm-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; font-size: 13.5px !important; }
.dm-check input { width: auto; accent-color: var(--rose); }

.dm-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.dm-nophotos { color: var(--ink-3); font-size: 13px; }
.dm-photo { position: relative; width: 78px; height: 62px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.dm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-photo.removing { opacity: .4; }
.dm-photo.removing::after { content: "Removed"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(180, 35, 64, .55); }
.dm-photo-rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(20, 16, 28, .7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; z-index: 2; }
.dm-addphotos { display: inline-block; cursor: pointer; color: var(--rose); font-weight: 700; font-size: 13.5px; border: 1px dashed var(--rose-l, var(--line)); border-radius: 9px; padding: 8px 14px; width: auto !important; }
.dm-newphotos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dm-newphoto { width: 78px; height: 62px; object-fit: cover; border-radius: 9px; border: 2px solid var(--mint, #0A7A5A); }

.dm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); }

.dm-form .le-fmsg { grid-column: 1 / -1; display: none; }
.dm-form .le-fmsg.show { display: block; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dm-form .le-fmsg.show.ok { background: #E7F8F2; color: #0A7A5A; }
.dm-form .le-fmsg.show.err { background: #FBE9EC; color: #B42340; }

@media (max-width: 620px) {
  .dm-form, .dm-row, .dm-row.three { grid-template-columns: 1fr; }
  .dm-dialog { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .dash-head { align-items: flex-start; }
  .dash-head-actions { width: 100%; }
  .dash-head-actions .btn { flex: 1; text-align: center; }

  /* ---- Card-ify the data tables ----
     Below 640px a horizontal-scroll table is awkward on a phone, so each row
     becomes a self-contained card and each cell a labelled key/value line.
     The <thead> is hidden; the per-cell data-label restates the column. */
  .dash-tablewrap { overflow: visible; background: none; border: none; box-shadow: none; border-radius: 0; }
  .dash-table { min-width: 0; }
  .dash-table thead { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: auto; }
  .dash-table tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
  .dash-table td { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: right; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
  .dash-table td:last-child { border-bottom: none; }
  .dash-table td::before { content: attr(data-label); flex: 0 0 auto; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

  /* content-rich cells: stack the value beneath the label, left aligned
     (the Property title is each card's primary identifier — read as a heading) */
  .dash-leads td[data-label="From"], .dash-leads td[data-label="Property"], .dash-leads td.lead-msg,
  .dash-viewings td[data-label="From"], .dash-viewings td[data-label="Property"], .dash-viewings td.appt-when,
  .dash-listings td[data-label="Property"] {
    flex-direction: column; align-items: stretch; text-align: left; gap: 5px;
  }
  .dash-table .lead-msg, .dash-table .appt-note { max-width: none; }
  .dash-table .appt-when { white-space: normal; }

  /* actions: label on its own line, buttons flow in a wrapping row below */
  .dash-listings td.lst-actions { flex-wrap: wrap; justify-content: flex-start; text-align: left; align-items: center; gap: 6px 18px; }
  .dash-listings td.lst-actions::before { flex: 1 0 100%; }
  .dash-listings .lst-actions a, .dash-listings .dash-edit-btn { margin-right: 0; }
}

/* ============================================================
   Profile / account editor
   ============================================================ */
.dash-profile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 26px 24px; max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.dash-profile .le-fmsg { display: none; }
.dash-profile .le-fmsg.show { display: block; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dash-profile .le-fmsg.show.ok { background: #E7F8F2; color: #0A7A5A; }
.dash-profile .le-fmsg.show.err { background: #FBE9EC; color: #B42340; }

.dp-photo { display: flex; align-items: center; gap: 18px; }
.dp-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--bg); flex-shrink: 0; }
.dp-photo-actions { display: flex; flex-direction: column; gap: 6px; }
.dp-upload { display: inline-block; align-self: flex-start; cursor: pointer; color: var(--rose); font-weight: 700; font-size: 13.5px; border: 1px dashed var(--line); border-radius: 9px; padding: 8px 14px; }
.dp-upload:hover { border-color: var(--rose); }
.dp-hint { color: var(--ink-3); font-size: 12.5px; }

.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-profile label, .dash-profile .dp-lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.dash-profile label small, .dash-profile .dp-lbl small { font-weight: 500; color: var(--ink-3); }
.dash-profile input, .dash-profile textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 14px; background: var(--card); color: var(--ink); width: 100%; }
.dash-profile textarea { resize: vertical; }
.dash-profile input:focus, .dash-profile textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.dp-full { grid-column: 1 / -1; }
.dp-pw { border-top: 1px solid var(--line-2); padding-top: 16px; }
.dp-pw .dp-lbl { display: block; margin-bottom: 10px; }
.dp-actions { display: flex; justify-content: flex-end; }

@media (max-width: 620px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dash-profile { padding: 22px 18px; }
}

/* ============================================================
   Saved favourites
   ============================================================ */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sv-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
.sv-thumb { flex: 0 0 96px; width: 96px; height: 74px; border-radius: 10px; overflow: hidden; background: var(--bg); display: block; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-noimg { display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--ink-3); }
.sv-info { flex: 1; min-width: 0; }
.sv-t { font-weight: 700; color: var(--ink); font-size: 14.5px; display: block; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-t:hover { color: var(--rose); }
.sv-loc { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.sv-price { color: var(--ink); font-weight: 700; }
.sv-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; align-items: stretch; }
.sv-view { padding: 6px 14px; font-size: 13px; text-align: center; }
.sv-remove { appearance: none; background: none; border: none; color: var(--ink-3); font-family: var(--sans); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 4px; }
.sv-remove:hover { color: var(--rose); }

@media (max-width: 520px) {
  .sv-grid { grid-template-columns: 1fr; }
  /* Let the actions wrap onto their own full-width row so nothing clips. */
  .sv-card { flex-wrap: wrap; }
  .sv-actions { flex-direction: row; align-items: center; justify-content: flex-end; gap: 16px; flex-basis: 100%; border-top: 1px solid var(--line-2); padding-top: 10px; }
  .sv-view { padding: 6px 16px; }
}
