:root {
  color-scheme: light;
  --ink: #20332a;
  --muted: #718077;
  --cream: #f7f2ea;
  --card: rgba(255, 255, 255, .88);
  --forest: #315844;
  --forest-2: #527761;
  --sage: #a9bd9e;
  --peach: #e7a77f;
  --rose: #e8b7ab;
  --line: rgba(49, 88, 68, .13);
  --danger: #a84b3d;
  --shadow: 0 18px 50px rgba(69, 64, 50, .09);
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0, rgba(255,255,255,.95) 0, transparent 34%),
    radial-gradient(circle at 95% 24%, rgba(211,224,201,.5) 0, transparent 28%),
    var(--cream);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; }
button, select, input, textarea { color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(49, 88, 68, .22);
  outline-offset: 2px;
}
input, select, textarea { font-size: 16px; }
textarea { resize: vertical; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-shell { width: min(100%, 1120px); min-height: 100vh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px calc(112px + env(safe-area-inset-bottom)); }
.content { min-height: 65vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.logout-form { margin: 0; }
.logout-button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 750; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.brand img { width: 49px; height: 49px; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 22px rgba(49, 88, 68, .18); }
.brand > span { display: grid; }
.brand small, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.brand strong { font-family: Georgia, serif; font-size: 22px; line-height: 1.08; }
.date-pill, input[type="month"] {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--forest);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 750;
}
.view { display: none; animation: reveal .28s ease both; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 0; font-size: clamp(38px, 7vw, 62px); line-height: .98; letter-spacing: -.04em; }
h2 { margin: 2px 0 0; font-size: 29px; line-height: 1.05; }
h3 { margin: 2px 0 0; font-size: 18px; }
.welcome-card {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px;
  border-radius: 32px;
  color: white;
  background: linear-gradient(135deg, #294d3a, #6f8d68);
  box-shadow: var(--shadow);
}
.welcome-card:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 55% 10%, rgba(255,255,255,.22), transparent 34%); }
.welcome-card > div { position: relative; z-index: 1; align-self: center; }
.welcome-card .eyebrow { color: rgba(255,255,255,.72); }
.welcome-card h1 { max-width: 640px; font-size: clamp(36px, 7vw, 62px); }
.welcome-card img { position: relative; z-index: 1; width: 190px; height: 190px; align-self: center; object-fit: cover; border: 6px solid rgba(255,255,255,.25); border-radius: 30px; transform: rotate(3deg); box-shadow: 0 20px 40px rgba(21,42,31,.22); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.quick-grid button { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 21px; background: var(--card); text-align: left; box-shadow: var(--shadow); }
.quick-grid button:active { transform: scale(.98); }
.quick-grid strong { align-self: end; }
.quick-grid small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-symbol { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 21px; font-weight: 800; }
.quick-symbol.mint { background: #dce9dd; color: #376147; }
.quick-symbol.rose { background: #f2dfda; color: #8c5a50; }
.quick-symbol.sand { background: #f1e5cb; color: #7e673a; }
.quick-symbol.lilac { background: #e6e1f1; color: #675982; }
.page-heading, .section-heading, .panel-title, .power-row, .modal-heading, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { align-items: end; margin: 14px 2px 26px; }
.page-heading h1 { font-size: clamp(40px, 7vw, 66px); }
.section-heading { align-items: end; margin: 31px 2px 14px; }
.compact-heading { margin-top: 28px; }
.section-heading .eyebrow, .page-heading .eyebrow, .panel-title .eyebrow { margin-bottom: 3px; }
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card, .empty-card, .panel, .info-card, .progress-card, .empty-state {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.stat-card { display: grid; gap: 8px; padding: 18px; border-radius: 22px; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 650; }
.stat-card strong { font-size: clamp(20px, 4vw, 29px); }
.stat-card.income strong { color: #39735a; }
.stat-card.expense strong { color: #c06c4f; }
.stat-card.balance { background: var(--forest); color: white; }
.stat-card.balance span { color: rgba(255,255,255,.7); }
.empty-card, .info-card { display: flex; align-items: center; gap: 14px; padding: 17px 18px; border-radius: 22px; }
.empty-card { margin-top: 12px; }
.empty-card p, .info-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.empty-card > div, .info-card > div { flex: 1; }
.empty-icon, .info-symbol { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 15px; background: #e7efe4; color: var(--forest); font-size: 22px; }
.text-button { border: 0; padding: 8px; color: var(--forest); background: transparent; font-weight: 800; }
.primary-button, .secondary-button, .danger-button, .upload-button, .icon-button {
  min-height: 44px;
  border-radius: 15px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 750;
}
.primary-button, .upload-button { display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--forest); }
.upload-button { cursor: pointer; }
.secondary-button { border-color: var(--line); background: white; }
.danger-button { border-color: rgba(168,75,61,.2); color: var(--danger); background: #fff5f2; }
.icon-button { width: 44px; padding: 0; border-color: var(--line); background: white; font-size: 26px; font-weight: 400; }
.upload-info { margin-bottom: 6px; background: linear-gradient(110deg, rgba(223,234,218,.9), rgba(255,255,255,.8)); }
.budget-columns { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(430px, 1.5fr); gap: 14px; margin-top: 14px; align-items: start; }
.panel { min-width: 0; padding: 20px; border-radius: 24px; }
.category-chart { display: grid; gap: 15px; margin-top: 18px; }
.category-row { display: grid; grid-template-columns: minmax(85px, 1fr) auto; gap: 5px 12px; }
.category-row strong { font-size: 14px; }
.category-row > span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.category-bar { grid-column: 1 / -1; overflow: hidden; height: 8px; border-radius: 99px; background: #edf0eb; }
.category-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), var(--sage)); }
.chart-empty, .list-empty { padding: 28px 12px; color: var(--muted); text-align: center; }
.search-field { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); }
.search-field input { min-width: 100px; width: 150px; border: 0; outline: 0; background: transparent; }
.search-field.wide { width: 100%; max-width: 520px; margin-bottom: 17px; }
.search-field.wide input { width: 100%; }
.transaction-list { display: grid; margin-top: 13px; }
.transaction-row { display: grid; grid-template-columns: minmax(160px, 1fr) 150px auto 30px; gap: 12px; align-items: center; min-height: 66px; border-top: 1px solid var(--line); }
.transaction-row:first-child { border-top: 0; }
.transaction-main { min-width: 0; }
.transaction-main strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.transaction-main small { color: var(--muted); }
.category-select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 8px; background: #f9faf8; font-size: 13px; }
.amount { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.amount.positive { color: #39735a; }
.amount.negative { color: #b85f48; }
.delete-row { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.delete-row:hover { color: var(--danger); background: #fff0ed; }
.friend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.friend-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.friend-card:hover { border-color: rgba(49,88,68,.32); }
.friend-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 17px; color: white; background: linear-gradient(140deg, #69856f, #a3b79a); font-family: Georgia, serif; font-size: 20px; }
.friend-head > div { min-width: 0; }
.friend-head strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; }
.friend-head small, .friend-meta { color: var(--muted); }
.friend-note { min-height: 58px; margin: 0; color: #4f5d55; font-size: 14px; line-height: 1.4; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.friend-meta { display: block; margin-top: 12px; font-size: 12px; }
.empty-state { max-width: 560px; margin: 50px auto; padding: 35px; border-radius: 28px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 15px; border-radius: 21px; background: #f0dfda; color: #8c5a50; font-size: 28px; }
.empty-state p { color: var(--muted); line-height: 1.5; }
.add-todo { display: flex; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.add-todo input { flex: 1; min-width: 0; border: 0; padding: 0 10px; outline: 0; background: transparent; }
.progress-card { margin: 14px 0 25px; padding: 17px 20px; border-radius: 22px; }
.progress-card > div { display: flex; align-items: center; gap: 13px; }
.progress-card .eyebrow { margin-bottom: 2px; }
.progress-card small { display: block; margin-top: 10px; color: var(--muted); }
.progress-ring { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 50%; color: var(--forest); background: conic-gradient(var(--forest) var(--progress, 0%), #e6ebe3 0); font-size: 12px; font-weight: 800; position: relative; }
.progress-ring:before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.progress-ring { isolation: isolate; }
.progress-ring::after { content: attr(data-value); position: absolute; z-index: 1; }
.todo-section { margin-top: 18px; }
.count-pill { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 99px; color: var(--forest); background: #e4ece1; font-size: 12px; font-weight: 800; }
.todo-list { display: grid; gap: 9px; margin-top: 11px; }
.todo-item { display: grid; grid-template-columns: 28px 1fr 34px; gap: 10px; align-items: center; min-height: 59px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.todo-check { appearance: none; width: 25px; height: 25px; margin: 0; border: 2px solid #a8b4aa; border-radius: 9px; background: white; }
.todo-check:checked { border-color: var(--forest); background: var(--forest); }
.todo-check:checked:after { content: "✓"; display: grid; place-items: center; height: 100%; color: white; font-size: 15px; font-weight: 900; }
.todo-item.completed span { color: var(--muted); text-decoration: line-through; }
.completed-details { margin-top: 25px; border-top: 1px solid var(--line); }
.completed-details summary { display: flex; align-items: center; gap: 9px; padding: 18px 2px; cursor: pointer; font-weight: 800; list-style: none; }
.completed-details summary::-webkit-details-marker { display: none; }
.light-layout { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(340px, .85fr); gap: 14px; }
.connection-pill { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: 12px; }
.connection-pill span { width: 9px; height: 9px; border-radius: 50%; background: #d47a65; }
.connection-pill span.online { background: #65a57d; box-shadow: 0 0 0 4px rgba(101,165,125,.14); }
.light-stage { display: grid; place-items: center; min-height: 520px; padding: 28px; border-radius: 30px; color: rgba(255,255,255,.78); background: linear-gradient(145deg, #203228, #101813); box-shadow: var(--shadow); text-align: center; }
.light-glow { --light-color: #fff5df; display: grid; place-items: center; width: min(58vw, 290px); aspect-ratio: 1; border-radius: 50%; color: #263129; background: var(--light-color); box-shadow: 0 0 65px 14px color-mix(in srgb, var(--light-color) 60%, transparent), inset 0 -30px 50px rgba(0,0,0,.08); transition: .25s ease; }
.light-glow.off { opacity: .18; box-shadow: none; }
.light-glow span { font-size: 64px; }
.light-stage p { margin: -20px 0 0; font-size: 13px; }
.light-controls { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span, .color-field > span, .range-field > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; background: #fff; outline: 0; }
.power-row { padding: 3px 0; }
.power-row .eyebrow { margin-bottom: 2px; }
.power-button { width: 58px; height: 58px; border: 0; border-radius: 20px; color: white; background: var(--forest); box-shadow: 0 10px 24px rgba(49,88,68,.22); font-size: 25px; }
.power-button.off { color: var(--muted); background: #e6ebe4; box-shadow: none; }
.color-field { display: grid; grid-template-columns: 1fr 58px; align-items: center; gap: 10px; }
.color-field input { width: 58px; height: 50px; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.preset-grid button { display: flex; align-items: center; gap: 8px; min-height: 43px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.preset-grid button span { width: 21px; height: 21px; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; background: var(--swatch); }
.range-field { display: grid; gap: 8px; }
.range-field > span { display: flex; justify-content: space-between; }
.range-field output { color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--forest); }
.advanced-light { padding-top: 3px; border-top: 1px solid var(--line); }
.advanced-light summary { padding: 13px 0; cursor: pointer; font-weight: 800; }
.advanced-light[open] { display: grid; gap: 15px; }
.modal { width: min(calc(100% - 24px), 700px); max-height: min(90vh, 820px); margin: auto; padding: 0; border: 0; border-radius: 29px; color: var(--ink); background: transparent; box-shadow: 0 30px 100px rgba(25,40,31,.3); }
.modal::backdrop { background: rgba(24,36,29,.5); backdrop-filter: blur(5px); }
.modal-card { overflow: auto; max-height: inherit; padding: 24px; border-radius: inherit; background: var(--cream); }
.modal-heading { align-items: start; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.friend-history { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.note-list { display: grid; gap: 9px; margin: 13px 0; }
.note-item { position: relative; padding: 13px 42px 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.note-item p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.note-item small { display: block; margin-top: 6px; color: var(--muted); }
.note-item .delete-row { position: absolute; top: 8px; right: 8px; }
.new-note { display: grid; grid-template-columns: 145px 1fr auto; align-items: end; gap: 9px; }
.grow { min-width: 0; }
.modal-actions { justify-content: end; margin-top: 22px; }
.modal-actions > span { flex: 1; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(102px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 14px; color: white; background: #253a2f; box-shadow: 0 12px 35px rgba(25,40,31,.24); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #934f42; }
.tabbar { position: fixed; z-index: 20; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 620px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 15px 45px rgba(38,54,44,.16); backdrop-filter: blur(18px); }
.tabbar button { min-width: 0; border: 0; border-radius: 17px; padding: 7px 2px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
.tabbar button span { display: block; margin-bottom: 2px; font-size: 20px; }
.tabbar button.active { color: white; background: var(--forest); }

.local-light-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; min-height: 340px; padding: clamp(25px, 6vw, 60px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, #203228, #466954); color: white; box-shadow: var(--shadow); }
.local-light-card .eyebrow { color: rgba(255,255,255,.66); }
.local-light-card h2 { font-size: clamp(32px, 6vw, 50px); }
.local-light-card p:not(.eyebrow) { max-width: 650px; margin: 16px 0 22px; color: rgba(255,255,255,.78); line-height: 1.6; }
.local-light-card small { display: block; margin-top: 12px; color: rgba(255,255,255,.56); overflow-wrap: anywhere; }
.local-light-icon { display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 45px; color: #5a503a; background: #fff1bf; box-shadow: 0 0 70px rgba(255,232,162,.3); font-size: 64px; }
.local-light-link { width: fit-content; color: var(--forest); background: white; text-decoration: none; }

.auth-page { display: grid; place-items: center; padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); }
.auth-shell { width: min(100%, 510px); }
.auth-card { padding: clamp(24px, 6vw, 42px); border: 1px solid var(--line); border-radius: 32px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.auth-card.setup-card { width: min(calc(100vw - 32px), 720px); margin-left: 50%; transform: translateX(-50%); }
.auth-photo { width: 102px; height: 102px; margin-bottom: 17px; border: 5px solid rgba(255,255,255,.9); border-radius: 29px; object-fit: cover; box-shadow: 0 12px 35px rgba(49,88,68,.18); }
.auth-card h1 { margin: 4px 0 0; font-size: clamp(39px, 9vw, 58px); }
.auth-intro { margin: 15px auto 25px; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; gap: 15px; text-align: left; }
.auth-submit { width: 100%; margin-top: 3px; }
.auth-footnote { margin: 19px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-error, .auth-success { margin: 0 0 17px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.auth-error { color: #843f33; background: #f9e5df; }
.auth-success { color: #2f674c; background: #e1eee3; }

@media (max-width: 820px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .budget-columns, .light-layout { grid-template-columns: 1fr; }
  .friend-grid { grid-template-columns: repeat(2, 1fr); }
  .light-stage { min-height: 400px; }
}

@media (max-width: 600px) {
  .app-shell { padding-inline: 14px; }
  .topbar { margin-bottom: 19px; }
  .date-pill { font-size: 11px; }
  .logout-button { width: 38px; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
  .logout-button::after { content: "↪"; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
  .welcome-card { min-height: 218px; padding: 23px; }
  .welcome-card img { position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px; opacity: .85; }
  .welcome-card > div { max-width: 76%; }
  .quick-grid { gap: 9px; }
  .quick-grid button { grid-template-columns: 37px 1fr; padding: 12px; }
  .quick-symbol { width: 37px; height: 37px; border-radius: 12px; }
  .money-grid { grid-template-columns: 1fr 1fr; }
  .stat-card.balance { grid-column: 1 / -1; }
  .page-heading { align-items: center; }
  .page-heading h1 { font-size: 42px; }
  .upload-button, .page-heading .primary-button { padding: 0 12px; font-size: 13px; }
  .empty-card .text-button { display: none; }
  .transaction-row { grid-template-columns: 1fr auto 28px; gap: 8px; padding: 10px 0; }
  .transaction-row .category-select { grid-column: 1 / 3; grid-row: 2; }
  .friend-grid { grid-template-columns: 1fr; }
  .stacked-mobile { align-items: stretch; flex-direction: column; }
  .stacked-mobile .search-field input { width: 100%; }
  .light-stage { min-height: 330px; }
  .light-stage p { margin-top: -5px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .new-note { grid-template-columns: 1fr; }
  .modal-card { padding: 19px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .modal-actions > span { display: none; }
  .modal-actions .danger-button { grid-column: 1 / -1; order: 3; }
  .local-light-card { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .local-light-icon { width: 100px; border-radius: 31px; font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
