488 lines
28 KiB
CSS
488 lines
28 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f4f5f8;
|
|
--surface: #ffffff;
|
|
--surface-soft: #f8f8fb;
|
|
--surface-strong: #edeef3;
|
|
--text: #17171c;
|
|
--muted: #70717c;
|
|
--border: #e3e4ea;
|
|
--primary: #5b5bd6;
|
|
--primary-strong: #4747bd;
|
|
--primary-soft: #ececfe;
|
|
--green: #16a36a;
|
|
--green-soft: #e8f7f0;
|
|
--red: #e05252;
|
|
--red-soft: #fcecec;
|
|
--orange: #f28c38;
|
|
--shadow: 0 16px 44px rgb(31 35 55 / 8%);
|
|
--radius: 20px;
|
|
--sidebar: 252px;
|
|
font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
font-synthesis: none;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg: #111116;
|
|
--surface: #1b1b21;
|
|
--surface-soft: #222229;
|
|
--surface-strong: #2a2a32;
|
|
--text: #f5f5f7;
|
|
--muted: #a6a6b0;
|
|
--border: #303039;
|
|
--primary: #8888f5;
|
|
--primary-strong: #9d9dff;
|
|
--primary-soft: #29294b;
|
|
--green-soft: #15392b;
|
|
--red-soft: #422326;
|
|
--shadow: 0 18px 50px rgb(0 0 0 / 28%);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { min-height: 100%; background: var(--bg); }
|
|
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
|
|
button, input, select, textarea { font: inherit; }
|
|
button { color: inherit; }
|
|
button, select { cursor: pointer; }
|
|
img { display: block; }
|
|
[hidden] { display: none !important; }
|
|
|
|
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent); outline-offset: 2px; }
|
|
|
|
.auth-layout {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 32px 18px;
|
|
background:
|
|
radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 32%),
|
|
radial-gradient(circle at 88% 88%, color-mix(in srgb, var(--green) 10%, transparent), transparent 30%),
|
|
var(--bg);
|
|
}
|
|
|
|
.auth-card {
|
|
width: min(100%, 480px);
|
|
padding: 30px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 30px;
|
|
background: color-mix(in srgb, var(--surface) 94%, transparent);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 11px; }
|
|
.brand-auth { margin-bottom: 32px; }
|
|
.brand-name { display: block; font-size: 20px; line-height: 1.05; font-weight: 800; letter-spacing: -.4px; }
|
|
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
|
|
.auth-copy h1 { margin: 4px 0 12px; font-size: clamp(30px, 7vw, 42px); line-height: 1.04; letter-spacing: -1.6px; }
|
|
.auth-copy > p:last-child { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
|
|
.eyebrow { margin: 0; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
|
|
.security-note { display: flex; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
|
|
|
|
.stack { display: grid; gap: 14px; }
|
|
.field { display: grid; gap: 7px; }
|
|
.field > span, .field-label { color: var(--muted); font-size: 12px; font-weight: 700; }
|
|
.field input, .field select, .field textarea, .select-control, .search-control {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 11px 13px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 13px;
|
|
background: var(--surface-soft);
|
|
color: var(--text);
|
|
outline: none;
|
|
transition: border-color .16s, box-shadow .16s, background .16s;
|
|
}
|
|
.field textarea { min-height: 88px; resize: vertical; }
|
|
.field input:focus, .field select:focus, .field textarea:focus, .select-control:focus, .search-control:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
|
|
background: var(--surface);
|
|
}
|
|
.form-error { margin: -2px 0 0; padding: 10px 12px; border-radius: 11px; background: var(--red-soft); color: var(--red); font-size: 13px; }
|
|
|
|
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface-strong); }
|
|
.segmented button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
|
|
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgb(0 0 0 / 7%); }
|
|
.auth-switch { margin-bottom: 17px; }
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-height: 40px;
|
|
padding: 9px 15px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
text-decoration: none;
|
|
transition: transform .14s, background .14s, border-color .14s;
|
|
}
|
|
.button:hover { background: var(--surface-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
|
|
.button:active { transform: scale(.98); }
|
|
.button:disabled { cursor: not-allowed; opacity: .55; }
|
|
.button-large { min-height: 48px; font-size: 14px; }
|
|
.button-primary { border-color: var(--primary); background: var(--primary); color: white; }
|
|
.button-primary:hover { border-color: var(--primary-strong); background: var(--primary-strong); }
|
|
.button-danger { border-color: color-mix(in srgb, var(--red) 25%, var(--border)); color: var(--red); }
|
|
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
|
|
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
|
|
|
|
.app-shell { min-height: 100vh; }
|
|
.sidebar {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
width: var(--sidebar);
|
|
flex-direction: column;
|
|
padding: 24px 16px 18px;
|
|
border-right: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
.sidebar-brand { padding: 0 8px 24px; }
|
|
.side-nav { display: grid; gap: 5px; }
|
|
.side-nav button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 45px;
|
|
padding: 8px 13px;
|
|
border: 0;
|
|
border-radius: 13px;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
text-align: left;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
.side-nav button span { display: grid; width: 22px; place-items: center; font-size: 20px; }
|
|
.side-nav button:hover { background: var(--surface-soft); color: var(--text); }
|
|
.side-nav button.is-active { background: var(--primary-soft); color: var(--primary-strong); }
|
|
.sidebar-footer { display: grid; gap: 14px; margin-top: auto; }
|
|
.sync-pill { display: flex; align-items: center; gap: 8px; padding: 0 9px; color: var(--muted); font-size: 11px; }
|
|
.sync-pill > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
|
|
.sync-pill.is-syncing > span:first-child { background: var(--orange); animation: pulse 1s infinite; }
|
|
.sync-pill.is-error > span:first-child { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
|
|
@keyframes pulse { 50% { opacity: .35; } }
|
|
.account-mini { display: flex; align-items: center; gap: 10px; padding: 12px 9px 0; border-top: 1px solid var(--border); overflow: hidden; }
|
|
.account-mini > div:last-child { min-width: 0; }
|
|
.account-mini strong, .account-mini span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.account-mini strong { font-size: 12px; }
|
|
.account-mini span { margin-top: 3px; color: var(--muted); font-size: 10px; }
|
|
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 800; }
|
|
|
|
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
|
|
.content { width: min(1180px, 100%); margin: 0 auto; padding: 38px 36px 60px; }
|
|
.mobile-header, .bottom-nav { display: none; }
|
|
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
|
|
.page-header h1 { margin: 2px 0 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.08; letter-spacing: -1.25px; }
|
|
.page-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
|
|
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
|
|
|
|
.grid { display: grid; gap: 16px; }
|
|
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr); align-items: start; }
|
|
.span-2 { grid-column: span 2; }
|
|
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgb(31 35 55 / 4%); }
|
|
.card-body { padding: 20px; }
|
|
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px 0; }
|
|
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; letter-spacing: -.25px; }
|
|
.card-header + .card-body { padding-top: 15px; }
|
|
.hero-balance {
|
|
position: relative;
|
|
min-height: 230px;
|
|
overflow: hidden;
|
|
padding: 26px;
|
|
border: 0;
|
|
background: linear-gradient(135deg, #6868e9, #4747b9);
|
|
color: white;
|
|
box-shadow: 0 20px 42px rgb(70 70 185 / 23%);
|
|
}
|
|
.hero-balance::after { content: ""; position: absolute; right: -80px; bottom: -125px; width: 290px; height: 290px; border: 44px solid rgb(255 255 255 / 8%); border-radius: 50%; }
|
|
.hero-balance .hero-label { position: relative; z-index: 1; margin: 0; color: rgb(255 255 255 / 72%); font-size: 13px; font-weight: 700; }
|
|
.hero-value { position: relative; z-index: 1; margin: 13px 0 23px; font-size: clamp(33px, 5vw, 50px); font-weight: 850; letter-spacing: -2px; }
|
|
.hero-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 24px; }
|
|
.hero-meta div span, .metric-card span { display: block; font-size: 11px; font-weight: 700; }
|
|
.hero-meta div span { color: rgb(255 255 255 / 66%); }
|
|
.hero-meta div strong { display: block; margin-top: 5px; font-size: 15px; }
|
|
.hero-balance .button { position: relative; z-index: 1; margin-top: 22px; border-color: rgb(255 255 255 / 28%); background: rgb(255 255 255 / 13%); color: white; }
|
|
.hero-balance .button:hover { background: rgb(255 255 255 / 20%); }
|
|
|
|
.metric-card { min-height: 118px; padding: 17px; }
|
|
.metric-card span { color: var(--muted); }
|
|
.metric-card strong { display: block; margin-top: 12px; font-size: 23px; letter-spacing: -.8px; }
|
|
.metric-card .metric-foot { margin-top: 6px; color: var(--muted); font-size: 11px; }
|
|
.metric-card.is-income strong { color: var(--green); }
|
|
.metric-card.is-expense strong { color: var(--red); }
|
|
.metric-card.is-primary strong { color: var(--primary); }
|
|
|
|
.list { display: grid; }
|
|
.list-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--border); }
|
|
.list-row:first-child { padding-top: 3px; }
|
|
.list-row:last-child { padding-bottom: 3px; border-bottom: 0; }
|
|
.row-main { min-width: 0; flex: 1; }
|
|
.row-main strong, .row-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.row-main strong { font-size: 13px; }
|
|
.row-main span { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
|
.row-value { flex: 0 0 auto; text-align: right; }
|
|
.row-value strong, .row-value span { display: block; }
|
|
.row-value strong { font-size: 13px; }
|
|
.row-value span { margin-top: 4px; color: var(--muted); font-size: 10px; }
|
|
.amount-income { color: var(--green); }
|
|
.amount-expense { color: var(--text); }
|
|
.row-actions { display: flex; gap: 3px; opacity: .25; transition: opacity .15s; }
|
|
.list-row:hover .row-actions { opacity: 1; }
|
|
.icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
|
|
.icon-button:hover { background: var(--surface-strong); color: var(--text); }
|
|
.icon-button.is-danger:hover { background: var(--red-soft); color: var(--red); }
|
|
|
|
.category-badge { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 14px; font-size: 20px; font-weight: 800; }
|
|
.category-badge.small { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
|
|
.category-badge.large { width: 58px; height: 58px; border-radius: 18px; font-size: 26px; }
|
|
.category-badge .symbol { font-size: .88em; }
|
|
.color-red { color: #e05252; background: #e0525222; } .color-orange { color: #f28c38; background: #f28c3822; }
|
|
.color-yellow { color: #e0ac24; background: #e0ac2422; } .color-green { color: #16a36a; background: #16a36a22; }
|
|
.color-mint { color: #31b99a; background: #31b99a22; } .color-teal { color: #159eaf; background: #159eaf22; }
|
|
.color-cyan { color: #209bcc; background: #209bcc22; } .color-blue { color: #3979e9; background: #3979e922; }
|
|
.color-indigo { color: #5b5bd6; background: #5b5bd622; } .color-purple { color: #8b5cf6; background: #8b5cf622; }
|
|
.color-pink { color: #e35c9a; background: #e35c9a22; } .color-brown { color: #9b6a4a; background: #9b6a4a22; }
|
|
.color-gray { color: #7a7a85; background: #7a7a8522; } .color-coral { color: #fa6161; background: #fa616122; }
|
|
.color-peach { color: #ff9461; background: #ff946122; } .color-gold { color: #e6a314; background: #e6a31422; }
|
|
.color-lime { color: #85c729; background: #85c72922; } .color-forest { color: #1a7a4d; background: #1a7a4d22; }
|
|
.color-turquoise { color: #0daba1; background: #0daba122; } .color-sky { color: #2e9ee8; background: #2e9ee822; }
|
|
.color-navy { color: #365ca8; background: #1f408522; } .color-lavender { color: #8c66d9; background: #8c66d922; }
|
|
.color-magenta { color: #d1298c; background: #d1298c22; } .color-slate { color: #66758e; background: #4d5c7322; }
|
|
|
|
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
|
|
.toolbar .search-wrap { position: relative; min-width: 220px; flex: 1; }
|
|
.toolbar .search-wrap::before { content: "⌕"; position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted); }
|
|
.toolbar .search-control { padding-left: 38px; }
|
|
.toolbar .select-control { width: auto; min-width: 150px; }
|
|
.operations-card .card-body { padding-top: 9px; }
|
|
.operations-card .list-row { padding: 14px 0; }
|
|
|
|
.empty-state { display: grid; min-height: 210px; place-items: center; padding: 35px; text-align: center; }
|
|
.empty-state .empty-icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 14px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-size: 27px; }
|
|
.empty-state h3 { margin: 0; font-size: 16px; }
|
|
.empty-state p { max-width: 390px; margin: 8px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
|
|
.empty-state .button { margin-top: 17px; }
|
|
|
|
.analytics-page { display: grid; row-gap: 24px; padding-bottom: 8px; }
|
|
.analytics-page > .page-header { margin-bottom: 0; }
|
|
.analytics-layout { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); align-items: start; gap: 20px; }
|
|
.analytics-layout > * { min-width: 0; }
|
|
.analytics-metrics { gap: 18px; }
|
|
.analytics-metrics .metric-card { display: flex; min-height: 132px; flex-direction: column; justify-content: center; padding: 20px; }
|
|
.period-switch { width: fit-content; margin-bottom: 0; }
|
|
.period-switch button { min-width: 82px; }
|
|
.breakdown { display: grid; gap: 15px; }
|
|
.breakdown-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, 2fr) auto; align-items: center; gap: 12px; }
|
|
.breakdown-name { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
|
|
.breakdown-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: var(--surface-strong); color: var(--primary); }
|
|
progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface-strong); }
|
|
progress::-webkit-progress-value { border-radius: 999px; background: currentColor; }
|
|
progress::-moz-progress-bar { border-radius: 999px; background: currentColor; }
|
|
.progress-red { color: var(--red); } .progress-orange { color: var(--orange); } .progress-yellow { color: #e0ac24; }
|
|
.progress-green { color: var(--green); } .progress-mint { color: #31b99a; } .progress-teal { color: #159eaf; }
|
|
.progress-cyan { color: #209bcc; } .progress-blue { color: #3979e9; } .progress-indigo { color: var(--primary); }
|
|
.progress-purple { color: #8b5cf6; } .progress-pink { color: #e35c9a; } .progress-brown { color: #9b6a4a; }
|
|
.progress-gray { color: #7a7a85; } .progress-coral { color: #fa6161; } .progress-peach { color: #ff9461; }
|
|
.progress-gold { color: #e6a314; } .progress-lime { color: #85c729; } .progress-forest { color: #1a7a4d; }
|
|
.progress-turquoise { color: #0daba1; } .progress-sky { color: #2e9ee8; } .progress-navy { color: #365ca8; }
|
|
.progress-lavender { color: #8c66d9; } .progress-magenta { color: #d1298c; } .progress-slate { color: #66758e; }
|
|
.breakdown-value { min-width: 85px; text-align: right; font-size: 12px; font-weight: 750; }
|
|
.insight-card { padding: 20px; background: linear-gradient(145deg, var(--primary-soft), var(--surface)); }
|
|
.insight-card .insight-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--primary); color: white; font-size: 20px; }
|
|
.insight-card h3 { margin: 16px 0 8px; font-size: 16px; }
|
|
.insight-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
|
|
.analytics-breakdown-card .card-body { padding-top: 18px; padding-bottom: 22px; }
|
|
|
|
.budget-list { display: grid; gap: 12px; }
|
|
.budget-item { padding: 17px; }
|
|
.budget-top { display: flex; align-items: center; gap: 11px; }
|
|
.budget-copy { min-width: 0; flex: 1; }
|
|
.budget-copy strong, .budget-copy span { display: block; }
|
|
.budget-copy strong { font-size: 13px; }
|
|
.budget-copy span { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
|
.budget-values { text-align: right; }
|
|
.budget-values strong, .budget-values span { display: block; }
|
|
.budget-values strong { font-size: 13px; }
|
|
.budget-values span { margin-top: 4px; color: var(--muted); font-size: 10px; }
|
|
.budget-item progress { margin-top: 13px; }
|
|
.budget-item.is-over { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); }
|
|
.budget-item.is-over progress { color: var(--red); }
|
|
|
|
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.category-card { display: flex; align-items: center; gap: 12px; padding: 15px; }
|
|
.category-card .row-main span { text-transform: capitalize; }
|
|
.category-card .row-actions { margin-left: auto; }
|
|
|
|
.settings-layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); align-items: start; }
|
|
.settings-section { padding: 20px; }
|
|
.settings-section h2 { margin: 0 0 4px; font-size: 16px; }
|
|
.settings-section > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
|
|
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border); }
|
|
.settings-row:first-of-type { border-top: 0; }
|
|
.settings-row div:first-child { min-width: 0; }
|
|
.settings-row strong, .settings-row span { display: block; }
|
|
.settings-row strong { font-size: 13px; }
|
|
.settings-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
|
.settings-row .select-control { width: 150px; min-height: 40px; }
|
|
.account-card { overflow: hidden; }
|
|
.account-cover { height: 88px; background: linear-gradient(135deg, #7171eb, #4444b4); }
|
|
.account-content { position: relative; padding: 0 20px 20px; }
|
|
.account-content .avatar { width: 58px; height: 58px; margin-top: -29px; border: 5px solid var(--surface); border-radius: 19px; background: var(--primary-soft); font-size: 20px; }
|
|
.account-content h3 { margin: 13px 0 4px; font-size: 16px; overflow-wrap: anywhere; }
|
|
.account-content p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
|
|
.account-content .button { width: 100%; }
|
|
.status-line { display: flex; align-items: center; gap: 9px; margin: 14px 0; padding: 11px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
|
|
.status-line span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
|
|
|
|
.modal {
|
|
width: min(620px, calc(100% - 28px));
|
|
max-height: min(88vh, 820px);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: 24px;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
box-shadow: 0 26px 90px rgb(0 0 0 / 30%);
|
|
}
|
|
.modal::backdrop { background: rgb(10 10 18 / 48%); backdrop-filter: blur(5px); }
|
|
.modal-shell { display: flex; max-height: min(88vh, 820px); flex-direction: column; }
|
|
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px 15px; border-bottom: 1px solid var(--border); }
|
|
.modal-header h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
|
|
.modal-body { display: grid; gap: 15px; padding: 20px 22px; overflow-y: auto; }
|
|
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 19px; border-top: 1px solid var(--border); background: var(--surface); }
|
|
.kind-switch { width: 100%; }
|
|
.kind-switch button { min-height: 40px; }
|
|
.choice-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
|
|
.choice-grid label { position: relative; }
|
|
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.choice-option { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); font-size: 18px; transition: border-color .14s, transform .14s; }
|
|
.choice-grid label:hover .choice-option { transform: translateY(-1px); border-color: var(--primary); }
|
|
.choice-grid input:checked + .choice-option { border: 2px solid var(--primary); background: var(--primary-soft); }
|
|
.color-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
|
|
.color-grid label { position: relative; }
|
|
.color-grid input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.color-swatch { display: block; aspect-ratio: 1; padding: 4px; border: 2px solid transparent; border-radius: 50%; background-clip: content-box; }
|
|
.color-grid input:checked + .color-swatch { border-color: var(--text); }
|
|
.swatch-red { background-color: #e05252; } .swatch-orange { background-color: #f28c38; } .swatch-yellow { background-color: #e0ac24; }
|
|
.swatch-green { background-color: #16a36a; } .swatch-mint { background-color: #31b99a; } .swatch-teal { background-color: #159eaf; }
|
|
.swatch-cyan { background-color: #209bcc; } .swatch-blue { background-color: #3979e9; } .swatch-indigo { background-color: #5b5bd6; }
|
|
.swatch-purple { background-color: #8b5cf6; } .swatch-pink { background-color: #e35c9a; } .swatch-brown { background-color: #9b6a4a; }
|
|
.swatch-gray { background-color: #7a7a85; } .swatch-coral { background-color: #fa6161; } .swatch-peach { background-color: #ff9461; }
|
|
.swatch-gold { background-color: #e6a314; } .swatch-lime { background-color: #85c729; } .swatch-forest { background-color: #1a7a4d; }
|
|
.swatch-turquoise { background-color: #0daba1; } .swatch-sky { background-color: #2e9ee8; } .swatch-navy { background-color: #1f4085; }
|
|
.swatch-lavender { background-color: #8c66d9; } .swatch-magenta { background-color: #d1298c; } .swatch-slate { background-color: #4d5c73; }
|
|
.helper-text { margin: -7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
|
|
.budget-edit-list { display: grid; gap: 9px; }
|
|
.budget-edit-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 135px; align-items: center; gap: 10px; }
|
|
.budget-edit-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
|
|
.budget-edit-row input { min-width: 0; }
|
|
|
|
.toast-region { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; width: min(380px, calc(100% - 36px)); gap: 8px; pointer-events: none; }
|
|
.toast { padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease-out; }
|
|
.toast.is-error { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); color: var(--red); }
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
|
|
|
|
@media (max-width: 1040px) {
|
|
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.dashboard-grid, .analytics-layout, .settings-layout { grid-template-columns: 1fr; }
|
|
.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
:root { --radius: 17px; }
|
|
.sidebar { display: none; }
|
|
.workspace { margin-left: 0; }
|
|
.mobile-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 16;
|
|
display: flex;
|
|
height: 62px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: max(10px, env(safe-area-inset-top)) 17px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--surface) 91%, transparent);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
.mobile-header .brand-name { font-size: 18px; }
|
|
.content { padding: 23px 15px calc(92px + env(safe-area-inset-bottom)); }
|
|
.bottom-nav {
|
|
position: fixed;
|
|
inset: auto 0 0;
|
|
z-index: 18;
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--surface) 92%, transparent);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
.bottom-nav button { display: grid; place-items: center; gap: 2px; min-height: 43px; border: 0; background: transparent; color: var(--muted); }
|
|
.bottom-nav button span { font-size: 20px; line-height: 1; }
|
|
.bottom-nav button small { font-size: 9px; font-weight: 700; }
|
|
.bottom-nav button.is-active { color: var(--primary); }
|
|
.page-header { align-items: flex-start; margin-bottom: 18px; }
|
|
.page-header h1 { font-size: 29px; }
|
|
.page-header p { font-size: 12px; }
|
|
.page-actions .button:not(.button-primary) { display: none; }
|
|
.grid-2, .grid-3, .grid-4, .category-grid { grid-template-columns: 1fr; }
|
|
.metric-grid-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.metric-card { min-height: 104px; }
|
|
.analytics-page { row-gap: 18px; padding-bottom: 4px; }
|
|
.analytics-page > .page-header { margin-bottom: 2px; }
|
|
.analytics-metrics { gap: 12px; }
|
|
.analytics-metrics .metric-card { min-height: 112px; padding: 17px; }
|
|
.analytics-layout { gap: 16px; }
|
|
.period-switch { width: 100%; }
|
|
.hero-balance { min-height: 220px; padding: 23px; }
|
|
.hero-value { font-size: 36px; }
|
|
.toolbar { gap: 8px; }
|
|
.toolbar .search-wrap { flex-basis: 100%; }
|
|
.toolbar .select-control { min-width: 0; flex: 1; }
|
|
.row-actions { opacity: 1; }
|
|
.breakdown-row { grid-template-columns: minmax(100px, 1fr) minmax(90px, 1.2fr); }
|
|
.breakdown-value { grid-column: 2; margin-top: -7px; text-align: left; color: var(--muted); }
|
|
.choice-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
.color-grid { grid-template-columns: repeat(8, 1fr); }
|
|
.modal { width: 100%; max-width: none; max-height: calc(100vh - 32px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
|
|
.modal-shell { max-height: calc(100vh - 32px); }
|
|
.modal-header, .modal-body, .modal-footer { padding-left: 17px; padding-right: 17px; }
|
|
.budget-edit-row { grid-template-columns: auto minmax(0, 1fr) 105px; }
|
|
}
|
|
|
|
@media (max-width: 430px) {
|
|
.auth-card { padding: 23px 19px; border-radius: 24px; }
|
|
.auth-copy h1 { font-size: 32px; }
|
|
.page-actions .button-primary { min-width: 42px; padding-inline: 12px; font-size: 0; }
|
|
.page-actions .button-primary::before { content: "+"; font-size: 21px; }
|
|
.card-body { padding: 17px; }
|
|
.card-header { padding: 17px 17px 0; }
|
|
.metric-grid-mobile { gap: 10px; }
|
|
.analytics-page { row-gap: 16px; }
|
|
.analytics-metrics { gap: 10px; }
|
|
.metric-card { padding: 14px; }
|
|
.analytics-metrics .metric-card { min-height: 108px; padding: 15px; }
|
|
.metric-card strong { font-size: 19px; }
|
|
.hero-meta { gap: 10px 18px; }
|
|
.choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
.color-grid { grid-template-columns: repeat(6, 1fr); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
|
}
|