:root {
  color-scheme: light;
  --ink: #382b42;
  --muted: #6e5c70;
  --plum: #573859;
  --rose: #a63769;
  --line: #efdfeb;
  --paper: #fffdfd;
  --shadow: 0 8px 30px #703b6510;
  font-family: system-ui, sans-serif;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background-color: #fff8f5;
  background-image: radial-gradient(#f0cfe080 1px, transparent 1px);
  background-size: 20px 20px;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #895bbb; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h2 { font-size: 1.18rem; line-height: 1.4; }
.wrap { width: min(100% - 36px, 1000px); margin-inline: auto; }
.top { background: #fffdfdf0; border-bottom: 1px solid #f2e5ee; }
.bar { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--plum); font: 900 1.42rem/1 system-ui, sans-serif; letter-spacing: .055em; }
.brand-icon { background: #ffdfed; color: #93315e; width: 42px; height: 42px; border-radius: 15px; font-size: 1.4rem; display: grid; place-items: center; border: 1px solid #f7c6de; }
.brand small { display: block; font: 600 .74rem/1.3 system-ui, sans-serif; letter-spacing: 0; margin-top: 3px; color: var(--muted); }
nav { display: flex; gap: 4px; background: #faf1f7; padding: 5px; border-radius: 15px; }
nav a { display: flex; align-items: center; gap: 5px; border-radius: 11px; padding: 8px 13px; white-space: nowrap; font-weight: 700; font-size: .89rem; color: var(--muted); }
nav a[aria-current] { background: white; color: #902e60; box-shadow: 0 2px 8px #7f47751c; }
main { padding-top: 26px; min-height: 75vh; }
.hero {
  display: grid; grid-template-columns: 1fr .7fr; align-items: center; min-height: 234px;
  padding: 24px 40px; overflow: hidden; isolation: isolate; position: relative;
  background: linear-gradient(108deg,#ffdae9 0%,#fbe3f4 56%,#efe2ff 100%);
  border: 1px solid #f0cada; border-radius: 29px; margin-bottom: 21px;
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 49%; background: radial-gradient(#ffffffa0 1px, transparent 2px); background-size: 19px 19px; mask-image: linear-gradient(to left,black,transparent); }
.hero-kicker { display: inline-block; color: #7e3a62; font-size: .88rem; font-weight: 750; background: #fff8; border: 1px solid #fff9; border-radius: 100px; padding: 4px 12px; }
.hero h1 { margin: 8px 0; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.045em; line-height: 1.13; color: #553452; }
.hero h1 span { color: #a63769; }
.hero p:last-child { color: #634762; }
.art { height: 185px; position: relative; width: min(100%, 275px); justify-self: center; }
.coin {
  position: absolute; top: 10px; left: 50%; width: 140px; height: 140px; transform: translateX(-50%) rotate(-13deg);
  border-radius: 50%; border: 4px solid #d58953; background: #ffd578;
  box-shadow: 8px 9px 0 #c87555, 8px 11px 0 #a95c4c, inset 0 0 0 6px #ffe29a;
}
.coin::before { content: ""; position: absolute; inset: 11px; border: 2px dashed #d78958; border-radius: 50%; background-color: #ffe7a5; }
.coin-shadow { position: absolute; bottom: 17px; left: 50%; transform: translateX(-44%); width: 167px; height: 21px; border-radius: 50%; background: #9c659335; filter: blur(3px); }
.face { position: absolute; inset: 0; transform: rotate(13deg); }
.face i, .face em, .face b { position: absolute; }
.face i { width: 7px; height: 10px; background: #643c4d; border-radius: 50%; left: 40px; top: 59px; }
.face i:nth-child(2) { left: auto; right: 40px; }
.face b { left: 58px; top: 65px; width: 16px; height: 12px; border: 3px solid #643c4d; border-top: 0; border-radius: 0 0 11px 11px; }
.face em { top: 72px; left: 30px; width: 16px; height: 8px; background: #ef9c9e; border-radius: 50%; }
.face em:last-child { left: auto; right: 30px; }
.spark { position: absolute; font-size: 1.6rem; color: #9c4b86; }
.s1 { left: 8%; top: 13%; color: #a85d99; }.s2 { right: 7%; top: 8%; }.s3 { right: 3%; top: 53%; color: #a75483; font-size: 1.2rem; }.s4 { left: 0; bottom: 20%; color: #a75483; }
.mini-coin { position: absolute; bottom: 30px; right: 13%; display: grid; place-items: center; border-radius: 50%; width: 36px; height: 36px; background: #ffe7a5; border: 2px solid #da8f60; color: #8c4e39; font-weight: 850; transform: rotate(14deg); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1.77fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 23px; padding: 21px; box-shadow: var(--shadow); min-width: 0; }
.section-head { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: .88rem; }
.tile { display: inline-grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 12px; font: 800 1.15rem/1 system-ui, sans-serif; font-style: normal; }
.pink { background: #ffe1ec; color: #933963; }.lilac { background: #f0e4ff; color: #694397; }.mint { background: #e3f5eb; color: #275d4f; }.gold { background: #fff0ce; color: #875923; }
form { display: grid; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 5px; border-radius: 14px; background: #f8f0f6; }
.segmented label, .methods label { position: relative; min-width: 0; cursor: pointer; }
.segmented input, .methods input, .sr-only { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); margin: 0; }
.segmented label span { display: block; text-align: center; padding: 8px 5px; border-radius: 10px; color: var(--muted); font-weight: 720; }
.segmented input:checked + span { background: white; color: #983263; box-shadow: 0 2px 6px #60375819; }
.segmented input[value="income"]:checked + span { color: #216550; }
.segmented input:focus-visible + span, .methods input:focus-visible + span { outline: 3px solid #895bbb; outline-offset: 2px; }
.field { display: block; position: relative; min-width: 0; }
.field, legend { color: var(--ink); font-size: .91rem; font-weight: 720; }
.unit { float: right; color: var(--muted); font-size: .82rem; font-weight: 550; }
.field input, .field select, #pin-form input {
  min-width: 0; width: 100%; min-height: 43px; padding: 8px 11px; margin-top: 5px;
  border: 1px solid #e9dbe6; border-radius: 11px; color: var(--ink); background-color: #fffbfe; font-size: 1rem; font-weight: 500;
}
.field select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg,transparent 49%,#694c70 50%),linear-gradient(135deg,#694c70 49%,transparent 50%); background-position: right 16px center,right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
.amount-box { display: flex; align-items: center; gap: 10px; padding: 0 13px; margin-top: 5px; border: 1px solid #ecd3e3; border-radius: 13px; background: #fff6fb; color: #9b3466; }
.amount-box:focus-within { outline: 3px solid #895bbb; outline-offset: 2px; }
.amount-box b { font-size: 1.5rem; }.amount-box input { margin: 0; font: 800 1.7rem/1.1 system-ui,sans-serif; min-height: 55px; padding: 5px 0; border: 0; background: transparent; outline: 0; }
.amount-box input::placeholder { color: #856a81; }
.methods legend { margin-bottom: 6px; }
.methods > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.methods label > span { min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 1px solid #eddfea; border-radius: 12px; color: #5b4960; background: #fffbfd; font-size: .86rem; font-weight: 700; }
.methods .tile { width: 28px; height: 25px; border-radius: 8px; font-size: .94rem; }
.methods input:checked + span { border-color: #bd5d8f; background: #fff0f8; color: #8b2e5d; box-shadow: inset 0 0 0 1px #bd5d8f; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 8px 14px; border-radius: 12px; font-weight: 750; line-height: 1.3; text-align: center; }
.primary { background: #a63769; color: white; border: 1px solid #a63769; box-shadow: 0 4px 0 #78254b; }
.primary:hover { background: #8f2d5b; }.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #78254b; }
.secondary { background: #faf0f8; border: 1px solid #ecd6e7; color: #73315b; }.secondary:hover { background: #f6e4f1; }
.full { width: 100%; }.actions { display: flex; gap: 8px; }.actions .primary { flex: 1; }
.feedback { color: #873554; font-weight: 650; font-size: .89rem; }.feedback:empty { display: none; }.feedback.ok { color: #23644d; }
.side { display: grid; gap: 17px; }.channels ul { list-style: none; padding: 0; margin: 11px 0 0; }
.channels li { display: flex; gap: 11px; align-items: center; padding: 9px 0; }
.channels li + li { border-top: 1px solid #f3e9f0; }
.channels small { display: block; color: var(--muted); font-size: .82rem; }
footer { color: var(--muted); display: flex; justify-content: space-between; gap: 10px; padding: 22px 0; font-size: .85rem; }
footer span span { color: #a63769; }.global { margin-top: 12px; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.summary-head h1 { font-size: clamp(1.75rem,4vw,2.45rem); color: var(--plum); }
.gate { max-width: 404px; margin: 0 auto; background: #5a3d64; padding: 14px; border-color: #7d5486; border-radius: 29px; box-shadow: 0 5px 0 #3b2944, var(--shadow); }
.gate-screen { background: linear-gradient(165deg,#fff7df,#ffe7f3 53%,#f2eaff); border-radius: 19px; text-align: center; padding: 17px; }
.gate-screen h2 { margin-top: 7px; }.gate-screen > p { color: #654e66; font-size: .9rem; margin: 4px 0 10px; }
#pin-form { gap: 9px; } #pin-form input { margin: 0; text-align: center; min-height: 42px; }
.keypad { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.keypad button { min-height: 40px; border: 1px solid #e2c4df; border-radius: 12px; background: #fffcf6; box-shadow: 0 2px 0 #dab8d4; color: #59355e; font-weight: 850; font-size: 1.12rem; }
.keypad button:hover { background: #fbe3ef; }.keypad button[data-key="next"] { background: #f8dcf0; }.keypad button:disabled { cursor: default; }
.keypad button[data-key="0"] { grid-column: 2; }.keypad button[data-key="back"] { grid-column: 3; }
.filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.total { background: #f4ebfc; }.total.expense { background: #ffeaf2; }.total.income { background: #e9f7ef; }
.total p { color: #5b4b63; font-weight: 700; }.total strong { display: block; font-size: clamp(1.05rem,3vw,1.65rem); overflow-wrap: anywhere; margin-top: 5px; }
.income { color: #23644d; }.expense { color: #963258; }
.report + .report { margin-top: 14px; }.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .91rem; }
th, td { padding: 9px 5px; border-bottom: 1px solid #f0e4ed; text-align: right; }
th:first-child, td:first-child { text-align: left; }.history-head { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }.history-head span { color: var(--muted); font-size: .86rem; }
.history { padding: 0; margin: 0; list-style: none; }.history li { padding: 10px 0; border-bottom: 1px solid #f0e4ed; }.history li:last-child { border: 0; }
.record { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: start; }.record b, .record small { overflow-wrap: anywhere; }.record small { grid-column: 1/-1; color: var(--muted); margin-top: 3px; }.record .record-actions { grid-column: 1/-1; display: flex; gap: 6px; margin-top: 7px; }
.record-actions button { min-height: 38px; font-size: .86rem; }
.report .feedback:not(:empty) { margin-top: 10px; }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 19px; padding: 22px; background: var(--paper); width: min(100% - 34px,400px); }.dialog p, dialog p { color: var(--muted); }dialog::backdrop { background: #36203977; }
@media (max-width: 680px) {
  .entry-layout { grid-template-columns: 1fr; }.side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { padding: 20px; grid-template-columns: 1fr .61fr; }.hero h1 { font-size: clamp(2rem,7.5vw,3rem); }
  .art { transform: scale(.78); transform-origin: center; }
  .art .s1 { left: -4%; }.art .s3 { right: -11%; }.art .s4 { left: -14%; }.mini-coin { right: -3%; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 24px); }.bar { min-height: 65px; }.brand-icon { width: 35px; height: 35px; }.brand { gap: 6px; }
  nav a { padding: 7px 8px; font-size: .84rem; }main { padding-top: 15px; }
  .hero { min-height: 188px; padding: 16px; margin-bottom: 14px; border-radius: 22px; }.hero p:last-child { font-size: .88rem; }.hero .art { transform: scale(.63); height: 165px; }.coin-shadow { bottom: 4px; }
  .hero .s1 { left: -18%; }.hero .s2 { right: -12%; }.hero .s3 { right: -20%; }.hero .s4 { display: none; }.mini-coin { right: -11%; bottom: 13px; }
  .card { padding: 15px; }.side { grid-template-columns: 1fr; }.filters { grid-template-columns: repeat(2,minmax(0,1fr)); }.totals { gap: 6px; }.total { padding: 9px; border-radius: 13px; }.total p { font-size: .85rem; }.total strong { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.cover {
  display: grid; place-items: center; min-height: 100svh;
  padding: max(24px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 87% 16%, #eaddfd 0%, transparent 44%),
    radial-gradient(ellipse at 3% 64%, #ffdceb 0%, transparent 47%),
    radial-gradient(#d5a9c961 1px, transparent 1px) 0 0/20px 20px, #fff8f5;
}
.cover-glass {
  text-align: center; width: min(100%, 394px); padding: 23px 22px 20px;
  border-radius: 34px; border: 1px solid #fff; background: #fff9;
  box-shadow: 0 20px 66px #82415619, inset 0 1px 0 #fff;
}
.cover-art { display: grid; place-items: center; position: relative; margin: 7px auto 7px; height: 132px; max-width: 236px; }
.cover-art img { border-radius: 29px; transform: rotate(-8deg); box-shadow: 0 9px 21px #9a5c8e3e; }
.cover-star, .cover-heart { position: absolute; color: #a95280; font-size: 1.45rem; }
.sparkle-left { top: 18px; left: 12px; }.sparkle-right { top: 24px; right: 18px; }.cover-heart { bottom: 14px; right: 18px; }
.cover h1 { color: #573758; font: 900 clamp(3.1rem,13vw,4.1rem)/.98 system-ui,sans-serif; letter-spacing: -.084em; padding-right: .08em; }
.cover h1 span { color: #b14277; }.cover-subtitle { margin: 9px 0 22px; font-weight: 650; color: #6e4e6c; }
#app-pin-form { background: #fffdfc; border: 1px solid #f1ddeb; border-radius: 22px; padding: 16px; gap: 10px; }
#app-pin-form p { color: var(--muted); font-size: .88rem; line-height: 1.4; }
#app-pin-form #app-pin-message { color: #873554; }
#app-pin-form input { min-width: 0; min-height: 45px; padding: 8px; text-align: center; border: 1px solid #ebd8e7; border-radius: 11px; background: #fff6fb; color: var(--ink); }
.cover-local { font-size: .84rem; margin-top: 18px; color: #6d5470; }.cover-local span { color: var(--rose); }
.language-switch { display: flex; justify-content: center; gap: 4px; padding: 3px; width: fit-content; margin: 0 auto; background: #f7eaf4; border-radius: 10px; }
.language-switch button, #toggle-language { border: 0; border-radius: 8px; padding: 5px 9px; min-height: 34px; color: var(--plum); background: transparent; font-size: .82rem; font-weight: 750; }
.language-switch button[aria-pressed="true"] { background: white; color: #902e60; box-shadow: 0 2px 6px #7f47751c; }
#toggle-language:hover { background: white; }
.brand { text-transform: none; letter-spacing: -.03em; }
.brand-icon { object-fit: cover; padding: 0; display: block; }.brand small { letter-spacing: 0; }
#lock-app { border: 0; border-radius: 10px; background: transparent; padding: 4px 7px; min-width: 35px; }
#lock-app:hover { background: #f2e1ed; }
.segmented { grid-template-columns: repeat(3,minmax(0,1fr)); }
.finance-nav { overflow-x: auto; margin-bottom: 14px; padding: 6px; }
.finance-nav button { white-space: nowrap; min-height: 42px; color: var(--plum); border: 0; border-radius: 10px; padding: 7px 12px; font-size: .92rem; font-weight: 700; background: transparent; }
.finance-nav button[aria-pressed="true"] { background: white; color: #902e60; }
.finance-panel { display: grid; gap: 17px; }.finance-panel .fields { align-items: end; }
.finance-panel hr { border: 0; border-top: 1px solid var(--line); margin: 1px 0; }
.finance-panel .muted { color: var(--muted); font-size: .9rem; }
.metrics { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; margin: 12px 0 0; }
.metrics dd { margin: 0; text-align: right; font-weight: 750; overflow-wrap: anywhere; }
.metrics .metric-row { display: contents; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.panel-list small { display: block; color: var(--muted); margin: 2px 0 5px; }
.panel-list button { min-height: 40px; margin-right: 5px; }
.action-row { display: flex; gap: 9px; flex-wrap: wrap; }
.tool-form { padding: 14px; border-radius: 15px; background: #fcf2f8; }
.tool-form .feedback { margin: 0; }
.field .import-input { background-color: white; }
.validation { margin: 0; }
@media (max-width: 460px) {
  .segmented label span { font-size: .82rem; }.methods label > span { font-size: .74rem; }
  #lock-app { min-width: 27px; padding: 3px 4px; }.bar { gap: 6px; }
  .cover-glass { padding-inline: 17px; }
  #toggle-language { padding-inline: 5px; }
  nav a { padding-inline: 6px; }
}
@media print {
  body { background: white; }
  .top, footer, .cover, .summary-head button, .finance-nav, .filters, #finance-panel, .record-actions { display: none !important; }
  .wrap { width: 100%; }.card { box-shadow: none; break-inside: avoid; }
}

/* Pink, gold and midnight-blue interface and motion. */
:root {
  --ink: #20214b; --muted: #574767; --plum: #29255b; --rose: #a92269;
  --line: #e6cee2; --paper: #fffafe; --shadow: 0 9px 0 #19194625, 0 16px 36px #13112e17;
  --night: #151747; --hot: #ff9ec9; --gold: #ffe087;
}
body {
  background:
    radial-gradient(ellipse at 90% 17%,#f2e4ff 0%,transparent 42%),
    radial-gradient(ellipse at 7% 76%,#ffd6e9 0%,transparent 40%),
    linear-gradient(#9f66ad16 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,#9f66ad16 1px,transparent 1px) 0 0/24px 24px,#fff5fa;
}
.top { background: #151747; border-bottom: 2px solid #ebba73; }
.bar { min-height: 70px; }
.brand, .brand small { color: #fff3fc; }
.brand .brand-icon { border: 1px solid #f8d784; }
.bar nav { background: #2b2b61; }
.bar nav a, #toggle-language { color: #fff0fa; }
.bar nav a[aria-current] { color: #26224d; background: linear-gradient(#ffeef7,#f5afd1); }
.bar nav #toggle-language:hover, .bar nav #lock-app:hover { color: white; background: #464272; }
.cover {
  color: #fff0fa;
  background:
    radial-gradient(ellipse at 50% 23%, #493865 0%,transparent 54%),
    radial-gradient(#ffc5e875 1px, transparent 1px) 0 0/36px 36px,
    #13143d;
}
.cover-glass {
  max-width: 410px; padding: 22px;
  border: 1px solid #ecc87b; border-radius: 30px; background: linear-gradient(145deg,#321e54,#242557 68%);
  box-shadow: 0 0 0 5px #d594f222, 0 26px 75px #0b0b26bf, inset 0 1px 0 #ffe9a780;
}
.cover .language-switch { background: #151747; border: 1px solid #6e5d91; }
.cover .language-switch button { color: #ffe9f5; }
.cover .language-switch button[aria-pressed=true] { color: #301f4a; background: #ffe089; }
.cover-art img { transform: rotate(-9deg); box-shadow: 0 6px 22px #ff87c25e; animation: monii-float 4.5s ease-in-out infinite; }
.cover-art::before { content: ""; position: absolute; width: 90%; height: 48%; border: 1px solid #ffe08197; border-radius: 50%; transform: rotate(-16deg); }
.cover-star,.cover-heart { color: var(--gold); text-shadow: 0 0 12px #eec77e88; }
.cover h1 { font-style: italic; color: #ffe5f3; text-shadow: 0 3px #ae4a83, 0 6px #67446e; padding-right: .13em; }
.cover h1 span { color: var(--gold); }
.cover-subtitle,.cover-local { color: #fbd9ef; }
.cover-local span { color: var(--gold); }
#app-pin-form { border-color: #e7aecf; color: var(--ink); background: #fff8fd; }
.hero {
  min-height: 234px; border-radius: 25px; border: 1px solid #c59372;
  background: radial-gradient(ellipse at 78% 31%,#734581 0%,transparent 49%),linear-gradient(124deg,#171748,#24245c 65%,#372b66);
  box-shadow: 0 6px 0 #d4aecd50; color: white;
}
.hero::after { opacity: .55; inset: 0; mask-image: linear-gradient(to right,transparent,#000 65%); }
.hero h1 { color: #fff1f9; text-shadow: 0 2px #bd5682; }
.hero h1 span { color: #ffe289; text-shadow: none; }
.hero p:last-child { color: #fee4f5; }
.hero-kicker { border-color: #e3b87e; background: #ffe18a; color: #3a2a48; }
.art { display: grid; place-items: center; isolation: isolate; }
.art img { position: relative; z-index: 1; border-radius: 37px; transform: rotate(-11deg); box-shadow: 0 10px 27px #151334a0; animation: monii-float 5s ease-in-out infinite; }
.hero-orbit { position: absolute; inset: 38% -4% 31% -4%; border: 1px solid #ffe18ab5; border-radius: 50%; transform: rotate(-16deg); }
.art .spark { z-index: 2; color: var(--gold); }
.s2 { animation: twinkle 2.8s ease-in-out infinite; }
.s4 { color: #ffb4db !important; }
.card { border-radius: 19px; }
.primary { background: linear-gradient(#ffe5a2,#ffd171); border: 1px solid #9a633b; color: #292150; box-shadow: 0 4px 0 #85413e; }
.primary:hover { background: linear-gradient(#fff0c5,#ffd77f); }
.primary:active { box-shadow: 0 2px 0 #85413e; }
.secondary { background: #f8e7f5; border-color: #e7c4de; color: #543365; }
.secondary:hover { background: #f5d7eb; }
.entry-layout { grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); }
.segmented { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; background: #f6eaf7; }
.segmented label span { height: 100%; display: grid; grid-auto-flow: column; justify-content: center; align-content: center; gap: 4px; min-height: 45px; }
.segmented input:checked + span { background: linear-gradient(#fff0f9,#f6c8e2); color: #7b215b; }
.methods label > span { transition: border-color .18s,background-color .18s,transform .18s; padding: 5px 6px; text-align: center; min-height: 65px; }
.methods label:hover > span { transform: translateY(-2px); }
.fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field, legend { overflow-wrap: anywhere; }
.field :is(input,select) { max-width: 100%; }
.entry-hint { padding: 10px 12px; background: #fdf0fb; border: 1px solid #edd5ed; border-radius: 11px; color: #5b376c; font-size: .9rem; }
.privacy .text-link { display: block; color: #804073; margin-top: 13px; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.text-link:focus-visible { outline-offset: 4px; }
.gate { background: #222253; border-color: #dfae76; box-shadow: 0 5px 0 #100f34,0 11px 27px #241b6330; }
.gate-screen { background: linear-gradient(#fff2cd,#ffe4f6 54%,#eee7ff); }
.budget-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,108px),1fr)); gap: 8px; }
.budget-metric { border: 1px solid var(--line); border-radius: 11px; background: #fff5fc; padding: 9px 10px; overflow-wrap: anywhere; }
.budget-metric span { display: block; font-size: .86rem; color: var(--muted); }
.budget-metric strong { display: block; margin-top: 4px; }
.budget-callout { padding: 14px; border-radius: 15px; background: #fff0c9; border: 1px solid #e9c582; }
.budget-callout.is-over { background: #ffe1ed; border-color: #edb3cf; }
.budget-callout small { display: block; color: var(--muted); margin-top: 5px; }
.budget-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.budget-card { display: grid; gap: 9px; border: 1px solid var(--line); padding: 12px; border-radius: 15px; min-width: 0; background: #fffbff; }
.budget-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; }
.budget-card h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; min-width: 0; }
.budget-card progress { width: 100%; height: 10px; accent-color: #b73577; }
.entry-actions { position: relative; }
.save-sparks { position: absolute; inset: 0; pointer-events: none; }
.save-sparks i { position: absolute; bottom: 12px; left: 50%; opacity: 0; color: #aa375f; font-style: normal; }
.save-sparks i:nth-child(1) { --dx: -86px; --dy: -41px; }.save-sparks i:nth-child(2) { --dx: 86px; --dy: -44px; }
.save-sparks i:nth-child(3) { --dx: -38px; --dy: -78px; }.save-sparks i:nth-child(4) { --dx: 44px; --dy: -74px; }
.save-sparks i:nth-child(5) { --dx: 0px; --dy: -88px; }
.save-sparks.celebrate i { animation: saved-spark .63s ease-out both; }
@keyframes saved-spark { 0% { opacity: 0; transform: scale(.5); } 28% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(1.2) rotate(25deg); } }
@keyframes monii-float { 0%,100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-7px) rotate(-7deg); } }
@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 700px) {
  .entry-layout,.budget-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .hero { min-height: 190px; padding: 15px; }
  .hero h1 { font-size: clamp(1.65rem,7vw,2.4rem); }
  .editor .fields,.tool-form .fields { grid-template-columns: 1fr; }
  .methods > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .methods label > span { min-height: 48px; display: flex; justify-content: flex-start; gap: 6px; text-align: start; font-size: .86rem; }
  .cover-glass { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .art img,.cover-art img,.s2,.save-sparks.celebrate i { animation: none; }
  .methods label > span { transition: none; }
}
