:root {
  color-scheme: light;
  --navy: #082d57;
  --navy-deep: #062443;
  --teal: #0b8f8a;
  --amber: #e89a00;
  --ink: #14273a;
  --muted: #647386;
  --surface: #ffffff;
  --background: #f3f6fa;
  --line: #dce4ec;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Visual system approved for the mobile-first application. */
:root {
  color-scheme: light;
  --app-bg: #eef3f7;
  --surface: #ffffff;
  --surface-raised: #f6f9fb;
  --surface-strong: #e5edf3;
  --text: #09223b;
  --muted: #65798d;
  --faint: #8da0b2;
  --line: #d6e2ea;
  --primary: #008f89;
  --primary-bright: #00bdb3;
  --primary-soft: #dff6f3;
  --positive: #008d73;
  --positive-soft: #dff5ef;
  --warning: #a86500;
  --warning-soft: #fff1cf;
  --danger: #d74646;
  --danger-soft: #ffebeb;
  --header: #08243f;
  --shadow: 0 14px 34px rgba(12, 38, 61, 0.09);
  --shadow-soft: 0 7px 20px rgba(12, 38, 61, 0.06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #061827;
  --surface: #0b2236;
  --surface-raised: #102b42;
  --surface-strong: #17364d;
  --text: #f5f9fc;
  --muted: #9ab0c3;
  --faint: #718ba1;
  --line: rgba(163, 192, 215, 0.16);
  --primary: #14ddcf;
  --primary-bright: #26f0df;
  --primary-soft: rgba(20, 221, 207, 0.13);
  --positive: #39e4b9;
  --positive-soft: rgba(57, 228, 185, 0.13);
  --warning: #ffc044;
  --warning-soft: rgba(255, 192, 68, 0.13);
  --danger: #ff6969;
  --danger-soft: rgba(255, 105, 105, 0.13);
  --header: #061827;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.18);
}

html { background: var(--app-bg); }
body { min-height: 100vh; margin: 0; background: var(--app-bg); color: var(--text); transition: background 180ms ease, color 180ms ease; }
body.overlay-open { overflow: hidden; }
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--header) 94%, transparent);
  color: #f7fbff;
  backdrop-filter: blur(18px);
}

.header-menu-button, .account-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  color: inherit;
}
.header-menu-button svg { width: 20px; height: 20px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 9px; justify-self: start; padding-left: 8px; color: #f7fbff; text-decoration: none; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--primary); color: #032827; font-size: 9px; font-weight: 900; }
.brand > span:last-child { display: grid; min-width: 0; }
.brand small { color: #93aabc; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.brand strong { overflow: hidden; margin-top: 2px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { position: relative; border: 0; border-radius: 50%; background: var(--surface-strong); color: var(--text); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.online-dot { position: absolute; top: 0; right: 1px; width: 9px; height: 9px; border: 2px solid var(--header); border-radius: 50%; background: var(--positive); }

.page-shell { width: min(100% - 36px, 1080px); padding: 28px 0 116px; }
.page-shell.dashboard-shell { max-width: 820px; }
.page-shell.form-shell { max-width: 640px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.eyebrow, .expense-category { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.page-heading, .form-heading { margin-bottom: 22px; }
.page-heading h1, .form-heading h1, .dashboard-welcome h1 { margin: 7px 0 5px; color: var(--text); font-size: clamp(28px, 4vw, 38px); letter-spacing: -.04em; line-height: 1.08; }
.page-heading p, .form-heading p, .dashboard-welcome p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.primary-button, .secondary-button, .danger-button {
  min-height: 48px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.primary-button { border: 0; background: linear-gradient(135deg, var(--primary-bright), var(--primary)); color: #032827; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent); }
.secondary-button { border: 1px solid var(--line); background: var(--surface-raised); color: var(--text); }
.danger-button { border: 0; background: var(--danger); color: #fff; }
.primary-button.compact, .secondary-button.compact { padding: 0 16px; }

.messages p { margin: 0 0 16px; border-color: color-mix(in srgb, var(--positive) 35%, var(--line)); border-radius: 14px; background: var(--positive-soft); color: var(--positive); box-shadow: var(--shadow-soft); }

.dashboard-welcome { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 7px 10px; border-radius: 999px; background: var(--positive-soft); color: var(--positive); font-size: 10px; font-weight: 800; }
.status-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent); }
.budget-hero { margin-top: 22px; padding: 22px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line)); border-radius: 24px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow); }
.budget-label, .budget-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.budget-percent { padding: 5px 8px; border-radius: 999px; background: var(--positive-soft); color: var(--positive); font-weight: 800; }
.budget-hero > strong { display: block; margin-top: 8px; color: var(--text); font-size: clamp(32px, 7vw, 44px); letter-spacing: -.05em; }
.budget-meta { margin-top: 18px; }
.budget-meta span { display: grid; gap: 4px; }
.budget-meta span:last-child { text-align: right; }
.budget-meta b { color: var(--text); font-size: 12px; }
.budget-hero progress { width: 100%; height: 7px; margin-top: 14px; overflow: hidden; border: 0; border-radius: 99px; background: var(--surface-strong); }
.budget-hero progress::-webkit-progress-bar { background: var(--surface-strong); }
.budget-hero progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-bright)); }
.budget-hero progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-bright)); }

.compact-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.compact-metrics article { min-width: 0; padding: 15px 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.compact-metrics span, .compact-metrics small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compact-metrics strong { display: block; margin: 6px 0 4px; color: var(--text); font-size: clamp(14px, 3vw, 18px); letter-spacing: -.02em; white-space: nowrap; }
.compact-metrics .positive strong { color: var(--positive); }
.compact-metrics .warning strong { color: var(--warning); }

.app-panel { margin-top: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-heading h2 { margin: 5px 0 0; color: var(--text); font-size: 20px; letter-spacing: -.03em; }
.panel-heading > a { color: var(--primary); font-size: 11px; font-weight: 800; text-decoration: none; }
.panel-heading + .activity-list,
.panel-heading + .category-bars,
.panel-heading + .dashboard-progress-card { margin-top: 0; }
.category-bars { display: grid; gap: 13px; margin-top: 18px; }
.category-bar > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.category-bar strong { color: var(--text); }
.category-bar progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: var(--surface-strong); }
.category-bar progress::-webkit-progress-bar { background: var(--surface-strong); }
.category-bar progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-bright)); }

