:root{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Noto Sans SC',sans-serif;color-scheme:light;--bg:#f7f8f4;--ink:#293d35;--muted:#5b6d64;--accent:#4f7963;--line:#e4ebe4;--card:#fff;--nav:#fdfefc;--ring:#b4c9b8;--surface:#f1f5f0}*{box-sizing:border-box}html{background:var(--bg);height:100%}body{margin:0;color:var(--ink);background:var(--bg);min-height:100%;font-size:15px;-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.shell{max-width:680px;margin:auto;padding:calc(20px + env(safe-area-inset-top)) 16px calc(105px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.brand{font-family:Georgia,serif;font-size:35px;font-weight:750;letter-spacing:-2px}.sub{font-size:11px;letter-spacing:3px;color:var(--muted);margin-top:3px}.round{border:0;background:var(--surface);color:var(--ink);border-radius:16px;width:46px;height:46px;font-size:23px}.card{background:var(--card);border-radius:25px;padding:19px;margin-bottom:14px;box-shadow:0 3px 15px #27382e0b;min-width:0}.card h2{font-size:19px;margin:0 0 16px;line-height:1.35}.card h3{font-size:15px;margin:0 0 10px}.stack{display:flex;flex-direction:column;gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid2 .card{margin-bottom:0}.card p{margin:7px 0;color:var(--muted);line-height:1.55}.caldays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calday{border:0;border-radius:13px;padding:11px 0;background:#ffffff95;color:var(--ink);font-weight:700;min-width:0}.calday small{display:block;font-size:11px;font-weight:400;margin-bottom:7px}.calday.active{background:var(--accent);color:#fff}.calday span{display:block;font-size:16px}.card[data-soft="calendar"]{background:#e8edf4}.card[data-soft="budget"]{background:#e2efe6}.card[data-soft="fund"]{background:#f6ebd9}.card[data-soft="back"]{background:#e1efeb}.card[data-soft="todo"]{background:#f1e7ef}.card[data-soft="record"]{background:#edf1e6}.card[data-soft="weight"]{background:#eee8f3}.card[data-soft="limit"]{background:#f5e8dd}.card[data-soft="goal"]{background:#e7edf5}.card[data-soft="study"]{background:#e4f0ed}.card[data-soft="misc"]{background:#f1eee8}.card[data-soft="calendar"] h2,.card[data-soft] h2{color:#283b34}.card[data-soft] p,.card[data-soft] .muted{color:#52665d}.card[data-soft] .link{color:#314f41}.amount{font-size:26px;font-weight:800;letter-spacing:-.5px;color:#263c32}.mono{font-variant-numeric:tabular-nums}.tiny{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.hflex{display:flex;align-items:center;justify-content:space-between;gap:8px}.eye{border:1px solid #96aa9f;background:#ffffffa8;color:#314a3e;padding:7px 11px;border-radius:20px;min-width:37px;flex-shrink:0}.bar{height:8px;background:#ffffffa0;border-radius:20px;overflow:hidden;margin:11px 0}.bar>div{height:100%;background:var(--accent);border-radius:20px}.link{border:0;background:transparent;padding:11px 0 3px;color:var(--accent);font-weight:700;text-align:left}.action{border:0;background:var(--accent);color:white;border-radius:14px;padding:12px 15px;font-weight:750;min-height:45px}.action.ghost{background:#ffffffb8;color:#294436;border:1px solid #b9cabe}.action.danger{background:#a34248}.action.full{width:100%}.pill{display:inline-flex;background:#ffffffbb;padding:5px 10px;border-radius:20px;color:#405c4d;font-size:12px}.nav{position:fixed;z-index:20;bottom:0;left:0;right:0;background:var(--nav);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:9px 6px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 22px #0000000a}.nav button{border:0;background:transparent;color:#4b6156;padding:5px 0;font-size:12px;font-weight:650;min-height:53px}.nav button strong{display:block;font-size:23px;margin-bottom:4px}.nav button.active{color:var(--accent);background:#6b997514;border-radius:12px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}.sectiontitle h1{font-size:25px;margin:0}.back{border:0;border-radius:12px;background:#e9eee9;color:var(--ink);padding:9px 13px}.field{display:block;margin:11px 0}.field span{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;background:#fff;color:#1f352b;border:1px solid #d4dfd7;border-radius:13px;padding:12px 13px;min-height:46px}.field textarea{min-height:90px;resize:vertical}.rowitem{border-bottom:1px solid #86988a29;padding:11px 0;display:flex;align-items:center;gap:8px}.rowitem:last-child{border:0}.rowitem .main{flex:1;min-width:0}.rowitem strong,.rowitem small{display:block;overflow-wrap:anywhere}.rowitem small{margin-top:4px;color:var(--muted);font-size:12px}.mini{padding:8px 11px;border-radius:11px;border:1px solid #b8cabd;background:#fff;color:#314938}.mini.red{border-color:#d5aaaa;color:#9b3434}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{padding:9px 12px;border:1px solid #cad7cd;background:#fff;border-radius:13px;color:#294638}.tag.selected{background:var(--accent);color:white}.colorchips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.colorchip{border:2px solid transparent;border-radius:16px;padding:10px;text-align:left;font-size:12px;background:white;color:var(--ink);min-height:72px}.colorchip.active{border-color:var(--accent)}.swatch{width:100%;height:24px;border-radius:9px;margin-bottom:7px}.empty{font-size:13px;color:var(--muted);padding:10px 0}.note{font-size:12px;color:var(--muted);line-height:1.7}.divider{border:0;border-top:1px solid #96a89c55;margin:15px 0}#toast{position:fixed;z-index:100;left:50%;transform:translateX(-50%);bottom:calc(93px + env(safe-area-inset-bottom));background:#253b30;color:white;padding:12px 18px;border-radius:16px;box-shadow:0 6px 30px #0002;display:none;max-width:90vw;text-align:center}.footerline{font-size:12px;text-align:center;color:var(--muted);margin:14px 0}body.dark{--bg:#171f21;--ink:#e4ede6;--muted:#aec2b4;--accent:#80b69a;--line:#3a4b43;--card:#26332c;--nav:#202a26;--surface:#30483c;color-scheme:dark}body.dark .card[data-soft]{background:#293f36}body.dark .card[data-soft] h2,body.dark .card[data-soft] .amount{color:#e9f0e9}body.dark .card[data-soft] p,body.dark .card[data-soft] .muted{color:#c0d4c6}body.dark .card[data-soft] .link{color:#c9ead8}body.dark .calday{background:#385046;color:#eef6ef}body.dark .calday.active{background:#d8eada;color:#213e2f}body.dark .eye{background:#3b5447;color:#fff;border-color:#5c7b68}body.dark .field input,body.dark .field select,body.dark .field textarea{background:#1f3127;color:#fff;border-color:#476154}body.dark .tag,body.dark .mini{background:#34493b;color:#f4fff7;border-color:#516e5b}body.dark .colorchip{background:#263b2f;color:#eef3ef}body.dark .action.ghost{background:#435748;color:white}body.dark .back{background:#354a3d;color:white}body.dark .nav button{color:#c6d6c9}body.dark .nav button.active{color:#8ee1ae}@media(max-width:360px){.shell{padding-left:11px;padding-right:11px}.card{padding:15px;border-radius:20px}.amount{font-size:21px}.grid2{gap:8px}.calday{padding:9px 0}}

/* Aura Pastel Edition */
body:not(.dark){background:radial-gradient(ellipse at 85% 0%,#f3e4ff 0,transparent 42%),radial-gradient(ellipse at 5% 65%,#ffece0 0,transparent 52%),#fff8f5;color:#453c50}body:not(.dark) .brand{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-weight:850;color:#453c50;letter-spacing:-1.4px}body:not(.dark) .sub{color:#7f788d;letter-spacing:1.2px}body:not(.dark) .card{border:2px solid #ffffffd9;box-shadow:0 5px 22px #bd92a514;border-radius:27px}body:not(.dark) .card h2,body:not(.dark) .card h3,body:not(.dark) .amount{color:#453c50}body:not(.dark) .card p,body:not(.dark) .tiny,body:not(.dark) .note{color:#6e6578}body:not(.dark) .link{color:#6c507d;font-weight:700}body:not(.dark) .nav{background:#fff9fcee;border-top:1px solid #f2e6ef}body:not(.dark) .nav button{color:#81788d}body:not(.dark) .nav button.active{color:#db769c}body:not(.dark) .calday{background:#ffffffa6;color:#453c50}body:not(.dark) .calday.active{background:#df88a9;color:#fff}body:not(.dark) .action{background:#e18aaa;color:#fff}body:not(.dark) .action.ghost{background:#fff9fc;color:#5b4961;border:1px solid #e9dce7}body:not(.dark) .mini,body:not(.dark) .tag{background:#ffffffc9;color:#453c50;border-color:#e9dce7}body:not(.dark) .bar{background:#ffffffb3}body:not(.dark) .bar>div{background:#dd91b1}body:not(.dark) .field input,body:not(.dark) .field select,body:not(.dark) .field textarea{background:#fffdff;color:#453c50;border-color:#eadfe7}body:not(.dark) .eye{color:#5b4961}.habit-row{padding:14px 0;border-bottom:1px solid #ffffffc7}.habit-row:last-child{border-bottom:0}.habit-row .hflex{gap:7px;flex-wrap:wrap}.habit-row .mini{font-size:12px;padding:8px 10px}.rowitem{gap:7px}.rowitem .mini{flex-shrink:0}body:not(.dark) .card[data-soft="calendar"]{background:#f1e7fc}body:not(.dark) .card[data-soft="limit"]{background:#e5f0ff}body:not(.dark) .card[data-soft="todo"]{background:#f2e8ff}body:not(.dark) .card[data-soft="record"]{background:#e5f0ff}

/* Aura refined compact layout · v3 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:14px;line-height:1.5}
.shell{padding:calc(12px + env(safe-area-inset-top)) 14px calc(88px + env(safe-area-inset-bottom));width:100%;max-width:620px;overflow-x:clip}
.top{margin-bottom:14px}.brand{font-size:28px}.sub{font-size:10px;letter-spacing:1.1px}
.round{width:40px;height:40px;font-size:19px;border-radius:13px}
.card{padding:15px!important;margin-bottom:11px;border-radius:20px!important;min-width:0;max-width:100%;overflow:hidden;box-shadow:0 3px 12px #5542570b!important}
.card h2{font-size:16px;line-height:1.35;margin:0 0 11px}.card h3{font-size:14px}
.card p{font-size:13px;line-height:1.55;margin:6px 0}
.amount{font-size:22px}.tiny,.note{font-size:11px!important}
.grid2{gap:10px;min-width:0}.grid2>*{min-width:0}
.hflex{min-width:0}.hflex>*{min-width:0}
.field{width:100%;max-width:100%;margin:9px 0}.field input,.field select,.field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:41px;padding:10px 11px;font-size:14px;border-radius:12px}
.card form,.card form>*{max-width:100%;min-width:0}
.action{min-height:41px;padding:10px 12px;font-size:13px;border-radius:12px}
.action.full{width:100%}.link{font-size:13px;padding:9px 0 3px}
.rowitem{gap:5px;padding:9px 0;min-width:0;flex-wrap:wrap}.rowitem .main{flex:1 1 90px;min-width:0}.rowitem strong{font-size:13px}.mini{font-size:12px;padding:7px 9px;min-height:34px;white-space:normal}
.habit-row .hflex{justify-content:flex-start;gap:6px}.habit-row .hflex:first-child{justify-content:space-between}
.caldays{gap:3px}.calday{padding:7px 0;border-radius:10px}.calday span{font-size:13px}.calday small{font-size:10px;margin-bottom:4px}
.nav{padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.nav button{min-height:47px;font-size:11px;padding:3px 0}.nav button strong{font-size:19px;margin-bottom:1px}
.sectiontitle h1{font-size:21px}.sectiontitle{margin:3px 0 12px}
.colorchips{gap:6px}.colorchip{padding:7px;min-height:62px;font-size:11px}
.review-intro{margin-bottom:13px!important}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.review-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:13px 12px;border-radius:14px;background:#ffffffa8;color:#453c50}.review-stat span{font-size:12px;color:#776b80}.review-stat strong{font-size:19px;font-weight:750;letter-spacing:-.3px;overflow-wrap:anywhere}.review-stat small{font-size:11px;color:#81768a}.review-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-money>div{display:flex;flex-direction:column;gap:6px}.review-money small{font-size:11px}.review-money strong{font-size:20px;overflow-wrap:anywhere}.review-progress{margin:12px 0}.review-progress .hflex{font-size:13px}
body.dark .review-stat{background:#3b4c42;color:#e9f0e9}body.dark .review-stat span,body.dark .review-stat small{color:#c1d1c5}
@media(max-width:390px){.shell{padding-left:12px;padding-right:12px}.card{padding:13px!important}.grid2{gap:8px}.review-stat{padding:11px 9px}.review-stat strong{font-size:17px}}

/* Aura Life OS · petite layout, consistent geometry */
:root{--aura-space:10px}
body{font-size:13px;line-height:1.42}
.shell{max-width:540px;padding:calc(9px + env(safe-area-inset-top)) 12px calc(77px + env(safe-area-inset-bottom));overflow-x:hidden}
.top{margin-bottom:10px}.brand{font-size:25px}.sub{font-size:10px}.round{width:36px;height:36px;font-size:17px}
.card,body:not(.dark) .card{padding:12px!important;margin-bottom:9px;border-radius:17px!important;border:1px solid rgba(255,255,255,.75)!important;box-shadow:0 2px 9px rgba(77,52,78,.055)!important;overflow:hidden;min-width:0}
.card h2{font-size:15px;margin:0 0 9px;line-height:1.3}.card h3{font-size:13px;margin:0 0 7px}.card p{font-size:12px;line-height:1.42;margin:4px 0}.amount{font-size:20px;line-height:1.2}.tiny,.note{font-size:11px!important;line-height:1.5}
.grid2{gap:8px}.grid2 .card{margin-bottom:0}.stack{gap:8px}.hflex{gap:6px;min-width:0}.hflex>*{min-width:0}
.caldays{gap:3px}.calday{padding:6px 0;border-radius:9px}.calday small{font-size:9px;margin-bottom:3px}.calday span{font-size:12px}
.bar{height:5px;margin:7px 0}.eye{min-width:29px;padding:4px 6px;font-size:12px;border-radius:50%}
.field{margin:7px 0;min-width:0;max-width:100%}.field span{font-size:12px;margin-bottom:4px}.field input,.field select,.field textarea{width:100%;max-width:100%;min-width:0;min-height:36px;padding:7px 9px;font-size:13px;border-radius:10px;border-width:1px}.field textarea{min-height:64px}
.card form,.card form>*,.card section,.card article{min-width:0;max-width:100%}
.action{min-height:36px;padding:8px 11px;border-radius:10px;font-size:12px}.link{font-size:12px;padding:6px 0 1px}.back{font-size:12px;padding:7px 10px;border-radius:10px}
.sectiontitle{margin:1px 0 10px}.sectiontitle h1{font-size:19px}.rowitem{padding:7px 0;gap:5px}.rowitem strong{font-size:12px}.rowitem small{font-size:11px}.mini{padding:6px 8px;font-size:11px;min-height:30px;border-radius:9px}.habit-row{padding:9px 0}.tag{padding:6px 9px;font-size:12px;border-radius:10px}.pill{font-size:11px;padding:4px 7px}
.nav{padding:4px 5px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px #00000008}.nav button{font-size:10px;min-height:42px;padding:2px 0}.nav button strong{font-size:17px;margin-bottom:0}.nav button.active{border-radius:10px}
.review-grid{gap:7px}.review-stat{padding:9px;border-radius:11px}.review-stat span{font-size:11px}.review-stat strong{font-size:17px}.review-money{gap:7px}.review-money strong{font-size:17px}
body:not(.dark) .card[data-soft="calendar"]{background:#f1e7fc}body:not(.dark) .card[data-soft="budget"]{background:#e4edfa}body:not(.dark) .card[data-soft="fund"]{background:#e6f4e9}body:not(.dark) .card[data-soft="back"]{background:#fff0cc}body:not(.dark) .card[data-soft="todo"]{background:#fce8ed}
@media(max-width:390px){.shell{padding-left:10px;padding-right:10px}.card,body:not(.dark) .card{padding:11px!important;border-radius:15px!important}.grid2{gap:7px}.amount{font-size:19px}}


/* V5: real spacing and iPhone form geometry fixes */
.shell { display: flow-root; }
.shell > .grid2 { margin: 0 0 14px !important; align-items: stretch; }
.shell > .grid2 + .card { margin-top: 0 !important; }
.grid2 > .card { margin: 0 !important; height: 100%; }
.shell > .card { margin-bottom: 14px !important; }
.shell > .card + .card { margin-top: 0 !important; }
.shell > .grid2 + .card,
.shell > .card + .grid2 { margin-top: 0 !important; }
.card { position: relative; isolation: isolate; }
.card .grid2 { gap: 10px; margin: 10px 0; }
.card .grid2 > .action { width: 100%; min-width: 0; }
.card .field, .card label, .card form { min-width: 0; max-width: 100%; }
.card input, .card select, .card textarea {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.card input[type="date"], .card input[type="time"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}
.card input::-webkit-date-and-time-value { min-width: 0; text-align: center; }
.card input::-webkit-datetime-edit { min-width: 0; }
body:not(.dark) .card { border: 1px solid rgba(255,255,255,.8) !important; }
@media(max-width:390px) {
 .shell > .grid2 { gap: 10px; margin-bottom: 13px !important; }
 .shell > .card { margin-bottom: 13px !important; }
 .card { padding: 12px !important; }
}

/* V6: consistent compact cards across all sections */
.shell {padding-left:12px!important;padding-right:12px!important;}
.top {margin-bottom:8px!important;}
.shell > .card, .shell > .grid2 {margin-bottom:12px!important;}
.shell > .grid2 {gap:10px!important;}
.card,body:not(.dark) .card {padding:11px 12px!important;border-radius:16px!important;box-shadow:0 1px 6px rgba(75,55,74,.045)!important;}
.card h2 {font-size:15px!important;line-height:1.25!important;margin-bottom:7px!important;}
.card h3 {font-size:13px!important;margin-bottom:6px!important;}
.card p {font-size:12px!important;line-height:1.38!important;margin:3px 0!important;}
.amount {font-size:19px!important;}
.bar {height:4px!important;margin:6px 0!important;}
.link {font-size:12px!important;padding:5px 0 0!important;line-height:1.3!important;}
.eye {min-width:30px!important;padding:5px 7px!important;}
.card .hflex {gap:5px!important;}
.card .grid2 {gap:9px!important;margin:8px 0!important;}
.card .field {margin:6px 0!important;}
.card .field span {font-size:12px!important;margin-bottom:3px!important;}
.card .field input,.card .field select,.card .field textarea {padding:7px 9px!important;min-height:39px!important;border-radius:10px!important;font-size:13px!important;max-width:100%!important;}
.card .field textarea {min-height:60px!important;}
.action {padding:8px 10px!important;min-height:40px!important;font-size:12px!important;}
.rowitem {padding:6px 0!important;}
.habit-row {padding:8px 0!important;}
.sectiontitle {margin-bottom:9px!important;}
.sectiontitle h1 {font-size:19px!important;}
.caldays {gap:3px!important;}
.calday {padding:5px 0!important;}
.calday small {margin-bottom:1px!important;}
.card[data-soft="budget"],.card[data-soft="fund"] {align-self:stretch;}
.nav {padding-top:4px!important;}
@media (max-width:390px){.shell{padding-left:10px!important;padding-right:10px!important}.card,body:not(.dark) .card{padding:10px!important}.shell > .grid2{gap:9px!important}}

/* V7 · refined petite mobile layout */
html,body{width:100%;overflow-x:hidden}
body{font-size:13px;line-height:1.45}
.shell{max-width:500px;padding-left:14px!important;padding-right:14px!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
.shell > .card,.shell > .grid2{margin-bottom:13px!important}
.shell > .grid2{gap:12px!important;align-items:stretch}
.shell > .grid2 > .card{height:100%;margin:0!important}
.card,body:not(.dark) .card{border-radius:17px!important;padding:13px!important;box-shadow:0 2px 9px rgba(74,52,78,.05)!important;border:1px solid rgba(255,255,255,.88)!important;overflow:hidden}
.card h2{font-size:15px!important;letter-spacing:0!important;margin-bottom:9px!important}
.card h3{font-size:13px!important;margin-bottom:7px!important}
.card p{font-size:12px!important;line-height:1.5!important;margin:5px 0!important}
.card .amount{font-size:20px!important;letter-spacing:-.4px}
.card .field{margin:8px 0!important}
.card .field input,.card .field select,.card .field textarea{border-radius:11px!important;min-height:38px!important;font-size:13px!important;padding:8px 10px!important}
.card .field textarea{min-height:64px!important}
.card .grid2{gap:9px!important;margin:9px 0!important}
.card .hflex{align-items:center;gap:8px!important}
.action{min-height:38px!important;border-radius:11px!important;font-size:12px!important;padding:8px 10px!important}
.link{font-size:12px!important;line-height:1.5!important;padding:7px 0 1px!important}
.rowitem{padding:8px 0!important}
.eye{min-width:32px!important;min-height:32px;padding:5px!important}
.caldays{gap:4px!important}.calday{padding:7px 0!important;border-radius:10px!important}
.nav{min-height:57px;padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important}
.nav button{min-height:43px!important;font-size:10px!important;padding:3px 0!important}
.nav button strong{font-size:17px!important;margin-bottom:1px!important}
/* Consistent breathing room between the two budget cards and spine card */
.shell > .grid2 + .card{margin-top:0!important}
/* Avoid iOS date/time controls overflowing rounded cards */
.card input[type=date],.card input[type=time]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;-webkit-appearance:none;appearance:none;text-align:center}
.card input::-webkit-date-and-time-value{text-align:center;min-width:0}
/* Ensure readability across pastel and dark themes */
body:not(.dark) .card[data-soft] .link,body:not(.dark) .card[data-soft] .muted{color:#465c55}
body:not(.dark) .card[data-soft] .action.ghost{color:#32483e}
@media(max-width:390px){.shell{padding-left:12px!important;padding-right:12px!important}.card,body:not(.dark) .card{padding:12px!important}.shell > .grid2{gap:10px!important}}

/* V8 · compact, balanced pastel reference layout */
:root{--accent:#e681aa;--ink:#3d3448;--muted:#776f80;--bg:#fff7f7;--ring:#e8a6c1}
html,body{overflow-x:clip!important}
body{font-size:13px!important;background:radial-gradient(ellipse at 85% 3%,#f3e7ff 0,transparent 33%),radial-gradient(ellipse at 0 75%,#ffefe7 0,transparent 35%),var(--bg)!important;color:var(--ink)!important}
.shell{max-width:480px!important;padding:calc(13px + env(safe-area-inset-top)) 12px calc(82px + env(safe-area-inset-bottom))!important}
.top{margin-bottom:12px!important}.brand{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif!important;font-size:25px!important;font-weight:800!important;letter-spacing:-.8px!important}.sub{font-size:10px!important;letter-spacing:1.1px!important}.round{width:37px!important;height:37px!important;border-radius:12px!important;font-size:18px!important}
.shell>.card,.shell>.grid2{margin-bottom:11px!important}.shell>.grid2{gap:9px!important}
.card,body:not(.dark) .card{border-radius:19px!important;padding:12px!important;margin-bottom:11px!important;border:1.5px solid rgba(255,255,255,.96)!important;box-shadow:0 3px 11px #886e8610!important;overflow:hidden!important;min-width:0!important}
.card h2{font-size:14px!important;margin:0 0 9px!important;line-height:1.35!important}.card h3{font-size:12px!important;margin:0 0 7px!important}
.card p{font-size:11.5px!important;margin:5px 0!important;line-height:1.45!important}.card .amount{font-size:19px!important}.tiny,.note{font-size:10.5px!important}
.card .grid2{gap:8px!important;margin:8px 0!important}.card .field{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:7px 0!important}.card .field span:first-child{display:block;font-size:11px!important;font-weight:650;margin-bottom:4px!important}
.card input,.card select,.card textarea,.card .field input,.card .field select,.card .field textarea{display:block!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;font-size:13px!important;min-height:36px!important;padding:7px 10px!important;border-radius:11px!important}
.card .field textarea{min-height:54px!important}
.card form,.card .stack,.card .grid2,.card .hflex{min-width:0!important;max-width:100%!important}.card form>*{min-width:0!important;max-width:100%!important}
.date-input-wrap{display:block!important;position:relative!important;min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden!important;border-radius:11px!important}.date-input-wrap input{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;-webkit-appearance:none!important;appearance:none!important;line-height:20px!important;text-align:left!important;overflow:hidden!important}.date-input-wrap input::-webkit-date-and-time-value{text-align:left!important;min-width:0!important}.date-input-wrap input::-webkit-datetime-edit{min-width:0!important;max-width:100%!important;padding:0!important}
.action{min-height:35px!important;padding:7px 10px!important;font-size:12px!important;border-radius:11px!important}.link{font-size:11.5px!important;padding:5px 0 0!important}.eye{min-width:29px!important;min-height:29px!important}.bar{height:5px!important;margin:7px 0!important}
.caldays{gap:4px!important}.calday{padding:6px 0!important;border-radius:10px!important}.calday small{font-size:10px!important;margin-bottom:1px!important}.calday span{font-size:13px!important}
.sectiontitle{margin:0 0 12px!important}.sectiontitle h1{font-size:21px!important}.back{font-size:12px!important;padding:7px 10px!important;border-radius:12px!important}
.nav{background:rgba(255,250,252,.96)!important;backdrop-filter:blur(16px);border-top:1px solid #f1e7ef!important;min-height:56px!important;padding:4px 6px calc(5px + env(safe-area-inset-bottom))!important}.nav button{font-size:10px!important;min-height:44px!important;border-radius:11px!important}.nav button strong{font-size:17px!important}
.type-pills{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important;padding:4px!important;background:#f9eaf1;border-radius:13px;margin:2px 0 9px!important}.type-pill{border:0;border-radius:10px;background:#fff9fc;color:#55495b;font-weight:650;padding:8px 5px;font-size:12px}.type-pill.active{background:#e681aa;color:white;box-shadow:0 2px 7px #c47b9e30}
.lumbar-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0 12px}.lumbar-trio>div{min-width:0;text-align:center;padding:10px 3px;border:1px solid #ffffffbb;border-radius:12px;background:#fff8f1}.lumbar-trio>div:nth-child(2){background:#e7f7ef}.lumbar-trio>div:nth-child(3){background:#e9efff}.lumbar-trio span{display:block;font-size:11px}.lumbar-trio strong{display:block;font-size:14px;font-variant-numeric:tabular-nums;margin-top:5px}
.shell[data-page="记账"] .card:first-of-type{padding:12px!important}.shell[data-page="待办"] .card .rowitem{gap:5px!important}
body:not(.dark) .card[data-soft="calendar"]{background:#f1e8ff!important}body:not(.dark) .card[data-soft="budget"]{background:#e5efff!important}body:not(.dark) .card[data-soft="fund"]{background:#e7f6ed!important}body:not(.dark) .card[data-soft="back"]{background:#fff1d8!important}body:not(.dark) .card[data-soft="todo"]{background:#ffe8ee!important}body:not(.dark) .card[data-soft="record"]{background:#e8f2ff!important}body:not(.dark) .card[data-soft="goal"]{background:#f9e8f1!important}body:not(.dark) .card[data-soft="misc"]{background:#fff9fc!important}
body:not(.dark) .card[data-soft] .link{color:#3c594b!important}body:not(.dark) .card[data-soft] .muted{color:#625a69!important}
@media(max-width:390px){.shell{padding-left:10px!important;padding-right:10px!important}.card,body:not(.dark) .card{padding:10px!important}.shell>.grid2{gap:8px!important}}

/* V9: Prevent Safari auto-zoom while retaining compact visual controls */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea,.card input,.card select,.card textarea,.card .field input,.card .field select,.card .field textarea{font-size:16px!important}
input[type="date"],input[type="time"],input[type="datetime-local"]{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.weight-chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.weight-chart{display:block;width:100%;height:auto;max-width:100%;min-height:170px}
.weight-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.weight-summary>div{background:#ffffff9c;border:1px solid #ffffffd9;border-radius:11px;padding:9px 10px;min-width:0}
.weight-summary small{display:block;color:#726a79;font-size:11px;margin-bottom:3px}
.weight-summary strong{font-size:14px;font-variant-numeric:tabular-nums}
.weight-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;margin:4px 0 8px}
.weight-legend span:first-child{color:#d56798}.weight-legend span:nth-child(2){color:#438f79}

/* V10 theme switch: override fixed pastel card backgrounds */
body{background:var(--bg)!important;color:var(--ink)!important}
body .card[data-soft]{background-color:var(--soft-misc)!important;color:var(--ink)!important}
body .card[data-soft="calendar"]{background-color:var(--soft-calendar)!important}
body .card[data-soft="budget"]{background-color:var(--soft-budget)!important}
body .card[data-soft="fund"]{background-color:var(--soft-fund)!important}
body .card[data-soft="back"]{background-color:var(--soft-back)!important}
body .card[data-soft="todo"]{background-color:var(--soft-todo)!important}
body .card[data-soft="record"]{background-color:var(--soft-record)!important}
body .card[data-soft="weight"]{background-color:var(--soft-weight)!important}
body .card[data-soft="limit"]{background-color:var(--soft-limit)!important}
body .card[data-soft="goal"]{background-color:var(--soft-goal)!important}
body .card[data-soft="study"]{background-color:var(--soft-study)!important}
body .card[data-soft="misc"]{background-color:var(--soft-misc)!important}
body:not(.dark) .card[data-soft]{color:#383747!important}
body.dark .card[data-soft]{color:#f3f4f8!important;border-color:#ffffff22!important}
body.dark .card[data-soft] p,body.dark .card[data-soft] small{color:#d6dce6!important}
body.dark .nav{background:#222b3a!important;color:#f4f3f8}
body.dark .field input,body.dark .field select,body.dark .field textarea{color:#202a36;background:#f7f8fc}
.field input,.field select,.field textarea{font-size:16px!important}

/* Aura V12: consistent theme tokens and compact analytics */
.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.insight-grid>div{background:color-mix(in srgb,var(--card) 75%,transparent);border:1px solid color-mix(in srgb,var(--accent) 14%,transparent);border-radius:12px;padding:10px;min-width:0}.insight-grid small{display:block;font-size:11px;opacity:.76}.insight-grid strong{display:block;font-size:15px;overflow-wrap:anywhere;margin-top:4px}.insight-line{display:grid;grid-template-columns:70px minmax(0,1fr) 88px;gap:8px;align-items:center;margin:10px 0;font-size:12px}.insight-line strong{text-align:right;font-size:12px}.insight-track{height:7px;border-radius:9px;background:color-mix(in srgb,var(--accent) 12%,transparent);overflow:hidden}.insight-track i{display:block;height:100%;background:var(--accent);border-radius:9px}.week-chart{height:156px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;margin:12px 0}.week-col{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.week-col small{font-size:9px;white-space:nowrap}.week-bars{height:120px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.week-bars i{width:10px;min-height:1px;border-radius:5px 5px 0 0}.week-sit{background:#9a84c2}.week-move{background:#4aab87}.habit-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:14px 0}.habit-calendar>small{text-align:center;font-size:11px}.habit-day{aspect-ratio:1;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:color-mix(in srgb,var(--card) 65%,transparent);font-size:12px}.habit-day small{font-size:9px}.habit-day.partial{background:color-mix(in srgb,var(--accent) 18%,white)}.habit-day.complete{background:#b5e5cf;color:#194d39}.card h2,.card h3,.card strong{overflow-wrap:anywhere}.field input,.field select,.field textarea{font-size:16px!important;min-width:0;max-width:100%}body.dark .insight-grid>div,body.dark .habit-day{background:#ffffff13}body.dark .habit-day.complete{background:#326a53;color:white}


/* V13: compact lifestyle modules */
.tool-links{display:flex;gap:7px;flex-wrap:wrap}.tool-links .mini{flex:1;min-width:68px;white-space:nowrap}
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hub-tile{border:1px solid #b6a3b433;background:#ffffffb5;color:var(--ink);padding:14px 9px;text-align:left;border-radius:14px;font-size:13px;min-height:62px}.hub-tile span{float:right;opacity:.5}
.mini-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:10px 0}.mini-day{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;border-radius:11px;min-width:0;min-height:61px;background:#ffffffa5}.mini-day small{font-size:9px;white-space:nowrap}.mini-day strong{font-size:18px}.mini-day.marked{background:#cce9d6;color:#265d3e}.wrap-note{white-space:normal;overflow-wrap:anywhere}.focus-clock{text-align:center;font-weight:750;font-size:46px;line-height:1.3;letter-spacing:2px;font-variant-numeric:tabular-nums;color:var(--accent);padding:8px}.audit-item{font-size:12px;padding:5px 0;border-bottom:1px solid #80808020;overflow-wrap:anywhere}
.field textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:16px!important;border-radius:12px;padding:11px;border:1px solid #adb0be55;background:#fff;color:#2f3040}
@media(max-width:390px){.hub-tile{font-size:12px;padding:12px 8px}.mini-day small{font-size:8px}}

/* V14: coherent contrast and true background + panel palettes */
html{background:var(--bg)!important}
body,body:not(.dark){background:var(--bg)!important;color:var(--ink)!important}
body .brand,body:not(.dark) .brand{color:var(--ink)!important}
body .sub,body:not(.dark) .sub,body .note,body .tiny{color:var(--muted)!important}
body .nav,body:not(.dark) .nav,body.dark .nav{background:var(--nav)!important;border-top:1px solid var(--line)!important}
body .nav button,body:not(.dark) .nav button,body.dark .nav button{color:var(--muted)!important}
body .nav button.active,body:not(.dark) .nav button.active,body.dark .nav button.active{color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 14%,transparent)!important}
body .card[data-soft],body:not(.dark) .card[data-soft],body.dark .card[data-soft]{color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:0 2px 12px #1118270d!important}
body .card[data-soft] h2,body .card[data-soft] h3,body .card[data-soft] .amount,body .card[data-soft] strong{color:var(--ink)!important}
body .card[data-soft] p,body .card[data-soft] small,body .card[data-soft] .muted{color:var(--muted)!important}
body .card[data-soft] .link,body:not(.dark) .card[data-soft] .link,body.dark .card[data-soft] .link{color:var(--accent)!important}
body .action:not(.ghost):not(.danger),body:not(.dark) .action:not(.ghost):not(.danger){background:var(--accent)!important;color:#fff!important}
body .action.ghost,body:not(.dark) .action.ghost{background:var(--card)!important;color:var(--ink)!important;border:1px solid var(--line)!important}
body .bar>div,body:not(.dark) .bar>div{background:var(--accent)!important}
body .calday.active,body:not(.dark) .calday.active{background:var(--accent)!important;color:#fff!important}
body .tag.selected,body:not(.dark) .tag.selected{background:var(--accent)!important;color:white!important}
body .colorchip.active,body:not(.dark) .colorchip.active{border-color:var(--accent)!important}
body .type-pill.active,body:not(.dark) .type-pill.active{background:var(--accent)!important;color:white!important}
body .type-pills{background:var(--surface)!important}
body .type-pill,body .mini,body .tag,body .hub-tile{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
body .type-pill.active{background:var(--accent)!important;color:white!important}
body .field input,body .field select,body .field textarea{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important;font-size:16px!important}
body .pill,body .weight-summary>div,body .insight-grid>div,body .review-stat,body .mini-day{background:color-mix(in srgb,var(--card) 78%,transparent)!important;color:var(--ink)!important}
body .focus-clock{color:var(--accent)!important}
body.dark .card[data-soft] p,body.dark .card[data-soft] small,body.dark .card[data-soft] .muted{color:var(--muted)!important}
body.dark .action:not(.ghost):not(.danger){color:#111820!important}
body.dark .calday{background:#ffffff17!important;color:#eef2fb!important}
body.dark .calday.active{background:var(--accent)!important;color:#101822!important}
body.dark .action.ghost{background:#ffffff19!important;color:var(--ink)!important}
body.dark .weight-summary small,body.dark .review-stat span,body.dark .review-stat small,body.dark .mini-day small{color:var(--muted)!important}
body.white-theme .card[data-soft]{border-color:#d9e0ea!important;box-shadow:0 2px 10px #142b4611!important}
body.white-theme .colorchip{border-color:#e6eaf0}
body.white-theme .colorchip.active{border-color:var(--accent)!important}
body.white-theme .nav{box-shadow:0 -4px 16px #1e35500c!important}
