/* lifeos.css — Shared Life OS styles
   "Greenhouse" redesign: light green + wood + white, Material 3 expressive.
   Every app page includes this. Page-specific CSS goes in <style> blocks. */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────── */
:root {
  color-scheme: light;

  /* Primary — leaf green */
  --primary: #3D7A50;
  --primary-hover: #2F6440;
  --primary-light: #A6D4B0;
  --primary-container: #DCEFDD;
  --on-primary-container: #1C3A24;

  /* Secondary — sage green (success / positive) */
  --secondary: #67A877;
  --secondary-hover: #558F63;
  --secondary-light: #BCDFC2;
  --secondary-container: #E5F3E6;

  /* Wood — warm accents & surfaces */
  --wood: #9C6B43;
  --wood-dark: #7A5230;
  --wood-light: #E8DCC8;
  --wood-container: #F3EBDD;

  --gold: #D9A441;
  --gold-light: #F3E2BC;

  /* Semantic aliases (backwards compat) */
  --blue: #3D7A50;
  --blue-hover: #2F6440;
  --red: #B3402E;
  --red-hover: #963526;
  --green: #3D7A50;
  --amber: #D9A441;
  --success: #3D7A50;

  /* Text */
  --text: #1F2A21;
  --text-muted: #647062;
  --text-light: #98A396;
  --gray: #647062;
  --gray-light: #E9E6DB;

  /* Surfaces — white on warm paper */
  --bg: #F6F5EE;
  --surface-tint: #EFF3EA;
  --card: #FFFFFF;
  --border: #E4E0D3;

  /* Effects */
  --shadow: 0 1px 2px rgba(31,42,33,.05), 0 2px 12px rgba(31,42,33,.05);
  --shadow-hover: 0 4px 10px rgba(31,42,33,.08), 0 12px 32px rgba(31,42,33,.10);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --ripple-color: rgba(61,122,80,.18);
  --motion: cubic-bezier(.2,0,0,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 13.5px;
  max-width: 1200px; margin: 0 auto; padding: 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--primary-light); color: var(--on-primary-container); }

/* ── Ripple (Material press feedback) ────────── */
.ripple-host { position: relative; overflow: hidden; }
.ripple-ink {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--ripple-color); transform: scale(0);
  animation: ripple-grow .5s var(--motion) forwards;
}
@keyframes ripple-grow {
  to { transform: scale(2.6); opacity: 0; }
}

/* ── Login Screen ────────────────────────────── */
#loginScreen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; width: 100%; padding: 20px;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--primary-container) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--wood-container) 0%, transparent 55%),
    var(--bg);
}
.login-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 48px 44px;
  box-shadow: var(--shadow-hover); text-align: center; width: 340px;
  border: 1px solid var(--border);
}
.login-card .login-emoji { font-size: 52px; margin-bottom: 8px; }
.login-card h2 {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin-bottom: 2px; letter-spacing: -.3px;
}
.login-card .login-sub {
  color: var(--text-light); font-size: 13px; margin-bottom: 32px;
  font-weight: 500;
}
.pin-input {
  font-size: 28px; text-align: center; letter-spacing: 12px; width: 200px;
  padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  outline: none; font-family: inherit; transition: all .2s;
  color: var(--text); background: var(--surface-tint);
}
.pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(61,122,80,.14); background: #fff; }
.login-btn {
  width: 100%; padding: 14px; margin-top: 20px; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-full); font-size: 15px;
  font-weight: 700; cursor: pointer; transition: all .2s var(--motion);
  font-family: inherit;
}
.login-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,122,80,.25); }
.login-btn:active { transform: translateY(0); box-shadow: none; }
.pin-err {
  color: var(--red); font-size: 12px; margin-top: 14px; display: none;
  font-weight: 500;
}

