html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); }
.dg-load { padding: 40px; text-align: center; color: #6b7a70; }
.dg { --g: #2fa35e; --gd: #1f7a45; --bg: #f1f8f3; --card: #fff; --ink: #1d2a22; --mut: #6f7c74; --r: #e0334f; --line: #e3ece6; --y: #fdf0b8; --yb: #e6c75a;
  position: relative; max-width: 440px; margin: 0 auto; background: var(--bg); color: var(--ink); border-radius: 16px; overflow: hidden; font-size: 14px; min-height: 640px; }
.dg-dark { --bg: #14201a; --card: #1d2c24; --ink: #eaf3ee; --mut: #9db0a5; --line: #2a3d33; --y: #4a4220; --yb: #8a7a2e; }
.dg * { box-sizing: border-box; }
.dg button, .dg input, .dg select { font: inherit; color: inherit; }
.dg-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--card); }
.dg-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--g); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; flex: none; }
.dg-name { display: flex; flex-direction: column; font-family: Georgia, 'Times New Roman', serif; line-height: 1.1; flex: 1; min-width: 0; }
.dg-name span { font-weight: 700; font-size: 15px; }
.dg-name b { color: var(--g); font-size: 15px; }
.dg-tog { width: 34px; height: 18px; border-radius: 9px; border: 1px solid var(--line); background: #e8efe9; position: relative; padding: 0; cursor: pointer; flex: none; }
.dg-tog i { position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: left .15s; }
.dg-tog.is-on { background: var(--g); } .dg-tog.is-on i { left: 17px; }
.dg-cur { border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 11px; font-weight: 700; color: var(--gd); padding: 4px 6px; min-height: 28px; flex: none; }
.dg-pay { border: 1px solid var(--yb); background: var(--y); border-radius: 14px; font-weight: 700; font-size: 12px; padding: 0 10px; min-height: 30px; cursor: pointer; flex: none; }
.dg-tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
.dg-tabs button { flex: 1; background: none; border: 0; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--mut); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; }
.dg-tabs button.is-on { color: var(--gd); box-shadow: inset 0 -2px 0 var(--g); }
.dg-body { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 12px; }
.dg h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; margin: 4px 0 0; font-weight: 700; }
.dg h3 { font-family: Georgia, serif; margin: 0; font-size: 16px; }
.dg-card { background: var(--card); border-radius: 12px; padding: 14px; box-shadow: 0 1px 3px #0000000f; display: flex; flex-direction: column; gap: 8px; }
.dg-card small { font-size: 10px; letter-spacing: .06em; color: var(--mut); font-weight: 700; }
.dg-card small.cap { color: var(--ink); }
.dg-card small.sub, .sub { font-size: 11px; color: var(--mut); letter-spacing: 0; margin: 0; }
.dg-card strong { font-size: 24px; line-height: 1.1; }
.g { color: var(--gd); } .r { color: var(--r); }
.dg-date { align-items: center; padding: 18px; } .dg-date b { font-family: Georgia, serif; font-size: 16px; }
.dg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dg-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .dg-three strong { font-size: 16px; }
.gold { box-shadow: inset 0 0 0 2px #e8c441; }
.dg-mood { background: none; border: 0; font-size: 26px; text-align: left; padding: 0; min-height: 32px; cursor: pointer; }
.dg-task { display: flex; align-items: center; gap: 10px; background: none; border: 0; min-height: 36px; padding: 0; text-align: left; cursor: pointer; }
.dg-box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #b9c7bd; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.dg-box.is-on { background: var(--g); border-color: var(--g); }
.dg-in { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--card); font-size: 16px; }
.dg-in.big { font-weight: 700; border: 1.5px solid var(--g); } .dg-in.focus { border: 1.5px solid var(--g); }
.dg-btn { min-height: 44px; border: 0; border-radius: 22px; background: var(--g); color: #fff; font-weight: 700; cursor: pointer; }
.dg-btn.s { min-height: 40px; }
.dg-line { display: flex; align-items: center; gap: 8px; min-height: 36px; border-top: 1px solid var(--line); } .dg-line span { flex: 1; }
.dg-x { background: none; border: 0; min-width: 36px; min-height: 36px; font-size: 20px; color: var(--mut); cursor: pointer; }
.dg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-opt { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 600; cursor: pointer; }
.dg-opt.is-on { border-color: var(--g); background: #e6f6ec; color: #1d2a22; }
.dg-streak { background: #fdf0e2; box-shadow: inset 0 0 0 1px #f4d3ae; color: #1d2a22; } .dg-streak h3 { color: #8a3f0a; } .dg-streak p { margin: 0; font-size: 11px; color: #9a6a3d; }
.dg-flames { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; }
.dg-flames span { aspect-ratio: 1; border-radius: 8px; background: #efe3d6; display: grid; place-items: center; font-size: 14px; filter: grayscale(1); opacity: .5; }
.dg-flames span.on { background: #e8883a; filter: none; opacity: 1; }
.dg-bill { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 0; border-radius: 10px; padding: 6px 10px; text-align: left; cursor: pointer; }
.dg-bill.paid { background: #e6f6ec; } .dg-bill.due { background: #fdeedd; }
.dg-circ { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; }
.paid .dg-circ { background: var(--g); } .due .dg-circ { border: 2px solid #e8883a; }
.dg-bn { flex: 1; display: flex; flex-direction: column; } .dg-bn small { font-size: 10px; letter-spacing: 0; } .paid .dg-bn small { color: var(--g); } .due .dg-bn small { color: #d9822b; }
.dg-add { display: grid; grid-template-columns: 1fr 90px; gap: 8px; } .dg-add .dg-btn { grid-column: 1 / -1; }
.dg-mnav { flex-direction: row; align-items: center; justify-content: space-between; font-family: Georgia, serif; }
.dg-mnav button { min-width: 44px; min-height: 36px; border: 0; background: #e6f6ec; border-radius: 8px; color: var(--gd); font-size: 18px; cursor: pointer; }
.dg-bud { display: flex; flex-direction: column; gap: 4px; } .dg-bud > div:first-child { display: flex; justify-content: space-between; align-items: baseline; } .dg-bud small { letter-spacing: 0; font-weight: 600; }
.dg-trk { height: 8px; background: #e4ebe6; border-radius: 4px; overflow: hidden; } .dg-trk i { display: block; height: 100%; border-radius: 4px; }
.dg-trk i.g { background: var(--g); } .dg-trk i.o { background: #f0951c; } .dg-trk i.b { background: #3b82e6; }
.dg-goal { display: flex; gap: 10px; align-items: center; font-size: 15px; } .dg-goal span { font-size: 26px; } .dg-goal div { display: flex; flex-direction: column; } .dg-goal small { letter-spacing: 0; font-weight: 500; }
.dg-gbig b { font-size: 26px; color: var(--gd); } .dg-gbig small { font-size: 12px; letter-spacing: 0; }
.dg-gfoot { display: flex; justify-content: space-between; } .dg-gfoot small { letter-spacing: 0; } .dg-gfoot .gr { color: var(--gd); }
.dg-outl { min-height: 44px; border: 1.5px solid var(--g); background: transparent; color: var(--gd); border-radius: 22px; font-weight: 700; cursor: pointer; }
.dg-chat { gap: 10px; min-height: 260px; }
.dg-bub { max-width: 85%; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.dg-bub.l { background: #e6f6ec; color: #1d2a22; align-self: flex-start; } .dg-bub.r { background: var(--g); color: #fff; align-self: flex-end; font-weight: 700; }
.dg-bub small { letter-spacing: 0; font-weight: 500; }
.dg-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.dg-chips button { min-height: 40px; border: 1.5px solid var(--g); background: transparent; color: var(--gd); border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dg-off { align-self: center; font-size: 12px; font-weight: 700; background: #111; color: #fff; padding: 6px 16px; border-radius: 16px; }
.dg-ins { flex-direction: row; background: #fdf0e2; align-items: center; gap: 12px; color: #1d2a22; } .dg-ins > div { display: flex; flex-direction: column; } .dg-ins small { letter-spacing: 0; color: #8a6a4a; } .dg-ins span { font-size: 22px; }
.dg-foot { text-align: center; color: var(--mut); font-size: 11px; margin: 16px 0 4px; }
.dg-reset { display: block; margin: 0 auto 14px; background: none; border: 0; color: var(--mut); text-decoration: underline; font-size: 12px; min-height: 36px; cursor: pointer; }
.dg-modal { position: absolute; inset: 0; background: #0009; display: flex; align-items: flex-start; justify-content: center; padding: 120px 14px 0; z-index: 5; }
.dg-sheet { background: #fff; color: #1d2a22; border-radius: 16px; padding: 18px; width: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.dg-sheet .dg-in { background: #fff; color: #1d2a22; }
.dg-sheet h3 { font-size: 20px; } .dg-sheet small.cap { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.dg-al { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; gap: 8px; } .dg-al div { display: flex; flex-direction: column; } .dg-al small { font-size: 10px; color: #6f7c74; }
.dg-al.g { background: #e6f6ec; } .dg-al.g strong { color: #1f7a45; } .dg-al.o { background: #fdeedd; } .dg-al.o strong { color: #c46a0e; } .dg-al.b { background: #e5eefc; } .dg-al.b strong { color: #2563c9; }
.dg-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 14px; }
.dg-close { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #e3ece6; background: #fff; font-weight: 600; cursor: pointer; }
.dg-apply { min-height: 44px; padding: 0 22px; border-radius: 22px; border: 0; background: var(--g); color: #fff; font-weight: 700; cursor: pointer; }
.dg-askrow { display: grid; grid-template-columns: 1fr 70px; gap: 8px; align-items: center; }
.dg-askrow .dg-btn { min-height: 44px; }
.dg-chips button:disabled, .dg-btn:disabled { opacity: .5; }
.dg-lang { background: var(--card); border: 1px solid var(--line); border-radius: 999px; min-height: 32px; min-width: 40px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--gd); cursor: pointer; }
.dg-welcome h3 { margin: 0 0 4px; } .dg-welcome p { margin: 4px 0 10px; font-size: 13px; color: var(--mut); }
.dg-pct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .dg-pct label { display: block; } .dg-pct span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; } .dg-pct .dg-in { text-align: center; padding: 0 6px; }
.dg-ok { color: var(--gd); font-weight: 600; display: block; margin: 6px 0; } .dg-err { color: var(--r); font-weight: 700; display: block; margin: 6px 0; }
.dg-apply:disabled { opacity: .45; cursor: not-allowed; }
:root{--ds-page:#e9f1ec} body{margin:0} .fc{min-height:100vh}