.activity-list { margin-top: 14px; }
.activity-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.activity-item:has(.inline-delete) { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.activity-kind, .transaction-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--warning-soft); color: var(--warning); font-size: 11px; font-weight: 900; }
.activity-kind.payment-kind, .transaction-icon.payment-icon { background: var(--positive-soft); color: var(--positive); }
.activity-item > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.activity-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item > b { font-size: 12px; white-space: nowrap; }
.expense-amount { color: var(--warning); }.payment-amount { color: var(--positive); }
.inline-delete { padding: 7px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 9px; font-weight: 800; text-decoration: none; }
.dashboard-progress-card { display: grid; grid-template-columns: minmax(0, 1fr) 86px; align-items: center; gap: 14px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.dashboard-progress-card > div { display: grid; gap: 5px; }
.dashboard-progress-card strong { font-size: 13px; }.dashboard-progress-card small { color: var(--muted); font-size: 10px; }
.dashboard-progress-card img { width: 86px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--surface-raised); }
.desktop-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.desktop-quick-actions a { padding: 11px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; text-decoration: none; }
.desktop-quick-actions .edit-project-link { margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.partida-list{display:grid;gap:8px}.partida-row{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-raised);color:var(--text);text-decoration:none}.partida-row>span:first-child,.partida-row-metrics{display:grid;gap:3px}.partida-row strong{font-size:13px}.partida-row small{color:var(--muted);font-size:9px}.partida-row-metrics{text-align:right}.partida-row-metrics strong{font-size:12px}.partida-chevron{color:var(--muted);font-size:24px}.partida-row.is-overrun{border-color:color-mix(in srgb,var(--danger) 58%,var(--line))}.partida-row.is-overrun .partida-row-metrics strong{color:var(--danger)}.partida-detail-heading{margin-bottom:16px}.partida-detail-heading h1{margin:4px 0 0;font-size:30px}.partida-summary{margin-bottom:15px}.partida-ratios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.partida-ratios>div{display:grid;gap:5px;padding:12px;border-radius:13px;background:var(--surface-raised)}.partida-ratios span{color:var(--muted);font-size:9px;font-weight:800}.partida-ratios strong{font-size:17px}.partida-expenses{margin-top:18px}.partida-expenses .transaction-card-link{grid-template-columns:minmax(0,1fr) auto}.field-group>small{color:var(--muted);font-size:9px;line-height:1.4}

.project-grid { gap: 16px; }.project-card, .empty-state, .dashboard-section, .confirm-card { border-color: var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.project-card { transition: transform 160ms ease, border-color 160ms ease; }.project-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.project-card dl div { background: var(--surface-raised); }.project-card p, .empty-copy, .empty-state p { color: var(--muted); }

.filter-form { gap: 12px; padding: 16px; border-color: var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.filter-form label { color: var(--muted); }.filter-form input, .filter-form select { height: 48px; border-color: var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--text); }
.transaction-list { display: grid; gap: 12px; }.transaction-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-soft); }
.transaction-copy { min-width: 0; }.transaction-copy h2 { margin: 5px 0; color: var(--text); font-size: 17px; }.transaction-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.transaction-end { display: grid; justify-items: end; gap: 14px; }.transaction-end > strong { font-size: 18px; white-space: nowrap; }.transaction-end > div { display: flex; gap: 10px; font-size: 10px; font-weight: 800; }.transaction-end a { color: var(--primary); text-decoration: none; }.transaction-end .danger-link { color: var(--danger); }
.expense-badges { margin-top: 9px; }.expense-badges a, .expense-badges span { border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 9px; }.expense-badges a { background: var(--primary-soft); color: var(--primary); }
.payment-summary { gap: 10px; padding: 0; border: 0; background: transparent; }.payment-summary > div { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }.payment-summary .positive strong { color: var(--positive); }.payment-summary .warning strong { color: var(--warning); }

.modern-form { display: grid; gap: 13px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.amount-card, .form-section, .modern-toggle { border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow-soft); }
.amount-card { padding: 19px 21px; border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); background: linear-gradient(145deg, var(--surface-raised), var(--surface)); }
.amount-card > label { color: var(--muted); font-size: 11px; font-weight: 700; }.amount-card > div { display: flex; align-items: baseline; margin-top: 7px; }.amount-card input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 38px; font-weight: 800; letter-spacing: -.04em; }.amount-card > div > span { color: var(--primary); font-size: 25px; font-weight: 900; }
.form-section { display: grid; gap: 15px; padding: 18px; }.field-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.field-group { gap: 7px; }.field-group > label, .existing-progress-photos > label { color: var(--muted); font-size: 10px; font-weight: 800; }.field-group input:not([type="checkbox"]), .field-group select, .field-group textarea, .protected-file-input input[type="file"], .photo-upload-field input[type="file"] { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--text); }.field-group input:not([type="checkbox"]), .field-group select { height: 48px; padding: 0 13px; }.field-group textarea { padding: 13px; }.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.attachment-title { display: flex; justify-content: space-between; }.attachment-title > span { display: grid; gap: 4px; }.attachment-title strong { font-size: 12px; }.attachment-title small, .field-group small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.modern-toggle { margin: 0; padding: 15px; }.modern-toggle label { display: flex; align-items: center; gap: 12px; }.modern-toggle label > span { display: grid; gap: 3px; }.modern-toggle label strong { color: var(--text); font-size: 11px; }.modern-toggle input { width: 42px; height: 24px; accent-color: var(--primary); }
.save-expense { width: 100%; margin: 2px 0 0; }
.protected-file-input, .photo-upload-field { display: grid; gap: 10px; }.current-file-row { border-color: var(--line); border-radius: 13px; background: var(--surface-raised); }.current-document-link { color: var(--primary); font-size: 11px; font-weight: 800; text-decoration: none; }
.selected-file-preview { display: grid; gap: 8px; }.selected-file-preview:empty { display: none; }.selected-file-preview > div { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); }.selected-file-preview img, .selected-file-preview > div > span:first-child { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 10px; object-fit: cover; background: var(--surface-strong); color: var(--muted); font-size: 10px; }.selected-file-preview > div > span:nth-child(2) { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.selected-file-preview button { padding: 7px 9px; border: 0; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 9px; font-weight: 800; }

.progress-timeline { gap: 15px; }.progress-card { padding: 20px; border-color: var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }.progress-card h2 { color: var(--text); }.visibility-badge { border-radius: 999px; background: var(--primary-soft); color: var(--primary); }.photo-composition { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 150px; gap: 8px; }.photo-composition a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface-raised); }.photo-composition img { width: 100%; height: 100%; object-fit: cover; }.photo-composition .photo-hidden { display: none; }.more-photos { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,10,20,.58); color: #fff; font-size: 24px; font-weight: 900; }.progress-actions { border-color: var(--line); }.progress-actions a { color: var(--primary); }.progress-actions .danger-link { color: var(--danger); }.compact-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.compact-photo-grid img { aspect-ratio: 1; border-radius: 13px; object-fit: cover; }