/* ── Back Link ───────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
  transition: color .15s; font-weight: 600;
  padding: 6px 12px; margin-left: -12px; border-radius: var(--radius-full);
}
.back-link:hover { color: var(--primary); background: var(--primary-container); text-decoration: none; }

/* ── Page Header ─────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
h1 { font-size: 22px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.4px; }
h1 span { font-weight: 600; color: var(--primary); font-size: 14px; margin-left: 8px; }

.add-btn {
  cursor: pointer; background: var(--primary); color: #fff; border: none;
  padding: 11px 22px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700;
  transition: all .2s var(--motion); font-family: inherit;
}
.add-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,122,80,.25); }
.add-btn:active { transform: translateY(0); box-shadow: none; }

/* ── Summary Bar ─────────────────────────────── */
.summary-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.summary-card {
  background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: var(--shadow); flex: 1; min-width: 120px;
  border: 1px solid var(--border);
  transition: all .2s var(--motion);
}
.summary-card:hover { border-color: var(--primary-light); }
.summary-card .label {
  font-size: 10px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .8px; font-weight: 700; margin-bottom: 4px;
}
.summary-card .value { font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -.4px; }
.value.blue { color: var(--primary); }
.value.green { color: var(--success); }
.value.amber { color: var(--gold); }
.value.red { color: var(--red); }
.value.income { color: var(--success); }
.value.expense { color: var(--red); }
.value.net { color: var(--primary); }
.value.net.negative { color: var(--red); }

/* ── Controls Bar ────────────────────────────── */
.controls {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap;
}
.controls select, .controls input, .controls button {
  font-size: 13px; padding: 9px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text);
  font-family: inherit; transition: all .15s;
}
.controls select:focus, .controls input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px rgba(61,122,80,.12);
}
.controls button {
  cursor: pointer; background: var(--primary); color: #fff; border: none;
  font-weight: 700; border-radius: var(--radius-full); padding: 9px 18px;
}
.controls button:hover { background: var(--primary-hover); }
.controls button.sec {
  background: var(--surface-tint); color: var(--text);
  border: 1.5px solid var(--border);
}
.controls button.sec:hover { background: var(--primary-container); border-color: var(--primary-light); }
.controls button.danger { background: var(--red); }
.controls button.danger:hover { background: var(--red-hover); }
.search-box { flex: 1; min-width: 140px; }
.count-label { font-size: 12px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* ── Filter Chips (M3) ───────────────────────── */
.chip-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  font-size: 12px; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--card); color: var(--text); cursor: pointer; transition: all .15s var(--motion);
  display: flex; align-items: center; gap: 5px; font-weight: 600;
  border: 1px solid var(--border);
}
.chip:hover { background: var(--primary-container); border-color: var(--primary-light); }
.chip.active { background: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary); }
.chip .count { font-weight: 800; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .amt { font-weight: 700; }

/* ── Badge ───────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; background: var(--wood-container); color: var(--wood-dark);
}
.badge:hover { background: var(--wood-light); }

/* ── Card Grid ───────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: all .25s var(--motion);
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.card .card-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.card .card-title {
  font-size: 15px; font-weight: 700; line-height: 1.3; flex: 1; margin-right: 8px;
  letter-spacing: -.2px;
}
.card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--surface-tint);
  flex-wrap: wrap; gap: 6px;
}
.card .meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}

/* ── Table ────────────────────────────────────── */
.table-wrap {
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow-x: auto;
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--wood-container); padding: 10px 12px; text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--wood-dark); position: sticky; top: 0; cursor: pointer;
  user-select: none; white-space: nowrap; font-weight: 700;
}
thead th:hover { background: var(--wood-light); }
thead th .arrow { margin-left: 4px; font-size: 10px; }
tbody tr { border-bottom: 1px solid var(--surface-tint); transition: background .1s; }
tbody tr:hover { background: var(--surface-tint); }
tbody tr.selected { background: var(--primary-container); }
tbody td { padding: 9px 12px; vertical-align: middle; }
td.amount { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; white-space: nowrap; }
td.amount.pos { color: var(--success); }
td.amount.neg { color: var(--red); }
td.date { white-space: nowrap; color: var(--text-muted); font-size: 12px; }
td.desc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.cat .badge { cursor: pointer; transition: all .15s; }
td.actions { white-space: nowrap; }
td.actions button {
  padding: 4px 10px; font-size: 11px; border: 1px solid var(--border);
  border-radius: var(--radius-full); cursor: pointer; background: var(--card); color: var(--text-muted);
  transition: all .15s; margin-left: 2px; font-family: inherit;
}
td.actions button:hover { background: #F7E5E0; border-color: var(--red); color: var(--red); }
td.actions button.edit-btn:hover { background: var(--primary-container); border-color: var(--primary); color: var(--primary); }
input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }

/* ── Modal / Overlay ─────────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0; background: rgba(31,42,33,.4);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.overlay.active { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(31,42,33,.22);
  max-height: 90vh; overflow-y: auto;
  border: 1px solid var(--border);
  animation: modal-in .25s var(--motion);
}
@keyframes modal-in {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal h3 { font-size: 18px; margin-bottom: 20px; font-weight: 800; letter-spacing: -.3px; }
.modal label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  display: block; margin-bottom: 4px; margin-top: 14px;
}
.modal label:first-of-type { margin-top: 0; }
.modal select, .modal input, .modal textarea {
  width: 100%; padding: 10px 12px; font-size: 13px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card); font-family: inherit;
  transition: all .15s; color: var(--text);
}
.modal select:focus, .modal input:focus, .modal textarea:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px rgba(61,122,80,.12);
}
.modal textarea { resize: vertical; min-height: 60px; }
.modal .field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.modal .field-row .field label { margin-top: 0; }
.modal .field-row-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.modal .field-row-3 .field label { margin-top: 0; }
.modal .section-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-top: 22px; margin-bottom: 2px;
  padding-top: 16px; border-top: 1px solid var(--surface-tint);
}
.section-divider { border: none; border-top: 1px solid var(--surface-tint); margin: 18px 0 4px; }

/* ── Buttons ─────────────────────────────────── */
.btn-row { display: flex; gap: 8px; margin-top: 24px; justify-content: flex-end; }
.btn-row button {
  padding: 11px 22px; border-radius: var(--radius-full); font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s var(--motion);
  font-family: inherit;
}
.btn-save { background: var(--primary); color: #fff; }
.btn-save:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,122,80,.25); }
.btn-cancel { background: var(--surface-tint); color: var(--text); }
.btn-cancel:hover { background: var(--gray-light); }
.btn-del { background: var(--red); color: #fff; }
.btn-del:hover { background: var(--red-hover); }

/* ── Loading ─────────────────────────────────── */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.loading .spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast (M3 snackbar) ─────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px; background: #2A3A2D;
  color: #fff; padding: 14px 22px; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 600; opacity: 0; transition: opacity .3s, transform .3s var(--motion);
  transform: translateY(8px); z-index: 200;
  box-shadow: 0 6px 24px rgba(31,42,33,.3); pointer-events: none;
}
.toast.visible { opacity: 1; transform: none; }

/* ── Error Box ───────────────────────────────── */
.error-box {
  background: #F7E5E0; border: 1px solid #E2B5A8; border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 12px; color: var(--red); font-size: 13px; display: none;
}
.error-box.visible { display: block; }

/* ── Empty State ─────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .msg { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.empty-state .sub { font-size: 13px; color: var(--text-muted); }

/* ── Toggle (M3 switch) ──────────────────────── */
.toggle-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.toggle-track {
  width: 44px; height: 24px; border-radius: var(--radius-full); background: var(--gray-light);
  position: relative; cursor: pointer; transition: background .2s;
  border: 1px solid var(--border);
}
.toggle-track.on { background: var(--primary); border-color: var(--primary); }
.toggle-track .toggle-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px; transition: left .2s var(--motion);
  box-shadow: 0 1px 3px rgba(31,42,33,.2);
}
.toggle-track.on .toggle-thumb { left: 22px; }
.toggle-label { font-size: 12px; color: var(--text-muted); }

