:root {
    --cream: #f8f0e9;
    --cream-deep: #f1e6df;
    --paper: #fffdfb;
    --white: #ffffff;
    --blush: #ead5d2;
    --blush-soft: #f5e9e6;
    --champagne: #d6b99e;
    --champagne-soft: #f2e8dc;
    --rose: #a87980;
    --rose-deep: #875d64;
    --plum: #674c50;
    --ink: #56464a;
    --muted: #987f7c;
    --muted-light: #b39e99;
    --line: #eee3dd;
    --line-strong: #e5d5cd;
    --success: #698775;
    --danger: #b66d72;
    --shadow: 0 16px 42px rgba(103, 76, 80, .055);
    --shadow-soft: 0 7px 22px rgba(103, 76, 80, .045);
    --radius: 20px;
    --radius-sm: 13px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* Application shell */
.app-body { min-height: 100vh; background: #f7f1ec; }
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 256px; padding: 30px 19px 19px; background: #fbf7f3; border-right: 1px solid #eee5df; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 10px 33px; color: var(--plum); }
.brand-symbol { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 15px; color: var(--rose-deep); background: #f0dfdc; font-size: 23px; }
.brand-lockup strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; letter-spacing: -.6px; line-height: 1.05; }
.brand-lockup small { display: block; margin-top: 5px; color: #aa9290; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; }
.sidebar-label, .eyebrow { color: #ad8e8c; font-size: 9px; font-weight: 750; letter-spacing: 1.55px; line-height: 1.5; }
.sidebar-label { padding: 0 13px 12px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 12px; color: #8d7777; background: transparent; font-size: 13px; text-align: left; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { color: var(--plum); background: #f4e9e5; }
.nav-link.active { color: var(--rose-deep); background: #f0dfdc; font-weight: 650; }
.nav-icon { display: grid; width: 19px; place-items: center; font-size: 17px; color: #af8589; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { margin: 15px 3px 22px; padding: 16px 16px 14px; border: 1px solid #eee0d8; border-radius: 15px; background: #f7eee8; }
.note-flower { color: var(--rose); font-size: 19px; }
.sidebar-note p { margin: 4px 0 3px; color: var(--plum); font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.sidebar-note small { display: block; color: #9d8682; font-size: 11px; line-height: 1.55; }
.logout-form { margin: 2px 0; }
.nav-button { width: 100%; }
.profile-mini { display: flex; align-items: center; gap: 10px; margin: 15px 3px 0; padding: 16px 4px 0; border-top: 1px solid #eee5df; }
.avatar-circle { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: #855f64; background: #ead5d2; font-family: Georgia, serif; font-size: 16px; }
.profile-mini strong, .profile-mini small { display: block; }
.profile-mini strong { max-width: 155px; overflow: hidden; color: var(--plum); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-mini small { color: #a58e89; font-size: 10px; }
.main-content { min-height: 100vh; margin-left: 256px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 46px; border-bottom: 1px solid rgba(233, 222, 215, .8); background: rgba(250, 246, 242, .93); backdrop-filter: blur(14px); }
.topbar-breadcrumb { display: flex; align-items: center; gap: 10px; color: #ad9994; font-size: 11px; }
.topbar-breadcrumb strong { color: var(--plum); font-weight: 650; }
.breadcrumb-divider { color: #d2c1b9; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.date-chip { padding: 7px 11px; border: 1px solid #eee2dc; border-radius: 20px; color: #957d79; background: #fffaf7; font-size: 10px; }
.topbar-heart { color: var(--rose); font-size: 20px; }
.mobile-menu-button { display: none; border: 0; color: var(--plum); background: transparent; font-size: 20px; }
.page-content { width: min(100%, 1420px); flex: 1; margin: 0 auto; padding: 39px 46px 50px; }
.app-footer { display: flex; justify-content: space-between; padding: 17px 46px 20px; border-top: 1px solid rgba(233, 222, 215, .75); color: #ad9994; font-size: 10px; }
.app-footer b { color: var(--rose); font-size: 13px; }
.notice-wrap { padding: 14px 46px 0; }

/* Typography and page headings */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--plum); }
h1 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 39px); font-weight: 400; letter-spacing: -.9px; line-height: 1.18; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; letter-spacing: -.35px; }
h3 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.page-subtitle { margin: 0; color: #a08a85; font-size: 13px; }
.inline-heart { color: var(--rose); font-family: Georgia, serif; font-size: .8em; }
.welcome-row, .page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 29px; }
.welcome-row .eyebrow, .page-intro .eyebrow { margin-bottom: 10px; }
.page-intro { display: block; }
.page-intro h1 { margin-bottom: 8px; }

/* Buttons, alerts and fields */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 650; letter-spacing: .1px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--rose); box-shadow: 0 7px 16px rgba(168, 121, 128, .18); }
.button-primary:hover { background: #966b72; box-shadow: 0 9px 20px rgba(168, 121, 128, .22); }
.button-soft { color: #855f64; border-color: #ead7d2; background: #f3e6e2; }
.button-soft:hover { background: #eddbd7; }
.button-outline { color: var(--rose-deep); border-color: #e8d7d1; background: #fffdfa; }
.button-full { width: 100%; }
.alert { margin: 0 0 15px; padding: 12px 14px; border: 1px solid #d9e8dc; border-radius: 11px; color: #55735f; background: #eff6f0; font-size: 12px; }
.alert-error { border-color: #f0d6d4; color: #995b60; background: #fbefee; }
.form-stack { display: grid; gap: 15px; }
.form-stack label { display: grid; gap: 7px; color: #7f6768; font-size: 11px; font-weight: 650; }
input, textarea, select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #eadfd9; border-radius: 10px; outline: none; color: #5e4c50; background: #fffdfa; font-size: 12px; font-weight: 400; transition: border .16s ease, box-shadow .16s ease; }
input:focus, textarea:focus, select:focus { border-color: #c69ba0; box-shadow: 0 0 0 3px rgba(168, 121, 128, .1); }
input::placeholder, textarea::placeholder { color: #c0afaa; }
input:disabled { color: #a99b97; background: #f4efeb; }
textarea { min-height: 75px; resize: vertical; line-height: 1.55; }
select { appearance: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { min-width: 0; }
.field-hint { color: #b19d98; font-size: 10px; font-weight: 400; }
.tiny-note { margin: 18px 0 0; color: #b09c97; font-size: 10px; text-align: center; }

/* Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.stat-card { min-width: 0; padding: 18px 19px 16px; border: 1px solid #eee3dd; border-radius: 17px; background: #fffdfb; box-shadow: var(--shadow-soft); }
.stat-card-rose { background: linear-gradient(135deg, #f6eae7, #fffaf7); }
.stat-card-champagne { background: linear-gradient(135deg, #f5eee4, #fffdf8); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; color: #987f7c; font-size: 10px; }
.stat-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--rose-deep); background: rgba(234, 213, 210, .65); font-size: 14px; }
.stat-card > strong { display: block; color: var(--plum); font-family: Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1.1; }
.stat-card > strong small { color: #b19b96; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; }
.stat-card > .stat-money { overflow: hidden; font-size: clamp(17px, 2vw, 23px); text-overflow: ellipsis; white-space: nowrap; }
.stat-caption { display: block; margin-top: 8px; color: #ad9993; font-size: 10px; }
.progress-track { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: rgba(168, 121, 128, .15); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--rose); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); gap: 17px; }
.panel { min-width: 0; padding: 22px; border: 1px solid #eee4de; border-radius: var(--radius); background: #fffdfb; box-shadow: var(--shadow-soft); }
.panel-large { grid-row: span 1; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 17px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.text-link { color: var(--rose-deep); font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link:hover, .add-inline-link:hover { color: var(--plum); }
.task-list { display: grid; }
.task-row { display: flex; align-items: center; gap: 11px; min-height: 58px; border-bottom: 1px solid #f2eae5; }
.task-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.task-copy strong { overflow: hidden; color: #685459; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { color: #ad9993; font-size: 10px; }
.check-button { display: grid; width: 19px; height: 19px; padding: 0; place-items: center; border: 1px solid #ddc8c4; border-radius: 50%; color: white; background: white; font-size: 11px; }
.check-button.is-done { border-color: var(--rose); background: var(--rose); }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #d5b99e; }
.priority-low { background: #a8b9a5; }
.priority-normal { background: #d5b99e; }
.priority-high { background: #c97f83; }
.priority-label { padding: 4px 8px; border-radius: 20px; background: #f7f0eb; color: #a38c84; font-size: 9px; }
.priority-text-high { color: #a45e66; background: #faedeb; }
.priority-text-low { color: #6f8a72; background: #eef4ed; }
.add-inline-link { display: inline-block; margin-top: 15px; color: var(--rose-deep); font-size: 11px; font-weight: 700; }
.quote-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 225px; overflow: hidden; border-color: #ebdcd5; background: linear-gradient(145deg, #f3e4e0, #f9f1eb); }
.quote-panel .eyebrow, .habit-encouragement .eyebrow { margin: 0 0 12px; }
.quote-flower { margin-bottom: 10px; color: #b88489; font-size: 24px; }
.quote-panel blockquote, .habit-encouragement blockquote { max-width: 360px; margin: 0; color: #76585d; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-style: italic; line-height: 1.4; }
.quote-bottom { margin-top: 18px; color: #a48683; font-size: 10px; }
.habit-list { display: grid; }
.habit-row { display: flex; align-items: center; gap: 10px; min-height: 49px; border-bottom: 1px solid #f3ebe6; }
.habit-row:last-child { border-bottom: 0; }
.habit-color { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--habit-color, #a87980); }
.habit-row > span { flex: 1; color: #6e595c; font-size: 11px; }
.habit-row form { display: flex; }
.habit-check { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 1px solid #e8d8d2; border-radius: 9px; color: white; background: #fffaf7; font-size: 12px; }
.habit-check.is-done { border-color: #b9868c; background: #b9868c; }
.event-list { display: grid; }
.event-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f2eae5; }
.event-row:last-child { border-bottom: 0; }
.event-date { display: flex; flex: 0 0 43px; flex-direction: column; align-items: center; justify-content: center; width: 43px; height: 47px; border-radius: 11px; color: #8d646a; background: #f5e8e4; }
.event-date strong { font-family: Georgia, serif; font-size: 17px; font-weight: 400; line-height: 1.1; }
.event-date small { margin-top: 2px; color: #a98986; font-size: 9px; text-transform: uppercase; }
.event-row > div:last-child { display: grid; min-width: 0; gap: 3px; }
.event-row > div:last-child strong { overflow: hidden; color: #6b5659; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-row > div:last-child small { color: #ad9993; font-size: 9px; }
.compact-empty { padding: 12px 0; color: #a28e88; font-size: 11px; }
.compact-empty a { color: var(--rose-deep); font-weight: 700; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; padding: 20px; text-align: center; }
.empty-icon { margin-bottom: 9px; color: #c39297; font-size: 27px; }
.empty-state strong { color: var(--plum); font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.empty-state p { max-width: 330px; margin: 6px 0 13px; color: #a28d88; font-size: 11px; }

/* Planner, habits, notes and files */
.two-column-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.panel-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--rose-deep); background: #f5e9e5; font-size: 17px; }
.section-panel { margin-top: 18px; }
.table-list { display: grid; }
.table-list-row { display: flex; align-items: center; gap: 13px; min-height: 65px; border-bottom: 1px solid #f2eae5; }
.table-list-row:last-child { border-bottom: 0; }
.table-row-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.table-row-copy strong { overflow: hidden; color: #695559; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.table-row-copy small { color: #aa9691; font-size: 10px; }
.is-completed .table-row-copy strong { color: #b4a6a1; text-decoration: line-through; }
.icon-button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #b39c97; background: transparent; font-size: 20px; }
.icon-button:hover { color: #a85f68; background: #faeeec; }
.muted-small { color: #ad9993; font-size: 10px; }
.habit-encouragement { min-height: 100%; border-color: #ebdcd5; background: linear-gradient(145deg, #f5e9e4, #fbf5ef); }
.habit-encouragement blockquote { font-size: 23px; }
.habit-encouragement .muted-small { display: block; margin-top: 20px; }
.habit-list-large .habit-row { min-height: 67px; gap: 14px; }
.habit-main-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.habit-main-copy strong { color: #695559; font-size: 12px; font-weight: 600; }
.habit-main-copy small { color: #ad9993; font-size: 10px; }
.notes-layout { align-items: stretch; }
.notes-column { display: grid; align-content: start; gap: 13px; }
.note-card { padding: 19px 20px 14px; border: 1px solid #eee2dc; border-radius: 17px; background: #fffdfa; box-shadow: var(--shadow-soft); }
.note-pinned { border-color: #e6d0cb; background: #fff9f6; }
.note-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.note-date, .pinned-label { color: #b19c96; font-size: 9px; }
.pinned-label { color: #a6747c; font-weight: 750; letter-spacing: .7px; }
.note-card h3 { margin: 0 0 8px; }
.note-card p { margin: 0; color: #887370; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.note-actions { display: flex; gap: 15px; margin-top: 15px; padding-top: 10px; border-top: 1px solid #f2eae5; }
.text-button { padding: 0; border: 0; color: var(--rose-deep); background: transparent; font-size: 10px; font-weight: 650; }
.danger-text { color: #b36f74; }
.upload-panel { padding: 31px; text-align: center; background: linear-gradient(145deg, #fffdfb, #fbf5f0); }
.upload-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 13px; place-items: center; border-radius: 16px; color: var(--rose-deep); background: #f2e2de; font-size: 25px; }
.upload-panel h2 { margin-bottom: 6px; }
.upload-panel > p { margin-bottom: 17px; }
.upload-form { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.file-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 16px; overflow: hidden; border: 1px solid #ead7d2; border-radius: 12px; color: #855f64; background: #fffaf7; font-size: 11px; font-weight: 650; cursor: pointer; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-panel .tiny-note { margin-top: 15px; }
.file-list { display: grid; }
.file-row { display: flex; align-items: center; gap: 13px; min-height: 66px; border-bottom: 1px solid #f2eae5; }
.file-row:last-child { border-bottom: 0; }
.file-type-icon { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #956a70; background: #f5e8e4; font-size: 11px; font-weight: 750; }
.file-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.file-copy strong { overflow: hidden; color: #695559; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: #ab9690; font-size: 9px; }
.file-row > form { display: flex; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 17px; align-items: stretch; }
.settings-info-panel { padding: 27px; background: linear-gradient(150deg, #f6eae5, #fffaf5); }
.settings-info-panel h2 { margin-bottom: 10px; }
.settings-info-panel > p:not(.eyebrow) { color: #927b78; font-size: 12px; line-height: 1.75; }
.info-divider { height: 1px; margin: 21px 0 12px; background: #eadbd4; }
.settings-fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee0d9; color: #a18a85; font-size: 10px; }
.settings-fact strong { color: #765c60; font-size: 10px; font-weight: 650; text-align: right; }
.error-page { display: flex; min-height: 50vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { margin: 7px 0; }
.error-page .button { margin-top: 17px; }

/* Login and first-run setup */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 18% 15%, rgba(235, 213, 208, .65), transparent 32%), radial-gradient(circle at 85% 85%, rgba(230, 211, 190, .35), transparent 30%), #f8f1eb; }
.auth-shell { display: grid; min-height: 100vh; padding: 30px 16px; place-items: center; }
.auth-card { width: min(100%, 420px); padding: 38px 39px 32px; border: 1px solid rgba(232, 217, 208, .9); border-radius: 25px; background: rgba(255, 253, 250, .94); box-shadow: 0 24px 75px rgba(103, 76, 80, .1); text-align: center; }
.auth-card-wide { width: min(100%, 490px); }
.brand-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 18px; color: #855f64; background: #f1dfdc; font-size: 27px; }
.auth-card .eyebrow { margin-bottom: 5px; }
.brand-title { margin: 0 0 23px; color: var(--plum); font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -1px; }
.auth-card h2 { margin-bottom: 6px; font-size: 22px; }
.auth-card .muted { margin-bottom: 23px; color: #a28d88; font-size: 11px; }
.auth-card .form-stack { text-align: left; }
.auth-card .button { margin-top: 6px; }
.auth-card .tiny-note { margin-top: 22px; }
.auth-card .alert { text-align: left; }

/* Dark rose option */
.theme-dark { --cream: #211c20; --paper: #2c252a; --white: #30282d; --plum: #f0dfe0; --ink: #eadbd9; --muted: #bba5a2; --line: #493940; --line-strong: #59434a; }
.theme-dark.app-body { color: #eadbd9; background: #211c20; }
.theme-dark .sidebar, .theme-dark .topbar { border-color: #493940; background: #292227; }
.theme-dark .brand-lockup, .theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark .profile-mini strong { color: #f0dfe0; }
.theme-dark .nav-link { color: #c2aaa9; }
.theme-dark .nav-link:hover, .theme-dark .nav-link.active { color: #f4dfe0; background: #49343d; }
.theme-dark .sidebar-note, .theme-dark .stat-card, .theme-dark .panel, .theme-dark .note-card { border-color: #493940; background: #30282e; }
.theme-dark .stat-card-rose, .theme-dark .quote-panel, .theme-dark .habit-encouragement, .theme-dark .settings-info-panel { background: #3b2d34; }
.theme-dark .stat-top, .theme-dark .stat-caption, .theme-dark .page-subtitle, .theme-dark .task-copy small, .theme-dark .event-row small, .theme-dark .muted { color: #bba5a2; }
.theme-dark .stat-card > strong, .theme-dark .task-copy strong, .theme-dark .habit-row > span, .theme-dark .habit-main-copy strong, .theme-dark .event-row > div:last-child strong, .theme-dark .table-row-copy strong, .theme-dark .note-card h3, .theme-dark .note-card p { color: #f0dfe0; }
.theme-dark input, .theme-dark textarea, .theme-dark select { border-color: #59434a; color: #f0dfe0; background: #382d33; }
.theme-dark .topbar-breadcrumb strong, .theme-dark .text-link, .theme-dark .add-inline-link { color: #e3b8bd; }
.theme-dark .app-footer { border-color: #493940; color: #a98e92; }
.theme-dark .upload-panel { background: #30282e; }
.theme-dark .settings-fact, .theme-dark .info-divider { border-color: #59434a; }
.theme-dark .settings-fact strong { color: #eed7d8; }

@media (max-width: 1180px) {
    .page-content { padding-right: 30px; padding-left: 30px; }
    .topbar, .app-footer { padding-right: 30px; padding-left: 30px; }
    .notice-wrap { padding-right: 30px; padding-left: 30px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sidebar { width: 230px; }
    .main-content { margin-left: 230px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .quote-panel { min-height: 190px; }
}
@media (max-width: 700px) {
    .sidebar { width: 270px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 35px rgba(70, 45, 52, .1); }
    .sidebar.is-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar { height: 60px; padding: 0 17px; }
    .mobile-menu-button { display: inline-grid; place-items: center; }
    .topbar-breadcrumb { flex: 1; margin-left: 12px; }
    .topbar-right { gap: 7px; }
    .date-chip { padding: 6px 8px; font-size: 9px; }
    .topbar-heart { display: none; }
    .page-content { padding: 27px 17px 38px; }
    .notice-wrap { padding: 12px 17px 0; }
    .welcome-row { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
    .welcome-row .button { align-self: flex-start; }
    .stats-grid { gap: 10px; margin-bottom: 12px; }
    .stat-card { padding: 14px; border-radius: 15px; }
    .stat-top { margin-bottom: 9px; font-size: 9px; }
    .stat-card > strong { font-size: 25px; }
    .dashboard-grid, .two-column-layout, .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .panel { padding: 18px; border-radius: 17px; }
    .panel-heading { margin-bottom: 14px; }
    .page-intro { margin-bottom: 21px; }
    .app-footer { padding: 14px 17px 18px; font-size: 9px; }
    .form-row { grid-template-columns: 1fr; }
    .upload-panel { padding: 24px 17px; }
    .upload-form { flex-direction: column; }
    .upload-form .button, .file-picker { width: 100%; }
    .file-row { gap: 9px; }
    .file-row .text-link { font-size: 9px; }
    .settings-info-panel { min-height: 260px; }
}
@media (max-width: 390px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; }
    .stat-card > .stat-money { font-size: 16px; }
    .panel { padding: 15px; }
    .file-type-icon { flex-basis: 31px; width: 31px; height: 31px; }
}
.event-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.event-copy strong { overflow: hidden; color: #6b5659; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-copy small { color: #ad9993; font-size: 9px; }
.theme-dark .event-copy strong { color: #f0dfe0; }