.app-menu { position: fixed; z-index: 40; inset: 0; visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }.app-menu.is-open { visibility: visible; opacity: 1; }.menu-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,8,18,.72); backdrop-filter: blur(4px); }.menu-panel { position: absolute; right: 0; bottom: 0; left: 0; max-height: min(86vh,760px); padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); overflow: auto; border: 1px solid var(--line); border-radius: 26px 26px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -22px 60px rgba(0,0,0,.34); transform: translateY(105%); transition: transform 220ms ease; }.app-menu.is-open .menu-panel { transform: translateY(0); }.menu-handle,.sheet-handle { width: 42px; height: 5px; margin: 2px auto 17px; border-radius: 99px; background: var(--faint); }.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.menu-heading > div { display: flex; align-items: center; gap: 11px; }.menu-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--primary); color: #032827; font-size: 11px; font-weight: 900; }.menu-heading > div > span:last-child { display: grid; gap: 3px; }.menu-heading strong { font-size: 13px; }.menu-heading small { color: var(--muted); font-size: 10px; }.menu-heading > button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface-raised); color: var(--muted); font-size: 20px; }.menu-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }.menu-navigation a { padding: 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }.menu-navigation a.is-active { border-color: color-mix(in srgb,var(--primary) 35%,var(--line)); background: var(--primary-soft); color: var(--primary); }.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }.theme-row > span { display: grid; gap: 3px; }.theme-row strong { font-size: 11px; }.theme-row small { color: var(--muted); font-size: 9px; }.theme-toggle { position: relative; display: grid; width: 118px; height: 36px; grid-template-columns: 1fr 1fr; place-items:center; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-raised); color: var(--muted); font-size: 8px; }.theme-toggle span { z-index: 1; }.theme-toggle i { position: absolute; top: 3px; left: 3px; width: 54px; height: 28px; border-radius: 99px; background: var(--primary); transition: transform 180ms ease; }.theme-toggle span:first-child { color: #032827; }.theme-toggle span:last-child { color: var(--muted); }.theme-toggle i { transform: translateX(0); }:root[data-theme="dark"] .theme-toggle i { transform: translateX(56px); }:root[data-theme="dark"] .theme-toggle span:first-child { color: var(--muted); }:root[data-theme="dark"] .theme-toggle span:last-child { color: #032827; }.logout-form { margin-top: 12px; }.logout-form button { width: 100%; min-height: 46px; border: 1px solid color-mix(in srgb,var(--danger) 35%,var(--line)); border-radius: 13px; background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 900; }