/* ── Detail View (people, possessions) ───────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.detail-item { padding: 8px 0; }
.detail-item .dlabel {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 2px; font-weight: 700;
}
.detail-item .dvalue { font-size: 13px; color: var(--text); word-break: break-word; }
.detail-item .dvalue a { color: var(--primary); }
.detail-item.full { grid-column: 1 / -1; }
.detail-section {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--surface-tint); grid-column: 1 / -1;
}
.detail-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--surface-tint);
}
.detail-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary-container); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.detail-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.detail-sub { font-size: 13px; color: var(--text-muted); }
.detail-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.detail-actions {
  display: flex; gap: 8px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--surface-tint);
}
.detail-actions button {
  padding: 9px 18px; border-radius: var(--radius-full); font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s var(--motion);
  font-family: inherit;
}

/* ── Rating ───────────────────────────────────── */
.rating { display: flex; gap: 1px; align-items: center; font-size: 14px; }
.rating .star { color: var(--border); }
.rating .star.filled { color: var(--gold); }
.rating-input { display: flex; gap: 2px; align-items: center; padding: 6px 0; }
.rating-input .star-btn {
  background: none; border: none; cursor: pointer; font-size: 22px;
  color: var(--border); transition: color .1s; padding: 0 1px;
}
.rating-input .star-btn.filled { color: var(--gold); }
.rating-input .star-btn:hover { color: #C09136; }

/* ── Difficulty ───────────────────────────────── */
.difficulty { display: flex; gap: 3px; align-items: center; }
.difficulty .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.difficulty .dot.filled { background: var(--primary); }
.difficulty-input { display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.difficulty-input .diff-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: all .15s; border: 2px solid transparent;
}
.difficulty-input .diff-dot.filled { background: var(--primary); }
.difficulty-input .diff-dot:hover { border-color: var(--primary-light); }
.difficulty-label { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

/* ── Type Pills ──────────────────────────────── */
.type-pill {
  font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full);
  display: inline-block; font-weight: 700;
}
.type-income { background: var(--secondary-container); color: #2D6A4F; }
.type-expense { background: #F7E5E0; color: var(--red); }
.type-transfer { background: var(--gold-light); color: #8B6914; }
.type-investment { background: #E4EEF5; color: #2E5A8C; }
.type-refund { background: #F0E8F5; color: #6B3FA0; }

/* ── Bulk Bar ────────────────────────────────── */
.bulk-bar {
  display: none; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--primary-container); border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.bulk-bar.active { display: flex; }
.bulk-bar .sel-count { font-weight: 800; font-size: 13px; color: var(--primary); }

/* ── Condition Indicators ────────────────────── */
.condition-indicator {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
}
.cond-new, .cond-excellent { background: var(--secondary-container); color: #2D6A4F; }
.cond-good { background: #E4EEF5; color: #2E5A8C; }
.cond-fair { background: var(--gold-light); color: #8B6914; }
.cond-poor, .cond-broken { background: #F7E5E0; color: var(--red); }

/* ── Contact Status ──────────────────────────── */
.contact-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 600;
}
.contact-status.green { background: var(--secondary-container); color: #2D6A4F; }
.contact-status.yellow { background: var(--gold-light); color: #8B6914; }
.contact-status.red { background: #F7E5E0; color: var(--red); }
.contact-status.grey { background: var(--surface-tint); color: var(--text-muted); }

/* ── Misc Shared ─────────────────────────────── */
.insured-badge {
  font-size: 10px; padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--secondary-container); color: #2D6A4F; font-weight: 700;
}

/* ── Compatibility Aliases ──────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(31,42,33,.4);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }

.modal-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(31,42,33,.22);
  max-height: 90vh; overflow-y: auto;
  border: 1px solid var(--border); position: relative;
  animation: modal-in .25s var(--motion);
}
.modal-card h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.modal-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }

.modal-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; font-size: 22px; color: var(--text-muted); cursor: pointer;
  padding: 0; line-height: 1; transition: color .15s; z-index: 1;
}
.modal-close:hover { color: var(--primary); }

.form-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  display: block; margin-bottom: 4px; margin-top: 14px;
}
.form-label:first-of-type { margin-top: 0; }
.form-input {
  width: 100%; padding: 10px 12px; font-size: 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); font-family: inherit;
  transition: all .15s; color: var(--text);
}
.form-input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px rgba(61,122,80,.12);
}
textarea.form-input { resize: vertical; min-height: 60px; }

.btn-primary, .btn-secondary, .btn-danger {
  padding: 11px 22px; border-radius: var(--radius-full); font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s var(--motion);
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,122,80,.25); }
.btn-secondary { background: var(--surface-tint); color: var(--text); }
.btn-secondary:hover { background: var(--gray-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-hover); }

.detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--surface-tint); gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; font-weight: 700; flex-shrink: 0;
}

.empty-msg {
  text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px;
}
