:root {
  --ink: #18201d;
  --muted: #64706b;
  --paper: #f7f5ef;
  --white: #fffdfa;
  --line: #dfe4dd;
  --sage: #47695b;
  --sage-dark: #2c4c40;
  --mint: #dfece4;
  --sun: #f2c86b;
  --clay: #c77554;
  --lavender: #dedaf0;
  --shadow: 0 22px 60px rgba(39, 57, 49, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(1px); opacity: .58; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: radial-gradient(circle at 35% 35%, #f9e4a8, transparent 68%); top: -160px; right: 3vw; }
.ambient-two { width: 480px; height: 480px; background: radial-gradient(circle at 40% 40%, #d7e9e0, transparent 70%); bottom: -210px; left: -150px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.eyebrow { color: var(--sage); text-transform: uppercase; letter-spacing: .18em; font-size: .73rem; font-weight: 700; margin-bottom: 14px; }
.button { border: 0; border-radius: 999px; min-height: 44px; padding: 11px 20px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--sage-dark); box-shadow: 0 9px 24px rgba(44, 76, 64, .2); }
.button-primary:hover { background: #1f3c31; }
.button-secondary { background: #edf0eb; color: var(--sage-dark); }
.text-button { border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }

.login-shell { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: 80px; padding: 64px 0; }
.login-card { background: rgba(255, 253, 250, .86); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); border-radius: 38px; padding: clamp(32px, 6vw, 76px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.login-card::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid #d9e5dc; border-radius: 50%; right: -96px; top: -100px; }
.login-card h1 { max-width: 690px; }
.login-copy { color: var(--muted); max-width: 570px; font-size: 1.05rem; margin: 24px 0 32px; }
.bubble-mark { width: 72px; height: 58px; position: relative; margin-bottom: 38px; }
.bubble-mark span { position: absolute; border-radius: 50%; border: 2px solid var(--sage); background: rgba(223,236,228,.7); }
.bubble-mark span:nth-child(1) { width: 42px; height: 42px; bottom: 0; left: 0; }
.bubble-mark span:nth-child(2) { width: 31px; height: 31px; top: 0; right: 4px; border-color: var(--clay); background: #f6e4dd; }
.bubble-mark span:nth-child(3) { width: 14px; height: 14px; right: 0; bottom: 0; border-color: #c3a751; background: #fbebbc; }
.setup-notice { border: 1px solid #e3d6a8; background: #fff8dd; border-radius: 16px; padding: 16px 18px; max-width: 500px; color: #61552c; }
.setup-notice strong { display: block; color: #453d22; margin-bottom: 4px; }
.privacy-note { color: var(--muted); font-size: .8rem; margin-top: 24px; max-width: 440px; }
.login-aside { display: grid; gap: 20px; }
.feature { padding: 34px; border-radius: 28px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -35px; top: -35px; border: 1px solid rgba(30,50,43,.14); }
.feature span { position: absolute; top: 25px; left: 30px; font-weight: 700; opacity: .55; }
.feature h2 { font-size: 2rem; margin-bottom: 10px; }
.feature p { max-width: 340px; }
.feature-homes { background: var(--mint); }
.feature-collection { background: var(--lavender); margin-left: 56px; }

.topbar { height: 78px; padding: 0 max(24px, calc((100vw - 1360px) / 2)); display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); background: rgba(247,245,239,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.16rem; white-space: nowrap; }
.brand-orbit { width: 28px; height: 28px; border: 2px solid var(--sage); border-radius: 50%; position: relative; }
.brand-orbit::after { content: ""; width: 9px; height: 9px; background: var(--sun); border: 2px solid var(--paper); border-radius: 50%; position: absolute; right: -4px; top: -3px; }
.topnav { display: flex; align-self: stretch; margin: 0 auto; }
.nav-link { border: 0; border-bottom: 2px solid transparent; padding: 0 15px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 600; }
.nav-link.is-active { color: var(--sage-dark); border-bottom-color: var(--sage-dark); }
.user-menu { display: flex; align-items: center; gap: 9px; font-size: .86rem; white-space: nowrap; }
.user-menu img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.dashboard-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 90px; }
.view { display: none; }
.view.is-active { display: block; animation: reveal .28s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-panel { border-radius: 36px; background: linear-gradient(120deg, #e5eee8, #f5eed8); min-height: 420px; padding: clamp(34px, 6vw, 76px); display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; overflow: hidden; }
.hero-panel > div:first-child { position: relative; z-index: 2; }
.hero-panel h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); max-width: 850px; }
.hero-panel p:not(.eyebrow) { color: #58655f; max-width: 620px; margin-top: 22px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-photo-stack { min-height: 320px; position: relative; }
.hero-photo-stack img { position: absolute; width: 54%; aspect-ratio: 3/4; object-fit: cover; border: 8px solid rgba(255,253,250,.94); border-radius: 24px; box-shadow: 0 24px 48px rgba(44,76,64,.2); }
.hero-photo-stack img:first-child { right: 4%; top: -24%; transform: rotate(5deg); object-position: 50% 76%; }
.hero-photo-stack img:nth-child(2) { left: 6%; bottom: -26%; transform: rotate(-6deg); object-position: 50% 67%; }
.hero-photo-stack span { position: absolute; z-index: 2; right: 5%; bottom: 4%; background: var(--sage-dark); color: white; border-radius: 15px; padding: 12px 16px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 70px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.stat-card strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; }
.stat-card span { color: var(--muted); font-size: .86rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading > div > p:last-child { color: var(--muted); margin-top: 12px; max-width: 720px; }
.split-heading { padding-top: 12px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.home-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 360px; overflow: hidden; }
.home-card-image, .home-card-placeholder { width: 100%; height: 230px; display: block; }
.home-card-image { object-fit: cover; object-position: 50% 68%; }
.home-card-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.9), transparent 24%), linear-gradient(135deg, #e7eee9, #ede7d9); color: var(--sage-dark); text-align: center; font-family: "Fraunces", Georgia, serif; font-size: 1.65rem; }
.home-card-content { padding: 26px 28px 24px; }
.home-card-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.home-number { font-family: "Fraunces", Georgia, serif; font-size: 2.8rem; color: #c6d5cd; }
.home-card .location { color: var(--sage); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 14px; }
.home-card .summary { color: var(--muted); max-width: 560px; }
.home-progress { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.home-progress span { border-radius: 999px; background: #edf1ed; color: var(--sage-dark); padding: 7px 11px; font-size: .74rem; }
.home-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.home-card-footer a { color: var(--sage-dark); font-weight: 700; text-underline-offset: 3px; }
.home-card-footer strong { font-size: .9rem; }
.inline-link { border: 0; padding: 0; background: transparent; color: var(--sage-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.filters { display: grid; grid-template-columns: 240px 1fr; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 22px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d7ddd7; border-radius: 11px; background: white; padding: 10px 12px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(71,105,91,.11); }
.home-section { margin-bottom: 38px; }
.home-section-header { background: var(--sage-dark); color: white; padding: 24px 26px; border-radius: 22px 22px 0 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.home-section-header p { opacity: .72; font-size: .86rem; }
.home-section-header a { font-size: .84rem; font-weight: 700; }
.document-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.document-links .unknown { color: rgba(255, 255, 255, .72); }
.web-manual { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 20px 50px rgba(39,57,49,.08); }
.manual-hero { min-height: 300px; padding: clamp(32px, 6vw, 72px); color: white; display: flex; justify-content: space-between; align-items: end; gap: 24px; background-image: var(--manual-image); background-position: center 58%; background-size: cover; }
.manual-hero .eyebrow { color: #d8ebdf; }
.manual-hero h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.manual-hero p:last-child { margin-top: 10px; color: rgba(255,255,255,.8); }
.manual-status { min-width: 120px; padding: 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(23,40,33,.5); backdrop-filter: blur(10px); text-align: center; }
.manual-status strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2.5rem; line-height: 1; }
.manual-status span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.manual-body { padding: clamp(22px, 4vw, 42px); }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 44px; }
.chapter-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; background: white; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.chapter-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(39,57,49,.1); }
.chapter-card.is-active { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(71,105,91,.14); }
.chapter-card img { width: 100%; height: 106px; display: block; object-fit: cover; object-position: 50% 66%; }
.chapter-card span { display: block; padding: 11px 12px 12px; }
.chapter-card strong, .chapter-card small { display: block; }
.chapter-card strong { font-size: .82rem; }
.chapter-card small { color: var(--muted); font-size: .68rem; margin-top: 2px; }
.manual-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.manual-section-heading .eyebrow { margin-bottom: 5px; }
.manual-section-heading > span { color: var(--muted); font-size: .78rem; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.system-grid > .empty-state { grid-column: 1 / -1; }
.system-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fffefa; display: flex; flex-direction: column; min-height: 310px; }
.system-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.system-card h3 { font-size: 1.3rem; margin: 14px 0 16px; }
.system-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.system-facts div { min-width: 0; }
.system-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .59rem; font-weight: 700; }
.system-facts dd { margin: 2px 0 0; font-size: .76rem; overflow-wrap: anywhere; }
.system-note { color: var(--muted); font-size: .77rem; margin: 16px 0; }
.system-card .edit-button { margin-top: auto; align-self: start; }
.source-library { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 32px; }
.source-library .eyebrow { margin-bottom: 4px; }
.source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-cards a { border: 1px solid var(--line); border-radius: 15px; padding: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; }
.source-cards a:hover { border-color: var(--sage); }
.source-cards strong, .source-cards small { display: block; }
.source-cards strong { font-size: .8rem; }
.source-cards small { color: var(--muted); font-size: .68rem; margin-top: 2px; }
.source-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #f3e6df; color: #9d563c; font-size: .65rem; font-weight: 800; }
.home-onboarding { border-radius: 28px; background: linear-gradient(135deg, #f2efe5, #e1ebe4); overflow: hidden; }
.home-onboarding > header { padding: 36px clamp(28px, 5vw, 58px); background: var(--sage-dark); color: white; }
.home-onboarding > header .eyebrow { color: #cfe2d7; }
.home-onboarding > header > p:last-child { margin-top: 6px; color: rgba(255,255,255,.7); }
.onboarding-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; padding: clamp(30px, 5vw, 60px); }
.onboarding-intro { align-self: center; }
.zero-mark { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; color: var(--clay); }
.onboarding-intro h3 { font-size: 2rem; margin: 18px 0 12px; }
.onboarding-intro p { color: var(--muted); margin-bottom: 24px; }
.setup-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.setup-checklist li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 17px; }
.setup-checklist li > span { color: var(--clay); font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; }
.setup-checklist strong { display: block; }
.setup-checklist p { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.asset-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; background: var(--white); }
.asset-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.asset-table th, .asset-table td { padding: 14px 16px; border-bottom: 1px solid #edf0ec; text-align: left; vertical-align: top; font-size: .86rem; }
.asset-table th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.asset-table tr:last-child td { border-bottom: 0; }
.asset-name { font-weight: 700; }
.asset-category { color: var(--sage); font-size: .74rem; margin-top: 3px; }
.unknown { color: #9aa29e; font-style: italic; }
.status-pill { display: inline-block; max-width: 180px; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--sage-dark); font-size: .7rem; font-weight: 700; }
.edit-button { border: 0; background: #edf1ed; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .74rem; font-weight: 700; }
.collection-summary { display: grid; grid-template-columns: 170px 230px 1fr; gap: 14px; margin: 10px 0 28px; }
.collection-summary > div, .document-link { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 18px; }
.collection-summary span { font-family: "Fraunces", Georgia, serif; font-size: 1.7rem; font-weight: 700; display: block; }
.collection-summary small { color: var(--muted); }
.document-link { display: flex; justify-content: space-between; align-items: center; color: var(--sage-dark); font-weight: 700; text-decoration: none; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.collection-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.collection-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e8e8e3; display: block; }
.collection-body { padding: 25px; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.collection-meta span { background: #edf1ed; border-radius: 999px; padding: 6px 10px; font-size: .72rem; font-weight: 700; color: var(--sage-dark); }
.value-range { font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; margin: 14px 0; }
.detail-list { display: grid; gap: 12px; }
.detail-list div { border-top: 1px solid var(--line); padding-top: 11px; }
.detail-list dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; font-weight: 700; }
.detail-list dd { margin: 3px 0 0; font-size: .85rem; }
.card-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.card-actions a { font-weight: 700; font-size: .82rem; color: var(--sage-dark); }
.activity-list { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.activity-row { display: grid; grid-template-columns: 170px 150px 1fr; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .84rem; }
.activity-row:last-child { border-bottom: 0; }
.activity-row time, .activity-row span { color: var(--muted); }
.empty-state { text-align: center; border: 1px dashed #cad2cb; padding: 50px; border-radius: 22px; color: var(--muted); }
.record-modal { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 30px); border: 0; border-radius: 25px; padding: 0; box-shadow: 0 30px 90px rgba(19,32,27,.3); background: var(--white); }
.record-modal::backdrop { background: rgba(19,32,27,.55); backdrop-filter: blur(4px); }
.record-modal form { padding: 27px; }
.modal-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 24px; }
.icon-button { border: 0; background: #edf0ed; width: 36px; height: 36px; border-radius: 50%; font-size: 1.35rem; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-two { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: var(--ink); color: white; border-radius: 13px; padding: 13px 18px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #8f3f32; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; gap: 24px; }
  .login-aside { grid-template-columns: 1fr 1fr; }
  .feature-collection { margin-left: 0; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-photo-stack { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid, .home-grid { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-grid { grid-template-columns: 1fr; }
  .collection-summary { grid-template-columns: 1fr 1fr; }
  .document-link { grid-column: 1 / -1; }
  .user-menu > span { display: none; }
  .topbar { gap: 14px; }
  .brand span:last-child { display: none; }
}

@media (max-width: 640px) {
  .login-shell { width: min(100% - 24px, 560px); padding: 28px 0; }
  .login-card { border-radius: 28px; }
  .login-aside { grid-template-columns: 1fr; }
  .feature { min-height: 190px; }
  .topbar { height: auto; min-height: 68px; padding: 9px 14px; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; overflow-x: auto; height: 46px; }
  .nav-link { flex: 1; padding: 0 9px; }
  .dashboard-shell { width: min(100% - 24px, 560px); padding-top: 28px; }
  .hero-panel { border-radius: 26px; padding: 30px 24px; min-height: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; margin-bottom: 50px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .collection-summary { grid-template-columns: 1fr; }
  .document-link { grid-column: auto; }
  .manual-hero { min-height: 260px; align-items: start; flex-direction: column; }
  .manual-status { text-align: left; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-card img { height: 90px; }
  .system-grid { grid-template-columns: 1fr; }
  .source-library { grid-template-columns: 1fr; }
  .source-cards { grid-template-columns: 1fr; }
  .home-card-footer { align-items: start; flex-direction: column; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .record-modal form { padding: 20px; }
  .activity-row { grid-template-columns: 1fr; gap: 3px; }
}
