/* DJIVA V2 design-system layer — 2026-09-14
   Isolated final layer. Safe to disable by removing its <link> from index.html. */
:root{
  --gu-space-1:4px;--gu-space-2:8px;--gu-space-3:12px;--gu-space-4:16px;
  --gu-space-5:20px;--gu-space-6:24px;--gu-space-8:32px;
  --gu-radius-sm:10px;--gu-radius-md:14px;--gu-radius-lg:18px;--gu-radius-xl:22px;
  --gu-brand:#f5a524;--gu-brand-strong:#d98200;
  --gu-info:#3478d4;--gu-positive:#159447;--gu-negative:#d94141;--gu-forecast:#795bd6;
  --gu-focus:0 0 0 3px rgba(52,120,212,.18);
  --gu-control-h:44px;
  --bg:#0b0f14;--surface:#171e2a;--surface-2:#1c2532;--surface-3:#27323f;
  --line:#303d51;--tx:#f4f7fb;--mu:#7c8798;
  --brand:var(--gu-brand);--positive:#22c55e;--negative:#ef4444;--info:#6ea8ff;
}
html[data-theme="light"]{
  --bg:#f4f6f9;--surface:#ffffff;--surface-2:#f7f9fc;--surface-3:#edf1f6;
  --line:#dce3ec;--tx:#18212e;--mu:#5f6f82;
  --bl:var(--gu-info);--gr:var(--gu-positive);--rd:var(--gu-negative);--am:var(--gu-brand);
  --brand:var(--gu-brand-strong);--positive:var(--gu-positive);--negative:var(--gu-negative);--info:var(--gu-info);
  --vio:var(--gu-forecast);--shadow:0 10px 28px rgba(26,39,56,.07);
}
html[data-theme="light"] body{
  color:var(--tx);background:var(--bg);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
html[data-theme="light"] .card,
html[data-theme="light"] .gcard{
  background:var(--surface)!important;
  border-color:rgba(117,132,151,.22)!important;
  border-radius:var(--gu-radius-lg)!important;
  box-shadow:none!important;
}
html[data-theme="light"] .lbl,
html[data-theme="light"] .sub{color:var(--mu)!important}
html[data-theme="light"] .h1{color:var(--tx)!important;letter-spacing:-.025em!important}
html[data-theme="light"] button,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{min-height:var(--gu-control-h)}
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] input:focus-visible,
html[data-theme="light"] select:focus-visible,
html[data-theme="light"] textarea:focus-visible{outline:none!important;box-shadow:var(--gu-focus)!important}
html[data-theme="light"] .v2-pro{
  background:var(--gu-brand)!important;border-color:var(--gu-brand)!important;
  color:#2a1900!important;box-shadow:none!important;
}
html[data-theme="light"] .btn{
  background:var(--gu-brand)!important;color:#2a1900!important;
  border:0!important;box-shadow:none!important;border-radius:var(--gu-radius-md)!important;
}
html[data-theme="light"] .btn2{
  background:var(--surface-3)!important;color:var(--tx)!important;
  border:1px solid rgba(117,132,151,.24)!important;box-shadow:none!important;
  border-radius:var(--gu-radius-md)!important;
}
html[data-theme="light"] .row{border-color:rgba(117,132,151,.20)!important}
html[data-theme="light"] .bar{background:#e7ecf2!important}
html[data-theme="light"] .v2-nav button.on{background:var(--surface-3)!important;color:var(--tx)!important}
html[data-theme="light"] .v2-nav button.on .v2-icon{color:var(--gu-info)!important}
html[data-theme="light"] .v2-diary-home-title{color:var(--tx)!important}
html[data-theme="light"] .v2-diary-home-text{color:var(--mu)!important}
html[data-theme="light"] .v2-diary-home-meta{color:#43546a!important}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* ===== TODAY reference design: LIGHT theme only ===== */
html[data-theme="light"] .screen-body:has(.gu-home-light){padding-top:0!important;background:linear-gradient(180deg,#f8fbff 0,#f4f7fb 100%)}
html[data-theme="light"] .v2-top-home{background:rgba(250,252,255,.92)!important;box-shadow:none!important}
html[data-theme="light"] .v2-top-home .v2-pro.on{background:linear-gradient(135deg,#ffe2aa,#ffc461)!important;color:#2b1b09!important;border:0!important;box-shadow:0 7px 20px rgba(239,157,26,.14)!important}
html[data-theme="light"] .gu-home-light{--home-blue:#2f7df4;--home-orange:#ffa91f;--home-ink:#132039;--home-muted:#667995}
html[data-theme="light"] .gu-home-light .gu-hero{position:relative;min-height:170px;margin:0 -12px 10px;padding:22px 14px 20px;overflow:hidden;background:linear-gradient(145deg,#fbfdff 0%,#eef7ff 55%,#effbf5 100%)}
html[data-theme="light"] .gu-home-light .gu-hero-copy{position:relative;z-index:3}
html[data-theme="light"] .gu-home-light .gu-hero .v2-title{font-size:30px!important;line-height:1.08!important;color:var(--home-ink)!important}
html[data-theme="light"] .gu-home-light .gu-hero-copy p{margin:8px 0 0;color:var(--home-muted);font-size:15px;line-height:1.5;font-weight:500}
html[data-theme="light"] .gu-home-light .gu-mountain{position:absolute;right:-14px;bottom:-4px;width:49%;height:120px;opacity:.92}
html[data-theme="light"] .gu-home-light .gu-mountain:before,html[data-theme="light"] .gu-home-light .gu-mountain:after{content:"";position:absolute;bottom:0;border-radius:60% 60% 0 0}
html[data-theme="light"] .gu-home-light .gu-mountain:before{right:0;width:100%;height:86px;background:linear-gradient(145deg,#cfe6ff,#87c7d7)}
html[data-theme="light"] .gu-home-light .gu-mountain:after{right:10%;width:72%;height:112px;background:linear-gradient(145deg,#dfeaff,#8db9de);clip-path:polygon(50% 0,100% 100%,0 100%)}
html[data-theme="light"] .gu-home-light .gu-mountain i{position:absolute;z-index:2;right:42%;bottom:4px;width:7px;height:103px;background:#fff2a9;transform:rotate(17deg);border-radius:999px}
html[data-theme="light"] .gu-home-light .gu-mountain b{position:absolute;z-index:3;right:34%;top:-2px;color:#f39b13;font-size:25px}
html[data-theme="light"] .gu-home-light .gu-quote{position:absolute;z-index:4;right:12%;bottom:18px;padding:9px 12px;border-radius:16px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(63,90,125,.10);font-size:11px;line-height:1.35;color:#25334b;font-weight:650}
html[data-theme="light"] .gu-home-light .v2-next-action{display:grid!important;grid-template-columns:70px minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;padding:16px!important;border:0!important;border-radius:22px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 10px 30px rgba(48,72,104,.10)!important}
html[data-theme="light"] .gu-home-light .gu-action-icon{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#fff2d4,#ffd58d);color:#ef9500;font-size:42px;font-weight:900}
html[data-theme="light"] .gu-home-light .gu-action-copy{min-width:0}
html[data-theme="light"] .gu-home-light .v2-next-action .v2-action-k{color:#e79500!important;font-size:11px!important;letter-spacing:.12em!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:20px!important;margin:3px 0 4px!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:13px!important;margin:0!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{min-width:136px!important;padding:12px 15px!important;border-radius:16px!important;background:linear-gradient(145deg,#ffb52e,#ff9f0b)!important;box-shadow:0 7px 16px rgba(255,166,20,.22)!important}
html[data-theme="light"] .gu-home-light .gu-review-shell{position:relative;margin-top:24px}
html[data-theme="light"] .gu-home-light .gu-review-shell .gi-wrap{margin:0!important}
html[data-theme="light"] .gu-home-light .gi-head{padding-right:130px!important;min-height:42px!important}
html[data-theme="light"] .gu-home-light .gi-head h2{font-size:26px!important;color:var(--home-ink)!important}
html[data-theme="light"] .gu-home-light .gi-head .gi-period{font-size:12px!important;color:#8494aa!important}
html[data-theme="light"] .gu-home-light .gi-card{border:0!important;border-radius:22px!important;background:#fff!important;box-shadow:0 10px 30px rgba(48,72,104,.08)!important;padding:18px!important}
html[data-theme="light"] .gu-home-light .gi-signal{background:transparent!important;border:0!important;padding:6px 0!important}
html[data-theme="light"] .gu-home-light .gi-ai{background:#f6f9ff!important;border:0!important;border-radius:16px!important}
html[data-theme="light"] .gu-home-light .gi-next{background:#f7f9fc!important;border:0!important}
html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu{position:absolute;z-index:3;top:0;right:0;width:auto!important;min-width:118px!important;margin:0!important;padding:9px 12px!important;border:1px solid #e7eaf3!important;background:#fff!important;box-shadow:0 5px 18px rgba(42,65,95,.07)!important}
html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu>span:first-child,html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu>b{display:none!important}
html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu small{display:block!important;margin:0!important;font-size:12px!important;color:#7661b8!important;font-weight:700!important}
html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu span:last-child{display:block!important;color:#55708f!important;margin-left:6px!important}
html[data-theme="light"] .gu-home-light .gu-progress .gp-head{display:flex!important;align-items:center!important;justify-content:space-between!important}
html[data-theme="light"] .gu-home-light .gu-progress .gp-head h2{font-size:26px!important;color:var(--home-ink)!important}
html[data-theme="light"] .gu-home-light .gu-progress-card{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(48,72,104,.08)!important;background:#fff!important}
html[data-theme="light"] .gu-home-light .gu-progress-now{padding:18px 18px 16px;border-right:1px solid #e9eef5}
html[data-theme="light"] .gu-home-light .gu-progress-now strong{display:block;font-size:52px;line-height:1;margin:9px 0 2px;color:var(--home-ink)}
html[data-theme="light"] .gu-home-light .gu-week-bars{display:flex;align-items:end;justify-content:space-around;gap:7px;padding:18px 12px 15px}
html[data-theme="light"] .gu-home-light .gp-day{height:116px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
html[data-theme="light"] .gu-home-light .gp-day i{display:block;width:100%;max-width:28px;min-height:14px;border-radius:9px 9px 5px 5px;background:linear-gradient(180deg,#b9d3ff,#dce9ff)}
html[data-theme="light"] .gu-home-light .gp-day i.today{background:linear-gradient(180deg,#2e7df6,#5eb4ff)}
html[data-theme="light"] .gu-home-light .v2-improve-block{display:none!important}
@media(max-width:430px){html[data-theme="light"] .gu-home-light .v2-next-action{grid-template-columns:58px minmax(0,1fr)!important}html[data-theme="light"] .gu-home-light .v2-next-action .btn{grid-column:1/-1;width:100%!important}html[data-theme="light"] .gu-home-light .gu-progress-card{grid-template-columns:132px minmax(0,1fr)!important}html[data-theme="light"] .gu-home-light .gi-head{padding-right:112px!important}}

/* TODAY light layout fix v1 */
html[data-theme="light"] .gu-home-light .v2-next-action{grid-template-columns:52px minmax(0,1fr) 116px!important;gap:10px!important;padding:14px!important}
html[data-theme="light"] .gu-home-light .gu-action-icon{width:52px!important;height:52px!important;font-size:32px!important;border-radius:16px!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:18px!important;line-height:1.2!important;margin:2px 0 4px!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:12px!important;line-height:1.35!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{min-width:0!important;width:116px!important;padding:11px 9px!important;font-size:13px!important;line-height:1.15!important}
html[data-theme="light"] .gu-home-light .gi-head{display:grid!important;grid-template-columns:auto 1fr!important;align-items:end!important;padding-right:128px!important;white-space:normal!important}
html[data-theme="light"] .gu-home-light .gi-head h2{font-size:25px!important;line-height:1.05!important}
html[data-theme="light"] .gu-home-light .gi-head .gi-period{font-size:11px!important;line-height:1.2!important;padding-bottom:2px!important;white-space:normal!important}
html[data-theme="light"] .gu-home-light .gu-review-shell>.ghoro-menu{top:-1px!important}
html[data-theme="light"] .gu-home-light .gu-progress-card{grid-template-columns:132px minmax(0,1fr)!important;grid-template-rows:auto auto!important}
html[data-theme="light"] .gu-home-light .gu-progress-now{grid-row:1!important;grid-column:1!important;padding:16px 13px!important}
html[data-theme="light"] .gu-home-light .gu-week-bars{grid-row:1!important;grid-column:2!important;padding:16px 8px 12px!important}
html[data-theme="light"] .gu-home-light .gu-progress-week{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border-top:1px solid #e9eef5!important;background:#f8fbff!important}
html[data-theme="light"] .gu-home-light .gu-progress-week span{padding:11px 8px!important;text-align:center!important;min-width:0!important}
html[data-theme="light"] .gu-home-light .gu-progress-week span+span{border-left:1px solid #e9eef5!important}
html[data-theme="light"] .gu-home-light .gu-progress-week b{display:block!important;font-size:16px!important;color:var(--home-ink)!important;line-height:1!important}
html[data-theme="light"] .gu-home-light .gu-progress-week small{display:block!important;margin-top:4px!important;font-size:9px!important;line-height:1.2!important;color:var(--home-muted)!important}
@media(max-width:700px){html[data-theme="light"] .gu-home-light .v2-next-action{grid-template-columns:48px minmax(0,1fr) 108px!important;gap:8px!important;padding:12px!important}html[data-theme="light"] .gu-home-light .gu-action-icon{width:48px!important;height:48px!important;font-size:29px!important}html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:17px!important}html[data-theme="light"] .gu-home-light .v2-next-action .btn{width:108px!important;font-size:12px!important;padding:10px 7px!important}html[data-theme="light"] .gu-home-light .gi-head{padding-right:118px!important}}
@media(max-width:360px){html[data-theme="light"] .gu-home-light .v2-next-action{grid-template-columns:44px minmax(0,1fr)!important}html[data-theme="light"] .gu-home-light .v2-next-action .btn{grid-column:1/-1!important;width:100%!important}html[data-theme="light"] .gu-home-light .gu-progress-card{grid-template-columns:112px minmax(0,1fr)!important}html[data-theme="light"] .gu-home-light .gu-progress-week{grid-template-columns:repeat(2,1fr)!important}}

/* TODAY completeness fix v2 */
html[data-theme="light"] .gu-home-light .v2-improve-block{display:block!important;margin-top:22px!important}
html[data-theme="light"] .gu-home-light .gi-head{padding-right:0!important;display:flex!important;align-items:baseline!important;gap:10px!important}
html[data-theme="light"] .gu-home-light .ghoro-menu{position:static!important;width:100%!important;min-width:0!important;margin:18px 0 0!important;padding:12px 14px!important;border:1px solid #ece7f8!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(48,72,104,.06)!important}
html[data-theme="light"] .gu-home-light .ghoro-menu>span:first-child,html[data-theme="light"] .gu-home-light .ghoro-menu>b{display:inline!important}
html[data-theme="light"] .gu-home-light .ghoro-menu small{display:block!important;margin-left:auto!important;font-size:11px!important;color:#7866b6!important}
html[data-theme="light"] .gu-home-light .ghoro-menu span:last-child{display:block!important;margin-left:3px!important;color:#61738c!important}
html[data-theme="light"] .gu-home-light .gu-progress-card{grid-template-rows:auto auto auto!important}
html[data-theme="light"] .gu-home-light .gu-progress-month{grid-column:1/-1!important;padding:14px 14px 13px!important;border-top:1px solid #e9eef5!important;background:#fff!important}
html[data-theme="light"] .gu-home-light .gu-progress-month-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px!important}
html[data-theme="light"] .gu-home-light .gu-progress-month-head>b{font-size:14px!important;color:var(--home-ink)!important}.gu-progress-month-head>span{font-size:10px;color:#6385b4;font-weight:700}
html[data-theme="light"] .gu-home-light .gu-progress-month-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;background:#f8fbff!important;border-radius:13px!important;overflow:hidden!important}
html[data-theme="light"] .gu-home-light .gu-progress-month-grid>span{padding:10px 8px!important;text-align:center!important}.gu-progress-month-grid>span+span{border-left:1px solid #e9eef5!important}
html[data-theme="light"] .gu-home-light .gu-progress-month-grid b{display:block!important;font-size:16px!important;line-height:1!important;color:var(--home-ink)!important}.gu-progress-month-grid small{display:block;margin-top:4px;font-size:9px;line-height:1.2;color:var(--home-muted)}
html[data-theme="light"] .gu-home-light .gu-progress-month>p{margin:10px 0 0!important;font-size:11px!important;color:var(--home-muted)!important}

/* TODAY rich visual system v1 — light only, dark-ready via tokens */
html[data-theme="light"] .gu-home-light{
  --today-surface:#ffffff;--today-ink:#12203a;--today-muted:#657895;
  --today-green:#20c875;--today-green-soft:#eafff3;--today-blue:#4b8fff;
  --today-blue-soft:#eef6ff;--today-purple:#7a48f5;--today-purple-soft:#f3ecff;
  --today-pink:#ff78c8;--today-orange:#ffa91f;--today-line:#e7edf5;
}
html[data-theme="light"] .gu-home-light .gi-card{position:relative!important;overflow:hidden!important;background:linear-gradient(145deg,#f7fff9 0%,#ecfff4 55%,#f7fffb 100%)!important;border:1px solid #ccefe0!important;box-shadow:0 12px 34px rgba(32,200,117,.10)!important}
html[data-theme="light"] .gu-home-light .gi-card:after{content:"↗";position:absolute;right:18px;top:20px;font-size:70px;line-height:1;color:rgba(32,200,117,.18);font-weight:900;transform:rotate(-8deg)}
html[data-theme="light"] .gu-home-light .gi-change{position:relative;z-index:2;font-size:26px!important;color:var(--today-ink)!important;max-width:72%}
html[data-theme="light"] .gu-home-light .gi-signal.win h3{color:#18b566!important;font-size:14px!important}
html[data-theme="light"] .gu-home-light .gi-signal.win .gi-mark{background:linear-gradient(145deg,#5ee49c,#1bc76f)!important;color:#fff!important;box-shadow:0 7px 14px rgba(27,199,111,.18)!important}
html[data-theme="light"] .gu-home-light .gi-copy b{color:var(--today-ink)!important}.gu-home-light .gi-copy span{color:var(--today-muted)!important}
html[data-theme="light"] .gu-home-light .gi-ai{position:relative!important;margin-top:18px!important;padding:16px 18px 16px 50px!important;background:linear-gradient(145deg,#edf7ff,#f5f9ff)!important;border:1px solid #d9eaff!important;border-radius:18px!important}
html[data-theme="light"] .gu-home-light .gi-ai:before{content:"💡";position:absolute;left:16px;top:15px;font-size:22px}.gu-home-light .gi-ai b{color:#1769d7!important;font-size:14px!important}.gu-home-light .gi-ai p{color:#405572!important}
html[data-theme="light"] .gu-home-light .gi-next{position:relative!important;margin-top:12px!important;padding:14px 16px 14px 54px!important;background:linear-gradient(145deg,#e9fff6,#dffaf0)!important;border:1px solid #caf0df!important;border-radius:18px!important}
html[data-theme="light"] .gu-home-light .gi-next:before{content:"◎";position:absolute;left:14px;top:15px;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#18be6b;color:#fff;font-weight:900}.gu-home-light .gi-next strong{color:var(--today-ink)!important}.gu-home-light .gi-next p{color:#456477!important}.gu-home-light .gi-next button{margin-top:8px!important;width:auto!important;background:#18be6b!important;color:#fff!important;padding:9px 14px!important;border-radius:12px!important}
html[data-theme="light"] .gu-home-light .gu-progress-card{background:linear-gradient(145deg,#fbf8ff 0%,#f5f0ff 36%,#f4f9ff 100%)!important;border:1px solid #e2d7ff!important;box-shadow:0 12px 34px rgba(105,73,220,.10)!important}
html[data-theme="light"] .gu-home-light .gu-progress-now{background:linear-gradient(160deg,#faf6ff,#efe6ff)!important;border-right:1px solid #e4dcf7!important}.gu-home-light .gu-progress-now strong{color:#5d24df!important}.gu-home-light .gu-progress-now>b{color:#361a80!important}.gu-home-light .gu-progress-now p{color:#604f8b!important}
html[data-theme="light"] .gu-home-light .gp-day i{background:linear-gradient(180deg,#9bc7ff,#d8e9ff)!important}.gu-home-light .gp-day i.today{background:linear-gradient(180deg,#7c39f2,#5a2add)!important;box-shadow:0 8px 16px rgba(90,42,221,.20)!important}
html[data-theme="light"] .gu-home-light .gu-progress-week{background:rgba(255,255,255,.56)!important}.gu-home-light .gu-progress-week span:nth-child(1) b{color:#19b86a!important}.gu-home-light .gu-progress-week span:nth-child(2) b{color:#2d7cf1!important}.gu-home-light .gu-progress-week span:nth-child(3) b{color:#6d43e8!important}.gu-home-light .gu-progress-week span:nth-child(4) b{color:#e04a91!important}
html[data-theme="light"] .gu-home-light .gu-progress-month{grid-column:1/-1!important;padding:14px 16px 15px!important;background:rgba(255,255,255,.72)!important;border-top:1px solid #e7e1f6!important}.gu-home-light .gu-progress-month-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.gu-home-light .gu-progress-month-head b{font-size:15px;color:var(--today-ink)}.gu-home-light .gu-progress-month-head span{font-size:12px;color:#3a7be0;font-weight:700}.gu-home-light .gu-progress-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.gu-home-light .gu-progress-month-grid span{background:#fff;border:1px solid #ece7f8;border-radius:13px;padding:10px 9px}.gu-home-light .gu-progress-month-grid b{display:block;font-size:17px;color:var(--today-ink)}.gu-home-light .gu-progress-month-grid small{display:block;margin-top:2px;font-size:10px;color:var(--today-muted)}.gu-home-light .gu-progress-month p{margin:10px 0 0;font-size:11px;color:var(--today-muted)}
html[data-theme="light"] .gu-home-light .ghoro-menu{margin-top:18px!important;border:1px solid #e4d5ff!important;background:linear-gradient(120deg,#f8efff,#fff0fa 52%,#fff6e8)!important;box-shadow:0 10px 28px rgba(132,73,211,.09)!important}.gu-home-light .ghoro-menu>b{color:#40205f!important}.gu-home-light .ghoro-menu small{color:#7f5eae!important}.gu-home-light .ghoro-menu>span:first-child{display:grid!important;place-items:center;width:34px;height:34px;border-radius:12px;background:linear-gradient(145deg,#9e5cff,#6c36dc);color:#fff!important;font-size:18px}
html[data-theme="light"] .gu-home-light .ghoro{background:linear-gradient(135deg,#f6eaff,#ffeef8 52%,#fff4df)!important;border:1px solid #e2ccff!important;box-shadow:0 12px 30px rgba(128,69,203,.10)!important}.gu-home-light .ghoro-focus{background:rgba(255,255,255,.58)!important;border-color:rgba(154,113,221,.18)!important}.gu-home-light .ghoro-theme{color:#3d1f5b!important}.gu-home-light .ghoro-copy,.gu-home-light .ghoro-focus span{color:#52446a!important}

/* TODAY progress clarification v1 */
html[data-theme="light"] .gu-home-light .gu-progress-week{display:block!important;background:rgba(255,255,255,.64)!important;border-top:1px solid #e7e1f6!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-head{padding:10px 14px 4px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#6b5aa1!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid>span{padding:10px 8px 12px!important;text-align:center!important;min-width:0!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid>span+span{border-left:1px solid #ece7f6!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid b{display:block!important;font-size:17px!important;line-height:1!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid small{display:block!important;margin-top:4px!important;font-size:9px!important;line-height:1.2!important;color:var(--today-muted)!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid span:nth-child(1) b{color:#19b86a!important}.gu-home-light .gu-progress-week-grid span:nth-child(2) b{color:#2d7cf1!important}.gu-home-light .gu-progress-week-grid span:nth-child(3) b{color:#6d43e8!important}.gu-home-light .gu-progress-week-grid span:nth-child(4) b{color:#e04a91!important}
html[data-theme="light"] .gu-home-light .gu-month-bottom{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:10px!important;margin-top:12px!important;align-items:stretch!important}
html[data-theme="light"] .gu-home-light .gu-income{padding:12px 13px!important;border:1px solid #ece7f8!important;border-radius:15px!important;background:#fff!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
html[data-theme="light"] .gu-home-light .gu-income small{font-size:9px!important;color:var(--today-muted)!important}.gu-home-light .gu-income b{margin-top:4px!important;font-size:15px!important;color:var(--today-ink)!important}
html[data-theme="light"] .gu-home-light .gu-savings{position:relative!important;display:grid!important;grid-template-columns:38px 1fr!important;gap:10px!important;align-items:center!important;padding:11px 13px!important;border-radius:16px!important;border:1px solid #ccefdc!important;background:linear-gradient(145deg,#ecfff5,#ddf9eb)!important;box-shadow:0 7px 18px rgba(33,184,105,.08)!important}
html[data-theme="light"] .gu-home-light .gu-savings-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#5fe39d,#20bd6c);color:#fff;font-size:14px;box-shadow:0 6px 12px rgba(32,189,108,.18)}
html[data-theme="light"] .gu-home-light .gu-savings small{display:block!important;font-size:9px!important;font-weight:700!important;color:#2f7252!important}.gu-home-light .gu-savings b{display:block!important;font-size:23px!important;line-height:1!important;color:#139958!important;margin-top:2px!important}.gu-home-light .gu-savings em{display:block!important;margin-top:4px!important;font-style:normal!important;font-size:9px!important;line-height:1.25!important;color:#4f7c64!important}
html[data-theme="light"] .gu-home-light .gu-savings.bad{background:linear-gradient(145deg,#fff6ea,#ffeddd)!important;border-color:#f2d5b7!important}.gu-home-light .gu-savings.bad .gu-savings-icon{background:linear-gradient(145deg,#ffbb68,#ef9138)!important}.gu-home-light .gu-savings.bad b{color:#ce6c14!important}.gu-home-light .gu-savings.bad small,.gu-home-light .gu-savings.bad em{color:#875f38!important}
html[data-theme="light"] .gu-home-light .gu-savings.neutral{background:#f7f9fc!important;border-color:#e5ebf2!important;box-shadow:none!important}.gu-home-light .gu-savings.neutral .gu-savings-icon{background:#aab6c7!important;box-shadow:none!important}.gu-home-light .gu-savings.neutral b{color:#607086!important}
@media(max-width:430px){html[data-theme="light"] .gu-home-light .gu-month-bottom{grid-template-columns:1fr!important}}

/* ===== LIGHT THEME — ALL MAIN TABS v1 ===== */
html[data-theme="light"] .section-goals,html[data-theme="light"] .section-finance,html[data-theme="light"] .section-diaries{background:linear-gradient(180deg,#f8fbff 0%,#f4f7fb 100%);padding-top:8px!important}
html[data-theme="light"] .section-goals .h1,html[data-theme="light"] .section-finance .h1,html[data-theme="light"] .section-diaries .h1{color:#12203a!important;letter-spacing:-.03em!important}
html[data-theme="light"] .section-goals .card,html[data-theme="light"] .section-finance .card,html[data-theme="light"] .section-diaries .card{border:1px solid #e4ebf4!important;box-shadow:0 10px 28px rgba(48,72,104,.07)!important;border-radius:22px!important}
html[data-theme="light"] .section-goals .btn2,html[data-theme="light"] .section-finance .btn2,html[data-theme="light"] .section-diaries .btn2{background:#fff!important;border:1px solid #e4ebf4!important;box-shadow:0 7px 18px rgba(48,72,104,.05)!important}
html[data-theme="light"] .section-goals .pill.on,html[data-theme="light"] .section-goals .chip.on,html[data-theme="light"] .section-finance .chip.on,html[data-theme="light"] .section-diaries .chip.on{background:linear-gradient(145deg,#eaf3ff,#f2edff)!important;color:#274e95!important;border-color:#cfe0fb!important}
/* Goals — light */
html[data-theme="light"] .section-goals .gcard{position:relative;overflow:hidden;background:linear-gradient(145deg,#ffffff 0%,#f4f8ff 58%,#f7f2ff 100%)!important;border:1px solid #dfe8f6!important;border-radius:22px!important;box-shadow:0 10px 28px rgba(58,83,122,.08)!important}
html[data-theme="light"] .section-goals .gcard:nth-of-type(3n+1){background:linear-gradient(145deg,#fff 0%,#eff8ff 60%,#eef4ff 100%)!important}
html[data-theme="light"] .section-goals .gcard:nth-of-type(3n+2){background:linear-gradient(145deg,#fff 0%,#f3fff8 60%,#ebfbf3 100%)!important}
html[data-theme="light"] .section-goals .gcard:nth-of-type(3n+3){background:linear-gradient(145deg,#fff 0%,#fbf5ff 60%,#f3edff 100%)!important}
html[data-theme="light"] .section-goals .gcard .bar{background:#eaf0f7!important;height:7px!important;border-radius:999px!important;overflow:hidden!important}.section-goals .gcard .fill{background:linear-gradient(90deg,#4b8fff,#7a48f5)!important;border-radius:999px!important}
html[data-theme="light"] .section-goals>.card:first-of-type{background:linear-gradient(145deg,#eef6ff,#f7f2ff)!important;border-color:#d9e3fa!important}.section-goals>.card:first-of-type .fill{background:linear-gradient(90deg,#4b8fff,#7a48f5)!important}
html[data-theme="light"] .section-goals .bdg{border:0!important;box-shadow:none!important}.section-goals .lbl{color:#647793!important}
/* Finance — light */
html[data-theme="light"] .section-finance>.card:first-of-type{position:relative;overflow:hidden;background:linear-gradient(145deg,#f6fbff 0%,#eef7ff 50%,#f5f0ff 100%)!important;border-color:#dbe7f8!important;padding:18px!important}
html[data-theme="light"] .section-finance>.card:first-of-type:after{content:"";position:absolute;right:-28px;top:-38px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(75,143,255,.16),rgba(122,72,245,.04) 68%,transparent 70%)}
html[data-theme="light"] .section-finance .huge.money{color:#12203a!important;font-size:34px!important;letter-spacing:-.035em!important;position:relative;z-index:1}
html[data-theme="light"] .section-finance .finance-main-kpi{background:linear-gradient(145deg,#fff,#f8fbff)!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;padding:10px!important}
html[data-theme="light"] .section-finance .finance-main-kpi>div{padding:11px 8px!important;border-radius:14px!important;text-align:center!important}html[data-theme="light"] .section-finance .finance-main-kpi>div:nth-child(1){background:#eafff3!important}html[data-theme="light"] .section-finance .finance-main-kpi>div:nth-child(2){background:#fff0f3!important}html[data-theme="light"] .section-finance .finance-main-kpi>div:nth-child(3){background:#eef6ff!important}
html[data-theme="light"] .section-finance .v2-fin-main-actions{gap:9px!important}html[data-theme="light"] .section-finance .v2-fin-action{border-radius:16px!important;min-height:50px!important;border:0!important;box-shadow:0 8px 18px rgba(48,72,104,.08)!important}html[data-theme="light"] .section-finance .v2-fin-income{background:linear-gradient(145deg,#c8f7df,#88e9b7)!important;color:#11643c!important}html[data-theme="light"] .section-finance .v2-fin-transfer{background:linear-gradient(145deg,#dfeeff,#b8d7ff)!important;color:#235a9f!important}html[data-theme="light"] .section-finance .v2-fin-expense{background:linear-gradient(145deg,#ffe1e6,#ffc2cd)!important;color:#9f3047!important}
html[data-theme="light"] .section-finance .row{border-color:#edf1f6!important}html[data-theme="light"] .section-finance .card .row:active{background:#f5f8fc!important}html[data-theme="light"] .section-finance .money.pos{color:#159447!important}html[data-theme="light"] .section-finance .money.neg2{color:#d94141!important}
/* Diaries — light */
html[data-theme="light"] .section-diaries .v2-diary-calendar{background:linear-gradient(145deg,#eef6ff,#f6f1ff)!important;border-color:#dfe5f6!important}
html[data-theme="light"] .section-diaries .v2-diary-home-card{position:relative;overflow:hidden;border:1px solid #e5eaf3!important;box-shadow:0 9px 24px rgba(55,77,109,.07)!important;min-height:150px!important}
html[data-theme="light"] .section-diaries .v2-diary-home-card:nth-child(4n+1){background:linear-gradient(145deg,#f0f7ff,#e9f3ff)!important}.section-diaries .v2-diary-home-card:nth-child(4n+2){background:linear-gradient(145deg,#effff7,#e5faef)!important}.section-diaries .v2-diary-home-card:nth-child(4n+3){background:linear-gradient(145deg,#fbf2ff,#f2eaff)!important}.section-diaries .v2-diary-home-card:nth-child(4n){background:linear-gradient(145deg,#fff7ed,#fff0dc)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:rgba(255,255,255,.72);box-shadow:0 6px 14px rgba(66,84,110,.07);font-size:24px!important}
html[data-theme="light"] .section-diaries .v2-diary-home-title{font-size:17px!important;font-weight:800!important;color:#12203a!important}.section-diaries .v2-diary-home-text{color:#5d708d!important;line-height:1.38!important}.section-diaries .v2-diary-home-meta{color:#365b90!important;font-weight:700!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tools{gap:10px!important}.section-diaries .v2-diary-home-tool{background:linear-gradient(145deg,#fff,#f5f8ff)!important;border:1px solid #e4eaf3!important;border-radius:18px!important;box-shadow:0 8px 20px rgba(55,77,109,.06)!important}
html[data-theme="light"] .section-diaries .v2-diary-manage-btn{background:#fff!important;border:1px solid #dfe6ef!important;border-radius:12px!important;color:#3a659c!important}

/* Diaries light depth fix v1 */
html[data-theme="light"] .section-diaries{
  background:
    radial-gradient(circle at 15% 0%,rgba(191,214,255,.22),transparent 30%),
    linear-gradient(180deg,#edf2f8 0%,#e8eef5 100%)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-calendar{box-shadow:0 10px 28px rgba(48,72,104,.08)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-card{box-shadow:0 10px 24px rgba(48,72,104,.10)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool{box-shadow:0 9px 22px rgba(48,72,104,.09)!important}

/* DIARIES compact + contrast v1 — light only */
html[data-theme="light"] .section-diaries .v2-diary-calendar{
  background:linear-gradient(145deg,#dfeaff,#ece9ff)!important;
  border-color:#cfdcf3!important;
  box-shadow:0 12px 30px rgba(48,72,104,.12)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-calendar .day{
  color:#21314d!important;
}
html[data-theme="light"] .section-diaries .v2-diary-calendar .day.today{
  background:linear-gradient(145deg,#3f7df6,#5aa7ff)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(63,125,246,.22)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-card{
  min-height:124px!important;
  padding:14px!important;
  border-radius:20px!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-icon{
  width:40px!important;height:40px!important;border-radius:13px!important;font-size:21px!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-title{
  font-size:16px!important;line-height:1.16!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-text{
  font-size:12px!important;line-height:1.3!important;margin-top:5px!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-meta{
  font-size:12px!important;margin-top:8px!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-tool{
  background:linear-gradient(145deg,#ffffff,#eef4ff)!important;
  border-color:#d7e1f0!important;
  color:#234a86!important;
  box-shadow:0 10px 24px rgba(48,72,104,.11)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-tool b{
  color:#1f4f9b!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-tool small{
  color:#647793!important;
}

/* DIARIES sketch match v2 — light only */
html[data-theme="light"] .section-diaries .v2-diary-calendar{background:linear-gradient(145deg,#d9e8ff 0%,#e7e4ff 100%)!important;border:1px solid #c8d7f0!important;box-shadow:0 12px 30px rgba(53,82,123,.14)!important;padding:14px 12px 12px!important}
html[data-theme="light"] .section-diaries .v2-diary-calendar .ico{background:rgba(255,255,255,.62)!important;border:1px solid #d4deed!important;box-shadow:0 5px 12px rgba(53,82,123,.08)!important}
html[data-theme="light"] .section-diaries .v2-diary-cal-day{transition:.15s ease}
html[data-theme="light"] .section-diaries .v2-diary-cal-day.is-today{background:linear-gradient(145deg,#3374f1,#56a0ff)!important;box-shadow:0 8px 18px rgba(51,116,241,.24)!important}
html[data-theme="light"] .section-diaries .v2-diary-cal-day.is-today *{color:#fff!important}
html[data-theme="light"] .section-diaries .v2-diary-cal-day.has-event:not(.is-today){background:rgba(255,255,255,.22)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-card{min-height:112px!important;padding:12px 13px!important;border-radius:18px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;grid-template-rows:auto auto 1fr!important;column-gap:9px!important;row-gap:4px!important;align-items:start!important}
html[data-theme="light"] .section-diaries .v2-diary-home-icon{grid-column:1!important;grid-row:1!important;margin:0!important;width:38px!important;height:38px!important;border-radius:12px!important}
html[data-theme="light"] .section-diaries .v2-diary-home-title{grid-column:2!important;grid-row:1!important;margin:1px 0 0!important;font-size:15.5px!important;line-height:1.12!important}
html[data-theme="light"] .section-diaries .v2-diary-home-arrow{grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;color:#24496f!important;font-size:24px!important;line-height:1!important;font-weight:500!important}
html[data-theme="light"] .section-diaries .v2-diary-home-text{grid-column:1/-1!important;grid-row:2!important;margin:1px 0 0!important;font-size:11.5px!important;line-height:1.28!important;min-height:29px!important}
html[data-theme="light"] .section-diaries .v2-diary-home-meta{grid-column:1/-1!important;grid-row:3!important;align-self:end!important;display:flex!important;align-items:center!important;gap:7px!important;margin-top:3px!important;font-size:11.5px!important;font-weight:750!important}
html[data-theme="light"] .section-diaries .v2-diary-meta-dot{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:8px!important;background:rgba(255,255,255,.58)!important;color:#3478d4!important;font-size:12px!important;box-shadow:0 4px 10px rgba(53,82,123,.08)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool{min-height:58px!important;padding:10px 13px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr) 18px!important;grid-template-rows:auto!important;align-items:center!important;column-gap:8px!important;background:linear-gradient(145deg,#fff,#f5f8ff)!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool span{font-size:20px!important;line-height:1!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool b{font-size:13px!important;line-height:1.15!important;color:#1c4f9b!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool small{display:none!important}
html[data-theme="light"] .section-diaries .v2-diary-home-tool:after{content:'›';grid-column:3;font-size:22px;line-height:1;color:#5b7190;font-weight:500}
html[data-theme="light"] .section-diaries .v2-diary-home-grid{gap:10px!important}

/* DIARIES shadow + arrows v1 — light only */
html[data-theme="light"] .section-diaries .v2-diary-home-card{
  position:relative!important;
  padding-right:38px!important;
  box-shadow:0 12px 26px rgba(35,55,84,.16),0 2px 5px rgba(35,55,84,.06)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-card:active{
  transform:translateY(1px);
  box-shadow:0 7px 16px rgba(35,55,84,.13)!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-arrow{
  position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;
  display:block!important;margin:0!important;font-size:28px!important;line-height:1!important;
  color:#163f72!important;font-weight:500!important;pointer-events:none!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-title{
  font-size:clamp(13px,3.9vw,17px)!important;
  line-height:1.08!important;letter-spacing:-.025em!important;
  max-width:calc(100% - 2px)!important;overflow-wrap:normal!important;word-break:normal!important;
}
@media(max-width:390px){html[data-theme="light"] .section-diaries .v2-diary-home-title{font-size:clamp(12.5px,3.75vw,15.5px)!important}}
@media(max-width:350px){html[data-theme="light"] .section-diaries .v2-diary-home-title{font-size:12.5px!important}}

/* Light nested screens: stronger depth + darker navigation links */
html[data-theme="light"] .back,
html[data-theme="light"] .credit-back,
html[data-theme="light"] .v2-diary-manage-back{
  color:#315f9a!important;
  font-weight:800!important;
  opacity:1!important;
}
html[data-theme="light"] .section-diaries:has(.credit-screen-head){
  background:linear-gradient(180deg,#e7eef7 0%,#e2eaf4 100%)!important;
}
html[data-theme="light"] .section-diaries .credit-card{
  background:linear-gradient(145deg,#fdfefe,#f8fafc)!important;
  border:1px solid #d5dfeb!important;
  box-shadow:0 12px 28px rgba(42,63,91,.11)!important;
}
html[data-theme="light"] .section-diaries .credit-total,
html[data-theme="light"] .section-diaries .credit-debt{color:#c96800!important}
html[data-theme="light"] .section-diaries .credit-controls-row{
  grid-template-columns:minmax(0,1.18fr) minmax(126px,.82fr)!important;
  gap:10px!important;
}
html[data-theme="light"] .section-diaries .credit-controls select{
  background:#eef3f8!important;border-color:#c8d4e2!important;color:#17243a!important;
  min-height:44px!important;height:44px!important;
}
html[data-theme="light"] .section-diaries .credit-day-inline select{width:64px!important;flex:0 0 64px!important}
@media(max-width:390px){html[data-theme="light"] .section-diaries .credit-controls-row{grid-template-columns:minmax(0,1fr) minmax(118px,.78fr)!important}}

/* TASK FORM v2 — light only */
html[data-theme="light"] .section-diaries .task-form-actions{gap:10px!important}
html[data-theme="light"] .section-diaries .task-form-actions>*{min-width:0!important}
html[data-theme="light"] .section-diaries .task-due-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(116px,.75fr);gap:10px;align-items:end}
html[data-theme="light"] .section-diaries .task-due-row .field{min-width:0!important}
html[data-theme="light"] .section-diaries .task-due-row input{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html[data-theme="light"] .section-diaries .task-form-grid{display:block!important}
html[data-theme="light"] .section-diaries .task-back{color:#2f5f9f!important}
html[data-theme="light"] .section-diaries .task-form-grid+.field{margin-top:10px!important}
html[data-theme="light"] .section-diaries .task-form-grid~.field input,
html[data-theme="light"] .section-diaries .task-form-grid~.field textarea,
html[data-theme="light"] .section-diaries .task-due-row input,
html[data-theme="light"] .section-diaries .task-form-grid input,
html[data-theme="light"] .section-diaries .task-form-grid textarea{background:#f2f6fb!important;border-color:#c9d6e6!important}
html[data-theme="light"] .section-diaries .task-form-grid,
html[data-theme="light"] .section-diaries .task-due-row{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
html[data-theme="light"] .section-diaries .task-form-grid{overflow:hidden}
html[data-theme="light"] .section-diaries .task-head+ .card,
html[data-theme="light"] .section-diaries .task-back + .task-head + .card{background:linear-gradient(180deg,#fdfefe,#f7faff)!important;border:1px solid #d7e0eb!important;box-shadow:0 12px 30px rgba(54,75,104,.10)!important}
html[data-theme="light"] .section-diaries .task-head+ .card .field,
html[data-theme="light"] .section-diaries .task-back + .task-head + .card .field{margin-bottom:12px}
html[data-theme="light"] .section-diaries .task-head+ .card input,
html[data-theme="light"] .section-diaries .task-head+ .card textarea,
html[data-theme="light"] .section-diaries .task-back + .task-head + .card input,
html[data-theme="light"] .section-diaries .task-back + .task-head + .card textarea{background:#eef3f9!important;border-color:#c4d2e3!important}
@media(max-width:390px){html[data-theme="light"] .section-diaries .task-due-row{grid-template-columns:minmax(0,1.4fr) minmax(106px,.7fr);gap:8px}}

/* TASK datetime layout v1 — light only */
html[data-theme="light"] .section-diaries .task-form-grid,
html[data-theme="light"] .section-diaries .task-due-row{display:block!important}
html[data-theme="light"] .section-diaries .task-form-grid .field,
html[data-theme="light"] .section-diaries .task-due-row .field{width:100%!important;min-width:0!important}
html[data-theme="light"] .section-diaries .task-datetime,
html[data-theme="light"] .section-diaries #task_remind_at{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html[data-theme="light"] .section-diaries input[type="datetime-local"]{-webkit-appearance:none;appearance:none;overflow:hidden}
html[data-theme="light"] .section-diaries input[type="datetime-local"]::-webkit-date-and-time-value{text-align:left}

/* LIGHT typography hierarchy v1: field names are primary, hints are secondary */
html[data-theme="light"] .field > .lbl{
  display:block!important;
  margin:0 0 7px!important;
  color:#26384f!important;
  font-size:16px!important;
  line-height:1.3!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
}
html[data-theme="light"] .field > .hint{
  margin-top:7px!important;
  color:#718198!important;
  font-size:12.5px!important;
  line-height:1.4!important;
  font-weight:450!important;
}

/* ===== LIGHT THEME — unified selectable controls v1 ===== */
html[data-theme="light"] .chip,
html[data-theme="light"] .pill,
html[data-theme="light"] .tab,
html[data-theme="light"] .seg3 button{
  background:linear-gradient(180deg,#f8fbff,#eef3f9)!important;
  color:#43546a!important;
  border:1px solid #d5dfeb!important;
  box-shadow:0 3px 8px rgba(48,72,104,.05)!important;
}
html[data-theme="light"] .chip.on,
html[data-theme="light"] .pill.on,
html[data-theme="light"] .tab.on,
html[data-theme="light"] .seg3 button.on{
  background:linear-gradient(145deg,#dcecff,#e9f2ff)!important;
  color:#185cab!important;
  border-color:#5b96eb!important;
  box-shadow:0 0 0 2px rgba(70,133,226,.12),0 5px 12px rgba(48,92,154,.08)!important;
  font-weight:750!important;
}
html[data-theme="light"] .field.acc-grid .chip,
html[data-theme="light"] .field.cat-grid .chip,
html[data-theme="light"] .ev-kind-grid .chip{
  background:linear-gradient(180deg,#f7f9fc,#edf2f7)!important;
  color:#34465f!important;
  border-color:#d5dfeb!important;
}
html[data-theme="light"] .field.acc-grid .chip.on,
html[data-theme="light"] .field.cat-grid .chip.on,
html[data-theme="light"] .ev-kind-grid .chip.on{
  background:linear-gradient(145deg,#d9ebff,#eaf3ff)!important;
  color:#174f96!important;
  border-color:#4b8fff!important;
  box-shadow:0 0 0 2px rgba(75,143,255,.12),0 6px 14px rgba(48,92,154,.08)!important;
}
html[data-theme="light"] .tabs,
html[data-theme="light"] .seg3{
  background:#edf2f7!important;
  border-color:#d7e0eb!important;
}
html[data-theme="light"] .emo button,
html[data-theme="light"] .seg button{
  background:linear-gradient(180deg,#f7f9fc,#edf2f7)!important;
  color:#35465f!important;
  border-color:#d5dfeb!important;
  box-shadow:0 3px 8px rgba(48,72,104,.05)!important;
}
html[data-theme="light"] .emo button.on,
html[data-theme="light"] .seg button.on{
  background:linear-gradient(145deg,#dcecff,#eaf3ff)!important;
  color:#185cab!important;
  border-color:#4b8fff!important;
  box-shadow:0 0 0 2px rgba(75,143,255,.12),0 5px 12px rgba(48,92,154,.08)!important;
}
html[data-theme="light"] .seg{
  background:#edf2f7!important;
  border-color:#d5dfeb!important;
}
html[data-theme="light"] .seg button.on.neg{
  background:linear-gradient(145deg,#ffe7eb,#ffd9e0)!important;
  color:#b7354d!important;
  border-color:#e58a9a!important;
  box-shadow:0 0 0 2px rgba(217,65,65,.09)!important;
}
html[data-theme="light"] .chip:active,
html[data-theme="light"] .pill:active,
html[data-theme="light"] .emo button:active,
html[data-theme="light"] .seg button:active{
  transform:translateY(1px);
}

/* Horoscope light: stronger subhead contrast */
html[data-theme="light"] .gu-home-light .ghoro-focus b{
  color:#4f2b78!important;
  font-weight:800!important;
}

/* ===== TODAY light: important metrics first ===== */
html[data-theme="light"] .gu-home-light .gi-copy .gi-metric{
  display:inline-block;
  margin:0 2px;
  padding:1px 7px 2px;
  border-radius:999px;
  background:#dcf9ea;
  color:#0e9b55;
  font-size:1.08em;
  font-weight:850;
  line-height:1.35;
  letter-spacing:-.02em;
  box-shadow:inset 0 0 0 1px rgba(24,190,107,.16);
}
html[data-theme="light"] .gu-home-light .gi-copy span{
  color:#61758e!important;
}
html[data-theme="light"] .gu-home-light .gi-copy b{
  color:#12203a!important;
}

/* Finance total balance semantic color */
.finance-total.is-negative{color:var(--rd)}
.finance-total.is-positive{color:var(--gr)}
.finance-total.is-zero{color:var(--tx)}
html[data-theme="light"] .section-finance .finance-total.is-negative{color:#e53935!important}
html[data-theme="light"] .section-finance .finance-total.is-positive{color:#147a45!important}
html[data-theme="light"] .section-finance .finance-total.is-zero{color:#12203a!important}

/* ===== Settings polish — light theme ===== */
html[data-theme="light"] .v2-tools{gap:9px!important}
html[data-theme="light"] .v2-tools .v2-pro,
html[data-theme="light"] .v2-tools .v2-icon-btn{height:38px!important;min-height:38px!important;border-radius:13px!important}
html[data-theme="light"] .v2-tools .v2-pro{padding:0 13px!important;font-size:12px!important}
html[data-theme="light"] .v2-tools .v2-icon-btn{width:38px!important;padding:0!important;background:#fff!important;border:1px solid #d9e2ee!important}
html[data-theme="light"] .settings-shell .theme-choice{gap:10px!important}
html[data-theme="light"] .settings-shell .settings-theme-btn{min-height:38px!important;height:38px!important;padding:0 9px!important;border-radius:13px!important;background:#f7f9fc!important;border:1px solid #d9e3ef!important;color:#52657f!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}
html[data-theme="light"] .settings-shell .settings-theme-btn.on{background:linear-gradient(145deg,#e8f2ff,#eef2ff)!important;border-color:#8ebcff!important;color:#1e5cae!important;box-shadow:0 0 0 3px rgba(70,137,230,.08)!important}
html[data-theme="light"] .settings-shell .settings-pro-status{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border-radius:999px;background:linear-gradient(145deg,#e9fbf2,#dff7eb);border:1px solid #bfe8d2;color:#118954;font-size:12px;font-weight:800;white-space:nowrap}
html[data-theme="light"] .settings-shell .settings-state-toggle{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 5px 4px 12px;border-radius:999px;border:1px solid #d7e2ec;background:#f4f7fa;color:#65758a;font-size:12px;font-weight:800;white-space:nowrap}
html[data-theme="light"] .settings-shell .settings-state-toggle i{display:block;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(43,65,89,.12)}
html[data-theme="light"] .settings-shell .settings-state-toggle.is-on{background:linear-gradient(145deg,#e9fbf2,#dff7eb);border-color:#bfe8d2;color:#118954}
html[data-theme="light"] .settings-shell .settings-state-toggle.is-on i{background:#18a866;box-shadow:inset 0 0 0 6px #fff,0 2px 8px rgba(24,168,102,.15)}

/* ===== TODAY hero compact v1 ===== */
html[data-theme="light"] .gu-home-light .gu-hero{
  min-height:138px!important;
  padding:16px 14px 14px!important;
}
html[data-theme="light"] .gu-home-light .gu-hero .v2-title{
  margin:0!important;
}
html[data-theme="light"] .gu-home-light .gu-hero-copy p{
  margin-top:7px!important;
  line-height:1.42!important;
}
html[data-theme="light"] .gu-home-light .gu-mountain{
  top:4px!important;
  bottom:auto!important;
  height:112px!important;
  width:47%!important;
}
html[data-theme="light"] .gu-home-light .gu-quote{
  top:34px!important;
  bottom:auto!important;
  right:10%!important;
  padding:8px 11px!important;
}
@media(max-width:380px){
  html[data-theme="light"] .gu-home-light .gu-hero{min-height:132px!important}
  html[data-theme="light"] .gu-home-light .gu-mountain{width:45%!important}
  html[data-theme="light"] .gu-home-light .gu-quote{right:7%!important;font-size:10px!important}
}

/* Settings profile affordance */
html[data-theme="light"] .settings-shell .settings-profile-link{
  margin-left:auto;display:inline-flex;align-items:center;gap:6px;
  color:#2f6fbe;font-size:12px;font-weight:800;white-space:nowrap;
}
html[data-theme="light"] .settings-shell .settings-profile-link span:last-child{
  color:#58718f;font-size:20px;line-height:1;
}

/* ===== WEEKLY REVIEW STRUCTURE FIX ===== */
html[data-theme="light"] .gu-home-light .gi-card-head{display:flex;align-items:baseline;gap:8px;margin:0 0 12px;white-space:nowrap}
html[data-theme="light"] .gu-home-light .gi-card-head strong{font-size:15px;line-height:1.1;color:#132039;font-weight:800;flex:0 0 auto}
html[data-theme="light"] .gu-home-light .gi-card-head .gi-period{font-size:11px!important;line-height:1.1;color:#7f91a8!important;font-weight:700;white-space:nowrap}
html[data-theme="light"] .gu-home-light .gi-change{font-size:clamp(20px,5.4vw,26px)!important;line-height:1.1!important;white-space:nowrap!important;margin:0 0 14px!important;color:#132039!important}
html[data-theme="light"] .gu-home-light .gi-signal.win h3{color:#18a866!important;font-size:14px!important;font-weight:800!important}
html[data-theme="light"] .gu-home-light .gi-signal.attention h3{color:#d98214!important;font-size:14px!important;font-weight:800!important}
html[data-theme="light"] .gu-home-light .gi-ai{margin-top:14px!important;background:#eef6ff!important;border:1px solid #cfe0f7!important;border-radius:18px!important}
html[data-theme="light"] .gu-home-light .gi-ai b{color:#1768c4!important;font-size:13px!important}
html[data-theme="light"] .gu-home-light .gi-ai p{color:#5c6f86!important}
@media(max-width:390px){html[data-theme="light"] .gu-home-light .gi-card-head{gap:6px}html[data-theme="light"] .gu-home-light .gi-card-head strong{font-size:14px}html[data-theme="light"] .gu-home-light .gi-card-head .gi-period{font-size:10px!important}html[data-theme="light"] .gu-home-light .gi-change{font-size:19px!important}}

/* progress title inside card */
html[data-theme="light"] .gu-progress-title{
  font-size:18px;
  font-weight:800;
  line-height:1.15;
  color:#0f1f3a;
  margin:0 0 14px 2px;
}

/* progress title top-right inside card */
html[data-theme="light"] .gu-home-light .gu-progress-card{position:relative!important}
html[data-theme="light"] .gu-home-light .gu-progress-title{position:absolute!important;top:16px!important;right:18px!important;left:auto!important;margin:0!important;z-index:2!important;font-size:18px!important;font-weight:800!important;line-height:1.1!important;color:#0f1f3a!important;text-align:right!important;white-space:nowrap!important}
html[data-theme="light"] .gu-home-light .gu-week-bars{padding-top:54px!important}

/* Light route card aligned with dark-theme composition */
html[data-theme="light"] .gu-home-light .v2-next-action{
  display:block!important;
  position:relative!important;
  overflow:hidden!important;
  padding:22px 22px 20px!important;
  border:1px solid rgba(63,99,150,.18)!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,#ffffff 0%,#fbfdff 74%,#f1f6ff 100%)!important;
  box-shadow:0 10px 28px rgba(43,67,101,.09)!important;
}
html[data-theme="light"] .gu-home-light .v2-next-action:after{
  content:""!important;
  position:absolute!important;
  width:190px!important;
  height:190px!important;
  right:-92px!important;
  top:-108px!important;
  border-radius:50%!important;
  background:rgba(105,157,230,.08)!important;
  pointer-events:none!important;
}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-icon{display:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-copy{position:relative!important;z-index:1!important}
html[data-theme="light"] .gu-home-light .v2-next-action .v2-action-k{font-size:13px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.12em!important;color:#d88700!important;margin:0 0 8px!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:25px!important;line-height:1.12!important;font-weight:800!important;color:#111f38!important;margin:0 0 8px!important;letter-spacing:-.02em!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:16px!important;line-height:1.45!important;color:#66758b!important;margin:0 0 18px!important;max-width:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{position:relative!important;z-index:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;padding:15px 18px!important;border-radius:18px!important;font-size:17px!important;line-height:1.2!important;font-weight:800!important;background:linear-gradient(180deg,#ffc85b 0%,#ffad22 100%)!important;color:#241700!important;box-shadow:0 9px 20px rgba(255,169,23,.20)!important}
@media(max-width:430px){
  html[data-theme="light"] .gu-home-light .v2-next-action{padding:18px!important;border-radius:22px!important}
  html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:22px!important}
  html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:15px!important;margin-bottom:15px!important}
  html[data-theme="light"] .gu-home-light .v2-next-action .btn{font-size:16px!important;padding:14px 16px!important}
}

/* Light route card aligned with dark-theme composition */
html[data-theme="light"] .gu-home-light .v2-next-action{display:block!important;position:relative!important;overflow:hidden!important;padding:22px 22px 20px!important;border:1px solid rgba(63,99,150,.18)!important;border-radius:24px!important;background:linear-gradient(145deg,#ffffff 0%,#fbfdff 74%,#f1f6ff 100%)!important;box-shadow:0 10px 28px rgba(43,67,101,.09)!important}
html[data-theme="light"] .gu-home-light .v2-next-action:after{content:""!important;position:absolute!important;width:190px!important;height:190px!important;right:-92px!important;top:-108px!important;border-radius:50%!important;background:rgba(105,157,230,.08)!important;pointer-events:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-icon{display:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-copy{position:relative!important;z-index:1!important}
html[data-theme="light"] .gu-home-light .v2-next-action .v2-action-k{font-size:13px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.12em!important;color:#d88700!important;margin:0 0 8px!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:25px!important;line-height:1.12!important;font-weight:800!important;color:#111f38!important;margin:0 0 8px!important;letter-spacing:-.02em!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:16px!important;line-height:1.45!important;color:#66758b!important;margin:0 0 18px!important;max-width:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{position:relative!important;z-index:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;padding:15px 18px!important;border-radius:18px!important;font-size:17px!important;line-height:1.2!important;font-weight:800!important;background:linear-gradient(180deg,#ffc85b 0%,#ffad22 100%)!important;color:#241700!important;box-shadow:0 9px 20px rgba(255,169,23,.20)!important}
@media(max-width:430px){html[data-theme="light"] .gu-home-light .v2-next-action{padding:18px!important;border-radius:22px!important}html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:22px!important}html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:15px!important;margin-bottom:15px!important}html[data-theme="light"] .gu-home-light .v2-next-action .btn{font-size:16px!important;padding:14px 16px!important}}

/* Light route card: same composition as dark version */
html[data-theme="light"] .gu-home-light .v2-next-action{
  display:grid!important;grid-template-columns:minmax(0,1fr) 178px!important;
  grid-template-areas:"copy button"!important;column-gap:18px!important;align-items:center!important;
  padding:20px 22px!important;min-height:176px!important;
}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-copy{grid-area:copy!important;min-width:0!important}
html[data-theme="light"] .gu-home-light .v2-next-action .v2-action-k{font-size:13px!important;margin-bottom:9px!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:24px!important;white-space:nowrap!important;margin-bottom:8px!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:15px!important;line-height:1.4!important;margin:0!important;max-width:510px!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{grid-area:button!important;width:178px!important;padding:17px 12px!important;font-size:17px!important;line-height:1.18!important;border-radius:20px!important;align-self:center!important}
@media(max-width:430px){
 html[data-theme="light"] .gu-home-light .v2-next-action{grid-template-columns:minmax(0,1fr) 132px!important;column-gap:10px!important;padding:16px!important;min-height:150px!important}
 html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:19px!important;white-space:normal!important}
 html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:13px!important;line-height:1.35!important;margin:0!important}
 html[data-theme="light"] .gu-home-light .v2-next-action .btn{width:132px!important;font-size:14px!important;padding:14px 8px!important}
}

/* Light route card: vertical layout matching dark theme */
html[data-theme="light"] .gu-home-light .v2-next-action{
  display:block!important;
  position:relative!important;
  overflow:hidden!important;
  padding:22px 22px 20px!important;
  min-height:0!important;
  border:1px solid rgba(63,99,150,.18)!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,#ffffff 0%,#fbfdff 74%,#f1f6ff 100%)!important;
  box-shadow:0 10px 28px rgba(43,67,101,.09)!important;
}
html[data-theme="light"] .gu-home-light .v2-next-action .gu-action-copy{display:block!important;min-width:0!important;position:relative!important;z-index:1!important}
html[data-theme="light"] .gu-home-light .v2-next-action .v2-action-k{font-size:13px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.12em!important;color:#d88700!important;margin:0 0 8px!important}
html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:24px!important;line-height:1.12!important;font-weight:800!important;color:#111f38!important;margin:0 0 8px!important;letter-spacing:-.02em!important;white-space:normal!important}
html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:16px!important;line-height:1.45!important;color:#66758b!important;margin:0 0 18px!important;max-width:none!important}
html[data-theme="light"] .gu-home-light .v2-next-action .btn{display:block!important;position:relative!important;z-index:1!important;width:100%!important;min-width:0!important;max-width:none!important;padding:15px 18px!important;border-radius:18px!important;font-size:17px!important;line-height:1.2!important;font-weight:800!important;background:linear-gradient(180deg,#ffc85b 0%,#ffad22 100%)!important;color:#241700!important;box-shadow:0 9px 20px rgba(255,169,23,.20)!important}
@media(max-width:430px){
 html[data-theme="light"] .gu-home-light .v2-next-action{padding:18px!important;border-radius:22px!important}
 html[data-theme="light"] .gu-home-light .v2-next-action h2{font-size:21px!important}
 html[data-theme="light"] .gu-home-light .v2-next-action p{font-size:15px!important;margin-bottom:15px!important}
 html[data-theme="light"] .gu-home-light .v2-next-action .btn{width:100%!important;font-size:16px!important;padding:14px 16px!important}
}

/* Dark TODAY hero mirrors light composition */
html[data-theme="dark"] .v2-home-dashboard .gu-hero{position:relative;min-height:138px!important;margin:0 -12px 10px;padding:16px 14px 14px!important;overflow:hidden;background:linear-gradient(145deg,#111a28 0%,#152235 56%,#14262a 100%)}
html[data-theme="dark"] .v2-home-dashboard .gu-hero-copy{position:relative;z-index:3}
html[data-theme="dark"] .v2-home-dashboard .gu-hero .v2-title{font-size:30px!important;line-height:1.08!important;color:#f7f9fd!important;margin:0!important}
html[data-theme="dark"] .v2-home-dashboard .gu-hero-copy p{margin:7px 0 0!important;color:#91a0b5!important;font-size:15px!important;line-height:1.42!important;font-weight:500!important}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain{position:absolute;right:-14px;top:4px;width:47%;height:112px;opacity:.92}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain:before,html[data-theme="dark"] .v2-home-dashboard .gu-mountain:after{content:"";position:absolute;bottom:0;border-radius:60% 60% 0 0}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain:before{right:0;width:100%;height:86px;background:linear-gradient(145deg,#24445f,#1b5963)}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain:after{right:10%;width:72%;height:112px;background:linear-gradient(145deg,#2f4363,#264e6d);clip-path:polygon(50% 0,100% 100%,0 100%)}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain i{position:absolute;z-index:2;right:42%;bottom:4px;width:7px;height:103px;background:#f6df75;transform:rotate(17deg);border-radius:999px}
html[data-theme="dark"] .v2-home-dashboard .gu-mountain b{position:absolute;z-index:3;right:34%;top:-2px;color:#f3a21d;font-size:25px}
html[data-theme="dark"] .v2-home-dashboard .gu-quote{position:absolute;z-index:4;right:10%;top:34px;padding:8px 11px;border-radius:16px;background:rgba(21,31,47,.90);border:1px solid rgba(151,180,220,.14);box-shadow:0 8px 24px rgba(0,0,0,.22);font-size:11px;line-height:1.35;color:#eef3fb;font-weight:650}
@media(max-width:380px){html[data-theme="dark"] .v2-home-dashboard .gu-hero{min-height:132px!important}html[data-theme="dark"] .v2-home-dashboard .gu-mountain{width:45%!important}html[data-theme="dark"] .v2-home-dashboard .gu-quote{right:7%!important;font-size:10px!important}}

/* Finance semantic action colors — light + dark */
.fin-account-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
.fin-account-action{min-height:44px!important;border:0!important;border-radius:14px!important;font-weight:800!important;font-size:15px!important}
.fin-account-action.income,.fin-tx-submit.income{background:#18a85b!important;color:#fff!important;border-color:#18a85b!important}
.fin-account-action.transfer,.fin-tx-submit.transfer{background:#3f82e5!important;color:#fff!important;border-color:#3f82e5!important}
.fin-account-action.expense,.fin-tx-submit.expense{background:#e5484d!important;color:#fff!important;border-color:#e5484d!important}
.fin-tx-type button{transition:.15s ease!important}
.fin-tx-type button.on.expense{background:#e5484d!important;border-color:#e5484d!important;color:#fff!important;box-shadow:0 0 0 2px rgba(229,72,77,.12)!important}
.fin-tx-type button.on.income{background:#18a85b!important;border-color:#18a85b!important;color:#fff!important;box-shadow:0 0 0 2px rgba(24,168,91,.12)!important}
.fin-tx-type button.on.transfer{background:#3f82e5!important;border-color:#3f82e5!important;color:#fff!important;box-shadow:0 0 0 2px rgba(63,130,229,.12)!important}
html[data-theme="dark"] .fin-account-action.income,html[data-theme="dark"] .fin-tx-submit.income{background:#168d50!important;color:#fff!important}
html[data-theme="dark"] .fin-account-action.transfer,html[data-theme="dark"] .fin-tx-submit.transfer{background:#356fc2!important;color:#fff!important}
html[data-theme="dark"] .fin-account-action.expense,html[data-theme="dark"] .fin-tx-submit.expense{background:#c94348!important;color:#fff!important}
html[data-theme="dark"] .fin-tx-type button.on.expense{background:#c94348!important;border-color:#d9585d!important;color:#fff!important}
html[data-theme="dark"] .fin-tx-type button.on.income{background:#168d50!important;border-color:#25aa68!important;color:#fff!important}
html[data-theme="dark"] .fin-tx-type button.on.transfer{background:#356fc2!important;border-color:#4c86d8!important;color:#fff!important}

/* Finance operation semantic colors — FINAL specificity fix */
html[data-theme="light"] .section-finance .fin-tx-type button.on.expense{
  background:#e5484d!important;border-color:#e5484d!important;color:#fff!important;
  box-shadow:0 0 0 2px rgba(229,72,77,.14)!important;
}
html[data-theme="light"] .section-finance .fin-tx-type button.on.income{
  background:#18a85b!important;border-color:#18a85b!important;color:#fff!important;
  box-shadow:0 0 0 2px rgba(24,168,91,.14)!important;
}
html[data-theme="light"] .section-finance .fin-tx-type button.on.transfer{
  background:#3f82e5!important;border-color:#3f82e5!important;color:#fff!important;
  box-shadow:0 0 0 2px rgba(63,130,229,.14)!important;
}
html[data-theme="light"] .section-finance .fin-tx-submit.expense{background:#e5484d!important;border-color:#e5484d!important;color:#fff!important}
html[data-theme="light"] .section-finance .fin-tx-submit.income{background:#18a85b!important;border-color:#18a85b!important;color:#fff!important}
html[data-theme="light"] .section-finance .fin-tx-submit.transfer{background:#3f82e5!important;border-color:#3f82e5!important;color:#fff!important}

html[data-theme="dark"] .section-finance .fin-tx-type button.on.expense{background:#c94348!important;border-color:#d9585d!important;color:#fff!important}
html[data-theme="dark"] .section-finance .fin-tx-type button.on.income{background:#168d50!important;border-color:#25aa68!important;color:#fff!important}
html[data-theme="dark"] .section-finance .fin-tx-type button.on.transfer{background:#356fc2!important;border-color:#4c86d8!important;color:#fff!important}
html[data-theme="dark"] .section-finance .fin-tx-submit.expense{background:#c94348!important;border-color:#c94348!important;color:#fff!important}
html[data-theme="dark"] .section-finance .fin-tx-submit.income{background:#168d50!important;border-color:#168d50!important;color:#fff!important}
html[data-theme="dark"] .section-finance .fin-tx-submit.transfer{background:#356fc2!important;border-color:#356fc2!important;color:#fff!important}

/* Finance operation selector — semantic inactive tints + bright active */
html[data-theme="light"] .section-finance .fin-tx-type button.expense:not(.on){
  background:rgba(229,72,77,.10)!important;
  color:#b83238!important;
  border-color:rgba(229,72,77,.28)!important;
  box-shadow:inset 0 0 0 1px rgba(229,72,77,.03)!important;
}
html[data-theme="light"] .section-finance .fin-tx-type button.income:not(.on){
  background:rgba(24,168,91,.10)!important;
  color:#137b45!important;
  border-color:rgba(24,168,91,.28)!important;
  box-shadow:inset 0 0 0 1px rgba(24,168,91,.03)!important;
}
html[data-theme="light"] .section-finance .fin-tx-type button.transfer:not(.on){
  background:rgba(63,130,229,.10)!important;
  color:#2c69bd!important;
  border-color:rgba(63,130,229,.28)!important;
  box-shadow:inset 0 0 0 1px rgba(63,130,229,.03)!important;
}
html[data-theme="dark"] .section-finance .fin-tx-type button.expense:not(.on){background:rgba(201,67,72,.16)!important;color:#ef8d91!important;border-color:rgba(217,88,93,.30)!important}
html[data-theme="dark"] .section-finance .fin-tx-type button.income:not(.on){background:rgba(22,141,80,.16)!important;color:#7bd8a4!important;border-color:rgba(37,170,104,.30)!important}
html[data-theme="dark"] .section-finance .fin-tx-type button.transfer:not(.on){background:rgba(53,111,194,.17)!important;color:#8db8f5!important;border-color:rgba(76,134,216,.32)!important}

/* Finance submit CTA is always DJIVA orange */
.fin-tx-submit,
.fin-tx-submit.income,
.fin-tx-submit.expense,
.fin-tx-submit.transfer,
html[data-theme="light"] .fin-tx-submit,
html[data-theme="light"] .fin-tx-submit.income,
html[data-theme="light"] .fin-tx-submit.expense,
html[data-theme="light"] .fin-tx-submit.transfer{
  background:linear-gradient(180deg,#ffc85b 0%,#ffad22 100%)!important;
  color:#241700!important;
  border:0!important;
  box-shadow:0 8px 18px rgba(255,169,23,.20)!important;
}
html[data-theme="dark"] .fin-tx-submit,
html[data-theme="dark"] .fin-tx-submit.income,
html[data-theme="dark"] .fin-tx-submit.expense,
html[data-theme="dark"] .fin-tx-submit.transfer{
  background:linear-gradient(180deg,#ffbd45 0%,#f59a16 100%)!important;
  color:#211400!important;
  border:0!important;
  box-shadow:0 8px 20px rgba(245,154,22,.22)!important;
}

/* Diary manage visibility status buttons */
html[data-theme="light"] .v2-diary-manage-toggle{
  min-width:54px!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:11px!important;
  border:1px solid #74d5a1!important;
  background:linear-gradient(180deg,#e7f9ef 0%,#d8f4e5 100%)!important;
  color:#13864c!important;
  box-shadow:0 4px 10px rgba(32,163,93,.10)!important;
  font-size:12px!important;
  font-weight:800!important;
}
html[data-theme="light"] .v2-diary-manage-row.is-hidden .v2-diary-manage-toggle{
  border-color:#c7d2df!important;
  background:linear-gradient(180deg,#f3f6f9 0%,#e8edf3 100%)!important;
  color:#58697d!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .v2-diary-manage-toggle{
  min-width:54px!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:11px!important;
  border:1px solid rgba(74,222,128,.45)!important;
  background:rgba(34,197,94,.16)!important;
  color:#78e9a5!important;
  font-size:12px!important;
  font-weight:800!important;
}
html[data-theme="dark"] .v2-diary-manage-row.is-hidden .v2-diary-manage-toggle{
  border-color:#415064!important;
  background:#1b2431!important;
  color:#a6b1bf!important;
}

/* Diary manage iOS-like switch */
.v2-diary-manage-toggle{
  position:relative!important;
  width:48px!important;
  min-width:48px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
  border-radius:999px!important;
  border:0!important;
  background:#cfd8e3!important;
  box-shadow:inset 0 0 0 1px rgba(15,31,58,.08)!important;
  transition:background .18s ease!important;
}
.v2-diary-manage-toggle.is-on{background:#22b86a!important}
.v2-diary-manage-toggle .v2-diary-toggle-knob{
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(15,31,58,.22)!important;
  transition:transform .18s ease!important;
}
.v2-diary-manage-toggle.is-on .v2-diary-toggle-knob{transform:translateX(20px)!important}
html[data-theme="dark"] .v2-diary-manage-toggle{background:#3a4657!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)!important}
html[data-theme="dark"] .v2-diary-manage-toggle.is-on{background:#20a861!important}
html[data-theme="dark"] .v2-diary-manage-toggle .v2-diary-toggle-knob{background:#f7f9fc!important}

/* Diary management: compact switch + proper dark cards */
.v2-diary-manage-toggle{
  width:42px!important;height:24px!important;min-width:42px!important;
  padding:0!important;border-radius:999px!important;
  align-self:end!important;margin-top:4px!important;
}
.v2-diary-manage-toggle .v2-diary-toggle-knob{
  width:18px!important;height:18px!important;top:3px!important;left:3px!important;
}
.v2-diary-manage-toggle.is-on .v2-diary-toggle-knob{transform:translateX(18px)!important}

html[data-theme="dark"] .section-diaries .v2-diary-manage-row{
  background:#182231!important;
  border:1px solid #304057!important;
  box-shadow:0 8px 22px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n+2){background:#172a25!important;border-color:#294a40!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n+3){background:#241d2d!important;border-color:#453653!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n+4){background:#2b241b!important;border-color:#514431!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row .v2-diary-home-title,
html[data-theme="dark"] .section-diaries .v2-diary-manage-row b{color:#f3f6fb!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row .v2-diary-home-text{color:#a9b6c8!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-drag{color:#8494a9!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row.is-hidden{opacity:.62!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-toggle.is-on{background:#20b66a!important;border-color:#36cf80!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-toggle.is-off{background:#344154!important;border-color:#4a596d!important}

/* FINAL: diaries dark theme + compact management switches */
.v2-diary-manage-toggle{
  width:34px!important;min-width:34px!important;height:20px!important;min-height:20px!important;
  padding:0!important;margin-top:2px!important;border-radius:999px!important;
}
.v2-diary-manage-toggle .v2-diary-toggle-knob{
  width:14px!important;height:14px!important;top:3px!important;left:3px!important;
}
.v2-diary-manage-toggle.is-on .v2-diary-toggle-knob{transform:translateX(14px)!important}
.v2-diary-manage-row .v2-diary-home-title{padding-right:30px!important;overflow-wrap:anywhere!important}

html[data-theme="dark"] .section-diaries .v2-diary-home-card{
  background:#182231!important;border:1px solid #304057!important;
  box-shadow:0 8px 22px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-card:nth-child(4n+2){background:#172a25!important;border-color:#294a40!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-card:nth-child(4n+3){background:#241d2d!important;border-color:#453653!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-card:nth-child(4n){background:#2b241b!important;border-color:#514431!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-title{color:#f3f6fb!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-text{color:#a9b6c8!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-meta{color:#8fb8ff!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-arrow{color:#53a7ff!important}

html[data-theme="dark"] .section-diaries .v2-diary-home-tool{
  background:#182231!important;border:1px solid #304057!important;color:#f3f6fb!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-tool b{color:#f3f6fb!important}
html[data-theme="dark"] .section-diaries .v2-diary-home-tool small{color:#9eacbf!important}

html[data-theme="dark"] .section-diaries .v2-diary-manage-row{
  background:#182231!important;border-color:#304057!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n+2){background:#172a25!important;border-color:#294a40!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n+3){background:#241d2d!important;border-color:#453653!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-row:nth-child(4n){background:#2b241b!important;border-color:#514431!important}

/* Restore dark diary cards to previous uniform style */
html[data-theme="dark"] .section-diaries .v2-diary-home-card{
  background:#182231!important;
  border:1px solid #304057!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-card:nth-child(n){
  background:#182231!important;
  border-color:#304057!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-title{
  color:#f4f7fb!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-text{
  color:#9eacbf!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-meta{
  color:#f4f7fb!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-arrow{
  position:absolute!important;
  right:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#55a7ff!important;
  font-size:22px!important;
  line-height:1!important;
  margin:0!important;
}
html[data-theme="dark"] .section-diaries .v2-diary-home-card{
  position:relative!important;
  padding-right:38px!important;
}

/* FINAL compact diary switch: small status control, not a CTA */
.section-diaries .v2-diary-manage-toggle{
  position:relative!important;
  width:30px!important;min-width:30px!important;max-width:30px!important;
  height:18px!important;min-height:18px!important;max-height:18px!important;
  padding:0!important;margin:3px 0 0!important;
  border-radius:999px!important;border:1px solid transparent!important;
  box-shadow:none!important;
}
.section-diaries .v2-diary-manage-toggle .v2-diary-toggle-knob{
  position:absolute!important;left:2px!important;top:2px!important;
  width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;
  border-radius:50%!important;box-shadow:0 1px 3px rgba(0,0,0,.25)!important;
}
.section-diaries .v2-diary-manage-toggle.is-on .v2-diary-toggle-knob{transform:translateX(12px)!important}
html[data-theme="light"] .section-diaries .v2-diary-manage-toggle.is-on{background:#20b86a!important;border-color:#18a85e!important}
html[data-theme="light"] .section-diaries .v2-diary-manage-toggle.is-off{background:#d6dde7!important;border-color:#c6cfdb!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-toggle.is-on{background:#20b86a!important;border-color:#32c97a!important}
html[data-theme="dark"] .section-diaries .v2-diary-manage-toggle.is-off{background:#39475a!important;border-color:#4b5b70!important}

/* New isolated mini switch for diary visibility */
.section-diaries .gu-mini-toggle{
  grid-column:1/-1!important;justify-self:start!important;align-self:end!important;
  position:relative!important;box-sizing:border-box!important;
  width:32px!important;height:18px!important;min-width:32px!important;min-height:18px!important;
  max-width:32px!important;max-height:18px!important;padding:0!important;margin:4px 0 0!important;
  border-radius:999px!important;border:1px solid #4b5b70!important;
  background:#39475a!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important;
}
.section-diaries .gu-mini-toggle-knob{
  position:absolute!important;box-sizing:border-box!important;left:2px!important;top:2px!important;
  width:12px!important;height:12px!important;border-radius:50%!important;background:#f7f9fc!important;
  box-shadow:0 1px 2px rgba(0,0,0,.25)!important;transition:transform .16s ease!important;
}
.section-diaries .gu-mini-toggle.is-on{background:#20b86a!important;border-color:#32c97a!important}
.section-diaries .gu-mini-toggle.is-on .gu-mini-toggle-knob{transform:translateX(14px)!important}
html[data-theme="light"] .section-diaries .gu-mini-toggle.is-off{background:#d6dde7!important;border-color:#c6cfdb!important}

/* Diary titles: never split a word on any screen/theme */
.section-diaries .v2-diary-home-title{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.section-diaries .v2-diary-home-title.is-single-word{
  white-space:nowrap!important;
  font-size:clamp(11px,3.45vw,16px)!important;
  letter-spacing:-.03em!important;
}
.section-diaries .v2-diary-home-title.is-multi-word{
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.section-diaries .v2-diary-manage-row .v2-diary-home-title.is-single-word{
  white-space:nowrap!important;
  font-size:clamp(11px,3.25vw,15px)!important;
}
@media(max-width:360px){
  .section-diaries .v2-diary-home-title.is-single-word{font-size:11px!important}
  .section-diaries .v2-diary-manage-row .v2-diary-home-title.is-single-word{font-size:10.5px!important}
}

/* TODAY progress dark parity v9: same composition as light, dark palette only; fully scoped */
html[data-theme="dark"] .gu-progress-card{position:relative!important;display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;padding:0!important;overflow:hidden!important;border-radius:22px!important;background:linear-gradient(145deg,#171726 0%,#1a1830 42%,#131d2b 100%)!important;border:1px solid #3a3558!important;box-shadow:0 12px 34px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .gu-progress-title{position:absolute!important;top:16px!important;right:18px!important;z-index:3!important;margin:0!important;font-size:18px!important;font-weight:800!important;line-height:1.1!important;color:#f4f6fb!important;text-align:right!important;white-space:nowrap!important}
html[data-theme="dark"] .gu-progress-now{grid-row:1!important;grid-column:1!important;padding:16px 13px!important;background:linear-gradient(160deg,#201a38,#271d46)!important;border-right:1px solid #3a3155!important;color:#f5f6fb!important}
html[data-theme="dark"] .gu-progress-now small{color:#b0abc4!important}
html[data-theme="dark"] .gu-progress-now strong{display:block!important;font-size:52px!important;line-height:1!important;margin:9px 0 2px!important;color:#8b5cf6!important}
html[data-theme="dark"] .gu-progress-now>b{color:#e6dcff!important}
html[data-theme="dark"] .gu-progress-now p{color:#bcb1d8!important}
html[data-theme="dark"] .gu-week-bars{grid-row:1!important;grid-column:2!important;display:flex!important;align-items:end!important;justify-content:space-around!important;gap:7px!important;padding:54px 8px 12px!important}
html[data-theme="dark"] .gp-day{height:116px!important;flex:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;color:#f4f6fb!important}
html[data-theme="dark"] .gp-day small{color:#97a4b5!important}
html[data-theme="dark"] .gp-day i{display:block!important;width:100%!important;max-width:28px!important;min-height:14px!important;border-radius:9px 9px 5px 5px!important;background:linear-gradient(180deg,#4f79b6,#273d5d)!important}
html[data-theme="dark"] .gp-day i.today{background:linear-gradient(180deg,#8e62ff,#6b3ce8)!important;box-shadow:0 8px 16px rgba(107,60,232,.28)!important}
html[data-theme="dark"] .gu-progress-week{grid-column:1/-1!important;display:block!important;background:#141a25!important;border-top:1px solid #302a43!important}
html[data-theme="dark"] .gu-progress-week-head{padding:10px 14px 4px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#a89acb!important}
html[data-theme="dark"] .gu-progress-week-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-theme="dark"] .gu-progress-week-grid>span{padding:10px 8px 12px!important;text-align:center!important;min-width:0!important}
html[data-theme="dark"] .gu-progress-week-grid>span+span{border-left:1px solid #2b3342!important}
html[data-theme="dark"] .gu-progress-week-grid b{display:block!important;font-size:17px!important;line-height:1!important}
html[data-theme="dark"] .gu-progress-week-grid small{display:block!important;margin-top:4px!important;font-size:9px!important;line-height:1.2!important;color:#8f9caf!important}
html[data-theme="dark"] .gu-progress-week-grid span:nth-child(1) b{color:#38d88a!important}
html[data-theme="dark"] .gu-progress-week-grid span:nth-child(2) b{color:#64a6ff!important}
html[data-theme="dark"] .gu-progress-week-grid span:nth-child(3) b{color:#9a75ff!important}
html[data-theme="dark"] .gu-progress-week-grid span:nth-child(4) b{color:#ff72b3!important}
html[data-theme="dark"] .gu-progress-month{grid-column:1/-1!important;padding:14px 16px 15px!important;background:#171d29!important;border-top:1px solid #302a43!important}
html[data-theme="dark"] .gu-progress-month-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important}
html[data-theme="dark"] .gu-progress-month-head b{font-size:15px!important;color:#f4f6fb!important}
html[data-theme="dark"] .gu-progress-month-head span{font-size:12px!important;color:#70a7ff!important;font-weight:700!important}
html[data-theme="dark"] .gu-progress-month-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:10px!important}
html[data-theme="dark"] .gu-progress-month-grid span{background:#111722!important;border:1px solid #2d3747!important;border-radius:13px!important;padding:10px 9px!important}
html[data-theme="dark"] .gu-progress-month-grid b{display:block!important;font-size:17px!important;color:#f4f6fb!important}
html[data-theme="dark"] .gu-progress-month-grid small{display:block!important;margin-top:2px!important;font-size:10px!important;color:#8f9caf!important}
html[data-theme="dark"] .gu-month-bottom{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:10px!important;margin-top:12px!important;align-items:stretch!important}
html[data-theme="dark"] .gu-income{padding:12px 13px!important;border:1px solid #2d3747!important;border-radius:15px!important;background:#111722!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
html[data-theme="dark"] .gu-income small{font-size:9px!important;color:#8f9caf!important}
html[data-theme="dark"] .gu-income b{margin-top:4px!important;font-size:15px!important;color:#f4f6fb!important}
html[data-theme="dark"] .gu-savings{display:grid!important;grid-template-columns:38px 1fr!important;gap:10px!important;align-items:center!important;padding:11px 13px!important;border-radius:16px!important;border:1px solid #285b45!important;background:linear-gradient(145deg,#13291f,#173426)!important}
html[data-theme="dark"] .gu-savings-icon{width:36px!important;height:36px!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#46d98d,#1bab63)!important;color:#fff!important;font-size:14px!important}
html[data-theme="dark"] .gu-savings small{display:block!important;font-size:9px!important;font-weight:700!important;color:#8bdcb2!important}
html[data-theme="dark"] .gu-savings b{display:block!important;font-size:23px!important;line-height:1!important;color:#39d282!important;margin-top:2px!important}
html[data-theme="dark"] .gu-savings em{display:block!important;margin-top:4px!important;font-style:normal!important;font-size:9px!important;line-height:1.25!important;color:#90bca4!important}
html[data-theme="dark"] .gu-savings.bad{background:linear-gradient(145deg,#2b2117,#382719)!important;border-color:#644324!important}
html[data-theme="dark"] .gu-savings.bad .gu-savings-icon{background:linear-gradient(145deg,#ffb65c,#dd8430)!important}
html[data-theme="dark"] .gu-savings.bad b{color:#ffad55!important}
html[data-theme="dark"] .gu-savings.bad small,html[data-theme="dark"] .gu-savings.bad em{color:#c9a57c!important}
@media(max-width:430px){html[data-theme="dark"] .gu-month-bottom{grid-template-columns:1fr!important}}


/* Today hero: same card width as progress and other home blocks */
html[data-theme="light"] .v2-home-dashboard .gu-hero,
html[data-theme="dark"] .v2-home-dashboard .gu-hero{
  margin:9px 0 18px!important;
  width:auto!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  border-radius:22px!important;
}

/* ===== DJIVA orange brand: Progress + Horoscope v13 ===== */
/* LIGHT — replace purple decorative accents with DJIVA orange */
html[data-theme="light"] .gu-home-light .gu-progress-card{
  background:linear-gradient(145deg,#fffdf9 0%,#fff7ea 38%,#f7fbff 100%)!important;
  border-color:#f3d4a3!important;
  box-shadow:0 12px 34px rgba(242,153,24,.10)!important;
}
html[data-theme="light"] .gu-home-light .gu-progress-now{
  background:linear-gradient(160deg,#fffaf2,#fff1d9)!important;
  border-right-color:#f0dcc0!important;
}
html[data-theme="light"] .gu-home-light .gu-progress-now strong{color:#f29b18!important}
html[data-theme="light"] .gu-home-light .gu-progress-now>b{color:#8d5200!important}
html[data-theme="light"] .gu-home-light .gu-progress-now p{color:#7d6748!important}
html[data-theme="light"] .gu-home-light .gp-day i.today{
  background:linear-gradient(180deg,#ffbd4a,#f39a12)!important;
  box-shadow:0 8px 16px rgba(243,154,18,.20)!important;
}
html[data-theme="light"] .gu-home-light .gu-progress-week-head{color:#a96808!important}
html[data-theme="light"] .gu-home-light .gu-progress-week-grid span:nth-child(3) b{color:#f29b18!important}
html[data-theme="light"] .gu-home-light .ghoro-menu{
  border-color:#f1d2a5!important;
  background:linear-gradient(120deg,#fff9ef,#fff3df 55%,#fffaf1)!important;
  box-shadow:0 10px 28px rgba(240,153,26,.09)!important;
}
html[data-theme="light"] .gu-home-light .ghoro-menu>b{color:#6f4506!important}
html[data-theme="light"] .gu-home-light .ghoro-menu small{color:#a86a0e!important}
html[data-theme="light"] .gu-home-light .ghoro-menu>span:first-child{
  background:linear-gradient(145deg,#ffbd4a,#f39a12)!important;color:#fff!important;
}
html[data-theme="light"] .gu-home-light .ghoro{
  background:linear-gradient(135deg,#fff9ef,#fff3df 52%,#fffaf3)!important;
  border-color:#f0d0a0!important;
  box-shadow:0 12px 30px rgba(239,151,23,.10)!important;
}
html[data-theme="light"] .gu-home-light .ghoro-focus{background:rgba(255,255,255,.64)!important;border-color:rgba(239,158,37,.24)!important}
html[data-theme="light"] .gu-home-light .ghoro-theme{color:#754707!important}
html[data-theme="light"] .gu-home-light .ghoro-focus b{color:#b56d05!important}
html[data-theme="light"] .gu-home-light .ghoro-copy,
html[data-theme="light"] .gu-home-light .ghoro-focus span{color:#5e513f!important}

/* DARK — same component hierarchy, warm DJIVA orange instead of purple */
html[data-theme="dark"] .gu-progress-card{
  background:linear-gradient(145deg,#171b24 0%,#1d1b18 44%,#141d29 100%)!important;
  border-color:#5a452b!important;
}
html[data-theme="dark"] .gu-progress-now{
  background:linear-gradient(160deg,#272116,#322516)!important;
  border-right-color:#52402a!important;
}
html[data-theme="dark"] .gu-progress-now strong{color:#ffad2e!important}
html[data-theme="dark"] .gu-progress-now>b{color:#ffe0a3!important}
html[data-theme="dark"] .gu-progress-now p{color:#c7ad82!important}
html[data-theme="dark"] .gu-week-bars .gp-day i.today{
  background:linear-gradient(180deg,#ffbd4a,#ef9410)!important;
  box-shadow:0 8px 16px rgba(239,148,16,.20)!important;
}
html[data-theme="dark"] .gu-progress-week-head{color:#d3a45e!important}
html[data-theme="dark"] .gu-progress-week-grid span:nth-child(3) b{color:#ffad2e!important}
html[data-theme="dark"] .ghoro-menu{
  border-color:rgba(245,164,47,.34)!important;
  background:rgba(109,72,21,.16)!important;
}
html[data-theme="dark"] .ghoro{
  border-color:rgba(245,164,47,.38)!important;
  background:linear-gradient(145deg,rgba(91,60,18,.34),rgba(20,29,43,.96))!important;
}
html[data-theme="dark"] .ghoro-focus{background:rgba(12,18,29,.52)!important;border-color:rgba(245,164,47,.24)!important}
html[data-theme="dark"] .ghoro-focus b{color:#ffc76b!important}
html[data-theme="dark"] .ghoro-theme{color:#fff4df!important}

/* Audit accessibility pass — interactive targets and compact text */
.v2-icon-btn,.v2-pro,.v2-mini-btn,.settings-theme-btn,.settings-pro-status,.settings-state-toggle{min-height:44px!important}
.v2-icon-btn{min-width:44px!important;width:44px!important}
.ghoro-close,.task-check{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important}
.task-remind,.v2-diary-manage-toggle{min-height:44px!important;padding-top:9px!important;padding-bottom:9px!important}
.ghoro-note,.credit-note,.credit-day-inline span,.task-copy small{font-size:12px!important;line-height:1.4!important}
@media(max-width:390px){.credit-day-inline span{font-size:11px!important}}

/* Audit keyboard/focus pass */
[role="button"]{cursor:pointer}
[role="button"]:focus-visible,.gcard:focus-visible,.row[onclick]:focus-visible,.card[onclick]:focus-visible{outline:2px solid var(--bl)!important;outline-offset:2px!important;box-shadow:var(--gu-focus)!important}

/* Audit destructive-action semantics */
button.danger,.danger.btn,.btn[onclick*="Delete"],.btn[onclick*="delGoal"],.btn[onclick*="delTx"],.btn[onclick*="dDelete"]{background:rgba(217,65,65,.10)!important;color:var(--rd)!important;border:1px solid rgba(217,65,65,.32)!important;box-shadow:none!important}
button.danger:focus-visible,.danger.btn:focus-visible{box-shadow:0 0 0 3px rgba(217,65,65,.16)!important}

/* Audit readability pass — compact dashboard labels */
.gu-progress-week-grid small,.gu-progress-month-grid small,.gu-income small,.gu-savings small,.gu-savings em{font-size:11px!important;line-height:1.3!important}
.gu-progress-month-head>span,.gi-card-head .gi-period{font-size:11px!important}
@media(max-width:390px){.gu-progress-week-grid small,.gu-progress-month-grid small,.gu-income small,.gu-savings small,.gu-savings em{font-size:10.5px!important}}

/* Today parity: same next-action DOM in dark, dark-specific presentation */
html[data-theme="dark"] .v2-home-dashboard .v2-next-action{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:14px!important}
html[data-theme="dark"] .v2-home-dashboard .gu-action-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(245,165,36,.13);border:1px solid rgba(245,165,36,.22);color:var(--am);font-size:32px;font-weight:900}
html[data-theme="dark"] .v2-home-dashboard .gu-action-copy{min-width:0}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action .v2-action-k{color:#f6bd61!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action h2{margin:3px 0 4px!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action p{margin:0!important;max-width:none!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action .btn{grid-column:1/-1;width:100%!important;margin-top:2px!important}
html[data-theme="dark"] .v2-home-dashboard .gu-action-arrow{display:none}

/* Today parity: weekly review uses the same information hierarchy in dark */
html[data-theme="dark"] .v2-home-dashboard .gi-card-head,html[data-theme="dark"] .v2-home-dashboard .gi-head{display:flex!important;align-items:baseline!important;gap:8px!important;margin:0 0 12px!important;white-space:nowrap!important}
html[data-theme="dark"] .v2-home-dashboard .gi-card-head strong,html[data-theme="dark"] .v2-home-dashboard .gi-head strong{font-size:15px!important;line-height:1.1!important;color:#f3f6fb!important;font-weight:800!important;flex:0 0 auto!important}
html[data-theme="dark"] .v2-home-dashboard .gi-period{font-size:11px!important;line-height:1.1!important;color:#8f9caf!important;font-weight:700!important;white-space:nowrap!important}
html[data-theme="dark"] .v2-home-dashboard .gi-change{font-size:clamp(20px,5.4vw,26px)!important;line-height:1.1!important;margin:0 0 14px!important;color:#f3f6fb!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai{margin-top:14px!important;border-radius:18px!important;background:#132238!important;border:1px solid #29486d!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai b{color:#86baff!important;font-size:13px!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai p{color:#b5c3d6!important}
html[data-theme="dark"] .v2-home-dashboard .gi-next{position:relative!important;margin-top:12px!important;padding:14px 16px 14px 54px!important;border-radius:18px!important;background:#13291f!important;border:1px solid #285b45!important}
html[data-theme="dark"] .v2-home-dashboard .gi-next:before{content:"◎";position:absolute;left:14px;top:15px;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#20a861;color:#fff;font-weight:900}
html[data-theme="dark"] .v2-home-dashboard .gi-next strong{color:#f3f6fb!important}.v2-home-dashboard .gi-next p{line-height:1.4}
@media(max-width:390px){html[data-theme="dark"] .v2-home-dashboard .gi-card-head,html[data-theme="dark"] .v2-home-dashboard .gi-head{gap:6px!important}html[data-theme="dark"] .v2-home-dashboard .gi-period{font-size:10px!important}html[data-theme="dark"] .v2-home-dashboard .gi-change{font-size:19px!important}}

/* Today parity: improvement list follows the same hierarchy in both themes */
.v2-home-dashboard .v2-improve-block{margin-top:22px!important}
.v2-home-dashboard .v2-improve-block .v2-section-head{margin:0 2px 10px!important}
.v2-home-dashboard .v2-improve-list{border-radius:18px!important;overflow:hidden!important}
.v2-home-dashboard .v2-improve-list>button{min-height:64px!important}
html[data-theme="dark"] .v2-home-dashboard .v2-improve-list{background:#141c28!important;border-color:#2c394b!important}
html[data-theme="dark"] .v2-home-dashboard .v2-improve-list>button{border-color:#293648!important}
html[data-theme="dark"] .v2-home-dashboard .v2-improve-icon{background:rgba(245,165,36,.12)!important;color:#ffc15c!important}
html[data-theme="dark"] .v2-home-dashboard .v2-improve-cta{color:#ffc15c!important}
html[data-theme="dark"] .v2-home-dashboard .v2-improve-optional{background:rgba(255,255,255,.018)!important}

/* Audit final responsive/state guardrails */
.v2-home-dashboard,.section-goals,.section-finance,.section-diaries{overflow-wrap:anywhere}
.v2-home-dashboard h1,.v2-home-dashboard h2,.v2-home-dashboard strong,.gcard b,.row b{word-break:normal;overflow-wrap:anywhere}
.v2-home-dashboard .btn,.v2-improve-list button,.gcard,.row{max-width:100%}
@media(max-width:390px){.v2-home-dashboard .gu-progress-title{font-size:16px!important}.v2-home-dashboard .gu-progress-month-head{align-items:flex-start!important;flex-wrap:wrap!important}.v2-home-dashboard .gu-progress-month-head>span{white-space:normal!important}.v2-home-dashboard .gi-head{white-space:normal!important;flex-wrap:wrap!important}.v2-home-dashboard .gi-change{white-space:normal!important}.v2-home-dashboard .v2-improve-list>button{padding:12px!important}.v2-top-inner{gap:6px!important}.v2-brand{flex-shrink:0}}
@media(max-width:360px){.v2-home-dashboard .gu-progress-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v2-home-dashboard .gu-progress-week-grid>span:nth-child(3){border-left:0!important;border-top:1px solid var(--line)!important}.v2-home-dashboard .gu-progress-week-grid>span:nth-child(4){border-top:1px solid var(--line)!important}.v2-home-dashboard .gu-month-bottom{grid-template-columns:1fr!important}}

/* Completed weekly rhythm: hand control back to the user */
.v2-home-dashboard .v2-next-choice{display:block!important}
.v2-home-dashboard .gu-next-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px}
.v2-home-dashboard .gu-next-choices button{min-height:92px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);color:var(--tx);padding:11px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
.v2-home-dashboard .gu-next-choices button>span{font-size:22px}.v2-home-dashboard .gu-next-choices b{font-size:13px}.v2-home-dashboard .gu-next-choices small{font-size:10.5px;line-height:1.2;color:var(--mu)}
html[data-theme="light"] .v2-home-dashboard .gu-next-choices button{background:#fff!important;border-color:#e3e9f1!important}
html[data-theme="dark"] .v2-home-dashboard .gu-next-choices button{background:#141c28!important;border-color:#2c394b!important}
@media(max-width:360px){.v2-home-dashboard .gu-next-choices{grid-template-columns:1fr}.v2-home-dashboard .gu-next-choices button{min-height:64px}}

/* Horoscope contrast: one warm component, readable in both themes */
html[data-theme="dark"] .v2-home-dashboard .ghoro{background:linear-gradient(145deg,#201d18 0%,#181d26 58%,#151c27 100%)!important;border-color:#604725!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-head b{color:#f4f6fa!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-theme{color:#fff1d2!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-copy{color:#c8d0dc!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-focus{background:#151b25!important;border-color:#594321!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-focus b{color:#ffc56b!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-focus span{color:#c9d1dc!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-note{color:#929dac!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-close{background:#1c2635!important;border-color:#35445a!important;color:#aeb9c9!important}
html[data-theme="light"] .v2-home-dashboard .ghoro-copy{color:#665947!important}
html[data-theme="light"] .v2-home-dashboard .ghoro-note{color:#84745d!important}

/* Collapsed horoscope: readable warm accent in both themes */
html[data-theme="dark"] .v2-home-dashboard .ghoro-menu{background:linear-gradient(135deg,#201d18,#171d27)!important;border-color:#604725!important;box-shadow:0 8px 22px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-menu>b{color:#f3f5f8!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-menu small{color:#ffc15c!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-menu>span:last-child{color:#aeb9c9!important}
html[data-theme="dark"] .v2-home-dashboard .ghoro-menu>span:first-child{background:linear-gradient(145deg,#ffb43a,#ed9212)!important;color:#17120a!important;box-shadow:0 6px 16px rgba(239,148,16,.20)!important}
html[data-theme="light"] .v2-home-dashboard .ghoro-menu>b{color:#4d3a20!important}
html[data-theme="light"] .v2-home-dashboard .ghoro-menu>span:last-child{color:#7c6a50!important}

/* Settings toggles — DJIVA brand orange, readable in dark and light */
.settings-shell .settings-state-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 6px 5px 14px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.settings-shell .settings-state-toggle i{display:block;width:28px;height:28px;border-radius:50%}
.settings-shell .settings-state-toggle.is-on{background:linear-gradient(135deg,#ffad2e,#ffc45e)!important;border:1px solid #f2a126!important;color:#241707!important;box-shadow:0 5px 14px rgba(239,148,16,.18)!important}
.settings-shell .settings-state-toggle.is-on i{background:#fff!important;box-shadow:inset 0 0 0 7px #f6a21e,0 2px 7px rgba(0,0,0,.12)!important}
html[data-theme="dark"] .settings-shell .settings-state-toggle.is-off{background:#202733!important;border:1px solid #39475b!important;color:#aab5c5!important}
html[data-theme="dark"] .settings-shell .settings-state-toggle.is-off i{background:#6e7989!important}

/* Settings PRO status — explicit active/off states */
.settings-shell .settings-pro-status{display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:44px!important;padding:5px 13px!important;border-radius:999px!important;background:linear-gradient(135deg,#ffad2e,#ffc45e)!important;border:1px solid #f2a126!important;color:#241707!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important;box-shadow:0 5px 14px rgba(239,148,16,.18)!important}
.settings-shell .settings-pro-status>b{font-size:18px!important;line-height:1!important;color:#5d3700!important}
.settings-shell .settings-pro-off{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:5px 11px 5px 13px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--mu);font-size:12px;font-weight:800;white-space:nowrap}
.settings-shell .settings-pro-off>b{font-size:20px;line-height:1;color:var(--am)}
html[data-theme="dark"] .settings-shell .settings-pro-off{background:#151c27!important;border-color:#35445a!important;color:#aeb9c9!important}

/* Weekly review dark contrast — body copy must stay readable */
html[data-theme="dark"] .v2-home-dashboard .gi-next{background:#10291e!important;border-color:#2d674d!important}
html[data-theme="dark"] .v2-home-dashboard .gi-next strong{color:#f3f7f5!important}
html[data-theme="dark"] .v2-home-dashboard .gi-next p{color:#c2d2ca!important;opacity:1!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai{background:#14233a!important;border-color:#31547d!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai b{color:#8fc0ff!important}
html[data-theme="dark"] .v2-home-dashboard .gi-ai p{color:#c4cfdf!important;opacity:1!important}
html[data-theme="dark"] .v2-home-dashboard .gi-card p,html[data-theme="dark"] .v2-home-dashboard .gi-card li{opacity:1!important}
html[data-theme="light"] .v2-home-dashboard .gi-next p{color:#456556!important;opacity:1!important}
html[data-theme="light"] .v2-home-dashboard .gi-ai p{color:#53677f!important;opacity:1!important}

/* Completed-rhythm choice card: force a normal vertical layout */
.v2-home-dashboard .v2-next-choice{display:block!important;padding:20px!important}
.v2-home-dashboard .v2-next-choice .gu-action-copy{display:block!important;width:100%!important;min-width:0!important}
.v2-home-dashboard .v2-next-choice .v2-action-k{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.v2-home-dashboard .v2-next-choice h2{max-width:none!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;margin:6px 0 7px!important}
.v2-home-dashboard .v2-next-choice p{max-width:none!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;margin:0!important}
.v2-home-dashboard .v2-next-choice .gu-next-choices{width:100%!important;margin-top:18px!important}
@media(max-width:390px){.v2-home-dashboard .v2-next-choice{padding:16px!important}.v2-home-dashboard .gu-next-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v2-home-dashboard .gu-next-choices button{padding:10px 5px!important}}
@media(max-width:340px){.v2-home-dashboard .gu-next-choices{grid-template-columns:1fr!important}}

/* Top PRO: active is gold; inactive must never look subscribed */
.v2-tools .v2-pro:not(.on){background:#151c27!important;border:1px solid #35445a!important;color:#aeb9c9!important;box-shadow:none!important}
.v2-tools .v2-pro.on{background:linear-gradient(135deg,#ffad2e,#ffc45e)!important;border-color:#f2a126!important;color:#241707!important;box-shadow:0 5px 14px rgba(239,148,16,.18)!important}
html[data-theme="light"] .v2-tools .v2-pro:not(.on){background:#fff!important;border:1px solid #dce3ec!important;color:#77869a!important;box-shadow:none!important}

/* FINAL specificity fix: completed choice overrides dark next-action grid */
html[data-theme="dark"] .v2-home-dashboard .v2-next-action.v2-next-choice,html[data-theme="light"] .v2-home-dashboard .v2-next-action.v2-next-choice{display:block!important;grid-template-columns:none!important;grid-template-areas:none!important;padding:20px!important;min-height:0!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action.v2-next-choice .gu-action-copy,html[data-theme="light"] .v2-home-dashboard .v2-next-action.v2-next-choice .gu-action-copy{display:block!important;width:100%!important;max-width:none!important;min-width:0!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action.v2-next-choice h2,html[data-theme="light"] .v2-home-dashboard .v2-next-action.v2-next-choice h2{display:block!important;width:100%!important;max-width:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action.v2-next-choice p,html[data-theme="light"] .v2-home-dashboard .v2-next-action.v2-next-choice p{display:block!important;width:100%!important;max-width:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;margin:0!important}
html[data-theme="dark"] .v2-home-dashboard .v2-next-action.v2-next-choice .gu-next-choices,html[data-theme="light"] .v2-home-dashboard .v2-next-action.v2-next-choice .gu-next-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;margin:18px 0 0!important}

/* TASK FORM mobile containment — both themes, iOS datetime included */
.section-diaries .task-form{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
.section-diaries .task-form .field{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
.section-diaries .task-form input,.section-diaries .task-form textarea{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important}
.section-diaries .task-form input[type="datetime-local"]{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;-webkit-appearance:none!important;appearance:none!important;overflow:hidden!important}
.section-diaries .task-form input[type="datetime-local"]::-webkit-date-and-time-value{min-width:0!important;text-align:left!important}
.section-diaries .task-form-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important;gap:10px!important}
.section-diaries .task-form-actions>*{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

/* Diary form typography parity — dark follows the proven light hierarchy */
html[data-theme="dark"] .section-diaries .task-form .field>.lbl{display:block!important;margin:0 0 7px!important;color:#dfe7f2!important;font-size:16px!important;line-height:1.25!important;font-weight:700!important}
html[data-theme="dark"] .section-diaries .task-form .hint{margin-top:7px!important;color:#8d9aab!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important}
html[data-theme="dark"] .section-diaries .task-form input,html[data-theme="dark"] .section-diaries .task-form textarea{font-size:16px!important;line-height:1.35!important;color:#eef3f9!important}
html[data-theme="dark"] .section-diaries .task-form input::placeholder,html[data-theme="dark"] .section-diaries .task-form textarea::placeholder{color:#7f8998!important;opacity:1!important}
html[data-theme="dark"] .section-diaries .task-head .lbl{font-size:13px!important;line-height:1.45!important;color:#8795a8!important;font-weight:500!important}

/* Goals pace marker — keep the planned-tempo tick visible in both themes */
.section-goals .gcard .bar{position:relative!important;overflow:visible!important}
.section-goals .gcard .bar .mark{position:absolute!important;top:-4px!important;width:3px!important;height:15px!important;border-radius:999px!important;transform:translateX(-50%)!important;z-index:4!important;opacity:1!important}
html[data-theme="light"] .section-goals .gcard .bar .mark{background:#7f8996!important;box-shadow:0 0 0 1px rgba(255,255,255,.75)!important}
html[data-theme="dark"] .section-goals .gcard .bar .mark{background:#d9e0e9!important;box-shadow:0 0 0 1px rgba(8,13,20,.55)!important}

/* Goal pace colors: green = on/ahead of plan, red = behind plan */
.section-goals .gcard .bar .fill.pace-fill{border-radius:999px!important}
.section-goals .gcard .bar .fill.pace-ok{background:#22c55e!important}
.section-goals .gcard .bar .fill.pace-behind{background:#ff4655!important}
.section-goals .gcard .bar .fill.pace-neutral{background:linear-gradient(90deg,#4b8fff,#7a48f5)!important}

/* Average goals progress is informational: DJIVA blue, not pace status */
.section-goals .avg-progress-bar .fill{background:#4b8fff!important}

/* Goal-create choice buttons: match finance account chips in dark theme */
html[data-theme="dark"] .section-goals .emo{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
html[data-theme="dark"] .section-goals .emo button{background:#202a3a!important;color:#dbe4f0!important;border:1px solid #3a4a61!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
html[data-theme="dark"] .section-goals .emo button.on{background:#164d3a!important;color:#effff7!important;border-color:#2bdc85!important;box-shadow:0 0 0 1px rgba(43,220,133,.12),inset 0 1px 0 rgba(255,255,255,.04)!important}
html[data-theme="dark"] .section-goals .emo button:active{background:#273449!important;transform:translateY(1px)}

/* Greeting: visible punctuation spacing + always one line */
.gu-hero .v2-title{white-space:nowrap!important;display:flex!important;align-items:baseline!important;min-width:0!important;font-size:clamp(18px,7.1vw,30px)!important;letter-spacing:-.045em!important}
.gu-greeting-text,.gu-greeting-name{display:inline-block!important;white-space:nowrap!important}
.gu-greeting-gap{display:inline-block!important;flex:0 0 .32em!important;width:.32em!important;min-width:.32em!important;letter-spacing:0!important}
.gu-greeting-name{min-width:0!important}
@media(max-width:380px){.gu-hero .v2-title{font-size:clamp(17px,6.7vw,27px)!important}}

/* PRO: корона крупнее, размер кнопки прежний */
.v2-pro .v2-pro-in{display:inline-flex;align-items:center;gap:5px;line-height:1}
.v2-pro .v2-pro-crown{width:17px;height:17px;flex:none;fill:currentColor;margin-top:-2px}

/* PRO: высота на 10% меньше (44 → 40px), кнопка настроек без изменений */
.v2-tools .v2-pro{height:40px!important;min-height:40px!important;align-self:center!important}

/* Настройки: на 4% меньше (44 → 42px) */
.v2-tools .v2-icon-btn{width:42px!important;height:42px!important;min-height:42px!important;min-width:42px!important;align-self:center!important}

/* Настройки: 40×40px, как высота PRO */
.v2-tools .v2-icon-btn{width:40px!important;height:40px!important;min-height:40px!important;min-width:40px!important;align-self:center!important}

/* Настройки: 41×41px */
.v2-tools .v2-icon-btn{width:41px!important;height:41px!important;min-height:41px!important;min-width:41px!important;align-self:center!important}

/* «PRO подключён»: корона как в верхней кнопке */
.settings-shell .settings-pro-status>b{display:inline-flex!important;align-items:center!important;color:inherit!important}
.settings-pro-status .v2-pro-crown{width:17px;height:17px;flex:none;fill:currentColor;margin-top:-2px}

/* Доход + сбережения: одна нейтральная плитка */
.gu-money{margin-top:12px!important;padding:13px 14px!important;border-radius:15px!important;border:1px solid #2d3747!important;background:#111722!important}
.gu-money-row{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:10px!important}
.gu-money-r{text-align:right!important}
.gu-money small{display:block!important;font-size:11px!important;line-height:1.3!important;color:#8f9caf!important}
.gu-money b{display:block!important;margin-top:3px!important;font-size:19px!important;font-weight:750!important;line-height:1.1!important;color:#f4f6fb!important}
.gu-money .gu-money-rate{color:#39d282!important}
.gu-money-bar{height:6px!important;border-radius:3px!important;background:#222c3a!important;margin-top:11px!important;overflow:hidden!important}
.gu-money-bar i{display:block!important;height:100%!important;border-radius:3px!important;background:#39d282!important}
.gu-money-note{margin-top:7px!important;font-size:11px!important;line-height:1.3!important;color:#8f9caf!important}
.gu-money.bad .gu-money-rate{color:#ffad55!important}.gu-money.bad .gu-money-bar i{background:#ffad55!important}
.gu-money.neutral .gu-money-rate{color:#8f9caf!important}
html[data-theme="light"] .gu-money{background:#fff!important;border-color:#e5ebf2!important;box-shadow:none!important}
html[data-theme="light"] .gu-money small,html[data-theme="light"] .gu-money-note{color:#6b778a!important}
html[data-theme="light"] .gu-money b{color:#1a2230!important}
html[data-theme="light"] .gu-money .gu-money-rate{color:#16935a!important}
html[data-theme="light"] .gu-money-bar{background:#edf1f6!important}
html[data-theme="light"] .gu-money-bar i{background:#22b36c!important}
html[data-theme="light"] .gu-money.bad .gu-money-rate{color:#d97a1c!important}
html[data-theme="light"] .gu-money.bad .gu-money-bar i{background:#ef9138!important}
html[data-theme="light"] .gu-money.neutral .gu-money-rate{color:#6b778a!important}

/* Разбор недели: значок «анализ» */
.gi-head .gi-badge{align-self:center!important;flex:none!important;width:34px;height:34px;border-radius:11px;display:inline-grid;place-items:center;margin-right:2px;background:linear-gradient(145deg,#6d8cff,#8b5cf6);color:#fff;box-shadow:0 6px 16px rgba(109,120,255,.28);position:relative;overflow:hidden}
.gi-head .gi-badge svg{width:20px;height:20px;fill:currentColor;position:relative;z-index:1}
.gi-head .gi-badge::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-120%);animation:giShine 4.5s ease-in-out infinite}
@keyframes giShine{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.gi-head .gi-badge::after{animation:none;display:none}}
html[data-theme="light"] .gi-head .gi-badge{background:linear-gradient(145deg,#eef1ff,#f1eaff);color:#6b4ee6;box-shadow:0 4px 12px rgba(107,78,230,.14);border:1px solid #e0d8fb}
html[data-theme="light"] .gi-head .gi-badge::after{background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.8) 50%,transparent 70%)}
.gu-home-light .gi-head{align-items:center!important}
.v2-home-dashboard .gi-head{align-items:center!important}

/* Разбор недели: значок и текст по одной линии */
html[data-theme] .gi-head,html[data-theme] .v2-home-dashboard .gi-head,html[data-theme] .gu-home-light .gi-head{display:flex!important;align-items:center!important;gap:10px!important;padding-right:0!important}
html[data-theme] .gi-head>strong,html[data-theme] .gi-head>.gi-period{align-self:center!important;margin:0!important;padding:0!important;line-height:1.2!important}
html[data-theme] .gi-head>.gi-period{min-width:0!important}

/* Progress period switcher: unified week / month / lifetime */
html[data-theme="light"] .gu-home-light .gu-period-tabs,
html[data-theme="light"] .gu-home-light .gu-period-panel,
html[data-theme="dark"] .gu-period-tabs,
html[data-theme="dark"] .gu-period-panel{grid-column:1/-1!important}
html[data-theme="light"] .gu-home-light .gu-period-tabs{background:rgba(255,255,255,.64)!important;border-top:1px solid #e7e1f6!important}
html[data-theme="light"] .gu-home-light .gu-period-panel{background:rgba(255,255,255,.72)!important;border-top:0!important}
html[data-theme="dark"] .gu-period-tabs{background:#141a25!important;border-top:1px solid #302a43!important}
html[data-theme="dark"] .gu-period-panel{background:#171d29!important;border-top:0!important}
html[data-theme="light"] .gu-home-light .gu-period-tabs button{background:#fff!important;border-color:#e4eaf2!important;color:#6b778a!important}
html[data-theme="light"] .gu-home-light .gu-period-tabs button.on{background:#edf4ff!important;border-color:#9dc1ff!important;color:#286dce!important}
html[data-theme="dark"] .gu-period-tabs button{background:#111722!important;border-color:#2d3747!important;color:#8f9caf!important}
html[data-theme="dark"] .gu-period-tabs button.on{background:#17263a!important;border-color:#416a9d!important;color:#8fc0ff!important}
html[data-theme="light"] .gu-home-light .gu-period-grid{background:#fff!important;border-color:#e5ebf2!important}
html[data-theme="dark"] .gu-period-grid{background:#111722!important;border-color:#2d3747!important}
html[data-theme="light"] .gu-home-light .gu-period-grid>span+span{border-color:#e5ebf2!important}
html[data-theme="dark"] .gu-period-grid>span+span{border-color:#2d3747!important}
html[data-theme="light"] .gu-home-light .gu-period-grid b,
html[data-theme="dark"] .gu-period-grid b{color:var(--tx)!important}
@media(max-width:390px){.gu-period-grid small{font-size:9px!important}.gu-period-grid>span{padding-left:3px!important;padding-right:3px!important}}

/* Progress quote: responsive fit without breaking words */
.gu-progress-now p{
  font-size:clamp(12px,3.15vw,17px)!important;
  line-height:1.25!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
@media(max-width:390px){
  .gu-progress-now p{font-size:clamp(11px,3vw,15px)!important}
}
@media(max-width:350px){
  .gu-progress-now p{font-size:11px!important}
}
/* ===== RESPONSIVE LEGIBILITY PASS — 2026-09-24 =====
   Shared typography scale. Enlarges genuinely tiny labels on normal phones,
   automatically scales down on narrow screens, and avoids breaking inside words. */
:root{
  --gu-type-ring:clamp(6.8px,1.9vw,8px);
  --gu-type-micro:clamp(9.2px,2.6vw,10.5px);
  --gu-type-xs:clamp(10px,2.9vw,11.5px);
  --gu-type-sm:clamp(10.8px,3.1vw,12.5px);
}

/* Today / weekly review / progress microcopy */
.gu-progress-week small,
.gu-progress-week-grid small,
.gu-progress-month-grid small,
.gu-income small,
.gu-savings small,
.gu-savings em,
.gu-period-grid small{font-size:var(--gu-type-micro)!important}

.gu-progress-month-head>span,
.gu-quote,
.gi-period,
.gi-countdown small,
.gi-week-data span,
.v2-improve-cta{font-size:var(--gu-type-xs)!important}

/* Habits and women's calendar */
.habit-day small,
.cycle-stepper span,
.cycle-kpi-grid small,
.cycle-kpi-grid span,
.cycle-wellbeing-stats small,
.day-feeling small{font-size:var(--gu-type-xs)!important}

/* Siberian Wellness: structural labels */
.sw-progress-head small,
.sw-progress-head em,
.sw-road-hint,
.sw-stage-kicker,
.sw-stage-points,
.sw-next-card small,
.sw-next-foot,
.sw-goal-open i,
.sw-goal-focus small,
.sw-goal-focus span,
.sw-reminder-hint,
.sw-gate-privacy,
.sw-ref-actions small,
.sw-crm-history-head span,
.sw-crm-event summary small,
.sw-crm-event-body small,
.sw-crm-event-body span,
.sw-crm-status,
.sw-crm-channel-copy small,
.sw-crm-count,
.sw-crm-next small,
.sw-crm-next-date,
.sw-crm-sheet .sw-form-head>div small,
.sw-crm-sheet .field>.lbl,
.sw-next-premium-copy small,
.sw-next-premium-copy p,
.sw-next-bottom small,
.sw-next-motto,
.sw-contacts-open span,
.sw-tool-title span,
.sw-next-compact-title small,
.sw-upcoming-head span,
.sw-upcoming-toggle,
.sw-upcoming-main small,
.sw-upcoming-main em,
.sw-upcoming-date,
.sw-fu-current small,
.sw-fu-current span,
.sw-fu-result-picked small,
.sw-goal-compact-next small,
.sw-goal-preview-done small,
.sw-goal-card-compact .sw-road-hint,
.sw-goal-card-compact .sw-stage-kicker{font-size:var(--gu-type-xs)!important}

/* SW: labels that carry meaning/action need one more step of size. */
.sw-stats span,
.sw-quick-tools b,
.sw-main-summary small,
.sw-fu-menu button,
.sw-fu-results button>b,
.sw-fu-presets button,
.sw-fu-date-presets button,
.sw-crm-contact small,
.sw-crm-contact em,
.sw-crm-edit,
.sw-next-value-compact b,
.sw-goal-progress-value b,
.sw-stage-name,
.sw-goal-card-compact .sw-stage-name,
.sw-goal-card-compact .sw-stage.current .sw-stage-name,
.sw-goal-card-compact .sw-stage.next .sw-stage-name{font-size:var(--gu-type-sm)!important}

/* Tiny circular progress captions have hard physical limits but should no longer be 5–6 px. */
.sw-next-ring small,
.sw-next-ring-compact small,
.sw-goal-progress-ring small{font-size:var(--gu-type-ring)!important}

/* Never split a word in compact UI. Phrases may still wrap at spaces. */
.sw-main-summary small,
.sw-quick-tools b,
.sw-stage-name,
.sw-goal-card-compact .sw-stage-name,
.sw-upcoming-main b,
.sw-upcoming-main small,
.sw-upcoming-main em,
.sw-fu-menu button,
.sw-fu-results button>b,
.sw-fu-presets button,
.sw-fu-date-presets button,
.sw-ref-actions b,
.sw-ref-actions small,
.habit-main b,
.habit-main span,
.day-feeling small,
.cycle-kpi-grid small,
.cycle-kpi-grid span{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}

/* On very narrow phones we deliberately step down once more to preserve layout. */
@media(max-width:350px){
  :root{
    --gu-type-micro:9px;
    --gu-type-xs:9.8px;
    --gu-type-sm:10.6px;
  }
  .sw-main-summary-row{gap:4px!important}
  .sw-main-summary{padding-left:2px!important;padding-right:2px!important}
}

/* ===== LIGHT THEME DARKER TEXT PALETTE — 2026-09-24 =====
   Semantic text colors only. Light theme scoped; dark theme untouched. */
html[data-theme="light"]{
  --mu:#4f6073;
  --gu-light-text-gray:#4f6073;
  --gu-light-text-blue:#2f68a8;
  --gu-light-text-green:#287a4d;
  --gu-light-text-orange:#a76300;
  --gu-light-text-red:#b33d4b;
  --gu-light-text-purple:#5b4aa0;
}
html[data-theme="light"] .gu-home-light{
  --home-muted:#53667d;
  --today-muted:#53667d;
}

/* Neutral / secondary copy */
html[data-theme="light"] .lbl,
html[data-theme="light"] .sub,
html[data-theme="light"] .v2-page,
html[data-theme="light"] .v2-diary-home-text,
html[data-theme="light"] .v2-diary-home-meta,
html[data-theme="light"] .credit-note,
html[data-theme="light"] .task-head .lbl,
html[data-theme="light"] .habit-main span,
html[data-theme="light"] .habit-day small,
html[data-theme="light"] .cycle-kpi-grid small,
html[data-theme="light"] .cycle-kpi-grid span,
html[data-theme="light"] .cycle-wellbeing-stats small,
html[data-theme="light"] .day-feeling small,
html[data-theme="light"] .gi-copy span,
html[data-theme="light"] .gi-ai p,
html[data-theme="light"] .gi-next p,
html[data-theme="light"] .gi-consent p,
html[data-theme="light"] .gi-generate p,
html[data-theme="light"] .gi-period,
html[data-theme="light"] .gi-countdown small,
html[data-theme="light"] .sw-progress-head small,
html[data-theme="light"] .sw-progress-head em,
html[data-theme="light"] .sw-road-hint,
html[data-theme="light"] .sw-stage-kicker,
html[data-theme="light"] .sw-stage-points,
html[data-theme="light"] .sw-next-card small,
html[data-theme="light"] .sw-next-foot,
html[data-theme="light"] .sw-stats span,
html[data-theme="light"] .sw-main-summary small,
html[data-theme="light"] .sw-contacts-open span,
html[data-theme="light"] .sw-upcoming-head span,
html[data-theme="light"] .sw-upcoming-main small,
html[data-theme="light"] .sw-upcoming-main em,
html[data-theme="light"] .sw-crm-contact small,
html[data-theme="light"] .sw-crm-event summary small,
html[data-theme="light"] .sw-crm-event summary em,
html[data-theme="light"] .sw-crm-event-body small,
html[data-theme="light"] .sw-fu-current small,
html[data-theme="light"] .sw-fu-copy span,
html[data-theme="light"] .sw-fu-result-picked small,
html[data-theme="light"] .sw-goal-compact-next small,
html[data-theme="light"] .sw-goal-preview-done small,
html[data-theme="light"] .sw-next-premium-copy small,
html[data-theme="light"] .sw-next-premium-copy p,
html[data-theme="light"] .sw-next-compact-title small,
html[data-theme="light"] .sw-next-ring small,
html[data-theme="light"] .sw-next-bottom small,
html[data-theme="light"] .sw-goal-progress-ring small{
  color:var(--gu-light-text-gray)!important;
}

/* Blue informational accents */
html[data-theme="light"] .v2-action-k,
html[data-theme="light"] .v2-improve-cta,
html[data-theme="light"] .sw-brand,
html[data-theme="light"] .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-goal-open b,
html[data-theme="light"] .sw-ref-edit,
html[data-theme="light"] .sw-ref-actions small,
html[data-theme="light"] .sw-crm-contact em,
html[data-theme="light"] .sw-crm-next span,
html[data-theme="light"] .sw-crm-event-body span,
html[data-theme="light"] .sw-crm-status.lead,
html[data-theme="light"] .sw-crm-edit,
html[data-theme="light"] .sw-crm-channel-icon,
html[data-theme="light"] .sw-crm-next-date,
html[data-theme="light"] .sw-quick-tools em,
html[data-theme="light"] .sw-tool-icon,
html[data-theme="light"] .sw-tool-icon.people,
html[data-theme="light"] .sw-contact-add,
html[data-theme="light"] .sw-main-summary.action>em,
html[data-theme="light"] .sw-upcoming-toggle,
html[data-theme="light"] .sw-upcoming-avatar,
html[data-theme="light"] .sw-upcoming-date,
html[data-theme="light"] .sw-upcoming-date.tomorrow,
html[data-theme="light"] .sw-crm-next-action>i,
html[data-theme="light"] .sw-fu-current span,
html[data-theme="light"] .sw-goal-compact-current span,
html[data-theme="light"] .sw-dashboard-card .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-goal-card-compact .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .gi-ai b,
html[data-theme="light"] .gi-countdown-top strong{
  color:var(--gu-light-text-blue)!important;
}

/* Green positive accents */
html[data-theme="light"] .v2-pride-list>div>span,
html[data-theme="light"] .v2-number-grid b.good,
html[data-theme="light"] .gi-signal.win h3,
html[data-theme="light"] .gi-signal.win .gi-mark,
html[data-theme="light"] .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-dashboard-card .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-crm-status.partner,
html[data-theme="light"] .sw-fu-menu button.done{
  color:var(--gu-light-text-green)!important;
}

/* Orange / gold accents */
html[data-theme="light"] .gi-signal.attention h3,
html[data-theme="light"] .gi-signal.attention .gi-mark,
html[data-theme="light"] .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-next-percent,
html[data-theme="light"] .sw-next-arrow,
html[data-theme="light"] .sw-goal-focus span,
html[data-theme="light"] .sw-dashboard-card .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-next-badge,
html[data-theme="light"] .sw-next-value-icon,
html[data-theme="light"] .sw-next-target,
html[data-theme="light"] .sw-next-motto,
html[data-theme="light"] .sw-upcoming-date.today,
html[data-theme="light"] .sw-goal-progress-icon,
html[data-theme="light"] .sw-goal-card-compact .sw-stage.next .sw-stage-kicker{
  color:var(--gu-light-text-orange)!important;
}

/* Red alerts / negative accents */
html[data-theme="light"] .v2-kpi-grid strong.bad,
html[data-theme="light"] .v2-number-grid b.bad,
html[data-theme="light"] .sw-crm-delete,
html[data-theme="light"] .sw-upcoming-date.overdue{
  color:var(--gu-light-text-red)!important;
}

/* Purple accents */
html[data-theme="light"] .sw-tool-icon.link,
html[data-theme="light"] .sw-summary-link{
  color:var(--gu-light-text-purple)!important;
}

/* A few light-theme-only pale labels from Today */
html[data-theme="light"] .gu-home-light .gi-head .gi-period,
html[data-theme="light"] .gu-home-light .gi-card-head .gi-period,
html[data-theme="light"] .gu-home-light .gu-progress-week small,
html[data-theme="light"] .gu-home-light .gu-progress-week-grid small,
html[data-theme="light"] .gu-home-light .gu-progress-month-grid small,
html[data-theme="light"] .gu-home-light .gu-income small,
html[data-theme="light"] .gu-home-light .gu-savings small,
html[data-theme="light"] .gu-home-light .gu-savings em{
  color:var(--gu-light-text-gray)!important;
}

/* ===== FINAL VISIBLE TYPE + LIGHT TEXT CONTRAST PASS — 2026-09-24 =====
   Final cascade layer: visible typography first; light-theme colors second. */

/* --- Visible typography: apply after all legacy compact rules --- */
.section-diaries .v2-diary-home-title{
  font-size:clamp(16px,4.45vw,18px)!important;
  line-height:1.12!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.section-diaries .v2-diary-home-title.is-single-word,
.section-diaries .v2-diary-home-title.is-multi-word{
  font-size:clamp(16px,4.45vw,18px)!important;
}
.section-diaries .v2-diary-home-text{
  font-size:clamp(12.5px,3.35vw,13.5px)!important;
  line-height:1.34!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.section-diaries .v2-diary-home-meta{
  font-size:clamp(12px,3.2vw,13px)!important;
  line-height:1.25!important;
}
.habits-head b{font-size:17px!important}
.habit-main b{font-size:clamp(14.5px,3.9vw,15.5px)!important}
.habit-main span{font-size:clamp(11.8px,3.2vw,12.8px)!important}
.habit-open-arrow{font-size:21px!important}

.sw-goal-compact-current span{font-size:clamp(12px,3.25vw,13px)!important}
.sw-goal-compact-next small{font-size:clamp(10px,2.8vw,11px)!important}
.sw-goal-compact-next b{font-size:clamp(12px,3.25vw,13px)!important}
.sw-goal-card-compact .sw-stage-kicker,
.sw-dashboard-card .sw-stage-kicker{font-size:clamp(9.5px,2.65vw,10.5px)!important}
.sw-goal-card-compact .sw-stage-name,
.sw-dashboard-card .sw-stage-name,
.sw-stage-name{font-size:clamp(11px,3vw,12px)!important}
.sw-goal-card-compact .sw-stage.current .sw-stage-name,
.sw-goal-card-compact .sw-stage.next .sw-stage-name,
.sw-dashboard-card .sw-stage.current .sw-stage-name,
.sw-dashboard-card .sw-stage.next .sw-stage-name{font-size:clamp(11.5px,3.15vw,12.5px)!important}
.sw-goal-progress-value b,
.sw-next-value-compact b{font-size:clamp(11px,3vw,12px)!important}
.sw-main-summary small,
.sw-quick-tools b{font-size:clamp(10px,2.85vw,11.5px)!important;line-height:1.12!important}
.sw-contacts-open span{font-size:clamp(10.5px,2.9vw,11.5px)!important}
.sw-upcoming-main small,
.sw-upcoming-main em{font-size:clamp(10.5px,2.9vw,11.5px)!important}
.sw-upcoming-date{font-size:clamp(9.5px,2.65vw,10.5px)!important}
.sw-crm-contact small,
.sw-crm-contact em,
.sw-crm-event summary small,
.sw-crm-event summary em{font-size:clamp(10.5px,2.9vw,11.5px)!important}
.sw-fu-menu button,
.sw-fu-results button>b,
.sw-fu-presets button,
.sw-fu-date-presets button{font-size:clamp(10.5px,2.95vw,11.5px)!important}

.gu-progress-week-grid small,
.gu-progress-month-grid small,
.gu-income small,
.gu-savings small,
.gu-savings em,
.gu-period-grid small{font-size:clamp(10.8px,3vw,12px)!important}
.gu-progress-month-head>span,
.gi-period,
.gi-countdown small,
.gi-week-data span{font-size:clamp(11px,3.05vw,12px)!important}

/* Narrow phones: step down while keeping whole words intact. */
@media(max-width:350px){
  .section-diaries .v2-diary-home-title,
  .section-diaries .v2-diary-home-title.is-single-word,
  .section-diaries .v2-diary-home-title.is-multi-word{font-size:14.5px!important}
  .section-diaries .v2-diary-home-text{font-size:11.8px!important}
  .section-diaries .v2-diary-home-meta{font-size:11.5px!important}
  .habit-main b{font-size:13.5px!important}
  .habit-main span{font-size:11px!important}
  .sw-main-summary small,.sw-quick-tools b{font-size:9.5px!important}
  .sw-goal-card-compact .sw-stage-name,.sw-dashboard-card .sw-stage-name,.sw-stage-name{font-size:10.2px!important}
}

/* --- Light theme: deliberately darker text palette --- */
html[data-theme="light"]{
  --mu:#405166;
  --gu-light-text-gray:#405166;
  --gu-light-text-blue:#255b96;
  --gu-light-text-green:#206d43;
  --gu-light-text-orange:#8e5600;
  --gu-light-text-red:#a73545;
  --gu-light-text-purple:#50408e;
}
html[data-theme="light"] .gu-home-light{
  --home-muted:#455a70;
  --today-muted:#455a70;
}

html[data-theme="light"] .v2-page,
html[data-theme="light"] .lbl,
html[data-theme="light"] .sub,
html[data-theme="light"] .section-diaries .v2-diary-home-text,
html[data-theme="light"] .habit-main span,
html[data-theme="light"] .habit-day small,
html[data-theme="light"] .gi-copy span,
html[data-theme="light"] .gi-ai p,
html[data-theme="light"] .gi-next p,
html[data-theme="light"] .gi-period,
html[data-theme="light"] .gi-countdown small,
html[data-theme="light"] .gi-week-data span,
html[data-theme="light"] .sw-progress-head small,
html[data-theme="light"] .sw-progress-head em,
html[data-theme="light"] .sw-road-hint,
html[data-theme="light"] .sw-stage-points,
html[data-theme="light"] .sw-main-summary small,
html[data-theme="light"] .sw-contacts-open span,
html[data-theme="light"] .sw-upcoming-head span,
html[data-theme="light"] .sw-upcoming-main small,
html[data-theme="light"] .sw-upcoming-main em,
html[data-theme="light"] .sw-crm-contact small,
html[data-theme="light"] .sw-crm-event summary small,
html[data-theme="light"] .sw-crm-event summary em,
html[data-theme="light"] .sw-fu-copy span,
html[data-theme="light"] .sw-next-premium-copy small,
html[data-theme="light"] .sw-next-premium-copy p,
html[data-theme="light"] .sw-next-compact-title small,
html[data-theme="light"] .sw-next-ring small,
html[data-theme="light"] .sw-next-bottom small,
html[data-theme="light"] .gu-progress-week-grid small,
html[data-theme="light"] .gu-progress-month-grid small,
html[data-theme="light"] .gu-income small,
html[data-theme="light"] .gu-savings em{
  color:var(--gu-light-text-gray)!important;
}

html[data-theme="light"] .section-diaries .v2-diary-home-meta,
html[data-theme="light"] .v2-improve-cta,
html[data-theme="light"] .sw-brand,
html[data-theme="light"] .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-goal-compact-current span,
html[data-theme="light"] .sw-goal-open b,
html[data-theme="light"] .sw-ref-edit,
html[data-theme="light"] .sw-ref-actions small,
html[data-theme="light"] .sw-crm-contact em,
html[data-theme="light"] .sw-crm-status.lead,
html[data-theme="light"] .sw-crm-edit,
html[data-theme="light"] .sw-crm-next span,
html[data-theme="light"] .sw-crm-next-date,
html[data-theme="light"] .sw-upcoming-toggle,
html[data-theme="light"] .sw-upcoming-avatar,
html[data-theme="light"] .sw-upcoming-date,
html[data-theme="light"] .sw-upcoming-date.tomorrow,
html[data-theme="light"] .gi-ai b,
html[data-theme="light"] .gi-countdown-top strong{
  color:var(--gu-light-text-blue)!important;
}

html[data-theme="light"] .gi-signal.win h3,
html[data-theme="light"] .gi-signal.win .gi-mark,
html[data-theme="light"] .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-crm-status.partner,
html[data-theme="light"] .sw-fu-menu button.done{
  color:var(--gu-light-text-green)!important;
}

html[data-theme="light"] .gi-signal.attention h3,
html[data-theme="light"] .gi-signal.attention .gi-mark,
html[data-theme="light"] .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-next-percent,
html[data-theme="light"] .sw-next-arrow,
html[data-theme="light"] .sw-goal-focus span,
html[data-theme="light"] .sw-upcoming-date.today,
html[data-theme="light"] .sw-next-motto{
  color:var(--gu-light-text-orange)!important;
}

html[data-theme="light"] .v2-kpi-grid strong.bad,
html[data-theme="light"] .v2-number-grid b.bad,
html[data-theme="light"] .sw-crm-delete,
html[data-theme="light"] .sw-upcoming-date.overdue{
  color:var(--gu-light-text-red)!important;
}

html[data-theme="light"] .sw-tool-icon.link,
html[data-theme="light"] .sw-summary-link{
  color:var(--gu-light-text-purple)!important;
}

/* ===== STRONG LIGHT TEXT CONTRAST PASS — 2026-09-24 =====
   Deliberately obvious darker text palette for LIGHT theme only. */
html[data-theme="light"]{
  --tx:#0f1724;
  --mu:#2f4154;
  --bl:#1f5b96;
  --gr:#196b3e;
  --am:#8a5100;
  --rd:#9f3140;
  --vio:#4f4088;
}
html[data-theme="light"] .gu-home-light{
  --home-ink:#0d1726;
  --home-muted:#33485f;
  --today-ink:#0d1726;
  --today-muted:#33485f;
}

/* Core chrome + secondary copy */
html[data-theme="light"] body,
html[data-theme="light"] .v2-page,
html[data-theme="light"] .lbl,
html[data-theme="light"] .sub,
html[data-theme="light"] .grp,
html[data-theme="light"] .v2-nav button{
  color:#2f4154!important;
}
html[data-theme="light"] .h1,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3{
  color:#0f1724;
}

/* Diaries */
html[data-theme="light"] .section-diaries .v2-diary-home-title{
  color:#0d1726!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-text{
  color:#32485f!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-meta{
  color:#1e568d!important;
}
html[data-theme="light"] .section-diaries .v2-diary-home-arrow,
html[data-theme="light"] .section-diaries .v2-diary-manage-back{
  color:#1f5b96!important;
}
html[data-theme="light"] .section-diaries .v2-diary-calendar,
html[data-theme="light"] .section-diaries .v2-diary-calendar .lbl{
  color:#23364b!important;
}

/* Habits */
html[data-theme="light"] .habits-head b,
html[data-theme="light"] .habit-main b{
  color:#0f1724!important;
}
html[data-theme="light"] .habit-main span,
html[data-theme="light"] .habit-day small,
html[data-theme="light"] .habit-open-arrow{
  color:#33485f!important;
}

/* Siberian Wellness */
html[data-theme="light"] .sw-title span,
html[data-theme="light"] .sw-progress-head small,
html[data-theme="light"] .sw-progress-head em,
html[data-theme="light"] .sw-road-hint,
html[data-theme="light"] .sw-stage-points,
html[data-theme="light"] .sw-next-card small,
html[data-theme="light"] .sw-next-foot,
html[data-theme="light"] .sw-main-summary small,
html[data-theme="light"] .sw-contacts-open span,
html[data-theme="light"] .sw-upcoming-head span,
html[data-theme="light"] .sw-upcoming-main small,
html[data-theme="light"] .sw-upcoming-main em,
html[data-theme="light"] .sw-crm-contact small,
html[data-theme="light"] .sw-crm-event summary small,
html[data-theme="light"] .sw-crm-event summary em,
html[data-theme="light"] .sw-fu-copy span,
html[data-theme="light"] .sw-next-premium-copy small,
html[data-theme="light"] .sw-next-premium-copy p,
html[data-theme="light"] .sw-next-compact-title small,
html[data-theme="light"] .sw-next-ring small,
html[data-theme="light"] .sw-next-bottom small,
html[data-theme="light"] .sw-goal-progress-ring small{
  color:#33485f!important;
}
html[data-theme="light"] .sw-brand,
html[data-theme="light"] .sw-goal-compact-current span,
html[data-theme="light"] .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-dashboard-card .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-goal-card-compact .sw-stage.current .sw-stage-kicker,
html[data-theme="light"] .sw-goal-open b,
html[data-theme="light"] .sw-ref-edit,
html[data-theme="light"] .sw-ref-actions small,
html[data-theme="light"] .sw-crm-contact em,
html[data-theme="light"] .sw-crm-status.lead,
html[data-theme="light"] .sw-crm-edit,
html[data-theme="light"] .sw-crm-next span,
html[data-theme="light"] .sw-crm-next-date,
html[data-theme="light"] .sw-upcoming-toggle,
html[data-theme="light"] .sw-upcoming-avatar,
html[data-theme="light"] .sw-upcoming-date,
html[data-theme="light"] .sw-upcoming-date.tomorrow{
  color:#1d568d!important;
}
html[data-theme="light"] .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-dashboard-card .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-goal-card-compact .sw-stage.done .sw-stage-kicker,
html[data-theme="light"] .sw-crm-status.partner,
html[data-theme="light"] .sw-fu-menu button.done{
  color:#17653b!important;
}
html[data-theme="light"] .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-dashboard-card .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-goal-card-compact .sw-stage.next .sw-stage-kicker,
html[data-theme="light"] .sw-next-percent,
html[data-theme="light"] .sw-next-arrow,
html[data-theme="light"] .sw-goal-focus span,
html[data-theme="light"] .sw-upcoming-date.today,
html[data-theme="light"] .sw-next-motto{
  color:#7a4800!important;
}
html[data-theme="light"] .sw-crm-delete,
html[data-theme="light"] .sw-upcoming-date.overdue{
  color:#982f3e!important;
}
html[data-theme="light"] .sw-tool-icon.link,
html[data-theme="light"] .sw-summary-link{
  color:#493a80!important;
}

/* Today / progress / finance */
html[data-theme="light"] .gu-home-light .gu-hero-copy p,
html[data-theme="light"] .gu-progress-week-grid small,
html[data-theme="light"] .gu-progress-month-grid small,
html[data-theme="light"] .gu-income small,
html[data-theme="light"] .gu-money small,
html[data-theme="light"] .gu-money-note,
html[data-theme="light"] .gu-progress-month>p,
html[data-theme="light"] .gu-period-grid small{
  color:#33485f!important;
}
html[data-theme="light"] .gu-progress-month-head span,
html[data-theme="light"] .gu-period-tabs button.on{
  color:#1d568d!important;
}
html[data-theme="light"] .gu-period-tabs button{
  color:#42566c!important;
}
html[data-theme="light"] .gu-savings small,
html[data-theme="light"] .gu-savings em{
  color:#275f45!important;
}
html[data-theme="light"] .gu-savings.bad small,
html[data-theme="light"] .gu-savings.bad em{
  color:#704a23!important;
}
html[data-theme="light"] .gu-savings.neutral b,
html[data-theme="light"] .gu-money.neutral .gu-money-rate{
  color:#40536a!important;
}

/* Horoscope / day tip */
html[data-theme="light"] .v2-home-dashboard .ghoro-head b{
  color:#0f1724!important;
}
html[data-theme="light"] .v2-home-dashboard .ghoro-theme{
  color:#704400!important;
}
html[data-theme="light"] .v2-home-dashboard .ghoro-copy,
html[data-theme="light"] .v2-home-dashboard .ghoro-focus span{
  color:#403a32!important;
}
html[data-theme="light"] .v2-home-dashboard .ghoro-focus b{
  color:#875000!important;
}
html[data-theme="light"] .v2-home-dashboard .ghoro-note,
html[data-theme="light"] .v2-home-dashboard .ghoro-menu>span:last-child{
  color:#51483c!important;
}

/* Weekly intelligence */
html[data-theme="light"] .gi-copy b,
html[data-theme="light"] .gi-next strong,
html[data-theme="light"] .gi-change{
  color:#0f1724!important;
}
html[data-theme="light"] .gi-copy span,
html[data-theme="light"] .gi-ai p,
html[data-theme="light"] .gi-next p,
html[data-theme="light"] .gi-consent p,
html[data-theme="light"] .gi-generate p,
html[data-theme="light"] .gi-period,
html[data-theme="light"] .gi-countdown small,
html[data-theme="light"] .gi-week-data span{
  color:#33485f!important;
}
html[data-theme="light"] .gi-ai b,
html[data-theme="light"] .gi-countdown-top strong{
  color:#1d568d!important;
}
html[data-theme="light"] .gi-signal.win h3,
html[data-theme="light"] .gi-signal.win .gi-mark{
  color:#17653b!important;
}
html[data-theme="light"] .gi-signal.attention h3,
html[data-theme="light"] .gi-signal.attention .gi-mark{
  color:#7a4800!important;
}

/* Settings / misc secondary blue-grey labels */
html[data-theme="light"] .settings-shell .settings-theme-btn,
html[data-theme="light"] .settings-shell .settings-state-toggle{
  color:#33485f!important;
}


/* Diary title typography unification — 2026-09-25
   One title system for every diary card and manage preview. */
.section-diaries .v2-diary-home-title,
.section-diaries .v2-diary-home-title.is-single-word,
.section-diaries .v2-diary-home-title.is-multi-word,
.section-diaries .v2-diary-manage-row .v2-diary-home-title,
.section-diaries .v2-diary-manage-row .v2-diary-home-title.is-single-word,
.section-diaries .v2-diary-manage-row .v2-diary-home-title.is-multi-word{
  font-size:17px!important;
  font-weight:800!important;
  line-height:1.12!important;
  letter-spacing:-.02em!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-wrap:balance;
}
@media(max-width:390px){
  .section-diaries .v2-diary-home-title,
  .section-diaries .v2-diary-home-title.is-single-word,
  .section-diaries .v2-diary-home-title.is-multi-word,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title.is-single-word,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title.is-multi-word{
    font-size:15.5px!important;
  }
}
@media(max-width:350px){
  .section-diaries .v2-diary-home-title,
  .section-diaries .v2-diary-home-title.is-single-word,
  .section-diaries .v2-diary-home-title.is-multi-word,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title.is-single-word,
  .section-diaries .v2-diary-manage-row .v2-diary-home-title.is-multi-word{
    font-size:14.5px!important;
  }
}

/* Desktop TODAY composition v1 — 2026-10-01
   Wide screens only. Mobile/webview layout stays unchanged. */
@media(min-width:1180px){
  .screen-body,.v2-top-inner{max-width:1200px!important}
  .v2-home-dashboard{
    max-width:1200px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "hero hero"
      "progress progress"
      "tip action"
      "intelligence intelligence"
      "improve improve"
      "week week"!important;
    column-gap:20px!important;
    row-gap:18px!important;
    align-items:stretch!important;
  }
  .v2-home-dashboard>.gu-hero{grid-area:hero!important;min-height:124px!important;margin:0!important;padding:14px 16px!important}
  .v2-home-dashboard>.gu-progress{grid-area:progress!important;margin:0!important}
  .v2-home-dashboard>.ghoro{grid-area:tip!important;margin:0!important;align-self:stretch!important}
  .v2-home-dashboard>.v2-next-action{grid-area:action!important;margin:0!important;align-self:stretch!important;height:100%!important}
  .v2-home-dashboard>.gi-wrap{grid-area:intelligence!important;margin:0!important}
  .v2-home-dashboard>.v2-improve-block{grid-area:improve!important;margin:0!important}
  .v2-home-dashboard>.v2-week-block{grid-area:week!important;margin:0!important}
  .v2-home-dashboard.v2-intelligence-new{
    grid-template-areas:
      "hero hero"
      "intelligence intelligence"
      "progress progress"
      "tip action"
      "improve improve"
      "week week"!important;
  }
  .v2-home-dashboard:not(:has(>.ghoro))>.v2-next-action{grid-column:1/-1!important}
  .v2-home-dashboard:not(:has(>.v2-next-action))>.ghoro{grid-column:1/-1!important}

  .v2-home-dashboard .gu-progress-card{
    display:grid!important;
    grid-template-columns:160px minmax(0,1.2fr) minmax(330px,.8fr)!important;
    grid-template-rows:auto auto!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  .v2-home-dashboard .gu-progress-title{
    position:static!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
    margin:17px 18px 0 0!important;
    z-index:3!important;
  }
  .v2-home-dashboard .gu-progress-now{grid-column:1!important;grid-row:1/3!important;padding:18px 14px!important}
  .v2-home-dashboard .gu-week-bars{
    grid-column:2!important;
    grid-row:1!important;
    padding:52px 18px 12px!important;
    gap:10px!important;
  }
  .v2-home-dashboard .gp-day{height:106px!important}
  .v2-home-dashboard .gu-period-tabs{
    grid-column:2!important;
    grid-row:2!important;
    padding:9px 18px 13px!important;
    align-self:end!important;
  }
  .v2-home-dashboard .gu-period-panel{
    grid-column:3!important;
    grid-row:1/3!important;
    border-top:0!important;
    border-left:1px solid var(--line)!important;
    padding:20px 18px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:12px!important;
  }
  .v2-home-dashboard .gu-period-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .v2-home-dashboard .gu-period-grid>span{padding:11px 4px!important}
  .v2-home-dashboard .gu-money{margin-top:0!important}
  .v2-home-dashboard>.ghoro{height:100%!important}
  .v2-home-dashboard>.ghoro,
  .v2-home-dashboard>.v2-next-action{box-sizing:border-box!important}
  html[data-theme="light"] .v2-home-dashboard .gu-period-panel{border-left-color:#ead9bf!important}
  html[data-theme="dark"] .v2-home-dashboard .gu-period-panel{border-left-color:#3a3328!important}
}

/* Desktop unified content width — 2026-10-02
   Same inner canvas for Today / Goals / Finance / Diaries. */
@media(min-width:1100px){
  .screen-body,
  .v2-top-inner{
    width:100%!important;
    max-width:920px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .v2-home-dashboard,
  .v2-diaries-home,
  .v2-diary-head,
  .v2-diary-home-grid,
  .v2-diary-home-tools,
  .v2-diary-calendar{
    width:100%!important;
    max-width:920px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .screen-body.section-home,
  .screen-body.section-goals,
  .screen-body.section-finance,
  .screen-body.section-diaries{
    max-width:920px!important;
  }
}

/* Desktop header width parity — 2026-10-02 */
@media(min-width:1100px){
  .v2-top:has(+ .screen-body .v2-home-dashboard) .v2-top-inner{
    width:100%!important;
    max-width:920px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