.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; height: calc(72px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5,1fr); align-items:start; padding: 5px 10px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter: blur(18px); }.bottom-nav > a,.bottom-nav > span { display: flex; height: 58px; align-items:center; justify-content:center; color: var(--muted); font-size: 9px; font-weight: 700; text-decoration:none; }.bottom-nav .quick-add { width: 54px; height: 54px; justify-self:center; margin-top:-22px; border:5px solid var(--surface); border-radius:18px; background:var(--primary); color:#032827; font-size:27px; box-shadow:0 8px 22px color-mix(in srgb,var(--primary) 35%,transparent); }.bottom-nav .quick-add.disabled { opacity:.45; }

.modal-layer,.lightbox { position:fixed; z-index:60; inset:0; }.modal-layer[hidden],.lightbox[hidden]{display:none}.modal-backdrop,.lightbox-backdrop{position:absolute;inset:0;border:0;background:rgba(0,8,18,.78);backdrop-filter:blur(5px)}.confirm-sheet{position:absolute;right:0;bottom:0;left:0;padding:9px 20px calc(24px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:26px 26px 0 0;background:var(--surface);color:var(--text);text-align:center;box-shadow:0 -22px 60px rgba(0,0,0,.36)}.danger-icon,.warning-icon{display:grid;width:54px;height:54px;place-items:center;margin:0 auto;border-radius:17px;font-size:22px;font-weight:900}.danger-icon{background:var(--danger-soft);color:var(--danger)}.warning-icon{background:var(--primary-soft);color:var(--primary)}.confirm-sheet h2{margin:14px 0 7px;font-size:23px;letter-spacing:-.03em}.confirm-sheet p{max-width:460px;margin:0 auto 17px;color:var(--muted);font-size:12px;line-height:1.5}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.modal-actions button{width:100%}
.lightbox-dialog{position:absolute;inset:0;display:grid;place-items:center;padding:60px 18px;background:#02070c}.lightbox-top{position:absolute;z-index:2;top:calc(16px + env(safe-area-inset-top));right:18px;left:18px;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:12px;font-weight:800}.lightbox-top button{width:40px;height:40px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:24px}.lightbox-dialog img{max-width:100%;max-height:76vh;border-radius:10px;object-fit:contain}.lightbox-nav{position:absolute;z-index:2;top:50%;width:42px;height:52px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08);color:#fff;font-size:30px}.lightbox-nav.previous{left:12px}.lightbox-nav.next{right:12px}.lightbox-nav:disabled{visibility:hidden}

.login-shell { min-height: calc(100vh - 56px); display:grid; place-items:center; padding:28px 0; }.login-card { border-color:var(--line); background:var(--surface); color:var(--text); box-shadow:var(--shadow); }.login-card p,.stack-form label{color:var(--muted)}.stack-form input{border-color:var(--line);background:var(--surface-raised);color:var(--text)}

@media (max-width: 720px) {
  .site-header { padding: 0 16px; }
  .page-shell { width: min(100% - 30px, 620px); padding-top: 22px; }
  .page-heading { gap: 16px; }
  .page-heading .primary-button { width: 100%; }
  .compact-metrics { gap: 8px; }
  .compact-metrics article { padding: 13px 10px; }
  .compact-metrics strong { font-size: 13px; }
  .compact-metrics small { font-size: 8px; }
  .transaction-card { grid-template-columns: 40px minmax(0,1fr); align-items:start; padding:16px; }
  .transaction-end { grid-column:2; justify-items:start; }
  .field-columns { grid-template-columns: 1fr; }
  .payment-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .payment-summary > div { padding: 13px 10px; }
  .payment-summary strong { font-size: 14px; }
  .photo-composition { grid-auto-rows: 116px; }
  .desktop-quick-actions { display:none; }
}

@media (min-width: 1024px) {
  .site-header { padding-left: 268px; }
  .header-menu-button { visibility:hidden; }
  .app-menu { z-index:25; width:250px; visibility:visible; opacity:1; pointer-events:none; }
  .menu-backdrop,.menu-handle,.menu-heading>button { display:none; }
  .menu-panel { position:absolute;inset:0;width:250px;max-height:none;padding:28px 18px;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--surface);transform:none;box-shadow:none;pointer-events:auto; }
  .menu-heading { margin-top:52px; }
  .menu-navigation { grid-template-columns:1fr; }
  .page-shell { margin-left:calc(250px + (100vw - 250px - min(1080px, calc(100vw - 310px))) / 2); margin-right:auto; }
  .bottom-nav { display:none; }
  .page-shell { padding-bottom:54px; }
  .confirm-sheet { right:50%;bottom:50%;left:auto;width:min(460px,calc(100% - 36px));padding:18px 22px 22px;border-radius:24px;transform:translate(50%,50%); }
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header { min-height: 70px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: var(--navy-deep); }
.brand { font-weight: 800; letter-spacing: -.02em; }
.account { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.account form { margin: 0; }
.text-button { border: 0; padding: 0; color: #9ee1dc; background: none; cursor: pointer; }

.page-shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 72px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.6; }

.login-shell { width: 100%; min-height: 100vh; padding: 32px 20px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-deep) 0 36%, var(--background) 36%); }
.login-card { width: min(460px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(4,30,57,.22); }
.login-card h1 { margin-top: 14px; font-size: 42px; }
.stack-form { display: grid; gap: 10px; margin-top: 28px; }
.stack-form label, .field-group > label { font-size: 13px; font-weight: 750; }

input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; color: var(--ink); background: white; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,143,138,.12); }

.primary-button, .secondary-button { min-height: 48px; border: 0; border-radius: 13px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 850; letter-spacing: .02em; cursor: pointer; }
.primary-button { margin-top: 14px; color: white; background: var(--navy); }
.primary-button:hover { background: #0a3b70; }
.secondary-button { border: 1px solid #c9d8e7; color: var(--navy); background: #f7faff; }
.compact { min-height: 42px; margin-top: 0; white-space: nowrap; }

.page-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-heading h1, .form-heading h1 { margin-top: 8px; }
.page-heading p { margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card, .summary-card, .step-one-note, .project-form, .empty-state { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 34px rgba(12,45,79,.06); }
.project-card { padding: 26px; }
.project-title { display: flex; align-items: center; gap: 7px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #18b98d; box-shadow: 0 0 0 4px rgba(24,185,141,.12); }
.project-card h2 { margin: 18px 0 8px; font-size: 25px; }
.project-card dl { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-card dl div { padding: 14px; border-radius: 14px; background: #f5f8fb; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; }
.project-card .secondary-button { width: 100%; }
.empty-state { grid-column: 1 / -1; padding: 48px; text-align: center; }

.back-link { display: inline-block; margin-bottom: 26px; color: var(--teal); font-size: 14px; font-weight: 800; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.summary-card { padding: 28px; }
.summary-card > span, .summary-card small { display: block; color: var(--muted); font-size: 13px; }
.summary-card strong { display: block; margin: 10px 0 5px; color: var(--navy); font-size: 34px; letter-spacing: -.04em; }
.summary-card.internal { border-top: 4px solid var(--amber); }
.step-one-note { margin-top: 20px; padding: 30px; }
.step-one-note h2 { margin: 10px 0 8px; }
.step-one-note p { margin-bottom: 0; }

.expense-preview { margin-top: 20px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 34px rgba(12,45,79,.06); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 7px 0 0; }
.expense-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.expense-row { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.expense-row small { display: block; margin-top: 5px; color: var(--muted); }
.expense-cta { margin-top: 22px; }
.empty-copy { margin: 18px 0 0; }

.filter-form { margin-bottom: 22px; padding: 18px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, .7fr) auto auto; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.filter-form > div { display: grid; gap: 7px; }
.filter-form label { color: var(--muted); font-size: 12px; font-weight: 750; }
.filter-form small { max-width: 420px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.filter-form .secondary-button { min-height: 47px; }
.text-link { align-self: center; color: var(--teal); font-size: 13px; font-weight: 800; }
.expense-list { display: grid; gap: 12px; }
.expense-card { padding: 22px 24px; display: flex; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.expense-category { color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.expense-card h2 { margin: 7px 0 4px; font-size: 20px; }
.expense-card p { margin-bottom: 10px; font-size: 14px; }
.expense-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.expense-badges a, .expense-badges span { padding: 5px 8px; border-radius: 8px; color: #456078; background: #eef3f7; font-size: 11px; font-weight: 750; }
.expense-badges a { color: var(--teal); }
.expense-card-end { display: flex; align-items: end; flex-direction: column; justify-content: space-between; white-space: nowrap; }
.expense-card-end > strong { color: var(--navy); font-size: 22px; }
.expense-card-end div { display: flex; gap: 12px; font-size: 13px; font-weight: 750; }
.expense-card-end a { color: var(--teal); }
.expense-card-end .danger-link { color: #a92d2d; }

.expense-form { grid-template-columns: 1fr 1fr; }
.expense-form .amount-input, .expense-form .boolean-field, .expense-form .save-expense, .expense-form .form-errors { grid-column: 1 / -1; }
.amount-input input { min-height: 64px; color: var(--navy); font-size: 28px; font-weight: 850; }
.boolean-field { padding: 16px; border: 1px solid #9cd8cb; border-radius: 14px; background: #effaf7; }
.boolean-field label { display: flex; align-items: center; gap: 10px; }
.boolean-field input { width: 20px; height: 20px; }
.protected-file-input { min-width: 0; display: grid; gap: 10px; }
.protected-file-input input[type="file"] { min-width: 0; max-width: 100%; overflow: hidden; }
.current-file-row { padding: 12px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f5f8fb; }
.current-file-row > span { color: var(--navy); font-weight: 800; }
.current-file-row label { display: flex; align-items: center; gap: 8px; color: #8e3030; font-size: 13px; }
.current-file-row input { width: 18px; height: 18px; }
.replace-file-label { color: var(--muted); font-size: 12px; font-weight: 750; }
.current-document-link { width: fit-content; color: var(--teal); font-size: 13px; font-weight: 800; }
.confirm-card { max-width: 680px; padding: 34px; border: 1px solid #efc5c5; border-radius: 22px; background: white; }
.confirm-card h1 { margin-top: 12px; font-size: 34px; }
.danger-text { color: #a92d2d; }
.danger-button { min-height: 48px; border: 0; border-radius: 13px; padding: 0 20px; color: white; background: #a92d2d; font-weight: 850; cursor: pointer; }

.dashboard-section { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 34px rgba(12,45,79,.06); }
.dashboard-title h2 { margin: 7px 0 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-width: 0; padding: 18px; border-radius: 16px; background: #f4f7fa; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 8px; color: var(--navy); font-size: clamp(21px, 3vw, 30px); letter-spacing: -.035em; }
.metric-card.collected { background: #eaf8f4; }
.metric-card.collected strong { color: #087267; }
.metric-card.pending { background: #fff7e6; }
.metric-card.pending strong { color: #9b6500; }
.metric-card.spent { background: #fff7e6; }
.metric-card.available { background: #eaf8f4; }
.section-actions { margin-top: 18px; display: flex; gap: 10px; }
.budget-progress { margin-top: 22px; }
.budget-progress > div, .category-bar > div { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.budget-progress span, .category-bar span { color: var(--muted); font-size: 13px; }
progress { width: 100%; height: 10px; overflow: hidden; border: 0; border-radius: 999px; background: #e7edf3; }
progress::-webkit-progress-bar { border-radius: 999px; background: #e7edf3; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--teal); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--teal); }
.budget-progress progress::-webkit-progress-value { background: var(--amber); }
.budget-progress progress::-moz-progress-bar { background: var(--amber); }
.category-bars { margin-top: 20px; display: grid; gap: 16px; }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-columns .expense-preview { margin-top: 20px; }
.payment-summary { margin-bottom: 22px; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 20px; background: var(--line); overflow: hidden; }
.payment-summary > div { padding: 18px; background: white; }
.payment-summary span { display: block; color: var(--muted); font-size: 12px; }
.payment-summary strong { display: block; margin-top: 7px; color: var(--navy); font-size: 22px; }
.payment-form { max-width: 620px; }

.progress-timeline { display: grid; gap: 20px; }
.progress-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 34px rgba(12,45,79,.06); }
.progress-card-heading { margin-bottom: 18px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.progress-card-heading h2 { margin: 8px 0 0; }
.visibility-badge { padding: 6px 9px; border-radius: 8px; color: #456078; background: #eef3f7; font-size: 11px; font-weight: 750; white-space: nowrap; }
.progress-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.progress-photo-grid a { min-width: 0; overflow: hidden; border-radius: 14px; background: #e8eef4; aspect-ratio: 4 / 3; }
.progress-photo-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }
.progress-actions { margin-top: 18px; display: flex; gap: 14px; font-size: 13px; font-weight: 750; }
.progress-actions a { color: var(--teal); }
.progress-actions .danger-link { color: #a92d2d; }
.progress-form { max-width: 720px; }
.progress-form .boolean-field { display: grid; }
.photo-upload-field input[type="file"] { min-width: 0; max-width: 100%; overflow: hidden; }
.existing-progress-photos { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.compact-photo-grid { max-width: 520px; }
.progress-preview-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.progress-preview-grid article { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f7f9fb; }
.progress-preview-grid article > a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8eef4; }
.progress-preview-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }
.progress-preview-grid article > div { padding: 14px; }
.progress-preview-grid small { margin-top: 5px; display: block; color: var(--muted); }

.form-heading { max-width: 680px; margin-bottom: 28px; }
.project-form { max-width: 720px; overflow: hidden; padding: 30px; display: grid; gap: 20px; }
.field-group { min-width: 0; display: grid; gap: 8px; }
.field-group small { color: var(--muted); }
.viewer-field > div { display: grid; gap: 8px; }
.viewer-field label:has(input) { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; }
.viewer-field input { width: auto; }
.field-error, .form-errors { color: #a92d2d; font-size: 13px; }
.messages p { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #9cd8cb; border-radius: 12px; color: #086454; background: #eaf8f4; }

@media (max-width: 720px) {
  .site-header { padding: 0 18px; }
  .account > span { display: none; }
  .page-shell { width: min(100% - 28px, 580px); padding-top: 30px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .compact { width: 100%; }
  .project-grid, .summary-grid { grid-template-columns: 1fr; }
  .project-card dl { grid-template-columns: 1fr; }
  .login-card { padding: 30px 24px; border-radius: 22px; }
  .login-card h1 { font-size: 36px; }
  .project-form { padding: 22px 18px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .expense-row { align-items: start; }
  .filter-form, .expense-form { grid-template-columns: 1fr; }
  .expense-form .amount-input, .expense-form .boolean-field, .expense-form .save-expense, .expense-form .form-errors { grid-column: 1; }
  .filter-form .text-link { padding: 10px 0; }
  .expense-card { flex-direction: column; }
  .expense-card-end { align-items: start; gap: 16px; }
  .metric-grid, .dashboard-columns, .payment-summary { grid-template-columns: 1fr; }
  .dashboard-section { padding: 22px 18px; }
  .section-actions { align-items: stretch; flex-direction: column; }
  .section-actions a { width: 100%; }
  .progress-card { padding: 20px 16px; }
  .progress-card-heading { align-items: stretch; flex-direction: column; }
  .visibility-badge { width: fit-content; white-space: normal; }
  .progress-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-preview-grid { grid-template-columns: 1fr; }
}

/* Final cascade guard: the approved system intentionally overrides the legacy sheet above. */
:root {
  --app-bg:#eef3f7;--surface:#fff;--surface-raised:#f6f9fb;--surface-strong:#e5edf3;--text:#09223b;--muted:#65798d;--faint:#8da0b2;--line:#d6e2ea;--primary:#008f89;--primary-bright:#00bdb3;--primary-soft:#dff6f3;--positive:#008d73;--positive-soft:#dff5ef;--warning:#a86500;--warning-soft:#fff1cf;--danger:#d74646;--danger-soft:#ffebeb;--header:#08243f;--shadow:0 14px 34px rgba(12,38,61,.09);--shadow-soft:0 7px 20px rgba(12,38,61,.06)
}
:root[data-theme="dark"] {--app-bg:#061827;--surface:#0b2236;--surface-raised:#102b42;--surface-strong:#17364d;--text:#f5f9fc;--muted:#9ab0c3;--faint:#718ba1;--line:rgba(163,192,215,.16);--primary:#14ddcf;--primary-bright:#26f0df;--primary-soft:rgba(20,221,207,.13);--positive:#39e4b9;--positive-soft:rgba(57,228,185,.13);--warning:#ffc044;--warning-soft:rgba(255,192,68,.13);--danger:#ff6969;--danger-soft:rgba(255,105,105,.13);--header:#061827;--shadow:0 18px 38px rgba(0,0,0,.24);--shadow-soft:0 8px 22px rgba(0,0,0,.18)}
body{min-height:100vh;margin:0;background:var(--app-bg);color:var(--text)}
.site-header{position:sticky;z-index:15;top:0;display:grid;min-height:72px;height:72px;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;justify-content:initial;gap:0;padding:0 16px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--header) 94%,transparent);color:#f7fbff}
.brand{display:flex;font-weight:400;letter-spacing:normal}.page-shell{width:min(100% - 36px,1080px);margin:0 auto;padding:28px 0 116px}.page-shell.dashboard-shell{max-width:820px}.page-shell.form-shell{max-width:640px}.eyebrow{color:var(--primary);font-size:10px}.page-heading{margin-bottom:22px;align-items:flex-end}.page-heading h1,.form-heading h1{color:var(--text)}.page-heading p,.form-heading p,p{color:var(--muted)}
.primary-button,.secondary-button,.danger-button{min-height:48px;border-radius:14px;font-size:12px;font-weight:900;letter-spacing:0;text-transform:none}.primary-button{margin-top:0;border:0;background:linear-gradient(135deg,var(--primary-bright),var(--primary));color:#032827}.secondary-button{border:1px solid var(--line);background:var(--surface-raised);color:var(--text)}.danger-button{background:var(--danger);color:#fff}.primary-button:hover{background:linear-gradient(135deg,var(--primary-bright),var(--primary))}
input,textarea,select{border-color:var(--line);background:var(--surface-raised);color:var(--text)}input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
.filter-form{border-color:var(--line);background:var(--surface)}.payment-summary{padding:0;border:0;background:transparent}.progress-card,.project-card,.empty-state,.dashboard-section,.confirm-card{border-color:var(--line);background:var(--surface);color:var(--text)}.visibility-badge{background:var(--primary-soft);color:var(--primary)}.messages p{border-color:color-mix(in srgb,var(--positive) 35%,var(--line));background:var(--positive-soft);color:var(--positive)}
.login-shell{background:var(--app-bg)}.login-card{border-color:var(--line);background:var(--surface);color:var(--text)}.login-card h1{color:var(--text)}.stack-form label{color:var(--muted)}.stack-form input{background:var(--surface-raised);color:var(--text)}
@media(max-width:720px){.site-header{padding:0 16px}.page-shell{width:min(100% - 30px,620px);padding-top:22px;padding-bottom:116px}.page-heading{align-items:stretch}.payment-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.project-form{padding:0}.progress-card{padding:20px}.progress-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.partida-row{grid-template-columns:minmax(0,1fr) auto 12px;gap:8px}.partida-row-metrics strong{font-size:11px}.partida-summary{grid-template-columns:1fr}.partida-ratios{grid-template-columns:1fr}}
@media(min-width:1024px){.site-header{padding-left:268px}.page-shell{width:min(1080px,calc(100% - 310px));margin-left:calc(250px + (100vw - 250px - min(1080px,calc(100vw - 310px))) / 2);margin-right:auto;padding-bottom:54px}.bottom-nav{display:none}}
@media(min-width:1024px){.page-shell.login-shell{width:100%;margin-right:0;margin-left:0;padding-bottom:32px}}
.project-form:not(.modern-form){border-color:var(--line);background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}
.page-heading .primary-button{font-size:13px;font-weight:800;line-height:1.2}.project-card-link{display:block;text-decoration:none}.open-project-hint{display:block;margin-top:18px;color:var(--primary);font-size:12px;font-weight:800;line-height:1.35;text-align:right}

/* Mobile navigation and compact project editor refinements. */
.bottom-nav{height:calc(78px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;padding:6px 7px env(safe-area-inset-bottom)}
.bottom-nav>a,.bottom-nav>span,.bottom-nav>button{display:flex;height:61px;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:var(--muted);font-size:9px;font-weight:650;text-decoration:none}
.bottom-nav svg{width:20px;height:20px;flex:0 0 auto}.bottom-nav .is-active{color:var(--primary);font-weight:850}.bottom-nav .is-active::after{position:absolute;bottom:3px;width:28px;height:3px;border-radius:99px;background:var(--primary);content:""}.bottom-nav>a,.bottom-nav>button{position:relative}.bottom-nav .nav-disabled{opacity:.42}
.bottom-nav .quick-add{display:flex;width:62px;height:62px;flex-direction:column;gap:1px;justify-self:center;margin-top:-27px;border:5px solid var(--surface);border-radius:50%;background:linear-gradient(145deg,var(--primary-bright),var(--primary));color:#032827;font-size:10px;box-shadow:0 10px 28px color-mix(in srgb,var(--primary) 38%,transparent)}.bottom-nav .quick-add svg{width:25px;height:25px}.bottom-nav .quick-add span{font-size:10px;font-weight:800;line-height:1}.bottom-nav .quick-add::after{display:none}

.project-card{padding:21px}.project-card h2{margin:16px 0 7px;color:var(--text);font-size:23px}.project-card dl{margin:18px 0;gap:9px}.project-card dl div{padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-raised)}.project-card dt{color:var(--muted);font-size:9px}.project-card dd{margin-top:5px;color:var(--text);font-size:16px}.project-title{color:var(--primary)}

.project-editor{gap:11px}.project-editor .form-section{gap:12px;padding:15px;border-radius:18px}.project-editor .field-group{gap:5px}.project-editor .field-group>label{font-size:9px}.project-editor .field-group input:not([type="checkbox"]),.project-editor .field-group select{height:42px;padding:0 11px;border-radius:11px;font-size:12px}.project-editor .field-group textarea{min-height:70px;padding:11px;border-radius:11px;font-size:12px;resize:vertical}.project-editor .field-columns{gap:9px}.form-section-label{color:var(--primary);font-size:9px;font-weight:900;letter-spacing:.12em}.project-editor .viewer-field ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.project-editor .viewer-field li label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--text);font-size:11px;font-weight:700}.project-editor .viewer-field input{width:17px;height:17px;accent-color:var(--primary)}.project-editor>.primary-button{width:100%;min-height:46px}

/* El formulario no tiene una tarjeta exterior: solo permanecen sus bloques interiores. */
.project-form.project-editor{overflow:visible;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.project-editor .form-section{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-soft)}

/* Formularios de producto: sin tarjeta exterior y con controles integrados en el tema. */
.project-form.modern-form{overflow:visible;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.modern-form .form-section,.modern-form .amount-card{border-color:var(--line);background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}
.modern-form .modern-toggle{padding:14px;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--text);box-shadow:none}
.modern-form .modern-toggle label{color:var(--text)}
.modern-form .modern-toggle small{color:var(--muted)}
.modern-form .modern-toggle input[type="checkbox"]{width:18px;height:18px;accent-color:var(--primary)}
.file-picker{position:relative;display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:13px;background:var(--surface-raised)}
.file-picker input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;border:0!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.file-picker-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:0 12px;border:1px solid color-mix(in srgb,var(--primary) 34%,var(--line));border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap}
.file-picker-button:active{transform:translateY(1px)}
.file-picker:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
.file-picker-name{min-width:0;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.protected-file-input{display:grid;gap:10px}.selected-file-preview{grid-column:1/-1}.selected-file-preview:empty{display:none}
.current-file-row{border-color:var(--line);background:var(--surface-raised);color:var(--text)}
.current-file-row>span{color:var(--text);font-size:11px;font-weight:800}
.replace-file-label{color:var(--muted)}

@media(max-width:720px){.project-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}.project-editor .field-columns{grid-template-columns:1fr 1fr}.project-editor .form-section{padding:14px}.page-shell.form-shell{padding-top:20px}.form-heading{margin-bottom:17px}.form-heading h1{font-size:29px}.form-heading p{font-size:12px}.back-link{margin-bottom:15px}}
@media(max-width:380px){.project-editor .field-columns{grid-template-columns:1fr}.project-card dl{grid-template-columns:1fr}.bottom-nav>a,.bottom-nav>span,.bottom-nav>button{font-size:8px}.file-picker{grid-template-columns:1fr}.file-picker-button{width:100%}.file-picker-name{text-align:center}}

/* Visor fotográfico móvil: imagen más amplia y navegación claramente visible. */
.lightbox-dialog{padding:54px 8px 20px}
.lightbox-stage{display:grid;max-width:100%;max-height:86vh;justify-items:center;gap:14px}
.lightbox-dialog img{max-width:100%;max-height:calc(84vh - 24px);border-radius:8px}
.lightbox-dots{display:flex;max-width:min(82vw,420px);align-items:center;justify-content:center;gap:7px;overflow:hidden}
.lightbox-dots button{width:7px;height:7px;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.34)}
.lightbox-dots button.is-active{width:20px;border-radius:99px;background:#26f0df}
.lightbox-nav{width:46px;height:56px;border:1px solid rgba(38,240,223,.58);background:rgba(8,36,63,.94);color:#26f0df;box-shadow:0 8px 24px rgba(0,0,0,.42);font-size:34px;font-weight:700;backdrop-filter:blur(8px)}
.lightbox-nav.previous{left:8px}.lightbox-nav.next{right:8px}
.lightbox-nav:active{transform:scale(.96);background:rgba(0,143,137,.96)}
@media(max-width:720px){.lightbox-nav{display:none}.lightbox-dialog{padding-right:8px;padding-left:8px}}

/* Chips de metadatos integrados con los temas claro y oscuro. */
.expense-badges a,.expense-badges span{padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-raised);color:var(--muted);font-size:10px;font-weight:750;line-height:1.2}
.expense-badges a{border-color:color-mix(in srgb,var(--primary) 24%,var(--line));background:var(--primary-soft);color:var(--primary)}

/* Resumen de cobros compacto, sin tarjetas blancas heredadas. */
.payment-summary{gap:7px;margin-bottom:22px;padding:0;border:0;background:transparent;overflow:visible}
.payment-summary>div{min-width:0;padding:14px 10px;border:1px solid var(--line);border-radius:15px;background:var(--surface-raised);box-shadow:none}
.payment-summary>div.positive{border-color:color-mix(in srgb,var(--positive) 24%,var(--line));background:var(--positive-soft)}
.payment-summary>div.warning{border-color:color-mix(in srgb,var(--warning) 24%,var(--line));background:var(--warning-soft)}
.payment-summary span{color:var(--muted);font-size:10px;line-height:1.2}
.payment-summary strong{margin-top:7px;color:var(--text);font-size:16px;line-height:1.2;letter-spacing:-.02em;white-space:nowrap}
.payment-summary .positive strong{color:var(--positive)}
.payment-summary .warning strong{color:var(--warning)}

/* Controles del menú con escala y alineación coherentes en móvil. */
@media(max-width:1023px){
  .menu-heading>button{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--muted)}
  .menu-heading>button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round}
  .theme-row>span{gap:4px}
  .theme-row strong{font-size:14px;line-height:1.2}
  .theme-row small{font-size:11px;line-height:1.3}
  .theme-toggle{width:136px;height:40px;flex:0 0 136px;font-size:11px;font-weight:750}
  .theme-toggle i{top:3px;left:3px;width:64px;height:32px}
  :root[data-theme="dark"] .theme-toggle i{transform:translateX(66px)}
}

/* Formulario de gasto: importe compacto y textos de acción legibles. */
.modern-form{min-width:0}
.modern-form>*{min-width:0;max-width:100%}
.modern-form .amount-card{min-width:0;padding:15px 17px;overflow:hidden;border-radius:18px}
.modern-form .amount-card>label{font-size:10px;font-weight:750}
.modern-form .amount-card>div{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:5px}
.modern-form .amount-card input{width:100%;min-width:0;max-width:100%;height:44px;padding:0;border:0;border-radius:0;background:transparent;font-size:28px;line-height:1.1;box-shadow:none}
.modern-form .amount-card input:focus{border:0;box-shadow:none}
.modern-form .amount-card>div>span{flex:0 0 auto;margin-right:2px;font-size:20px;line-height:1}
.modern-form .modern-toggle label strong{font-size:12px;font-weight:700;line-height:1.3}
.modern-form .modern-toggle small{font-size:10px;font-weight:500;line-height:1.4}
.modern-form .save-expense{font-size:13px}

/* Selector de fecha ligero, centrado y adaptado a ambos temas. */
.date-input-shell{position:relative;width:100%;min-width:0}
.date-input-shell input{padding-right:45px!important;cursor:pointer}
.date-input-shell input::-webkit-calendar-picker-indicator{opacity:0;pointer-events:none}
.date-trigger{position:absolute;top:50%;right:5px;display:grid;width:37px;height:37px;place-items:center;padding:0;border:0;border-radius:10px;background:transparent;color:var(--primary);transform:translateY(-50%);cursor:pointer}
.date-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.date-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.calendar-layer{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:18px}
.calendar-layer[hidden]{display:none}
.calendar-backdrop{position:absolute;inset:0;border:0;background:rgba(0,8,18,.78);backdrop-filter:blur(5px)}
.calendar-dialog{position:relative;width:min(360px,100%);padding:17px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.42)}
.calendar-header{display:grid;grid-template-columns:38px minmax(0,1fr) 38px 38px;align-items:center;gap:5px;margin-bottom:15px}
.calendar-header strong{text-align:center;font-size:14px;text-transform:capitalize}
.calendar-header button,.calendar-close{display:grid;width:38px;height:38px;place-items:center;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--text);font-size:20px;cursor:pointer}
.calendar-close{font-size:16px}
.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekdays{margin-bottom:5px}
.calendar-weekdays span{padding:4px 0;color:var(--muted);font-size:10px;font-weight:800;text-align:center}
.calendar-days button{display:grid;aspect-ratio:1;place-items:center;padding:0;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--text);font-size:12px;font-weight:650;cursor:pointer}
.calendar-days button:hover{background:var(--surface-raised)}
.calendar-days button.is-today{border-color:color-mix(in srgb,var(--primary) 42%,var(--line));color:var(--primary)}
.calendar-days button.is-selected{border-color:var(--primary);background:var(--primary);color:#032827;font-weight:900}
.calendar-days span{aspect-ratio:1}
.calendar-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.calendar-actions button{min-height:40px;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}
.calendar-actions button:last-child{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));background:var(--primary-soft);color:var(--primary)}

/* El listado localiza gastos; el detalle concentra la información y las acciones. */
.expense-list-heading{align-items:flex-end;margin-bottom:16px}
.expense-list-heading h1{margin:0 0 4px;font-size:28px;line-height:1.05}
.expense-list-heading p{margin:0;font-size:12px;line-height:1.4}
.progress-card-selectable,.dashboard-progress-selectable{cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.progress-card-selectable:hover,.progress-card-selectable:focus-visible,.dashboard-progress-selectable:hover,.dashboard-progress-selectable:focus-visible{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));outline:0;box-shadow:0 12px 34px color-mix(in srgb,var(--primary) 10%,transparent)}
.progress-card-selectable:active,.dashboard-progress-selectable:active{transform:scale(.992)}
.progress-card-selectable .photo-composition{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:7px}
.progress-card-selectable .photo-composition a{aspect-ratio:1;min-width:0;border-radius:12px}
.progress-photo-count{display:block;margin-top:9px;color:var(--muted);font-size:11px;font-weight:750}
.dashboard-progress-gallery{min-width:0}.dashboard-progress-gallery>a{display:block}.dashboard-progress-gallery>a[hidden]{display:none}
.transaction-list{display:grid;gap:8px}
.transaction-card.transaction-card-link{display:grid;min-height:72px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 13px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--shadow-soft);transition:border-color .16s ease,transform .16s ease}
.transaction-card.transaction-card-link:hover{border-color:color-mix(in srgb,var(--primary) 42%,var(--line));transform:translateY(-1px)}
.transaction-card-link .transaction-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:var(--primary-soft);color:var(--primary)}
.transaction-card-link .transaction-icon svg{width:19px;height:19px}
.transaction-card-link .transaction-copy{display:grid;min-width:0;gap:4px}
.transaction-card-link .transaction-copy strong{overflow:hidden;font-size:14px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.transaction-card-link .transaction-copy small{overflow:hidden;color:var(--muted);font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.transaction-card-link .transaction-amount{color:var(--text);font-size:15px;line-height:1.1;letter-spacing:-.02em;white-space:nowrap}

.expense-detail-heading{margin:0 0 18px}
.expense-detail-heading h1{margin:6px 0 4px;color:var(--text);font-size:clamp(28px,6vw,38px);line-height:1.08;letter-spacing:-.035em}
.expense-detail-heading p{margin:0;font-size:12px}
.expense-detail-card{padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-soft)}
.expense-detail-amount{padding:16px;border:1px solid color-mix(in srgb,var(--primary) 25%,var(--line));border-radius:16px;background:var(--primary-soft)}
.expense-detail-amount span{display:block;color:var(--muted);font-size:10px;font-weight:750}
.expense-detail-amount strong{display:block;margin-top:6px;color:var(--text);font-size:28px;line-height:1.1;letter-spacing:-.035em}
.expense-detail-list{display:grid;margin:12px 0 0}
.expense-detail-list div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:13px 2px;border-bottom:1px solid var(--line)}
.expense-detail-list dt{color:var(--muted);font-size:11px;line-height:1.35}
.expense-detail-list dd{margin:0;color:var(--text);font-size:12px;font-weight:750;line-height:1.35;text-align:right}
.expense-document-action{display:flex;width:100%;margin-top:15px}
.expense-document-preview{position:relative;display:block;overflow:hidden;margin-top:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);color:var(--text);text-decoration:none}
.expense-document-preview img{display:block;width:100%;height:190px;object-fit:cover}
.expense-document-preview span{position:absolute;right:10px;bottom:10px;padding:7px 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(2,14,25,.78);color:#fff;font-size:10px;font-weight:800;backdrop-filter:blur(8px)}
.expense-attachment-gallery,.expense-document-links{display:grid;gap:10px}
.expense-attachment-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
.expense-attachment-gallery:empty,.expense-document-links:empty{display:none}
.expense-document-links .expense-document-action{margin-top:10px}
.expense-detail-empty{margin:15px 0 0;color:var(--muted);font-size:11px;text-align:center}
.expense-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.expense-detail-actions .secondary-button{display:flex;width:100%}
.expense-detail-actions .expense-another-action{grid-column:1/-1;width:100%}
.expense-delete-action{display:flex;min-height:48px;align-items:center;justify-content:center;padding:0 16px;border:1px solid color-mix(in srgb,var(--danger) 45%,var(--line));border-radius:14px;background:var(--danger-soft);color:var(--danger);font-size:12px;font-weight:900;text-decoration:none}

.partida-expenses .transaction-card.partida-expense-row{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%}
.partida-expense-row .transaction-copy{flex:1 1 auto;min-width:0;text-align:left}
.partida-expense-row .transaction-copy strong{overflow:visible;text-align:left;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.partida-expense-row .transaction-copy small{display:block;text-align:left}
.partida-expense-row .transaction-amount{flex:0 0 auto;min-width:82px;margin-left:auto;text-align:right}

@media(max-width:720px){
  .expense-list-heading{align-items:stretch;gap:12px}
  .expense-list-heading .primary-button{width:100%}
  .transaction-card.transaction-card-link{grid-template-columns:38px minmax(0,1fr) auto;align-items:center;padding:11px 13px}
  .partida-expenses .transaction-card.partida-expense-row{display:flex;gap:12px}
  .expense-attachment-gallery{grid-template-columns:1fr}
}
@media(max-width:380px){
  .transaction-card.transaction-card-link{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:10px}
  .transaction-card-link .transaction-icon{width:34px;height:34px}
  .transaction-card-link .transaction-amount{font-size:13px}
  .partida-expenses .transaction-card.partida-expense-row{display:flex;gap:8px}
}

/* Notas internas: cronología compacta y detalle legible. */
.note-list{display:grid;gap:9px}
.note-card{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:16px;padding:15px 17px;border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--shadow-soft);transition:border-color .16s ease,transform .16s ease}
.note-card:hover,.note-card:focus-visible{border-color:color-mix(in srgb,var(--primary) 48%,var(--line));outline:0;transform:translateY(-1px)}
.note-card time{color:var(--primary);font-size:11px;font-weight:850;text-transform:uppercase}
.note-card p{display:-webkit-box;overflow:hidden;margin:0;color:var(--text);font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.note-card>span{color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.note-detail-heading{margin-bottom:16px}
.note-detail-card{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-soft)}
.note-detail-card p{margin:0;color:var(--text);font-size:14px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.detail-actions .secondary-button,.detail-actions .danger-button{display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;text-decoration:none}
.note-form textarea{min-height:150px;resize:vertical}
.dashboard-note-list{display:grid;gap:7px}
.dashboard-note-row{display:grid;grid-template-columns:58px minmax(0,1fr) 14px;align-items:center;gap:11px;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-raised);color:var(--text);text-decoration:none;transition:border-color .16s ease,transform .16s ease}
.dashboard-note-row:hover,.dashboard-note-row:focus-visible{border-color:color-mix(in srgb,var(--primary) 48%,var(--line));outline:0;transform:translateY(-1px)}
.dashboard-note-row time{color:var(--primary);font-size:10px;font-weight:850;text-transform:uppercase}
.dashboard-note-row span{overflow:hidden;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.dashboard-note-row b{color:var(--muted);font-size:18px;font-weight:500;text-align:right}
.notes-dashboard-panel .empty-copy a{color:var(--primary);font-weight:800}

@media(max-width:720px){
  .note-card{grid-template-columns:1fr auto;gap:7px 12px;padding:14px}
  .note-card time{grid-column:1}
  .note-card p{grid-column:1/-1;grid-row:2}
  .note-card>span{grid-column:2;grid-row:1}
}
