/* ═══════════════════════════════════════════════════════════════
   اپ درون — عادت‌ها، اهداف و زندگی (a/habits/habits.js؛ فقط وقتی dr_feature('habits'))
   بعد از a/app/app.css و extra.css بار می‌شود و فقط متغیرهای --d-* را به کار می‌برد.
   هر عادت یک رنگ دارد: کلاس .hc-<رنگ> متغیر --hc (و --hc-ink برای نوشته روی خودش) را می‌گذارد؛
   در تم کاغذی همان رنگ‌ها تیره‌ترند تا روی سفید خوانا بمانند.
   ═══════════════════════════════════════════════════════════════ */

.dapp{--hc:var(--d-acc);--hc-ink:#17130c}
.dapp .hc-gold{--hc:#e3b062}.dapp .hc-orange{--hc:#f2994a}.dapp .hc-red{--hc:#e0796d}.dapp .hc-rose{--hc:#e88fb0}
.dapp .hc-violet{--hc:#c79ad6}.dapp .hc-indigo{--hc:#9aa5f0}.dapp .hc-blue{--hc:#8fb3e0}.dapp .hc-teal{--hc:#5fc4bd}
.dapp .hc-green{--hc:#7fb894}.dapp .hc-lime{--hc:#b5cf6b}.dapp .hc-brown{--hc:#c9a27a}.dapp .hc-slate{--hc:#a3a9b5}
:root[data-theme="paper"] .dapp{--hc-ink:#fff}
:root[data-theme="paper"] .dapp .hc-gold{--hc:#a8741f}:root[data-theme="paper"] .dapp .hc-orange{--hc:#c9620f}
:root[data-theme="paper"] .dapp .hc-red{--hc:#c2472f}:root[data-theme="paper"] .dapp .hc-rose{--hc:#c2416f}
:root[data-theme="paper"] .dapp .hc-violet{--hc:#8a4fa3}:root[data-theme="paper"] .dapp .hc-indigo{--hc:#4f5fc4}
:root[data-theme="paper"] .dapp .hc-blue{--hc:#2f6fb3}:root[data-theme="paper"] .dapp .hc-teal{--hc:#1f8a83}
:root[data-theme="paper"] .dapp .hc-green{--hc:#2f8a52}:root[data-theme="paper"] .dapp .hc-lime{--hc:#5f7a14}
:root[data-theme="paper"] .dapp .hc-brown{--hc:#8a6236}:root[data-theme="paper"] .dapp .hc-slate{--hc:#5d6470}

/* ═══════════════════ پوسته: زبانه‌ی چهارم و نشان بتا ═══════════════════ */
.dapp .ds-tabs.t4{grid-template-columns:repeat(4,1fr);padding-inline:6px}
.dapp .ds-tabs.t4 .tb-ic{width:56px}
.dapp .ds-tabs a .dbadge{top:2px;inset-inline-end:calc(50% - 26px)}
.dapp[data-beta] .ds-logo{position:relative}
.dapp[data-beta] .ds-logo::after{content:"بتا";position:absolute;inset-inline-end:-30px;top:2px;padding:1px 8px;border-radius:99px;font-size:11px;font-weight:600;
  background:color-mix(in srgb,var(--d-ok) 20%,transparent);color:var(--d-ok)}
.dapp[data-beta] .dw-mark::after{content:"بتا";display:block;margin-top:6px;font-size:12px;font-weight:600;color:var(--d-ok)}
.dapp .hb-i{fill:none}
.dapp .hb-ring .dring-fg{stroke:var(--hc,var(--d-acc))}
.dapp .hb-mini .dring-bg{stroke:var(--d-surf3)}
.dapp .hb-mini .dring-fg{stroke:var(--d-ok);transition:stroke-dashoffset .9s var(--d-ease) .15s}

/* ═══════════════════ ناوبری داخلی ═══════════════════ */
.dapp .hb-nav{position:sticky;top:calc(var(--d-top) + var(--d-safe-t));z-index:30;display:flex;align-items:center;gap:6px;margin:0 -16px 12px;padding:6px 16px 10px;
  background:color-mix(in srgb,var(--d-bg) 90%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(18px);backdrop-filter:saturate(1.4) blur(18px)}
@media (min-width:900px){.dapp .hb-nav{top:72px;margin-inline:-36px;padding-inline:36px}}
.dapp .hb-nav a{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 8px;border-radius:13px;
  font-size:13.5px;font-weight:500;color:var(--d-sub);background:var(--d-surf);border:1px solid var(--d-line);transition:background .2s,color .2s,transform .15s var(--d-spring)}
.dapp .hb-nav a .ic{width:17px;height:17px}
.dapp .hb-nav a:active{transform:scale(.95)}
.dapp .hb-nav a.on{background:var(--d-ink);color:var(--d-bg);border-color:var(--d-ink);font-weight:600}
.dapp .hb-gear{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:var(--d-ink2);background:var(--d-surf);border:1px solid var(--d-line)}
.dapp .hb-gear .ic{width:20px;height:20px}
.dapp .hb-add{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:13px;font-size:13.5px;font-weight:600;
  background:var(--d-acc);color:var(--d-acc-ink);box-shadow:0 3px 0 var(--d-acc-deep)}
.dapp .hb-add .ic{width:18px;height:18px}
.dapp .only-desk{display:none !important}
@media (min-width:900px){.dapp .only-desk{display:inline-flex !important}}
@media (max-width:420px){.dapp .hb-nav a span{font-size:12.5px}.dapp .hb-nav a .ic{display:none}}

/* ═══════════════════ امروز ═══════════════════ */
.dapp .hb-today{display:flex;flex-direction:column;gap:14px;transition:opacity .2s}
.dapp .hb-today > .dcard{margin-bottom:0}
.dapp .hb-today.busy{opacity:.55;pointer-events:none}

.dapp .hb-hero{padding:18px 16px 14px;background:
  radial-gradient(120% 80% at 100% 0%,color-mix(in srgb,var(--d-ok) 13%,transparent),transparent 60%),
  radial-gradient(90% 70% at 0% 100%,color-mix(in srgb,var(--d-acc) 12%,transparent),transparent 60%),var(--d-surf)}
.dapp .hb-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-inline:2px}
.dapp .hb-hero-t h2{font-size:clamp(21px,5.4vw,26px);font-weight:600;margin:2px 0 0;line-height:1.35}
.dapp .hb-hero-mid{display:flex;align-items:center;gap:18px;margin:14px 0 4px}
.dapp .hb-hero-ring{position:relative;width:104px;height:104px;flex:none;--hc:var(--d-ok)}
.dapp .hb-hero-ring.full .dring-fg{stroke:var(--d-ok);filter:drop-shadow(0 0 6px color-mix(in srgb,var(--d-ok) 55%,transparent))}
.dapp .hb-hero-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.dapp .hb-hero-in b{font-size:30px;font-weight:600;line-height:1.05;font-variant-numeric:tabular-nums}
.dapp .hb-hero-in span{font-size:12px;color:var(--d-sub)}
.dapp .hb-hero-facts{display:flex;flex-direction:column;gap:6px;min-width:0}
.dapp .hb-hero-facts > div:first-child b{display:block;font-size:17px;font-weight:600}
.dapp .hb-hero-facts > div:first-child span{font-size:12.5px;color:var(--d-sub)}
.dapp .hb-fact{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--d-ink2)}
.dapp .hb-fact .ic{width:17px;height:17px}
.dapp .hb-fact .fire{color:var(--d-fire)}
.dapp .hb-fact.warn{color:var(--d-fire2)}

.dapp .hb-week{display:grid;grid-template-columns:24px repeat(7,minmax(0,1fr)) 24px;align-items:center;gap:2px;margin-top:12px}
.dapp .hb-wk-nav{display:grid;place-items:center;width:24px;height:40px;border-radius:8px;color:var(--d-faint)}
.dapp .hb-wk-nav:hover{color:var(--d-ink);background:var(--d-surf2)}
.dapp .hb-wk-nav:disabled{opacity:.25}
.dapp .hb-wk-nav .ic{width:16px;height:16px}
.dapp[dir="ltr"] .hb-wk-nav .ic{transform:scaleX(-1)}
.dapp .hb-wd{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 0 6px;border-radius:14px;transition:background .2s}
.dapp .hb-wd-l{font-size:11.5px;color:var(--d-sub);font-weight:500}
.dapp .hb-wd-r{position:relative;width:36px;height:36px;display:grid;place-items:center}
.dapp .hb-wd-r .dring{position:absolute;inset:0}
.dapp .hb-wd-r i{font-style:normal;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;position:relative}
.dapp .hb-wd.hb-now .hb-wd-l{color:var(--d-ink);font-weight:700}
.dapp .hb-wd.hb-now .hb-wd-r i{color:var(--d-acc)}
.dapp .hb-wd.sel{background:var(--d-surf2)}
.dapp .hb-wd.full .hb-wd-r::after{content:"";position:absolute;inset:4px;border-radius:50%;background:color-mix(in srgb,var(--d-ok) 22%,transparent)}
.dapp .hb-wd.fut{opacity:.45}

/* حال */
.dapp .hb-mood{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:12px 14px}
.dapp .hb-mood-q{font-size:14px;font-weight:600;flex:1 1 120px}
.dapp .hb-faces{display:flex;gap:4px}
.dapp .hb-face{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;transition:transform .2s var(--d-spring)}
.dapp .hb-face:active{transform:scale(.88)}
.dapp .hb-face-svg{width:34px;height:34px;display:block}
.dapp .hb-face-svg .f{fill:color-mix(in srgb,var(--mc) 22%,transparent);stroke:none;transition:fill .2s}
.dapp .hb-face-svg .e{fill:var(--mc)}
.dapp .hb-face-svg .m{fill:none;stroke:var(--mc);stroke-width:1.7;stroke-linecap:round}
.dapp .hb-face-svg .m.fill{fill:var(--mc);stroke:none}
.dapp .hb-face.on{transform:scale(1.14)}
.dapp .hb-face.on .hb-face-svg .f{fill:var(--mc)}
.dapp .hb-face.on .hb-face-svg .e{fill:#1b1b1d}
.dapp .hb-face.on .hb-face-svg .m{stroke:#1b1b1d}
.dapp .hb-face.on .hb-face-svg .m.fill{fill:#1b1b1d}
.dapp .hb-faces.big{gap:6px;flex-wrap:wrap}
.dapp .hb-faces.big .hb-face{width:auto;height:auto;flex-direction:column;gap:2px;padding:6px 4px;border-radius:14px;min-width:56px}
.dapp .hb-faces.big .hb-face span{font-size:11.5px;color:var(--d-sub)}
.dapp .hb-faces.big .hb-face-svg{width:40px;height:40px}
.dapp .hb-faces.big .hb-face.on{transform:none;background:color-mix(in srgb,var(--mc) 16%,transparent)}
.dapp .hb-faces.big .hb-face.on span{color:var(--d-ink);font-weight:600}
.dapp .hb-mood .dlink{margin-inline-start:auto}

/* بخش‌های روز */
.dapp .hb-sec{animation:d-rise .5s var(--d-ease) both}
.dapp .hb-sec-h{display:flex;align-items:center;gap:8px;margin:4px 6px 8px;color:var(--d-sub)}
.dapp .hb-sec-h .ic{width:18px;height:18px}
.dapp .hb-sec-h h3{font-size:13px;font-weight:600;margin:0;flex:1}
.dapp .hb-sec-n{font-size:12px;font-variant-numeric:tabular-nums}
.dapp .hb-list{display:flex;flex-direction:column;gap:8px}

/* ردیف عادت */
.dapp .hb-row{position:relative;display:flex;align-items:center;gap:6px;padding:6px 8px 6px 10px;border-radius:19px;background:var(--d-surf);
  border:1px solid var(--d-line);box-shadow:var(--d-shadow);transition:background .35s,border-color .35s,opacity .3s;-webkit-user-select:none;user-select:none;
  -webkit-touch-callout:none}
.dapp[dir="ltr"] .hb-row{padding:6px 10px 6px 8px}
.dapp .hb-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:6px 4px;text-align:start;border-radius:14px;-webkit-tap-highlight-color:transparent}
.dapp .hb-tile{width:44px;height:44px;flex:none;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--hc) 18%,transparent);color:var(--hc);
  transition:background .3s,transform .3s var(--d-spring)}
.dapp .hb-tile .ic{width:24px;height:24px}
.dapp .hb-tile.big{width:58px;height:58px;border-radius:18px}
.dapp .hb-tile.big .ic{width:30px;height:30px}
.dapp .hb-tile.pick{cursor:pointer;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--hc) 40%,transparent)}
.dapp .hb-row-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.dapp .hb-row-t b{display:flex;align-items:center;gap:6px;font-size:15.5px;font-weight:600;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hb-row-sub{font-size:12.5px;color:var(--d-sub);line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hb-row-sub:empty{display:none}
.dapp .hb-fire{display:inline-flex;align-items:center;gap:2px;font-size:12.5px;font-weight:600;color:var(--d-fire);font-variant-numeric:tabular-nums}
.dapp .hb-fire .ic{width:15px;height:15px}
.dapp .hb-fire small{font-size:11px;font-weight:500;margin-inline-start:2px;opacity:.8}
.dapp .hb-fire.risk{animation:hb-pulse 1.8s ease-in-out infinite}
@keyframes hb-pulse{50%{opacity:.45}}
.dapp .hb-str{font-size:11.5px;font-weight:600;padding:1px 7px;border-radius:99px;background:color-mix(in srgb,var(--hc) 16%,transparent);color:var(--hc)}
.dapp .hb-timer{color:var(--d-acc);font-variant-numeric:tabular-nums}

.dapp .hb-row.st-done,.dapp .hb-row.st-ok{background:color-mix(in srgb,var(--hc) 9%,var(--d-surf));border-color:color-mix(in srgb,var(--hc) 30%,var(--d-line))}
.dapp .hb-row.st-done .hb-tile{background:var(--hc);color:var(--hc-ink)}
.dapp .hb-row.st-skip,.dapp .hb-row.rest{opacity:.72}
.dapp .hb-row.st-skip .hb-row-t b{text-decoration:line-through;text-decoration-color:var(--d-faint)}
.dapp .hb-row.st-fail{border-color:color-mix(in srgb,var(--d-bad) 35%,var(--d-line))}
.dapp .hb-row.paused{opacity:.6}
.dapp .hb-row.rest{box-shadow:none;background:var(--d-bg2)}

/* دکمه‌ی کنار ردیف */
.dapp .hb-ctl{position:relative;flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;color:var(--hc);
  -webkit-tap-highlight-color:transparent;transition:transform .15s var(--d-spring)}
.dapp .hb-ctl:active{transform:scale(.86)}
.dapp .hb-ctl-ring{position:absolute;inset:2px;width:48px;height:48px}
.dapp .hb-ctl-ring .bg{stroke:color-mix(in srgb,var(--hc) 22%,var(--d-surf3))}
.dapp .hb-ctl-ring .fg{stroke:var(--hc);transition:stroke-dashoffset .55s var(--d-ease)}
.dapp .hb-ctl-ic{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;transition:background .3s,color .3s,transform .3s var(--d-spring)}
.dapp .hb-ctl-ic .ic{width:21px;height:21px}
.dapp .hb-ctl.on .hb-ctl-ic{background:var(--hc);color:var(--hc-ink);transform:scale(1.12)}
.dapp .hb-ctl.bad{color:var(--d-bad)}
.dapp .hb-ctl.bad .hb-ctl-ring .fg{stroke:var(--d-bad)}
.dapp .hb-ctl.is-skip{opacity:.5}
.dapp .hb-ctl.pop .hb-ctl-ic{animation:hb-pop .55s var(--d-spring)}
@keyframes hb-pop{0%{transform:scale(.6)}55%{transform:scale(1.3) rotate(-8deg)}100%{transform:scale(1.12)}}
.dapp .hb-burst{position:absolute;inset:0;pointer-events:none}
.dapp .hb-burst i{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:var(--hc);
  animation:hb-burst .62s var(--d-ease) forwards;transform:rotate(var(--a)) translateY(0)}
@keyframes hb-burst{0%{opacity:1;transform:rotate(var(--a)) translateY(-14px) scale(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(-36px) scale(.3)}}

.dapp .hb-free{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:26px 12px;color:var(--d-sub)}
.dapp .hb-free .ic{width:36px;height:36px;color:var(--d-acc)}
.dapp .hb-free b{color:var(--d-ink);font-size:15px}
.dapp .hb-rest{border-radius:var(--d-r);background:var(--d-surf);border:1px solid var(--d-line);padding:4px 12px 4px}
.dapp .hb-rest > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;min-height:46px;font-size:14px;font-weight:600;color:var(--d-ink2)}
.dapp .hb-rest > summary::-webkit-details-marker{display:none}
.dapp .hb-rest > summary::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-inline-start:auto;transition:transform .2s}
.dapp .hb-rest[open] > summary::after{transform:rotate(-135deg)}
.dapp .hb-rest[open] > .hb-list,.dapp .hb-rest[open] > .hb-glist{padding-bottom:10px}
.dapp .hb-arch-link{align-self:center}

.dapp .hb-fab{position:fixed;z-index:55;inset-inline-end:18px;bottom:calc(var(--d-tab) + var(--d-safe-b) + 16px);width:58px;height:58px;border-radius:20px;
  display:grid;place-items:center;background:var(--d-acc);color:var(--d-acc-ink);box-shadow:0 4px 0 var(--d-acc-deep),0 14px 28px -10px rgba(0,0,0,.6);
  transition:transform .15s var(--d-ease),box-shadow .15s;animation:d-pop .5s var(--d-spring) .3s both}
.dapp .hb-fab .ic{width:28px;height:28px}
.dapp .hb-fab:active{transform:translateY(4px);box-shadow:0 0 0 var(--d-acc-deep),0 8px 18px -10px rgba(0,0,0,.6)}
@media (min-width:900px){.dapp .hb-fab{display:none}}
.dapp .hb-today::after{content:"";height:70px}

.dapp .hb-toast{display:flex;align-items:center;gap:14px}
.dapp .hb-undo{font-weight:700;color:var(--d-acc);padding:4px 6px;margin-inline-start:auto;pointer-events:auto}   /* .toasts خودش pointer-events:none است */

/* خالی */
.dapp .hb-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:26px 18px}
.dapp .hb-empty h2{font-size:21px;font-weight:600;margin:0}
.dapp .hb-empty .dmuted{max-width:440px}
.dapp .hb-empty-art{width:150px;height:110px;display:grid;place-items:center}
.dapp .hb-big-ic{width:64px !important;height:64px !important;color:var(--d-acc)}
.dapp .hb-sprout-art{width:150px;height:auto;overflow:visible}
.dapp .hb-sprout-art .soil{fill:color-mix(in srgb,var(--d-leaf) 30%,var(--d-surf2))}
.dapp .hb-sprout-art .stem{stroke:var(--d-ok);stroke-width:4;stroke-linecap:round;fill:none;stroke-dasharray:40;stroke-dashoffset:40;animation:hb-draw .9s var(--d-ease) .2s forwards}
.dapp .hb-sprout-art .lf{fill:var(--d-ok);transform-box:fill-box;transform:scale(0);animation:hb-leaf .7s var(--d-spring) forwards}
.dapp .hb-sprout-art .l1{transform-origin:100% 100%;animation-delay:.8s}
.dapp .hb-sprout-art .l2{transform-origin:0% 100%;animation-delay:1s;fill:color-mix(in srgb,var(--d-ok) 75%,#fff)}
@keyframes hb-draw{to{stroke-dashoffset:0}}
@keyframes hb-leaf{to{transform:scale(1)}}
.dapp .hb-tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:8px;width:100%}
.dapp .hb-tpl{display:flex;align-items:center;gap:8px;padding:8px;border-radius:14px;background:var(--d-surf2);border:1px solid var(--d-line);
  font-size:13px;font-weight:500;text-align:start;transition:transform .15s var(--d-spring),background .2s}
.dapp .hb-tpl:hover{background:var(--d-surf3)}
.dapp .hb-tpl:active{transform:scale(.95)}
.dapp .hb-tpl .hb-tile{width:34px;height:34px;border-radius:11px}
.dapp .hb-tpl .hb-tile .ic{width:19px;height:19px}

/* کارت‌های یادآوری */
.dapp .hb-nudge{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-color:color-mix(in srgb,var(--d-acc) 40%,var(--d-line))}
.dapp .hb-nudge .dnudge-t .ic{width:22px;height:22px;flex:none}
.dapp .hb-nudge.trip{border-color:color-mix(in srgb,var(--d-ok) 40%,var(--d-line))}
.dapp .hb-nudge.trip .dnudge-t .ic{color:var(--d-ok)}
.dapp .hb-nudge.push .dnudge-t .ic{color:var(--d-fire)}
.dapp .hb-nudge[hidden]{display:none}

/* ═══════════════════ برگه‌ی سریع ═══════════════════ */
.dapp .hb-q-day{font-size:13px;color:var(--d-sub)}
.dapp .hb-q-day span{color:var(--hc);font-weight:600}
.dapp .hb-q-row{display:flex;align-items:center;justify-content:center;gap:16px}
.dapp .hb-q-row > .dbtn{flex:1}
.dapp .hb-q-pm{width:58px;height:58px;border-radius:50%;font-size:28px;font-weight:600;background:var(--d-surf2);color:var(--hc);border:2px solid color-mix(in srgb,var(--hc) 35%,transparent);
  transition:transform .12s var(--d-spring)}
.dapp .hb-q-pm:active{transform:scale(.88)}
.dapp .hb-q-mid{display:flex;flex-direction:column;align-items:center;min-width:110px}
.dapp .hb-q-num{font-size:46px;font-weight:600;line-height:1.1;color:var(--hc);font-variant-numeric:tabular-nums}
.dapp .hb-q-mid span{font-size:13px;color:var(--d-sub)}
.dapp .hb-q-in{text-align:center}
.dapp .hb-q-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dapp .hb-q-acts .dlink{margin-inline-start:auto}
.dapp .dbtn.danger{--b:color-mix(in srgb,var(--d-bad) 16%,var(--d-surf2));--bi:var(--d-bad);--bs:color-mix(in srgb,var(--d-bad) 40%,transparent)}
.dapp .hb-chips{display:flex;flex-wrap:wrap;gap:6px}
.dapp .hb-chips.center{justify-content:center}
.dapp .dchip.wi{display:inline-flex;align-items:center;gap:5px}
.dapp .dchip.wi .ic{width:16px;height:16px}
.dapp .dchip.ghost{background:none;border-style:dashed}
.dapp .dchip[class*="hc-"].on{background:var(--hc);border-color:var(--hc);color:var(--hc-ink)}

/* ═══════════════════ جزئیات ═══════════════════ */
.dapp .hb-det{display:flex;flex-direction:column;gap:16px}
.dapp .hb-det-head{display:flex;align-items:flex-start;gap:14px}
.dapp .hb-det-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.dapp .hb-det-pills{display:flex;flex-wrap:wrap;gap:6px}
.dapp .dpill[class*="hc-"]{background:color-mix(in srgb,var(--hc) 16%,transparent);color:var(--hc)}
.dapp .hb-why{margin:0;padding:2px 12px;border-inline-start:3px solid var(--hc);font-size:14.5px;line-height:1.9;color:var(--d-ink2);white-space:pre-line}
.dapp .hb-cue{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--d-sub)}
.dapp .hb-cue .ic{width:16px;height:16px;color:var(--hc)}
.dapp .hb-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.dapp .hb-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:12px;border-radius:16px;background:var(--d-surf2)}
.dapp .hb-kpi-ic{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;margin-bottom:4px;background:color-mix(in srgb,var(--hc) 16%,transparent);color:var(--hc)}
.dapp .hb-kpi-ic .ic{width:17px;height:17px}
.dapp .hb-kpi.fire .hb-kpi-ic{background:color-mix(in srgb,var(--d-fire) 18%,transparent);color:var(--d-fire)}
.dapp .hb-kpi b{font-size:22px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.dapp .hb-kpi > span:last-child{font-size:11.5px;color:var(--d-sub);line-height:1.5}
.dapp .hb-kpi-ring{position:relative;width:46px;height:46px;margin-bottom:2px}
.dapp .hb-kpi-ring .dring{position:absolute;inset:0}
.dapp .hb-stage{position:absolute;inset:11px;width:24px;height:24px;color:var(--hc)}
.dapp .hb-det-today{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;
  background:color-mix(in srgb,var(--hc) 9%,var(--d-surf2));border:1px solid color-mix(in srgb,var(--hc) 25%,transparent)}
.dapp .hb-det-today b{display:block;font-size:14.5px}
.dapp .hb-det-today span{font-size:12.5px;color:var(--d-sub)}
.dapp .hb-66{display:flex;flex-direction:column;gap:6px}
.dapp .hb-66-t{display:flex;justify-content:space-between;font-size:13px}
.dapp .hb-66 .dbar i{background:linear-gradient(90deg,color-mix(in srgb,var(--hc) 60%,#fff),var(--hc))}
.dapp .hb-dsec h4{font-size:13.5px;font-weight:600;color:var(--d-ink2);margin:0 0 10px}
.dapp .hb-det-acts{display:flex;flex-wrap:wrap;gap:8px;padding-top:6px;border-top:1px solid var(--d-line)}

/* نقشه‌ی گرما */
.dapp .hb-heat-wrap{overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;direction:rtl}
.dapp[dir="ltr"] .hb-heat-wrap{direction:ltr}
.dapp .hb-heat-m{display:flex;gap:3px;height:16px;font-size:10px;color:var(--d-faint)}
.dapp .hb-heat-m span{flex:0 0 12px;white-space:nowrap;overflow:visible;font-size:10px}
.dapp .hb-heat{display:flex;gap:3px}
.dapp .hb-heat-c{display:flex;flex-direction:column;gap:3px}
.dapp .hb-heat i{display:block;width:12px;height:12px;border-radius:3.5px;background:var(--d-surf3);cursor:pointer}
.dapp .hb-heat i.c-d,.dapp .hb-heat i.c-p{background:color-mix(in srgb,var(--hc) calc(var(--f,1) * 100%),var(--d-surf3))}
.dapp .hb-heat i.c-o{background:transparent;box-shadow:inset 0 0 0 1px var(--d-line)}
.dapp .hb-heat i.c-b,.dapp .hb-heat i.c-s{background:repeating-linear-gradient(135deg,var(--d-surf3) 0 2px,transparent 2px 4px)}
.dapp .hb-heat i.c-f{background:color-mix(in srgb,var(--d-bad) 55%,var(--d-surf3))}
.dapp .hb-heat i.c-k{background:color-mix(in srgb,var(--hc) 45%,var(--d-surf3))}
.dapp .hb-heat i.c-\.,.dapp .hb-heat i.hb-x{background:transparent;cursor:default}
.dapp .hb-heat-c:last-child i:not(.hb-x):not(.c-\.){outline-offset:1px}
.dapp .hb-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:8px;font-size:11.5px;color:var(--d-sub)}
.dapp .hb-legend > span{display:inline-flex;align-items:center;gap:5px}
.dapp .hb-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;background:var(--d-surf3)}
.dapp .hb-legend i.c-d{background:var(--hc)}
.dapp .hb-legend i.c-p{background:color-mix(in srgb,var(--hc) 50%,var(--d-surf3))}
.dapp .hb-legend i.c-s{background:repeating-linear-gradient(135deg,var(--d-surf3) 0 2px,transparent 2px 4px);box-shadow:inset 0 0 0 1px var(--d-line)}
.dapp .hb-legend i.ln{height:3px;width:16px;background:var(--hc)}
.dapp .hb-legend i.exp{height:0;width:16px;border-top:2px dashed var(--d-faint);background:none}

.dapp .hb-rates{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.dapp .hb-rates > div{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-rates b{font-size:18px;font-weight:600;color:var(--hc);font-variant-numeric:tabular-nums}
.dapp .hb-rates span{font-size:11.5px;color:var(--d-sub)}

/* میله‌ها */
.dapp .hb-vbars{position:relative;display:flex;align-items:flex-end;gap:3px;height:110px;padding-top:4px}
.dapp .hb-vbars i{flex:1;min-width:0;border-radius:4px 4px 2px 2px;background:color-mix(in srgb,var(--hc) 35%,var(--d-surf3));animation:hb-grow .7s var(--d-ease) both;transform-origin:bottom}
.dapp .hb-vbars i.hit{background:var(--hc)}
.dapp .hb-vbars i.pre{background:transparent}
.dapp .hb-vbars i.hb-now{box-shadow:0 0 0 2px color-mix(in srgb,var(--hc) 40%,transparent)}
.dapp .hb-vbars-t{position:absolute;inset-inline:0;border-top:1.5px dashed color-mix(in srgb,var(--d-ink) 35%,transparent);font-size:10.5px;font-weight:500;color:var(--d-sub);
  text-align:end;line-height:1;padding-top:2px;pointer-events:none}
@keyframes hb-grow{from{transform:scaleY(0)}to{transform:none}}
.dapp .hb-wbars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end}
.dapp .hb-wbars > div{display:flex;flex-direction:column;align-items:center;gap:4px}
.dapp .hb-wbars .bar{width:100%;max-width:30px;height:76px;border-radius:8px;background:var(--d-surf3);display:flex;align-items:flex-end;overflow:hidden}
.dapp .hb-wbars .bar i{width:100%;border-radius:8px;background:color-mix(in srgb,var(--hc,var(--d-acc)) 70%,transparent);animation:hb-grow .7s var(--d-ease) both;transform-origin:bottom}
.dapp .hb-wbars .best .bar i{background:var(--hc,var(--d-acc))}
.dapp .hb-wbars b{font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}
.dapp .hb-wbars span:last-child{font-size:11.5px;color:var(--d-sub)}
.dapp .hb-hbars{display:flex;align-items:flex-end;gap:2px;height:64px;position:relative;margin-bottom:16px;direction:ltr}
.dapp .hb-hbars i{flex:1;border-radius:3px 3px 1px 1px;background:color-mix(in srgb,var(--hc,var(--d-acc)) 70%,transparent)}
.dapp .hb-hbars-l{position:absolute;top:100%;inset-inline:0;display:flex;justify-content:space-between;font-size:10px;color:var(--d-faint);padding-top:3px}
.dapp .hb-line-wrap{position:relative;padding-top:18px}
.dapp .hb-line{width:100%;height:100px;display:block;overflow:visible}
.dapp .hb-line .ln{fill:none;stroke:var(--hc,var(--d-acc));stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dapp .hb-line .area{fill:color-mix(in srgb,var(--hc,var(--d-acc)) 14%,transparent);stroke:none}
.dapp .hb-line .exp{fill:none;stroke:var(--d-faint);stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.dapp .hb-line .pt{fill:var(--hc,var(--d-acc));stroke:var(--d-surf);stroke-width:1.5;vector-effect:non-scaling-stroke}
.dapp .hb-line-v{position:absolute;top:0;inset-inline-end:0;font-size:12px;font-weight:600;color:var(--hc,var(--d-acc))}
.dapp .hb-notes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dapp .hb-notes li{padding:10px 12px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-notes time{font-size:11.5px;color:var(--d-faint)}
.dapp .hb-notes p{margin:2px 0 0;font-size:14px;line-height:1.85;white-space:pre-line}

/* ═══════════════════ ویرایشگر ═══════════════════ */
.dapp .hb-ed{gap:18px}
.dapp .hb-ed-top{display:flex;align-items:center;gap:12px}
.dapp .hb-ed-name{flex:1;min-width:0;font-size:19px !important;font-weight:600;background:var(--d-surf2);border:1.5px solid transparent;border-radius:14px;padding:12px 14px;
  color:var(--d-ink);outline:none}
.dapp .hb-ed-name:focus{border-color:var(--hc)}
.dapp .hb-picker{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:16px;background:var(--d-surf2);animation:d-rise .25s var(--d-ease)}
.dapp .hb-picker[hidden]{display:none}
.dapp .hb-colors{display:flex;flex-wrap:wrap;gap:8px}
.dapp .hb-sw{width:32px;height:32px;border-radius:50%;background:var(--hc);box-shadow:inset 0 0 0 2px rgba(0,0,0,.08);transition:transform .2s var(--d-spring)}
.dapp .hb-sw.on{transform:scale(1.15);box-shadow:0 0 0 3px var(--d-surf2),0 0 0 5px var(--hc)}
.dapp .hb-colors.sm .hb-sw{width:22px;height:22px}
.dapp .hb-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:4px;max-height:212px;overflow-y:auto;overscroll-behavior:contain}
.dapp .hb-ib{height:42px;border-radius:12px;display:grid;place-items:center;color:var(--d-ink2)}
.dapp .hb-ib .ic{width:22px;height:22px}
.dapp .hb-ib:hover{background:var(--d-surf3)}
.dapp .hb-ib.on{background:var(--hc);color:var(--hc-ink)}
.dapp .hb-tpls{border-radius:16px;background:var(--d-surf2);padding:2px 12px}
.dapp .hb-tpls > summary{cursor:pointer;min-height:46px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;list-style:none}
.dapp .hb-tpls > summary i{font-style:normal;font-weight:400;font-size:12px;color:var(--d-faint)}
.dapp .hb-tpls > summary::-webkit-details-marker{display:none}
.dapp .hb-tpls > summary::after,.dapp .hb-more > summary::after{content:'';flex:none;margin-inline-start:auto;width:7px;height:7px;border:solid var(--d-faint);
  border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s var(--d-ease)}
.dapp .hb-tpls[open] > summary::after,.dapp .hb-more[open] > summary::after{transform:translateY(2px) rotate(-135deg)}
.dapp .hb-tpls[open]{padding-bottom:12px}
.dapp .hb-tpls .hb-tpl{background:var(--d-surf)}
.dapp .hb-hscroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -12px 10px;padding:2px 12px}
.dapp .hb-hscroll::-webkit-scrollbar{display:none}
.dapp .hb-hscroll > *{flex:none}
.dapp .hb-kind{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.dapp .hb-kb{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:14px;background:var(--d-surf2);border:1.5px solid transparent;
  font-size:12.5px;font-weight:500;color:var(--d-ink2);transition:border-color .2s,background .2s,transform .15s var(--d-spring)}
.dapp .hb-kb .ic{width:22px;height:22px}
.dapp .hb-kb:active{transform:scale(.95)}
.dapp .hb-kb.on{border-color:var(--hc);background:color-mix(in srgb,var(--hc) 12%,var(--d-surf2));color:var(--d-ink);font-weight:600}
.dapp .hb-kb.on .ic{color:var(--hc)}
.dapp .hb-hint{margin:2px 2px 0}
.dapp .hb-kind-x{display:flex;flex-direction:column;gap:10px}
.dapp .hb-kind-x:empty{display:none}
.dapp .hb-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dapp .hb-row3{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px}
.dapp .hb-freq{display:flex;flex-direction:column;gap:10px}
.dapp .hb-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.dapp .hb-day{height:42px;border-radius:12px;background:var(--d-surf2);font-weight:600;color:var(--d-sub);transition:background .2s,color .2s}
.dapp .hb-day.on{background:var(--hc);color:var(--hc-ink)}
.dapp .hb-stepper{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dapp .hb-stepper b{min-width:2ch;text-align:center;font-size:22px;font-weight:600;color:var(--hc);font-variant-numeric:tabular-nums}
.dapp .hb-stepper span{font-size:13px;color:var(--d-sub)}
.dapp .hb-st-b{width:40px;height:40px;border-radius:12px;background:var(--d-surf2);font-size:22px;font-weight:600;color:var(--d-ink)}
.dapp .hb-rems{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.dapp .hb-rem{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-rem > .ic{width:18px;height:18px;color:var(--hc);flex:none}
.dapp .hb-rem input[type="time"]{flex:none;width:auto;min-width:96px;background:var(--d-surf);border:0;border-radius:10px;padding:8px 10px;color:var(--d-ink);font-size:15px;direction:ltr}
.dapp .hb-rem input[type="text"]{flex:1;min-width:0;background:none;border:0;padding:8px 4px;color:var(--d-ink);font-size:14px;outline:none}
.dapp .hb-rem .dicon{width:34px;height:34px}
.dapp .hb-more{border-radius:16px;border:1px dashed var(--d-line2);padding:2px 14px}
.dapp .hb-more > summary{cursor:pointer;min-height:46px;display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:600;color:var(--d-ink2);list-style:none}
.dapp .hb-more > summary::-webkit-details-marker{display:none}
.dapp .hb-more[open]{padding-bottom:14px}
.dapp .hb-adv{display:flex;flex-direction:column;gap:14px}
.dapp .hb-ed select,.dapp .hb-set select,.dapp .dform select{appearance:none;-webkit-appearance:none;min-height:46px;border-radius:14px;border:0;background:var(--d-surf2);
  padding:0 14px;font-size:15px;color:var(--d-ink);max-width:100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ca3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size:18px 18px;background-position:left 12px center;background-repeat:no-repeat;padding-inline-end:40px}
.dapp[dir="ltr"] .hb-ed select,.dapp[dir="ltr"] .hb-set select,.dapp[dir="ltr"] .dform select{background-position:right 12px center}
.dapp .hb-set .drow select,.dapp .hb-set .drow input[type="time"]{min-height:38px;font-size:14px}
.dapp .hb-set .drow input[type="time"]{background:var(--d-surf2);border:0;border-radius:10px;padding:6px 10px;color:var(--d-ink);direction:ltr}
.dapp .hb-set .drow input[type="time"]:disabled{opacity:.4}
.dapp .hb-len{padding:6px 0;min-height:0}

/* ═══════════════════ اهداف ═══════════════════ */
.dapp .hb-goals{display:flex;flex-direction:column;gap:14px;padding-bottom:30px}
.dapp .hb-goals-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 2px}
.dapp .hb-goals-head h2{font-size:22px;font-weight:600;margin:0}
.dapp .hb-goals-head .dmuted{margin:2px 0 0}
.dapp .hb-glist{display:grid;gap:12px}
@media (min-width:760px){.dapp .hb-glist{grid-template-columns:1fr 1fr}}
.dapp .hb-goal{display:flex;flex-direction:column;gap:12px;text-align:start;margin:0;width:100%;transition:transform .15s var(--d-ease)}
.dapp .hb-goal:active{transform:scale(.985)}
.dapp .hb-goal-top{display:flex;align-items:center;gap:12px}
.dapp .hb-goal-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dapp .hb-goal-t b{font-size:15.5px;font-weight:600;line-height:1.6}
.dapp .hb-goal-pct{position:relative;width:52px;height:52px;flex:none;display:grid;place-items:center}
.dapp .hb-goal-pct .dring{position:absolute;inset:0}
.dapp .hb-goal-pct b{position:relative;font-size:12px;font-weight:600}
.dapp .hb-goal-bar{position:relative;height:8px;border-radius:5px;background:var(--d-surf3)}
.dapp .hb-goal-bar i{position:absolute;inset-block:0;inset-inline-start:0;width:var(--w);border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--hc) 65%,#fff),var(--hc));
  animation:d-grow 1s var(--d-ease) .2s both;transform-origin:right}
.dapp[dir="ltr"] .hb-goal-bar i{transform-origin:left}
.dapp .hb-goal-bar em{position:absolute;top:-4px;bottom:-4px;inset-inline-start:var(--x);width:2px;border-radius:2px;background:var(--d-ink);opacity:.55}
.dapp .hb-goal-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dapp .hb-goal-hs{display:flex;gap:4px;margin-inline-start:auto}
.dapp .hb-goal-hs i{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--hc) 18%,transparent);color:var(--hc)}
.dapp .hb-goal-hs .ic{width:14px;height:14px}
.dapp .hb-goal.st-done{opacity:.85}
.dapp .hb-goal.st-dropped,.dapp .hb-goal.st-paused{opacity:.6}
.dapp .hb-pace{font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:99px;background:color-mix(in srgb,var(--d-ok) 16%,transparent);color:var(--d-ok)}
.dapp .hb-pace.warn{background:color-mix(in srgb,var(--d-fire) 16%,transparent);color:var(--d-fire)}
.dapp .hb-pace.bad{background:color-mix(in srgb,var(--d-bad) 16%,transparent);color:var(--d-bad)}
.dapp .hb-gdet{display:flex;flex-direction:column;gap:16px}
.dapp .hb-gdet-hero{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.dapp .hb-gdet-ring{position:relative;width:132px;height:132px;flex:none}
.dapp .hb-gdet-ring > div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px}
.dapp .hb-gdet-ring b{font-size:28px;font-weight:600;color:var(--hc)}
.dapp .hb-gdet-ring span{font-size:11.5px;color:var(--d-sub);line-height:1.5}
.dapp .hb-gdet-t{flex:1 1 200px;display:flex;flex-direction:column;gap:8px;min-width:0}
.dapp .hb-advice{display:flex;align-items:flex-start;gap:6px;font-size:13px;line-height:1.8;color:var(--d-ink2);padding:8px 10px;border-radius:12px;background:var(--d-surf2)}
.dapp .hb-advice .ic{width:16px;height:16px;color:var(--hc);margin-top:3px;flex:none}
.dapp .hb-glog{display:flex;align-items:center;gap:8px}
.dapp .hb-glog input{flex:1;min-width:0;background:var(--d-surf2);border:1.5px solid transparent;border-radius:12px;padding:11px 12px;font-size:16px;color:var(--d-ink);outline:none}
.dapp .hb-glog input:focus{border-color:var(--hc)}
.dapp .hb-glogs{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.dapp .hb-glogs li{display:flex;align-items:center;gap:10px;padding:6px 2px;border-bottom:1px solid var(--d-line);font-size:13.5px}
.dapp .hb-glogs time{color:var(--d-sub);min-width:7em}
.dapp .hb-glogs span{flex:1;color:var(--d-sub);font-size:12.5px}
.dapp .hb-steps{display:flex;flex-direction:column;gap:6px}
.dapp .hb-step{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--d-surf2);cursor:pointer;font-size:14.5px}
.dapp .hb-step input{width:22px;height:22px;accent-color:var(--hc);flex:none}
.dapp .hb-step span{flex:1}
.dapp .hb-step.on span{text-decoration:line-through;color:var(--d-sub)}
.dapp .hb-step .dicon{width:32px;height:32px;opacity:.6}
.dapp .hb-ghabits{display:flex;flex-direction:column;gap:6px}
.dapp .hb-gh{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--d-surf2);text-align:start}
.dapp .hb-gh > span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}
.dapp .hb-gh b{font-size:14px}
.dapp .hb-gh .dbar i{background:var(--hc)}
.dapp .hb-gh em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--hc)}
.dapp .hb-gh .hb-tile{width:36px;height:36px;border-radius:12px}

/* ═══════════════════ زندگی ═══════════════════ */
.dapp .hb-life{display:flex;flex-direction:column;gap:14px;padding-bottom:30px}
.dapp .hb-life > .dcard{margin-bottom:0}
.dapp .hb-jcard{display:flex;flex-direction:column;gap:14px}
.dapp .hb-jcard .dcard-h{margin-bottom:0}
.dapp .hb-jcard .dcard-h .ic{width:20px;height:20px;color:var(--d-bad)}
.dapp .hb-jcard textarea{width:100%;background:var(--d-surf2);border:1.5px solid transparent;border-radius:14px;padding:12px 14px;font-size:15.5px;line-height:1.9;color:var(--d-ink);outline:none;resize:vertical}
.dapp .hb-jcard textarea:focus{border-color:var(--d-acc)}
.dapp .hb-energy{display:flex;gap:6px}
.dapp .hb-energy button{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--d-surf2);color:var(--d-faint);transition:all .2s var(--d-spring)}
.dapp .hb-energy button .ic{width:20px;height:20px}
.dapp .hb-energy button.on{background:color-mix(in srgb,#ffd166 22%,var(--d-surf2));color:#f2b632}
:root[data-theme="paper"] .dapp .hb-energy button.on{color:#b7790c}
.dapp .hb-px-wrap{overflow-x:auto}
.dapp .hb-px{display:grid;grid-template-columns:22px repeat(12,minmax(14px,1fr));gap:3px;min-width:260px;max-width:520px}
.dapp .hb-px-h{font-size:10px;color:var(--d-faint);text-align:center;height:14px;overflow:hidden}
.dapp .hb-px-d{font-size:9.5px;color:var(--d-faint);text-align:center;line-height:12px}
.dapp .hb-px i{display:block;height:12px;border-radius:3px;background:var(--d-surf3);cursor:pointer}
.dapp .hb-px i.on{background:var(--mc)}
.dapp .hb-px i.fut{opacity:.3;cursor:default}
.dapp .hb-px i.hb-now{box-shadow:0 0 0 1.5px var(--d-ink)}
.dapp .hb-px i.hb-x{background:transparent;cursor:default}
.dapp .hb-radar{width:100%;max-width:340px;height:auto;display:block;margin:0 auto;overflow:visible}
.dapp .hb-radar .rg{fill:none;stroke:var(--d-line2);stroke-width:1}
.dapp .hb-radar .ax{stroke:var(--d-line);stroke-width:1}
.dapp .hb-radar .cur{fill:color-mix(in srgb,var(--d-acc) 28%,transparent);stroke:var(--d-acc);stroke-width:2;stroke-linejoin:round}
.dapp .hb-radar .prev{fill:none;stroke:var(--d-faint);stroke-width:1.3;stroke-dasharray:4 3}
.dapp .hb-radar .lb{fill:var(--d-ink2);font-size:11px;font-family:inherit}
.dapp .hb-areas{display:grid;gap:8px}
@media (min-width:640px){.dapp .hb-areas{grid-template-columns:1fr 1fr}}
.dapp .hb-area{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-area > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.dapp .hb-area b{font-size:14px}
.dapp .hb-area .dbar i{background:var(--hc)}
.dapp .hb-area .hb-tile{width:38px;height:38px;border-radius:12px}
.dapp .hb-area-sc{font-style:normal;font-size:15px;font-weight:600;color:var(--hc);min-width:2.5ch;text-align:center}
.dapp .hb-mood-dots{display:flex;justify-content:space-between;gap:2px;margin-top:6px}
.dapp .hb-mood-dots .hb-face-svg{width:18px;height:18px}
.dapp .hb-mood-dots span{display:block}
.dapp .hb-corr{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dapp .hb-corr li{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-corr li > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dapp .hb-corr li .hb-tile{width:36px;height:36px;border-radius:12px}
.dapp .hb-corr em{font-style:normal;font-weight:600;font-size:14px;padding:3px 8px;border-radius:10px}
.dapp .hb-corr em.up{color:var(--d-ok);background:color-mix(in srgb,var(--d-ok) 14%,transparent)}
.dapp .hb-corr em.down{color:var(--d-fire);background:color-mix(in srgb,var(--d-fire) 14%,transparent)}
.dapp .hb-jlist{display:flex;flex-direction:column;gap:6px}
.dapp .hb-jrow{display:flex;align-items:flex-start;gap:10px;padding:10px;border-radius:14px;background:var(--d-surf2);text-align:start}
.dapp .hb-jrow > div{flex:1;min-width:0}
.dapp .hb-jrow b{font-size:13.5px}
.dapp .hb-jrow p{margin:2px 0 0;font-size:14px;line-height:1.85;color:var(--d-ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.dapp .hb-jrow-f{flex:none;width:34px;height:34px;display:grid;place-items:center;color:var(--d-faint)}
.dapp .hb-jrow-f .hb-face-svg{width:32px;height:32px}
.dapp .hb-jtags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.dapp .hb-jtags span{font-size:11px;padding:2px 8px;border-radius:99px;background:var(--d-surf3);color:var(--d-sub)}
.dapp .hb-jdone{display:flex;flex-wrap:wrap;gap:3px;max-width:84px;justify-content:flex-end}
.dapp .hb-jdone i{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:color-mix(in srgb,var(--hc) 20%,transparent);color:var(--hc)}
.dapp .hb-jdone .ic{width:13px;height:13px}
.dapp .hb-jmore{align-self:center;margin-top:6px}
.dapp .hb-revs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.dapp .hb-revs button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 12px;border-radius:14px;background:var(--d-surf2);text-align:start}
.dapp .hb-revs b{font-size:14px}
.dapp .hb-revs span{font-size:13px;color:var(--d-sub)}
.dapp .hb-wrow{display:grid;grid-template-columns:38px 1fr 2.4ch;grid-template-rows:auto auto;column-gap:10px;row-gap:4px;align-items:center;padding:8px 0;border-bottom:1px solid var(--d-line)}
.dapp .hb-wrow .hb-tile{grid-row:1/3;width:38px;height:38px;border-radius:12px}
.dapp .hb-wrow > span:nth-child(2){font-size:14px;font-weight:600}
.dapp .hb-wrow small{font-weight:400;color:var(--d-faint)}
.dapp .hb-wrow input[type="range"]{grid-column:2;width:100%;accent-color:var(--hc)}
.dapp .hb-wrow > b{grid-column:3;grid-row:1/3;font-size:18px;color:var(--hc);text-align:center}
.dapp .hb-arow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--d-line)}
.dapp .hb-arow input{flex:1 1 140px;min-width:0;background:var(--d-surf2);border:0;border-radius:12px;padding:10px 12px;font-size:15px;color:var(--d-ink)}
.dapp .hb-review{gap:16px}
.dapp .hb-rev-top{display:flex;align-items:center;gap:16px}
.dapp .hb-rev-top > div:last-child{display:flex;flex-direction:column;gap:2px}
.dapp .hb-rev-ring{position:relative;width:92px;height:92px;flex:none;--hc:var(--d-ok)}
.dapp .hb-rev-ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:20px;font-weight:600}
.dapp .hb-rev-l{display:flex;flex-direction:column;gap:6px}
.dapp .hb-rev-l h4{margin:0 0 2px}
.dapp .hb-rev-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;background:var(--d-surf2);font-size:14px}
.dapp .hb-rev-row > span:nth-child(2){flex:1}
.dapp .hb-rev-row .hb-tile{width:30px;height:30px;border-radius:9px}
.dapp .hb-rev-row .hb-tile .ic{width:17px;height:17px}
.dapp .hb-review textarea{width:100%;background:var(--d-surf2);border:1.5px solid transparent;border-radius:14px;padding:11px 13px;font-size:15px;line-height:1.85;color:var(--d-ink);outline:none;resize:vertical}

/* ═══════════════════ آمار ═══════════════════ */
.dapp .hb-stats{display:flex;flex-direction:column;gap:14px;padding-bottom:30px}
.dapp .hb-stats > .dcard,.dapp .hb-stats .dgrid2 > .dcard{margin-bottom:0}
.dapp .hb-range{display:flex}
.dapp .hb-range .dsegm{margin:0;width:100%}
.dapp .hb-range .dsegm button{flex:1;justify-content:center}
.dapp .hb-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media (min-width:640px){.dapp .hb-tiles{grid-template-columns:repeat(4,1fr)}}
.dapp .hb-stile{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:18px;background:var(--d-surf);border:1px solid var(--d-line);box-shadow:var(--d-shadow);--hc:var(--d-acc);
  animation:d-rise .5s var(--d-ease) both}
.dapp .hb-stile:nth-child(2){--hc:var(--d-ok)}.dapp .hb-stile:nth-child(3){--hc:var(--d-violet)}.dapp .hb-stile:nth-child(4){--hc:var(--d-fire)}
.dapp .hb-stile b{font-size:26px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.dapp .hb-stile > span:last-child{font-size:12px;color:var(--d-sub);line-height:1.5}
.dapp .hb-dbars{display:flex;align-items:flex-end;gap:3px;height:120px;--hc:var(--d-ok)}
.dapp .hb-dbars.dense{gap:1px}
.dapp .hb-dbars i{flex:1;min-width:0;border-radius:4px 4px 2px 2px;background:color-mix(in srgb,var(--hc) 45%,var(--d-surf3));animation:hb-grow .7s var(--d-ease) both;transform-origin:bottom}
.dapp .hb-dbars i.full{background:var(--hc)}
.dapp .hb-dbars i.none{background:var(--d-surf3)}
.dapp .hb-rank{display:flex;flex-direction:column;gap:6px}
.dapp .hb-rank-r{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--d-surf2);text-align:start}
.dapp .hb-rank-r .hb-tile{width:38px;height:38px;border-radius:12px}
.dapp .hb-rank-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.dapp .hb-rank-t b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hb-rank-t .dbar i{background:var(--hc)}
.dapp .hb-rank-n{display:flex;flex-direction:column;align-items:center;min-width:44px}
.dapp .hb-rank-n b{font-size:13.5px;font-variant-numeric:tabular-nums}
.dapp .hb-rank-n span{font-size:10.5px;color:var(--d-sub)}
@media (max-width:420px){.dapp .hb-rank-n:nth-child(4){display:none}}
.dapp .hb-foot{text-align:center;max-width:520px;margin:4px auto 0}

/* ═══════════════════ تنظیمات ═══════════════════ */
.dapp .hb-set .dgroup{margin-bottom:16px}
.dapp .hb-push{display:flex;flex-direction:column;gap:10px;padding:8px 10px 10px}
.dapp .hb-brks{display:flex;flex-direction:column;gap:6px;padding:6px 8px 10px;align-items:flex-start}
.dapp .hb-brk{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:12px;background:var(--d-surf2);font-size:13.5px}
.dapp .hb-brk > span{flex:1}
.dapp .hb-brk .ic{width:18px;height:18px;color:var(--d-ok);flex:none}
.dapp .hb-brk.hb-now{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--d-ok) 50%,transparent)}
.dapp .hb-cal{display:flex;flex-direction:column;gap:10px;padding:8px 10px 10px}
.dapp .hb-set .dg-note{margin:6px 10px 4px}
.dapp .hb-bell-art{display:grid;place-items:center;width:72px;height:72px;border-radius:24px;margin:4px auto 2px;background:color-mix(in srgb,var(--d-fire) 16%,transparent);color:var(--d-fire)}
.dapp .hb-bell-art .ic{width:36px;height:36px;animation:hb-ring 1.8s ease-in-out infinite;transform-origin:50% 10%}
@keyframes hb-ring{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(14deg)}20%,40%{transform:rotate(-12deg)}}

/* ═══════════════════ کارت خانه ═══════════════════ */
.dapp .hbh{padding:14px 14px 12px}
.dapp .hbh-h{display:flex;align-items:center;gap:12px}
.dapp .hbh-ring{position:relative;width:54px;height:54px;flex:none;display:grid;place-items:center;--hc:var(--d-ok)}
.dapp .hbh-ring .dring{position:absolute;inset:0}
.dapp .hbh-ring b{position:relative;font-size:17px;font-weight:600}
.dapp .hbh-t{flex:1;min-width:0;display:flex;flex-direction:column}
.dapp .hbh-t b{font-size:16px;font-weight:600}
.dapp .hbh-list{display:flex;flex-direction:column;gap:4px;margin-top:10px}
.dapp .hbh-row{display:flex;align-items:center;gap:4px;padding:2px 4px;border-radius:14px;background:var(--d-surf2)}
.dapp .hbh-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:6px 4px;text-align:start;font-size:14.5px;font-weight:500}
.dapp .hbh-main > span:nth-child(2){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hbh-main small{font-size:12px;color:var(--d-sub);font-variant-numeric:tabular-nums}
.dapp .hbh-main .hb-tile{width:34px;height:34px;border-radius:11px}
.dapp .hbh-main .hb-tile .ic{width:19px;height:19px}
.dapp .hbh-row .hb-ctl{width:44px;height:44px}
.dapp .hbh-row .hb-ctl-ring{inset:0;width:44px;height:44px}
.dapp .hbh-row .hb-ctl-ic{width:30px;height:30px}
.dapp .hbh-row .hb-ctl-ic .ic{width:18px;height:18px}
.dapp .hbh-empty{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dapp .hbh-empty > div{flex:1 1 180px;display:flex;flex-direction:column;gap:2px}

@media (prefers-reduced-motion:reduce){
  .dapp .hb-fire.risk,.dapp .hb-bell-art .ic{animation:none}
  .dapp .hb-sprout-art .stem{stroke-dashoffset:0}
  .dapp .hb-sprout-art .lf{transform:none}
}

/* ═══════════════════════════════════════════════════════════════
   باغچه، نسخه‌ی ۲ (۱۱ مهر ۱۴۰۵): نوار شش‌بخشی، دفترچه، حوزه‌های مصدری، تمرکز با گیاه، تمرکز گروهی
   ═══════════════════════════════════════════════════════════════ */

/* ——— نوار: شش بخش؛ روی گوشی کشیدنی ——— */
.dapp .hb-nav-s{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 1px;margin:-2px 0}
.dapp .hb-nav-s::-webkit-scrollbar{display:none}
.dapp .hb-nav-s a{flex:1 0 auto}
@media (max-width:560px){.dapp .hb-nav-s a{padding:0 12px}}
.dapp .hb-tile.sm{width:34px;height:34px;border-radius:11px}
.dapp .hb-tile.sm .ic{width:19px;height:19px}
.dapp .ic.up{transform:rotate(90deg)}
.dapp .ic.down{transform:rotate(-90deg)}

/* ═══════════════════ گیاه تمرکز ═══════════════════ */
.dapp .fqp{display:block;width:100%;height:100%;overflow:visible}
.dapp .fqp .soil{fill:color-mix(in srgb,var(--d-ink) 13%,transparent)}
.dapp .fqp .stem,.dapp .fqp .trunk{fill:none;stroke:#a07c55;stroke-linecap:round;stroke-linejoin:round}
.dapp .fqp .stem{stroke-width:2.4}
.dapp .fqp .trunk{stroke-width:3.4}
.dapp .fqp .lf{fill:color-mix(in srgb,var(--hc) 82%,transparent);stroke:var(--hc);stroke-width:1.1;stroke-linejoin:round}
.dapp .fqp .cn{fill:var(--hc)}
.dapp .fqp .cn2{fill:color-mix(in srgb,#fff 22%,var(--hc))}
.dapp .fqp .seed{fill:#b98d5a}
.dapp .fqp .vein{fill:none;stroke:color-mix(in srgb,#000 24%,var(--hc));stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="paper"] .dapp .fqp .stem,:root[data-theme="paper"] .dapp .fqp .trunk{stroke:#7d5a36}
.dapp .fqp-g{transform-box:view-box;transform-origin:32px 64px}
.dapp .fqp.live .fqp-g{animation:fq-sway 5s ease-in-out infinite}
@keyframes fq-sway{0%,100%{transform:rotate(-1.6deg)}50%{transform:rotate(1.8deg)}}
.dapp .fqp.xs{width:22px;height:25px}
.dapp .fqp.sm{width:30px;height:34px}
.dapp .fqp.md{width:46px;height:52px}
.dapp .fqp.lg{width:110px;height:124px}
@media (prefers-reduced-motion:reduce){.dapp .fqp.live .fqp-g{animation:none}}

.dapp .fq-mid{gap:2px}
.dapp .fq-plant{width:clamp(70px,22vw,96px);aspect-ratio:64/72;margin-top:-6px}
.dapp .fq-plant.grow svg{animation:fq-grow .7s var(--d-spring)}
@keyframes fq-grow{0%{transform:scale(.7);opacity:.4}60%{transform:scale(1.12)}100%{transform:none;opacity:1}}
.dapp .fq .fq-time{font-size:clamp(36px,10.5vw,50px)}
.dapp .fq .fq-ring-fg{stroke:var(--hc,var(--d-acc))}
.dapp .fq.brk .fq-ring-fg{stroke:var(--d-ok)}
.dapp .fq.run .fq-dial::after{box-shadow:0 0 0 0 color-mix(in srgb,var(--hc,var(--d-acc)) 30%,transparent)}
.dapp .fq-forl{min-height:1.4em;margin-top:-6px;font-size:13px;font-weight:600;color:var(--hc,var(--d-acc));text-align:center}
.dapp .fq-forl:empty{display:none}
.dapp .dchip.fq-left{border-color:var(--hc,var(--d-acc));border-style:dashed}
.dapp .fq-planted{display:inline-flex;align-items:center;gap:8px}
.dapp .fq-planted .fqp{flex:none}
.dapp .fq-ask-plant,.dapp .fq-sess-art{display:grid;place-items:center}
.dapp .fq-ask-plant .fqp{width:70px;height:80px}
.dapp .fq-sess p{margin:0;text-align:center}
.dapp .fq-calm-plant{width:min(40vw,150px);aspect-ratio:64/72;--hc:#7fb894}

/* برای چه؟ (زیر ساعت): عادت، حوزه، کتاب، برچسب — هر کدام یک دکمه‌ی منودار */
.dapp .fq-forrow{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%}
.dapp .fq-forrow.lock{pointer-events:none}
.dapp .fq-forrow.lock .hbp{opacity:.85}
.dapp .fq-forrow.lock .hbp-c{display:none}
.dapp .fq-forrow .hbp{max-width:min(100%,220px)}
.dapp .fq-durb.lock{pointer-events:none}
.dapp .fq-durb.lock .hbp-c{display:none}
.dapp .fqr-for{justify-content:flex-start}
.dapp .fqr-opts{justify-content:flex-start}

/* گروهی (کارت) */
.dapp .fq-grp{display:flex;flex-direction:column;gap:12px}
.dapp .fq-grp-b{display:flex;align-items:center;gap:14px}
.dapp .fq-grp-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.dapp .fq-grp-t b{font-size:15.5px}
.dapp .fq-grp-t span{line-height:1.8}
.dapp .fq-grp-art{flex:none;display:flex;align-items:flex-end;gap:2px}
.dapp .fq-grp-a{display:flex;gap:8px;flex-wrap:wrap}

/* برگه‌ی پایان تمرکز */
.dapp .fq-end{align-items:center;text-align:center;gap:10px}
.dapp .fq-end-art{display:grid;place-items:center}
.dapp .fq-end-art .fqp{width:110px;height:124px}
.dapp .fq-end-n{display:flex;align-items:baseline;justify-content:center;gap:6px}
.dapp .fq-end-n b{font-size:40px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.dapp .fq-end-n span{font-size:15px;color:var(--d-sub)}
.dapp .fq-end-l{margin:0;font-size:14.5px;line-height:1.9;color:var(--d-ink2)}
.dapp .fq-end-pg{width:100%;text-align:start}
.dapp .fq-end-page{text-align:center;font-size:20px;font-weight:700}
.dapp .fq-end-w{width:100%}

/* باغ این هفته */
.dapp .fq-garden{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end}
.dapp .fq-gday{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;color:var(--d-faint)}
.dapp .fq-gplants{display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;min-height:150px;width:100%;
  padding:6px 0 4px;border-radius:14px;background:linear-gradient(0deg,color-mix(in srgb,var(--d-ok) 10%,transparent),transparent 70%)}
.dapp .fq-gday.tdy .fq-gplants{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--d-ok) 45%,transparent)}
.dapp .fq-gday.hit .fq-gplants{background:linear-gradient(0deg,color-mix(in srgb,var(--d-ok) 24%,transparent),transparent 80%)}
.dapp .fq-gp{display:block;width:30px;height:30px;margin-top:-4px;padding:0;animation:fq-pop .5s var(--d-spring) both;animation-delay:calc(var(--d,0) * 50ms)}
.dapp .fq-gp .fqp{width:30px;height:34px}
.dapp .fq-gp:active{transform:scale(.9)}
@keyframes fq-pop{from{transform:scale(0) translateY(10px);opacity:0}to{transform:none;opacity:1}}
.dapp .fq-gmore{font-size:10.5px;color:var(--d-sub);font-weight:600}
.dapp .fq-gday b{font-size:12px;color:var(--d-ink2);font-variant-numeric:tabular-nums}
.dapp .fq-gday.tdy b,.dapp .fq-gday.tdy > span{color:var(--d-ink);font-weight:700}
.dapp .fq-gfoot{margin:10px 2px 0}
.dapp .fq-gempty .fqp{width:54px;height:60px;margin-bottom:4px}
.dapp .fq-recent li > .fqp{flex:none}
.dapp .fq-gtag{font-style:normal;font-size:11px;margin-inline-start:6px;padding:1px 7px;border-radius:99px;background:color-mix(in srgb,var(--d-blue,#8fb3e0) 18%,transparent);color:var(--d-ink2)}

/* کارت «تمرکز امروز» در امروز باغچه */
.dapp .fqt{display:flex;flex-direction:column;gap:10px}
.dapp .fqt .dcard-h{margin-bottom:0}
.dapp .fqt-min{margin-inline-start:auto;font-size:13px;font-weight:600;color:var(--d-ok);font-variant-numeric:tabular-nums}
.dapp .fqt-plants{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px 4px;padding:4px 6px;border-radius:14px;
  background:linear-gradient(0deg,color-mix(in srgb,var(--d-ok) 12%,transparent),transparent)}
.dapp .fqt-plants .fq-gp{width:36px;height:40px;margin:0}
.dapp .fqt-plants .fq-gp .fqp{width:36px;height:40px}
.dapp .fqt-empty{display:flex;align-items:center;gap:8px;margin:0}

/* ═══════════════════ تمرکز گروهی ═══════════════════ */
.dapp .dw-invite{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 12px;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.8;
  background:color-mix(in srgb,var(--d-ok) 14%,transparent);color:var(--d-ink)}
.dapp .fqr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px}
.dapp .fqr-head-t{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 220px}
.dapp .fqr-head-t h2{margin:0;font-size:18px;font-weight:600;line-height:1.5}
.dapp .fqr-head-t > div{min-width:0;display:flex;flex-direction:column}
.dapp .fqr-badge{flex:none;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--d-ok) 18%,transparent);color:var(--d-ok)}
.dapp .fqr-badge .ic{width:24px;height:24px}
.dapp .fqr-head-a{display:flex;gap:8px}
.dapp .fqr-dial .fq-dial{position:relative}
.dapp .fqr-floats{position:absolute;inset:0;pointer-events:none;overflow:visible}
.dapp .fqr-float{position:absolute;bottom:8%;left:var(--x);display:flex;flex-direction:column;align-items:center;gap:0;
  animation:fqr-up 2.8s var(--d-ease) forwards;transform:rotate(var(--r))}
.dapp .fqr-float b{font-size:30px;line-height:1;filter:drop-shadow(0 4px 8px rgba(0,0,0,.25))}
.dapp .fqr-float i{font-style:normal;font-size:11px;font-weight:600;padding:1px 7px;border-radius:99px;background:var(--d-surf);color:var(--d-ink2);box-shadow:var(--d-shadow)}
@keyframes fqr-up{0%{opacity:0;transform:translateY(20px) scale(.6) rotate(var(--r))}15%{opacity:1;transform:translateY(0) scale(1.1) rotate(var(--r))}
  100%{opacity:0;transform:translateY(-190px) scale(1) rotate(calc(var(--r) * -1))}}
.dapp .fqr-reacts{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.dapp .fqr-react{width:46px;height:46px;border-radius:50%;font-size:22px;background:var(--d-surf2);transition:transform .15s var(--d-spring)}
.dapp .fqr-react:active{transform:scale(.82)}
.dapp .fqr-me{display:flex;flex-direction:column;gap:10px}
.dapp .fqr-intent{font-size:16px !important}
.dapp .fqr-fordet > summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600;color:var(--d-ink2);padding:4px 0}
.dapp .fqr-fordet > summary::-webkit-details-marker{display:none}
.dapp .fqr-fordet > summary i{font-style:normal;font-weight:400;font-size:12px;color:var(--d-faint)}
.dapp .fqr-fordet[open] > summary{margin-bottom:8px}
.dapp .fqr-people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.dapp .fqr-p{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--d-line)}
.dapp .fqr-p:last-child{border-bottom:0}
.dapp .fqr-av{position:relative;flex:none;display:grid}
.dapp .fqr-dot{position:absolute;inset-inline-end:-2px;bottom:-2px;width:13px;height:13px;border-radius:50%;background:var(--d-surf3);border:2.5px solid var(--d-surf)}
.dapp .fqr-p.here .fqr-dot{background:var(--d-ok)}
.dapp .fqr-pt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.dapp .fqr-pt b{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:600}
.dapp .fqr-pt > span{font-size:12.5px;color:var(--d-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .fqr-host,.dapp .fqr-you{font-style:normal;font-size:10.5px;font-weight:600;padding:1px 7px;border-radius:99px;background:color-mix(in srgb,var(--d-acc) 18%,transparent);color:var(--d-acc)}
.dapp .fqr-you{background:var(--d-surf2);color:var(--d-sub)}
.dapp .fqr-ps{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;color:var(--d-ok);font-variant-numeric:tabular-nums}
.dapp .fqr-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.dapp .fqr-log li{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--d-ink2);padding:5px 2px}
.dapp .fqr-log time{font-size:11.5px;color:var(--d-faint);font-variant-numeric:tabular-nums}
.dapp .fqr-join{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:22px 18px}
.dapp .fqr-join h2{margin:0;font-size:21px;font-weight:600}
.dapp .fqr-join p{margin:0;line-height:1.9}
.dapp .fqr-join .fqr-me,.dapp .fqr-join > .dbtn{width:100%;text-align:start}
.dapp .fqr-join-art{display:flex;align-items:flex-end;gap:4px}
.dapp .fqr-join-art .fqp.md{width:52px;height:58px}
.dapp .fqr-faces{display:flex;flex-wrap:wrap;justify-content:center}
.dapp .fqr-face{margin-inline-start:-8px;border-radius:50%;box-shadow:0 0 0 3px var(--d-surf)}
.dapp .fqr-face:first-child{margin-inline-start:0}
.dapp .fqr-jstate{font-size:13px;font-weight:600;color:var(--d-ok)}
.dapp .fqr-solo{align-self:center;margin-top:6px}
.dapp .fqr-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.dapp .fqr-done h2{margin:0;font-size:21px;font-weight:600}
.dapp .fqr-done .fqr-people{width:100%;text-align:start}
.dapp .fqr-done-art{display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:2px;padding:8px 10px 0;border-radius:18px;
  background:linear-gradient(0deg,color-mix(in srgb,var(--d-ok) 16%,transparent),transparent)}
.dapp .fqr-done-art span{animation:fq-pop .6s var(--d-spring) both;animation-delay:calc(var(--i,0) * 90ms)}
.dapp .fqr-done-n{margin:0;font-size:14px;color:var(--d-sub)}
.dapp .fqr-done-n b{font-size:30px;font-weight:700;color:var(--d-ok);margin-inline-end:6px;font-variant-numeric:tabular-nums}
.dapp .fqr-inv{align-items:stretch}
.dapp .fqr-inv p{margin:0;line-height:1.9}
.dapp .fqr-inv-art{display:flex;justify-content:center;align-items:flex-end;gap:4px}
.dapp .fqr-code{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--d-sub)}
.dapp .fqr-code b{font-size:24px;font-weight:700;letter-spacing:.14em;color:var(--d-ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  padding:4px 14px;border-radius:12px;background:var(--d-surf2)}
.dapp .fqr-gone .dempty{padding:24px 10px}

/* ═══════════════════ منو، دکمه‌ی انتخاب، صفحه‌ی تمام ═══════════════════
   منو روی گوشی برگه‌ی کوچک پایین است و روی لپ‌تاپ زیر دکمه. صفحه‌ی تمام زیر برگه‌ها (overlay ۱۲۰) و روی نوار پایین (۶۰). */
.dapp .hbm{position:fixed;inset:0;z-index:200}
.dapp .hbm.sheet{background:rgba(0,0,0,0);transition:background .22s}
.dapp .hbm.sheet.in{background:rgba(0,0,0,.42)}
.dapp .hbm-p{position:fixed;display:flex;flex-direction:column;background:var(--d-surf);border:1px solid var(--d-line2);
  box-shadow:0 26px 60px -22px rgba(0,0,0,.7),0 2px 10px rgba(0,0,0,.18);overflow:hidden}
.dapp .hbm.pop .hbm-p{border-radius:18px;max-height:70vh;opacity:0;transform:translateY(-6px) scale(.97);transform-origin:top center;
  transition:opacity .16s,transform .22s var(--d-ease)}
.dapp .hbm.pop.in .hbm-p{opacity:1;transform:none}
.dapp .hbm.sheet .hbm-p{inset-inline:8px;bottom:calc(8px + var(--d-safe-b));max-height:76vh;border-radius:26px;transform:translateY(110%);
  transition:transform .34s var(--d-ease)}
.dapp .hbm.sheet.in .hbm-p{transform:none}
.dapp .hbm.pop.out .hbm-p{opacity:0;transform:translateY(-4px) scale(.98)}
.dapp .hbm.sheet.out{background:rgba(0,0,0,0)}
.dapp .hbm.sheet.out .hbm-p{transform:translateY(110%)}
.dapp .hbm-grip{display:block;flex:none;width:38px;height:5px;border-radius:3px;background:var(--d-line2);margin:8px auto 0}
.dapp .hbm-h{display:flex;align-items:center;gap:4px;flex:none;padding:10px 14px 4px;min-height:40px}
.dapp .hbm-h b{font-size:13.5px;font-weight:600;color:var(--d-sub)}
.dapp .hbm-back{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--d-ink2);margin-inline-start:-6px}
.dapp .hbm-back:hover{background:var(--d-surf2)}
.dapp .hbm-back .ic{width:19px;height:19px}
.dapp .hbm-q{flex:none;margin:4px 10px 6px;min-height:40px;border-radius:12px;border:1px solid var(--d-line);background:var(--d-surf2);
  padding:0 12px;color:var(--d-ink);font-size:14.5px;outline:none}
.dapp .hbm-list{overflow-y:auto;overscroll-behavior:contain;padding:4px 6px 8px}
.dapp .hbm-sec + .hbm-sec{border-top:1px solid var(--d-line);margin-top:4px;padding-top:4px}
.dapp .hbm-st{font-size:11.5px;font-weight:600;color:var(--d-faint);padding:8px 10px 4px}
.dapp .hbm-i{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;padding:7px 10px;border-radius:12px;text-align:start;
  color:var(--d-ink);font-size:14.5px;line-height:1.6;-webkit-tap-highlight-color:transparent}
.dapp .hbm-i:hover,.dapp .hbm-i:focus-visible{background:var(--d-surf2);outline:none}
.dapp .hbm-i:active{background:var(--d-surf3)}
.dapp .hbm-i.on{font-weight:600}
.dapp .hbm-i.danger{color:var(--d-bad)}
.dapp .hbm-i:disabled{opacity:.45}
.dapp .hbm-ic{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--d-surf2);color:var(--d-ink2)}
.dapp .hbm-ic[class*="hc-"]{background:color-mix(in srgb,var(--hc) 18%,transparent);color:var(--hc)}
.dapp .hbm-ic .ic{width:17px;height:17px}
.dapp .hbm-i.danger .hbm-ic{color:var(--d-bad);background:color-mix(in srgb,var(--d-bad) 12%,transparent)}
.dapp .hbm-l{flex:1;min-width:0;display:flex;flex-direction:column}
.dapp .hbm-l small{font-size:12px;color:var(--d-sub);font-weight:400;line-height:1.5}
.dapp .hbm-hint{flex:none;max-width:40%;font-size:12.5px;color:var(--d-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hbm-ck{flex:none;color:var(--d-acc);display:grid}
.dapp .hbm-ck .ic{width:18px;height:18px;stroke-width:2.4}
.dapp .hbm-go{flex:none;display:grid}
.dapp .hbm-go .ic{width:16px;height:16px;color:var(--d-faint)}
.dapp .hbm-empty{margin:0;padding:16px;text-align:center;color:var(--d-faint);font-size:13px}

.dapp .hbp{display:inline-flex;align-items:center;gap:7px;min-height:38px;max-width:100%;padding:0 10px 0 9px;border-radius:12px;
  background:var(--d-surf2);border:1px solid var(--d-line);color:var(--d-sub);font-size:13.5px;font-weight:500;transition:background .15s,border-color .15s}
.dapp .hbp > .ic:first-child{width:17px;height:17px;flex:none}
.dapp .hbp-l{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hbp-c{width:14px !important;height:14px !important;flex:none;opacity:.55}
.dapp .hbp:hover{border-color:var(--d-line2)}
.dapp .hbp.set{color:var(--d-ink);background:var(--d-surf);border-color:var(--d-line2)}
.dapp .hbp.set[class*="hc-"]{background:color-mix(in srgb,var(--hc) 12%,var(--d-surf));border-color:color-mix(in srgb,var(--hc) 38%,transparent)}
.dapp .hbp.set[class*="hc-"] > .ic:first-child{color:var(--hc)}
.dapp .hbp[aria-expanded="true"]{border-color:var(--d-acc)}

.dapp .hbib{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;color:var(--d-ink2);transition:background .15s,color .15s}
.dapp .hbib:hover{background:var(--d-surf2)}
.dapp .hbib .ic{width:21px;height:21px}
.dapp .hbib.on{color:var(--d-acc);background:var(--d-acc-soft)}
.dapp .hbib.off{opacity:.25;pointer-events:none}

.dapp .hbf{position:fixed;inset:0;z-index:110;display:flex;justify-content:center;background:var(--d-bg);
  opacity:0;transform:translateY(22px);transition:opacity .22s,transform .3s var(--d-ease)}
.dapp .hbf.in{opacity:1;transform:none}
.dapp .hbf.out{opacity:0;transform:translateY(22px)}
.dapp .hbf-in{display:flex;flex-direction:column;width:100%;max-width:760px;height:100%;background:var(--d-bg)}
.dapp .hbf-h{flex:none;display:flex;align-items:center;gap:8px;padding:calc(10px + var(--d-safe-t)) 12px 6px}
.dapp .hbf-t{flex:1;text-align:center;font-size:14px;font-weight:600;color:var(--d-sub)}
.dapp .hbf-b{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px 20px 32px}
.dapp .hbf-f{flex:none;border-top:1px solid var(--d-line);background:var(--d-bg);padding:6px 10px calc(6px + var(--d-safe-b))}
@media (min-width:900px){
  .dapp .hbf{background:rgba(0,0,0,.55);padding:3vh 24px}
  :root[data-theme="paper"] .dapp .hbf{background:rgba(40,30,15,.28)}
  .dapp .hbf-in{border-radius:26px;border:1px solid var(--d-line2);overflow:hidden;box-shadow:0 30px 80px -30px rgba(0,0,0,.7)}
  .dapp .hbf-h{padding-top:12px}
}

/* ═══════════════════ دفترچه ═══════════════════
   صفحه‌ی اول فقط نوشته‌هاست؛ همه‌ی ابزار در منوها. */
.dapp .hbj{display:flex;flex-direction:column;gap:12px;padding-bottom:110px;width:100%;max-width:760px;margin-inline:auto}
.dapp .hbj-top{display:flex;align-items:center;gap:6px}
.dapp .hbj-ins{display:inline-flex;align-items:center;gap:12px;min-height:40px;padding:0 14px;border-radius:14px;background:var(--d-surf);
  border:1px solid var(--d-line);font-size:13.5px;color:var(--d-ink2);transition:background .15s}
.dapp .hbj-ins:hover{background:var(--d-surf2)}
.dapp .hbj-fire{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--d-faint);font-variant-numeric:tabular-nums}
.dapp .hbj-fire .ic{width:17px;height:17px}
.dapp .hbj-fire.on{color:var(--d-fire)}
.dapp .hbj-ins-w{color:var(--d-faint)}
.dapp .hbj-acts{display:flex;gap:2px;margin-inline-start:auto}
.dapp .hbj-search{display:flex;align-items:center;gap:8px;padding:0 4px 0 14px;border-radius:14px;background:var(--d-surf);border:1px solid var(--d-line2)}
.dapp .hbj-search[hidden]{display:none}
.dapp .hbj-search > .ic{flex:none;width:18px;height:18px;color:var(--d-faint)}
.dapp .hbj-q{flex:1;min-width:0;min-height:46px;border:0;background:none;color:var(--d-ink);font-size:15px;outline:none}
.dapp .hbj-qx{padding:8px 12px;font-size:13px;font-weight:600;color:var(--d-acc)}
.dapp .hbj-pills{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.dapp .hbj-pill{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border-radius:999px;background:var(--d-acc-soft);
  color:var(--d-ink);font-size:13px;font-weight:500}
.dapp .hbj-pill[class*="hc-"]{background:color-mix(in srgb,var(--hc) 16%,transparent)}
.dapp .hbj-pill > .ic:first-child{width:15px;height:15px;color:var(--hc,var(--d-acc))}
.dapp .hbj-pill > .ic:last-child{width:12px;height:12px;opacity:.6}
.dapp .hbj-count{font-size:12.5px;color:var(--d-faint);margin-inline-start:4px}

.dapp .hbj-otd{display:flex;flex-direction:column;gap:8px}
.dapp .hbj-otd-h{display:flex;align-items:center;gap:6px;padding:0 4px;font-size:12.5px;font-weight:600;color:var(--d-sub)}
.dapp .hbj-otd-h .ic{width:16px;height:16px;color:var(--d-acc)}
.dapp .hbj-otd-l{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}
.dapp .hbj-otd-l::-webkit-scrollbar{display:none}
.dapp .hbj-otd-i{flex:0 0 min(80%,330px);scroll-snap-align:start;display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:18px;text-align:start;
  background:linear-gradient(160deg,color-mix(in srgb,var(--d-acc) 13%,var(--d-surf)),var(--d-surf));border:1px solid color-mix(in srgb,var(--d-acc) 22%,var(--d-line))}
.dapp .hbj-otd-l > .hbj-otd-i:only-child{flex-basis:100%}
.dapp .hbj-otd-i em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--d-acc)}
.dapp .hbj-otd-i b{font-size:14.5px;font-weight:600}
.dapp .hbj-otd-i p{margin:0;font-size:13.5px;line-height:1.85;color:var(--d-ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.dapp .hbj-list{display:flex;flex-direction:column;gap:10px}
.dapp .hbj-mh{margin:12px 4px 0;font-size:21px;font-weight:700;color:var(--d-ink)}
.dapp .hbj-list > .hbj-mh:first-child{margin-top:4px}
.dapp .hbj-e{position:relative;display:flex;flex-direction:column;border-radius:20px;background:var(--d-surf);border:1px solid var(--d-line);
  box-shadow:var(--d-shadow);overflow:hidden;transition:transform .15s var(--d-ease),opacity .25s}
.dapp .hbj-e::before{content:"";position:absolute;inset-block:16px;inset-inline-start:0;width:3px;border-radius:3px;background:var(--hc,transparent);opacity:.85}
.dapp .hbj-e:not([class*="hc-"])::before{display:none}
.dapp .hbj-e.gone{opacity:0;transform:scale(.97)}
.dapp .hbj-e-b{display:flex;flex-direction:column;gap:5px;width:100%;padding:14px 16px 6px;text-align:start;-webkit-tap-highlight-color:transparent}
.dapp .hbj-e-b:active{background:var(--d-surf2)}
.dapp .hbj-e h4{margin:0;font-size:16px;font-weight:650;line-height:1.75;color:var(--d-ink)}
.dapp .hbj-e h4.q{font-size:14.5px;font-weight:600;color:var(--d-ink2)}
.dapp .hbj-e p{margin:0;font-size:14.5px;line-height:1.95;color:var(--d-ink2);white-space:pre-line;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dapp .hbj-e footer{display:flex;align-items:center;gap:9px;padding:0 16px 6px 6px;min-height:36px;font-size:12px;color:var(--d-faint)}
.dapp[dir="ltr"] .hbj-e footer{padding:0 6px 6px 16px}
.dapp .hbj-e time{font-variant-numeric:tabular-nums;white-space:nowrap}
.dapp .hbj-e-m{display:grid}
.dapp .hbj-e-m .hb-face-svg{width:20px;height:20px}
.dapp .hbj-e-a{display:inline-flex;align-items:center;gap:5px;min-width:0;color:var(--d-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hbj-e-a i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--hc,var(--d-acc))}
.dapp .hbj-e-k,.dapp .hbj-e-s{display:grid}
.dapp .hbj-e-k .ic,.dapp .hbj-e-s .ic{width:15px;height:15px}
.dapp .hbj-e-s{color:var(--d-acc)}
.dapp .hbj-e-s .ic{fill:currentColor}
.dapp .hbj-e-x{flex:none;margin-inline-start:auto;width:38px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--d-faint)}
.dapp .hbj-e-x:hover{background:var(--d-surf2);color:var(--d-ink2)}
.dapp .hbj-e-x .ic{width:19px;height:19px}
.dapp .hbj-more{align-self:center;margin:8px 0}
.dapp .hbj-none{padding:28px 10px}
.dapp .hbj-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 16px;text-align:center}
.dapp .hbj-empty > b{font-size:17px}
.dapp .hbj-empty > span{max-width:420px;font-size:14px;line-height:1.9;color:var(--d-sub)}
.dapp .hbj-empty-a{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.dapp .hbj-fab .ic{width:26px;height:26px}
.dapp .hb-jpend{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;font-size:13px;background:color-mix(in srgb,var(--d-fire) 12%,transparent)}
.dapp .hb-jpend .ic{width:17px;height:17px;color:var(--d-fire)}
.dapp .dchip.sm{min-height:30px;padding:0 11px;font-size:12.5px}
.dapp .hb-jdone{display:inline-flex;flex-wrap:nowrap;max-width:none;gap:3px;flex:none}
.dapp .hb-jdone i{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:color-mix(in srgb,var(--hc) 18%,transparent);color:var(--hc)}
.dapp .hb-jdone i .ic{width:13px;height:13px}
.dapp .hb-jdone.big{flex-wrap:wrap;gap:6px}
.dapp .hb-jdone.big i{width:30px;height:30px;border-radius:10px}
.dapp .hb-jdone.big i .ic{width:17px;height:17px}
.dapp .hb-jlink{display:flex;align-items:center;gap:12px;width:100%;text-align:start;padding:14px 16px}
.dapp .hb-jlink > span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dapp .hb-jlink > .ic{width:18px;height:18px;color:var(--d-faint)}
.dapp[dir="ltr"] .hb-jlink > .ic{transform:scaleX(-1)}

/* خواندن */
.dapp .hbr{display:flex;flex-direction:column;gap:14px;width:100%;max-width:640px;margin:0 auto}
.dapp .hbr-date{display:flex;flex-direction:column;gap:2px}
.dapp .hbr-date b{font-size:22px;font-weight:700}
.dapp .hbr-date span{font-size:13px;color:var(--d-faint)}
.dapp .hbr-meta{display:flex;flex-wrap:wrap;gap:6px}
.dapp .hbr-meta:empty{display:none}
.dapp .hbr-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 11px;border-radius:999px;background:var(--d-surf2);font-size:12.5px;color:var(--d-ink2)}
.dapp .hbr-chip .ic{width:15px;height:15px}
.dapp .hbr-chip .hb-face-svg{width:19px;height:19px}
.dapp .hbr-chip.area i{width:7px;height:7px;border-radius:50%;background:var(--hc,var(--d-acc))}
.dapp .hbr-chip.bm{color:var(--d-acc)}
.dapp .hbr-chip.bm .ic{fill:currentColor}
.dapp .hbr-q{margin:0;display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:16px;font-size:15.5px;font-weight:600;line-height:1.9;
  background:color-mix(in srgb,var(--hc,var(--d-violet)) 12%,var(--d-surf))}
.dapp .hbr-q .ic{flex:none;width:18px;height:18px;margin-top:5px;color:var(--hc,var(--d-violet))}
.dapp .hbr-t{margin:4px 0 0;font-size:25px;font-weight:700;line-height:1.6}
.dapp .hbr-b p{margin:0 0 14px;font-size:17px;line-height:2.1;color:var(--d-ink);overflow-wrap:anywhere}
.dapp .hbr-b p:last-child{margin-bottom:0}
.dapp .hbr-part h4{margin:0 0 4px;font-size:13.5px;font-weight:700;color:var(--hc,var(--d-acc))}
.dapp .hbr-w{margin:8px 0 0;font-size:12px;color:var(--d-faint)}

/* نوشتن */
.dapp .hbc-page .hbf-h{gap:10px}
.dapp .hbc-day{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;font-size:14.5px;font-weight:600;color:var(--d-ink)}
.dapp .hbc-day > .ic:first-child{width:17px;height:17px;color:var(--d-acc)}
.dapp .hbc-day .hbp-c{opacity:.5}
.dapp .hbc-done{flex:none;min-height:38px;padding:0 18px;border-radius:12px;background:var(--d-acc);color:var(--d-acc-ink);font-size:14.5px;font-weight:700}
.dapp .hbc-done:disabled{opacity:.6}
.dapp .hbc{display:flex;flex-direction:column;gap:12px;width:100%;max-width:640px;min-height:100%;margin:0 auto}
.dapp .hbc-tpl{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:600;
  color:var(--d-ink);background:color-mix(in srgb,var(--hc,var(--d-acc)) 14%,var(--d-surf2))}
.dapp .hbc-tpl .ic{width:16px;height:16px;color:var(--hc,var(--d-acc))}
.dapp .hbc-tpl i{font-style:normal;font-weight:400;color:var(--d-sub)}
.dapp .hbc-q{display:flex;align-items:flex-start;gap:6px;padding:12px 14px 12px 6px;border-radius:18px;background:color-mix(in srgb,var(--hc,var(--d-violet)) 13%,var(--d-surf))}
.dapp[dir="ltr"] .hbc-q{padding:12px 6px 12px 14px}
.dapp .hbc-q > .ic{flex:none;width:19px;height:19px;margin-top:6px;color:var(--hc,var(--d-violet))}
.dapp .hbc-q p{flex:1;margin:0;font-size:16px;font-weight:600;line-height:1.85}
.dapp .hbc-q .hbib{width:34px;height:34px}
.dapp .hbc-q .hbib .ic{width:17px;height:17px}
.dapp .hbc-title{width:100%;border:0;background:none;padding:4px 0;font-size:22px;font-weight:700;color:var(--d-ink);outline:none}
.dapp .hbc-title::placeholder{color:var(--d-faint);font-weight:600}
.dapp .hbc textarea{display:block;width:100%;min-height:32px;padding:0;border:0;background:none;resize:none;overflow:hidden;outline:none;
  color:var(--d-ink);font-size:17px;line-height:2.05}
.dapp .hbc textarea::placeholder{color:var(--d-faint)}
.dapp .hbc textarea.hbc-body{min-height:34vh}
.dapp .hbc textarea.hbc-body.long{min-height:52vh}
.dapp .hbc-parts{display:flex;flex-direction:column;gap:18px}
.dapp .hbc-part{display:flex;flex-direction:column;gap:2px}
.dapp .hbc-part > span{font-size:13.5px;font-weight:700;color:var(--hc,var(--d-acc))}
.dapp .hbc-part textarea{padding-bottom:6px;border-bottom:1px solid var(--d-line)}
.dapp .hbc-part textarea:focus{border-bottom-color:color-mix(in srgb,var(--hc,var(--d-acc)) 55%,transparent)}
.dapp .hbc-start{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:18px}
.dapp .hbc-start > span{font-size:12.5px;color:var(--d-faint)}
.dapp .hbc-start-l{display:flex;flex-wrap:wrap;gap:8px}
.dapp .hbc-sug{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 13px;border-radius:13px;background:var(--d-surf);border:1px solid var(--d-line);
  font-size:13.5px;color:var(--d-ink2);transition:background .15s}
.dapp .hbc-sug:hover{background:var(--d-surf2)}
.dapp .hbc-sug .ic{width:17px;height:17px;color:var(--d-acc)}
.dapp .hbc-sug.more{color:var(--d-sub)}
.dapp .hbc-draft{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;font-size:13px;background:var(--d-surf2)}
.dapp .hbc-draft .ic{width:16px;height:16px;color:var(--d-acc)}
.dapp .hbc-draft .dlink{margin-inline-start:auto}
.dapp .hbc-tb{display:flex;align-items:center;gap:2px;width:100%;max-width:640px;margin:0 auto}
.dapp .hbc-tool{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:60px;padding:5px 6px;border-radius:12px;font-size:11px;color:var(--d-sub);
  -webkit-tap-highlight-color:transparent;transition:background .15s}
.dapp .hbc-tool:hover{background:var(--d-surf2)}
.dapp .hbc-tool .ic,.dapp .hbc-tool .hb-face-svg{width:23px;height:23px}
.dapp .hbc-tool > span{max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dapp .hbc-tool.sug .ic{color:var(--d-acc)}
.dapp .hbc-tool.set{color:var(--d-ink);font-weight:600}
.dapp .hbc-tool.area.set .ic{color:var(--hc)}
.dapp .hbc-tool.star.set .ic{color:var(--d-acc);fill:currentColor}
.dapp .hbc-tb-s{margin-inline-start:auto;display:flex;flex-direction:column;align-items:flex-end;gap:1px;padding:0 6px;font-size:11.5px;color:var(--d-faint);text-align:end;font-variant-numeric:tabular-nums}
.dapp .hbc-w.full{color:var(--d-ok);font-weight:600}
.dapp .hbc-mood .hb-faces.big{justify-content:space-between}

/* نگاهی به دفترچه */
.dapp .hbi{display:flex;flex-direction:column;gap:16px}
.dapp .hbi-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:520px){.dapp .hbi-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.dapp .hbi-cal{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:20px;background:var(--d-surf2)}
.dapp .hbi-cal-h{display:flex;align-items:center;justify-content:space-between}
.dapp .hbi-cal-h b{font-size:15px}
.dapp .hbi-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.dapp .hbi-wd{text-align:center;font-size:11px;color:var(--d-faint);padding:2px 0}
.dapp .hbi-d{position:relative;aspect-ratio:1;border-radius:12px;display:grid;place-items:center;font-size:13px;color:var(--d-ink2);font-variant-numeric:tabular-nums}
.dapp .hbi-d:hover{background:var(--d-surf3)}
.dapp .hbi-d.has{background:color-mix(in srgb,var(--d-acc) 16%,transparent);color:var(--d-ink);font-weight:600}
.dapp .hbi-d.mood{background:color-mix(in srgb,var(--mc) 24%,transparent)}
.dapp .hbi-d.tdy{box-shadow:inset 0 0 0 1.6px var(--d-acc)}
.dapp .hbi-d.fut{opacity:.3}
.dapp .hbi-d > i{position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:var(--d-acc)}
.dapp .hbi-cal-f{margin:0;text-align:center;font-size:12.5px;color:var(--d-sub)}
.dapp .hbi-otd{display:flex;flex-direction:column;gap:8px}
.dapp .hbi-otd h4{margin:0;font-size:13px;color:var(--d-sub)}
.dapp .hbi-otd .hbj-otd-i{flex:none}

.dapp .hb-trash{gap:8px}
.dapp .hb-trow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--d-surf2)}
.dapp .hb-trow > div{flex:1;min-width:0;display:flex;flex-direction:column}
.dapp .hb-trow .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ═══════════════════ حوزه‌ها ═══════════════════ */
.dapp .hb-dom-lead{margin:-4px 2px 12px;line-height:1.9}
.dapp .hb-doms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:900px){.dapp .hb-doms{grid-template-columns:repeat(4,minmax(0,1fr))}}
.dapp .hb-domc{position:relative;display:flex;align-items:center;gap:12px;padding:12px 12px 16px;border-radius:18px;text-align:start;overflow:hidden;
  background:color-mix(in srgb,var(--hc) 7%,var(--d-surf2));border:1px solid color-mix(in srgb,var(--hc) 18%,transparent);transition:transform .15s var(--d-ease)}
.dapp .hb-domc:active{transform:scale(.98)}
.dapp .hb-domc-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dapp .hb-domc-t b{font-size:16px;font-weight:600}
.dapp .hb-domc-a{font-size:12.5px;line-height:1.7;color:var(--d-sub);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dapp .hb-domc-s{font-size:12px;color:var(--hc);font-weight:500}
.dapp .hb-domc-bar{position:absolute;inset-inline:12px;bottom:7px;height:3px}
.dapp .hb-domc-bar i{background:var(--hc)}
.dapp .hb-domd{display:flex;flex-direction:column;gap:16px}
.dapp .hb-domd-hero{display:flex;align-items:center;gap:14px}
.dapp .hb-domd-hero h3{margin:2px 0 4px;font-size:22px;font-weight:600}
.dapp .hb-domd-a{margin:0;padding:2px 12px;border-inline-start:3px solid var(--hc);font-size:14.5px;line-height:1.9;color:var(--d-ink2)}
.dapp .hb-domd-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dapp .hb-domd-acts .dbtn{flex-direction:column;gap:4px;padding:10px 4px;min-height:64px;font-size:12.5px;justify-content:center}
.dapp .hb-domd .hb-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.dapp .hb-domd .hb-kpi{padding:10px 8px;min-width:0}
.dapp .hb-domd .hb-kpi b{font-size:19px}
.dapp .hb-domd .hb-kpi > span:last-child{font-size:10.5px;line-height:1.4}
.dapp .hb-aed{gap:10px}
.dapp .hb-aed-r{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:16px;background:var(--d-surf2)}
.dapp .hb-aed-r.hl{box-shadow:0 0 0 2px var(--d-acc)}
.dapp .hb-aed-top{display:flex;align-items:center;gap:10px}
.dapp .hb-aed-f{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.dapp .hb-aed-n,.dapp .hb-aed-a{width:100%;background:var(--d-surf);border:1.5px solid transparent;border-radius:11px;padding:8px 10px;color:var(--d-ink);outline:none}
.dapp .hb-aed-n{font-size:15.5px;font-weight:600}
.dapp .hb-aed-a{font-size:13px;color:var(--d-ink2)}
.dapp .hb-aed-n:focus,.dapp .hb-aed-a:focus{border-color:var(--d-acc)}
.dapp .hb-aed-o{display:flex;flex-direction:column;gap:2px}
.dapp .hb-aed-o .dicon{width:32px;height:30px}
.dapp .hb-aed-o .dicon:disabled{opacity:.25}
.dapp .hb-aed-r .hb-picker{background:var(--d-surf)}
.dapp .hb-det-focus{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--d-surf2)}
.dapp .hb-det-focus > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dapp .hb-det-focus b{font-size:14px}

/* حوزه‌ها: کارت دوستونی، فقط اسم */
.dapp .hb-domc{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 12px 18px;min-height:112px}
.dapp .hb-domc .hb-tile{width:38px;height:38px;border-radius:12px}
.dapp .hb-domc-t b{font-size:15.5px}
.dapp .hb-domc-s{font-size:11.5px;line-height:1.6}
.dapp .hb-domc .hb-area-sc{position:absolute;top:10px;inset-inline-end:10px}

/* ═══════════════════ راه‌اندازی باغچه ═══════════════════ */
.dapp .hbo-page .hbf-h{justify-content:space-between}
.dapp .hbo-dots{display:flex;gap:6px}
.dapp .hbo-dots i{width:7px;height:7px;border-radius:4px;background:var(--d-line2);transition:width .3s var(--d-ease),background .3s}
.dapp .hbo-dots i.was{background:color-mix(in srgb,var(--d-acc) 50%,transparent)}
.dapp .hbo-dots i.on{width:22px;background:var(--d-acc)}
.dapp .hbo-skip{min-width:40px;padding:8px 10px;font-size:13.5px;font-weight:600;color:var(--d-sub)}
.dapp .hbo-next{max-width:640px;margin:0 auto;display:flex}
.dapp .hbo{width:100%;max-width:560px;margin:0 auto}
.dapp .hbo-s{display:flex;flex-direction:column;gap:12px;animation:hbo-in .35s var(--d-ease)}
@keyframes hbo-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.dapp .hbo-s h1{margin:4px 0 0;font-size:26px;font-weight:700;text-align:center}
.dapp .hbo-s h2{margin:6px 0 0;font-size:23px;font-weight:700}
.dapp .hbo-s > p{margin:0;font-size:14.5px;line-height:1.95;color:var(--d-sub)}
.dapp .hbo-hello{align-items:center;text-align:center;padding-top:4vh}
.dapp .hbo-hello > p{max-width:420px}
.dapp .hbo-art{display:flex;align-items:flex-end;justify-content:center;gap:4px;margin-bottom:6px}
.dapp .hbo-art .fqp{width:64px;height:72px}
.dapp .hbo-art .fqp:nth-child(2){width:92px;height:104px}
.dapp .hbo-feats{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;width:100%;text-align:start}
.dapp .hbo-feats li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--d-surf);border:1px solid var(--d-line)}
.dapp .hbo-feats li > div{display:flex;flex-direction:column}
.dapp .hbo-feats b{font-size:15px}
.dapp .hbo-feats span:not(.hb-tile){font-size:13px;color:var(--d-sub);line-height:1.7}
.dapp .hbo-alist{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.dapp .hbo-a{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:16px;background:var(--d-surf);border:1px solid var(--d-line);transition:opacity .2s}
.dapp[dir="ltr"] .hbo-a{padding:8px 10px 8px 8px}
.dapp .hbo-a .hb-tile{width:38px;height:38px;border-radius:12px;flex:none}
.dapp .hbo-a-t{flex:1;min-width:0;display:flex;flex-direction:column}
.dapp .hbo-a-t input{width:100%;min-height:36px;border:0;background:none;padding:0;font-size:16px;font-weight:600;color:var(--d-ink);outline:none}
.dapp .hbo-a-t small{font-size:11.5px;color:var(--d-faint)}
.dapp .hbo-a.off{opacity:.55}
.dapp .hbo-a.off .hbo-a-t input{text-decoration:line-through;color:var(--d-sub)}
.dapp .hbo-tg{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;border:1.5px solid var(--d-line2);color:var(--d-faint)}
.dapp .hbo-tg.on{background:var(--hc,var(--d-acc));border-color:transparent;color:#fff}
.dapp .hbo-tg .ic{width:18px;height:18px;stroke-width:2.4}
.dapp .hbo-sug{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.dapp .hbo-sug > span{font-size:12.5px;color:var(--d-faint)}
.dapp .hbo-add{display:flex;gap:8px;margin-top:4px}
.dapp .hbo-add input{flex:1;min-width:0;min-height:44px;border-radius:14px;border:1px solid var(--d-line2);background:var(--d-surf);padding:0 14px;color:var(--d-ink);font-size:15px;outline:none}
.dapp .hbo-add input:focus{border-color:var(--d-acc)}
.dapp .hbo-cards{display:grid;grid-template-columns:1fr;gap:8px;margin-top:4px}
@media (min-width:520px){.dapp .hbo-cards{grid-template-columns:1fr 1fr}}
.dapp .hbo-c{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;text-align:start;background:var(--d-surf);border:1.5px solid var(--d-line);
  transition:border-color .2s,background .2s,transform .15s var(--d-ease)}
.dapp .hbo-c:active{transform:scale(.98)}
.dapp .hbo-c .hb-tile{flex:none}
.dapp .hbo-c-t{flex:1;min-width:0;display:flex;flex-direction:column}
.dapp .hbo-c-t b{font-size:15px;font-weight:600;line-height:1.6}
.dapp .hbo-c-t span{font-size:12px;color:var(--d-sub)}
.dapp .hbo-ck{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--d-line2);color:transparent;transition:all .2s}
.dapp .hbo-ck .ic{width:15px;height:15px;stroke-width:2.6}
.dapp .hbo-c.on{border-color:color-mix(in srgb,var(--hc) 60%,transparent);background:color-mix(in srgb,var(--hc) 9%,var(--d-surf))}
.dapp .hbo-c.on .hbo-ck{background:var(--hc);border-color:transparent;color:#fff}


/* ═══════════════════ دور سوم (نظر مانی، ۱۲ مهر شب) ═══════════════════ */

/* ——— نوشتن: جای خالی زنده (جمله‌های گردان)، راست‌چین. کلاس‌ها ttl/bdy، نه title/body: ‎.body‎ ِ سایت (a/app.css) ۳۰px پایین می‌برد ——— */
.dapp .hbc-title,.dapp .hbc textarea{text-align:start}
.dapp .hbc-fw{position:relative}
.dapp .hbc-ph{position:absolute;inset-inline:0;top:0;pointer-events:none;color:var(--d-faint);white-space:normal;overflow:hidden;
  transition:opacity .3s,filter .3s,transform .3s}
.dapp .hbc-fw.has .hbc-ph{opacity:0;visibility:hidden}
.dapp .hbc-ph.ttl{padding:4px 0;font-size:22px;font-weight:600;line-height:1.5;white-space:nowrap;text-overflow:ellipsis}
.dapp .hbc-ph.ttl.swap{opacity:0;transform:translateY(-6px);filter:blur(3px)}
.dapp .hbc-ph.bdy{font-size:17px;line-height:2.05}
.dapp .hbc-ph.bdy.typing::after{content:'';display:inline-block;width:2px;height:1.15em;margin-inline-start:2px;vertical-align:-.2em;border-radius:1px;
  background:var(--d-acc);animation:hbc-caret 1s steps(1) infinite}
.dapp .hbc-ph.bdy.oops{color:color-mix(in srgb,var(--d-bad) 70%,var(--d-faint))}
.dapp .hbc-ph.bdy.fade{opacity:0;filter:blur(2px)}
@keyframes hbc-caret{50%{opacity:0}}

/* ——— حس‌ها و چهره‌ها ——— */
.dapp .hb-face-svg .b{fill:none;stroke:var(--mc);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dapp .hb-face-svg .z{fill:none;stroke:var(--mc);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.dapp .hb-face-svg .t{fill:#8fc1f0;stroke:none}
.dapp .hb-face-svg .bl{fill:#f08fa0;opacity:.55}
.dapp .hb-face-svg .h{fill:var(--mc);stroke:none}
.dapp .hb-face.on .hb-face-svg .b,.dapp .hb-face.on .hb-face-svg .z{stroke:#1b1b1d}
.dapp .hb-face.on .hb-face-svg .h{fill:#1b1b1d}
.dapp .hb-faces.hb-feels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.dapp .hb-faces.hb-feels .hb-face{min-width:0;padding:6px 2px}
.dapp .hb-faces.hb-feels .hb-face-svg{width:36px;height:36px}
.dapp .hb-faces.hb-feels .hb-face span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dapp .hb-faces.hb-scale{justify-content:space-between}
.dapp .hb-feel-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.dapp .hb-feel-n{font-size:11.5px;color:var(--d-faint);font-weight:400}
.dapp .hbc-mood{gap:18px}
.dapp .hbj-e-m{display:inline-flex}
.dapp .hbj-e-m .hb-face-svg + .hb-face-svg{margin-inline-start:-6px}
.dapp .hbr-chip.en .ic{color:var(--ec,#f2b632)}

/* ——— انرژی: برچسب این سو، صاعقه‌ها آن سو؛ رنگ با شمار ——— */
.dapp .hb-enrow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dapp .hb-en-l{display:flex;flex-direction:column;gap:1px;min-width:0}
.dapp .hb-en-l > span:first-child{font-size:13px;font-weight:600;color:var(--d-sub)}
.dapp .hb-en-n{font-size:12px;color:var(--ec,var(--d-faint));font-weight:600;min-height:1.4em}
.dapp .hb-enrow .hb-energy{gap:4px;flex:none}
.dapp .hb-enrow .hb-energy button{width:38px;height:40px;border-radius:12px}
.dapp .hb-energy button.on{background:color-mix(in srgb,var(--ec,#ffd166) 20%,var(--d-surf2));color:var(--ec,#f2b632)}
.dapp .hb-energy button.on .ic{fill:color-mix(in srgb,var(--ec,#ffd166) 45%,transparent);animation:hb-bolt .4s var(--d-spring) both;animation-delay:calc(var(--k,1) * 40ms)}
@keyframes hb-bolt{from{transform:scale(.6)}}

/* ——— دفترچه: کارت تازه می‌نشیند، کارت ویرایش‌شده یک لحظه می‌درخشد ——— */
.dapp .hbj-e.new{animation:hbj-drop .7s var(--d-spring) both}
.dapp .hbj-e.upd{animation:hbj-glow 1.1s ease}
@keyframes hbj-drop{from{opacity:0;transform:translateY(-18px) scale(.96)}}
@keyframes hbj-glow{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--d-acc) 55%,transparent)}100%{box-shadow:0 0 0 14px transparent}}
.dapp .hbj-mh[hidden]{display:none}

/* ——— نوار ابزار نوشتن وقتی صفحه‌کلید باز است ——— */
.dapp .hbf.kb .hbf-f{padding-bottom:6px}
.dapp .hbf.kbtop .hbf-h{order:0}
.dapp .hbf.kbtop .hbf-f{order:1;border-top:0;border-bottom:1px solid var(--d-line);padding-bottom:6px}
.dapp .hbf.kbtop .hbf-b{order:2}

/* ——— انتخاب ساعت (دو چرخ) ——— */
.dapp .hb-time{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border-radius:12px;background:var(--d-surf2);
  color:var(--d-ink);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;flex:none}
.dapp .hb-time .ic{width:16px;height:16px;color:var(--d-acc)}
.dapp .hb-time:disabled{opacity:.45}
.dapp .hb-wheel{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;height:200px;margin:4px 0 10px;user-select:none}
.dapp .hb-wh-band{position:absolute;inset-inline:16px;top:80px;height:40px;border-radius:12px;background:var(--d-surf2);pointer-events:none}
.dapp .hb-wheel > b{position:relative;font-size:24px;color:var(--d-sub)}
.dapp .hb-wh-c{position:relative;height:200px;width:84px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;
  -webkit-mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent);mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent)}
.dapp .hb-wh-c::-webkit-scrollbar{display:none}
.dapp .hb-wh-c > *{display:block;height:40px;line-height:40px;text-align:center;scroll-snap-align:center}
.dapp .hb-wh-c span{font-size:22px;color:var(--d-faint);font-variant-numeric:tabular-nums;transition:color .15s,transform .15s;cursor:pointer}
.dapp .hb-wh-c span.on{color:var(--d-ink);font-weight:700;transform:scale(1.08)}
.dapp .hbm-foot{padding:4px 4px 2px}

/* ——— اهداف: پیشنهادها در دو ستون ——— */
.dapp .hb-gsug-w{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:6px;transition:opacity .25s,transform .25s}
.dapp .hb-gsug-w.top{padding-bottom:14px;border-bottom:1px solid var(--d-line)}
.dapp .hb-gsug-w.gone{opacity:0;transform:translateY(-8px)}
.dapp .hb-gsug-h{font-size:12.5px;color:var(--d-sub);text-align:start}
.dapp .hb-gsug{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dapp .hb-gsug-i{display:flex;align-items:center;gap:10px;min-height:58px;padding:9px 10px;border-radius:16px;text-align:start;
  background:var(--d-surf2);border:1px solid var(--d-line);transition:transform .15s,background .15s}
.dapp .hb-gsug-i:active{transform:scale(.97)}
.dapp .hb-gsug-i:hover{background:color-mix(in srgb,var(--hc) 10%,var(--d-surf2))}
.dapp .hb-gsug-i .hb-tile{width:36px;height:36px;border-radius:11px;flex:none}
.dapp .hb-gsug-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.dapp .hb-gsug-t b{font-size:13px;line-height:1.55;font-weight:600}
.dapp .hb-gsug-t small{font-size:11px;color:var(--d-faint)}
.dapp .hb-empty .hb-gsug-w{margin-top:14px}

/* ——— روند ——— */
.dapp .hb-stats.busy{opacity:.55;transition:opacity .2s;pointer-events:none}
.dapp .hb-tr-empty{padding:26px 16px}

/* ——— تمرکز: انتخاب حالت در سر؛ «آرام» و «تنظیمات» دو گوشه‌ی بالای ساعت ——— */
.dapp .fq-top{justify-content:center}
.dapp .fq-top .dsegm{margin-inline:0;max-width:100%}
.dapp .fq-top .dsegm button{white-space:nowrap}
.dapp .fq-dialw{position:relative;align-self:stretch;display:flex;justify-content:center}
.dapp .fq-corner{position:absolute;top:0;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--d-surf2);color:var(--d-sub);transition:transform .15s,color .15s}
.dapp .fq-corner:hover{color:var(--d-ink)}
.dapp .fq-corner:active{transform:scale(.9)}
.dapp .fq-corner .ic{width:19px;height:19px}
.dapp .fq-corner.s{inset-inline-start:0}
.dapp .fq-corner.e{inset-inline-end:0}
.dapp .fq-tomato{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:370px){.dapp .fq-top .dsegm button{padding-inline:8px;font-size:12.5px}.dapp .fq-top .dsegm .ic{display:none}}

/* ═══════════════════ دور چهارم: فرم ردیفی، دکمه‌های سر کارت، کد شش‌رقمی ═══════════════════
   ردیف: برچسب این‌طرف (راست)، کنترل روبه‌رو (چپ). دکمه‌های کارت آن‌طرفِ عنوان می‌نشینند، نه زیر متن. */
.dapp .dfg{display:flex;flex-direction:column;gap:7px}
.dapp .dfg-h{display:flex;align-items:baseline;gap:8px;padding-inline:6px;font-size:12.5px;color:var(--d-sub)}
.dapp .dfg-h b{font-weight:600;color:var(--d-ink2)}
.dapp .dfg-h span{font-size:11.5px;color:var(--d-faint)}
.dapp .dfg-b{display:flex;flex-direction:column;background:var(--d-surf2);border-radius:18px;padding:2px 0}
.dapp .dfrow{position:relative;display:flex;align-items:center;gap:11px;min-height:54px;padding:7px 14px}
.dapp .dfg-b > .dfrow + .dfrow::before,.dapp .dfg-b > .dfrow + .dfx::before,.dapp .dfg-b > .dfx + .dfrow::before{content:"";position:absolute;top:0;inset-inline:14px;height:1px;background:var(--d-line)}
.dapp .dfg-b > .dfrow:has(.dfrow-ic) + .dfrow::before{inset-inline-start:57px}
.dapp .dfrow-ic{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--hc,var(--d-acc)) 17%,transparent);color:var(--hc,var(--d-acc))}
.dapp .dfrow-ic .ic,.dapp .dfrow-ic svg{width:18px;height:18px}
.dapp .dfrow-l{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;font-size:14.5px;font-weight:500;line-height:1.55;color:var(--d-ink)}
.dapp .dfrow-l small{font-size:11.5px;font-weight:400;color:var(--d-faint);line-height:1.5}
.dapp .dfrow-c{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:62%}
.dapp .dfrow.wide .dfrow-l{flex:0 0 auto;max-width:42%}
.dapp .dfrow.wide .dfrow-c{flex:1 1 auto;max-width:none}
.dapp .dfrow-c input[type="text"],.dapp .dfrow-c input:not([type]),.dapp .dfrow-c input[inputmode]{width:100%;min-width:0;min-height:40px;padding:6px 12px;border-radius:12px;
  border:1.5px solid transparent;background:var(--d-surf);color:var(--d-ink);font-size:16px;outline:none;transition:border-color .15s}
.dapp .dfrow-c input:focus{border-color:color-mix(in srgb,var(--hc,var(--d-acc)) 60%,transparent)}
.dapp .dfrow-c input::placeholder{color:var(--d-faint)}
.dapp .dfrow-c .hbp{min-height:36px;border:0;background:var(--d-surf);max-width:100%}
.dapp .dfrow-c .hbp.set{background:var(--d-surf)}
.dapp .dfrow-c .hbp.set[class*="hc-"]{background:color-mix(in srgb,var(--hc) 14%,var(--d-surf))}
.dapp .dfrow-c .dsegm{margin:0}
.dapp .dfrow-c .dswitch{margin:0}
.dapp .dfx{position:relative;padding:4px 14px 12px}          /* بخش زیر یک ردیف (روزهای هفته، توضیح) */
.dapp .dfx.note{padding-top:0;font-size:12px;line-height:1.8;color:var(--d-faint)}
.dapp .dfx.note::before{display:none}

/* شمارنده‌ی کوچک − ۳ + در ردیف */
.dapp .dstep{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:12px;background:var(--d-surf)}
.dapp .dstep button{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--d-ink2);font-size:18px;line-height:1}
.dapp .dstep button:active{background:var(--d-surf3)}
.dapp .dstep b{min-width:30px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}

/* دکمه‌ی آیکن گرد سر کارت */
.dapp .dhb{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;padding:0;line-height:0;
  background:var(--d-surf2);color:var(--d-ink2);transition:transform .15s,background .15s}
.dapp .dhb .ic,.dapp .dhb svg{width:19px;height:19px;display:block}
.dapp .dhb:active{transform:scale(.9)}
.dapp .dhb.pri{background:var(--d-acc);color:var(--d-acc-ink,#1b1408)}
.dapp .dcard-acts{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex:none}
.dapp .dcard-h .dcard-acts{margin-block:-6px}
.dapp .dacts-end{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}

/* تمرکز امروز */
.dapp .fqt .dcard-h h2{flex:0 1 auto}
.dapp .fqt-sub{font-size:12.5px;font-weight:600;color:var(--d-ok);font-variant-numeric:tabular-nums;white-space:nowrap}
/* هدف امروز: سر با عنوان و دکمه‌ها، زیرش حلقه و شرح */
.dapp .fqg2{display:flex;flex-direction:column;gap:12px}
.dapp .fqg2 .dcard-h{margin:0}
.dapp .fqg2-b{display:flex;align-items:center;gap:16px}
.dapp .fqg2-b .dgoal-ring{flex:none}
.dapp .fqg2-t{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
/* گروهی (کارت) */
.dapp .fq-grp .dcard-h{margin:0}
.dapp .fq-grp-b{align-items:center}

/* سر اتاق: دکمه‌ها آیکنی، آن‌طرف */
.dapp .fqr-head{flex-wrap:nowrap}
.dapp .fqr-head-t{flex:1 1 auto}
.dapp .fqr-head-a{flex:none}

/* تشویق‌ها: شش دایره‌ی هم‌اندازه، شکلک درست وسط */
.dapp .fqr-reacts{display:grid;grid-template-columns:repeat(6,minmax(0,46px));justify-content:center;gap:8px;flex-wrap:nowrap}
.dapp .fqr-react{width:auto;aspect-ratio:1;height:auto;display:grid;place-items:center;padding:0;font-size:21px;line-height:1;text-align:center;overflow:hidden}
.dapp .fqr-react > span{display:block;line-height:1;transform:translateY(1px)}
@media (max-width:360px){.dapp .fqr-reacts{gap:5px}.dapp .fqr-react{font-size:18px}}

/* دعوت: کد بزرگ شش‌رقمی */
.dapp .fqr-big{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 12px 14px;border-radius:20px;background:var(--d-surf2)}
.dapp .fqr-big > span{font-size:12.5px;color:var(--d-sub)}
.dapp .fqr-cells{display:flex;direction:ltr;align-items:center;gap:6px}
.dapp .fqr-cells i{width:40px;height:50px;border-radius:12px;display:grid;place-items:center;font-style:normal;font-size:26px;font-weight:700;
  background:var(--d-surf);color:var(--d-ink);font-variant-numeric:tabular-nums}
.dapp .fqr-cells i.sp{width:8px;background:none}
.dapp .fqr-big .dbtn{margin-top:2px}
.dapp .fqr-link{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 12px;border-radius:14px;background:var(--d-surf2);min-width:0}
.dapp .fqr-link{padding:6px 14px 6px 6px}
.dapp .fqr-link > .ic{width:19px;height:19px;color:var(--d-acc);flex:none}
.dapp .fqr-link span{flex:1;min-width:0;font-size:14px;color:var(--d-ink2)}
.dapp .fqr-link .dhb{background:var(--d-surf)}

/* واردکردن کد: شش خانه، صفحه‌کلید عددی */
.dapp .fqr-otp{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;padding:6px 0 4px}
.dapp .fqr-otp-cells{position:relative;display:flex;direction:ltr;gap:7px}
.dapp .fqr-otp-cells i{width:44px;height:56px;border-radius:14px;display:grid;place-items:center;font-style:normal;font-size:27px;font-weight:700;
  background:var(--d-surf2);border:1.5px solid transparent;color:var(--d-ink);transition:border-color .15s,transform .15s,background .15s}
.dapp .fqr-otp-cells i.cur{border-color:var(--d-acc)}
.dapp .fqr-otp-cells i.cur::after{content:"";width:2px;height:26px;border-radius:1px;background:var(--d-acc);animation:hbc-caret 1s steps(1) infinite}
.dapp .fqr-otp-cells i.fill{animation:fq-pop .25s var(--d-spring)}
.dapp .fqr-otp-cells i.sp{width:6px;background:none;border:0}
.dapp .fqr-otp.bad .fqr-otp-cells{animation:fqr-shake .4s}
.dapp .fqr-otp.bad .fqr-otp-cells i{border-color:color-mix(in srgb,var(--d-bad) 70%,transparent)}
.dapp .fqr-otp.ok .fqr-otp-cells i{border-color:color-mix(in srgb,var(--d-ok) 70%,transparent);background:color-mix(in srgb,var(--d-ok) 12%,var(--d-surf2))}
.dapp .fqr-otp input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0;background:none;color:transparent;caret-color:transparent}
.dapp .fqr-otp-msg{min-height:1.6em;margin:0;font-size:12.5px;color:var(--d-sub);text-align:center}
.dapp .fqr-otp.bad .fqr-otp-msg{color:var(--d-bad)}
.dapp .fqr-paste{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--d-acc)}
.dapp .fqr-paste .ic{width:16px;height:16px}
@keyframes fqr-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
@media (max-width:360px){.dapp .fqr-otp-cells i{width:38px;height:50px;font-size:23px}.dapp .fqr-cells i{width:34px;height:44px;font-size:22px}}

/* ساخت اتاق / پیوستن */
.dapp .fqr-create{gap:16px}
.dapp .fqr-create > p{margin:0;line-height:1.85}
.dapp .fqr-me{gap:16px}
.dapp .fqr-join .fqr-me{text-align:start;width:100%}

/* ویرایش عادت */
.dapp .hb-ed{gap:16px}
.dapp .hb-ed .hb-kind{margin:0}
.dapp .hb-ed .dfx .hb-days{margin:0}
.dapp .hb-ed .hb-rem2{display:flex;align-items:center;gap:8px;min-height:54px;padding:7px 10px 7px 14px}
.dapp .hb-ed .hb-rem2 input{flex:1;min-width:0;min-height:38px;padding:6px 11px;border-radius:11px;border:0;background:var(--d-surf);color:var(--d-ink);font-size:14px;outline:none}
.dapp .hb-ed .hb-rem2 .hb-time{flex:none}
.dapp .hb-ed .hb-rem2 .dicon{flex:none;width:34px;height:34px}
.dapp .hb-ed .dfg-add{display:flex;align-items:center;gap:8px;min-height:50px;padding:6px 14px;color:var(--d-acc);font-size:14px;font-weight:600;width:100%}
.dapp .hb-ed .dfg-add .ic{width:18px;height:18px}
.dapp .hb-ed .dfg-b > .dfg-add{position:relative}
.dapp .hb-ed .dfg-b > * + .dfg-add::before,.dapp .hb-ed .dfg-b > .hb-rem2 + .hb-rem2::before{content:"";position:absolute;top:0;inset-inline:14px;height:1px;background:var(--d-line)}
.dapp .hb-ed .dfg-b > .hb-rem2{position:relative}
.dapp .hb-ed textarea.dfx-ta{display:block;width:100%;min-height:64px;padding:10px 12px;border-radius:12px;border:0;background:var(--d-surf);color:var(--d-ink);font-size:14.5px;line-height:1.8;resize:none;outline:none}
.dapp .hb-ed .hb-adv{display:flex;flex-direction:column;gap:16px;margin-top:8px}
.dapp .hb-ed .hb-hint2{padding:0 6px;margin:-6px 0 0;font-size:12px;line-height:1.8;color:var(--d-faint)}

/* جزئیات عادت: چهار آمار در دو ستون */
.dapp .hb-det-stats4{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
@media (min-width:560px){.dapp .hb-det-stats4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}
.dapp .fqt-ht{flex:1;min-width:0;display:flex;flex-direction:column;gap:0}
.dapp .fqt-ht h2{flex:none}
.dapp .fqg .fqg-acts{flex-direction:column;margin:0;align-self:center}
.dapp .dgoal-t{flex:1}
.dapp .dgoal .dgoal-t > .dbtn:last-child{align-self:flex-end}
.dapp .dfrow.sub{padding-inline-start:57px}
.dapp .dfrow-c input.dnum{width:92px;text-align:center;font-variant-numeric:tabular-nums}
.dapp .dfrow-c input.ddate{width:132px;text-align:center;font-variant-numeric:tabular-nums}
.dapp .dfrow-v{font-size:14px;color:var(--d-sub);padding-inline:6px}
.dapp .dfrow-c .hbp > .ic:first-child:not(.hbp-c){display:none}
.dapp .dfrow-c .dsegm{background:var(--d-surf)}
.dapp .dfrow-c .dsegm button{min-height:32px;padding:0 11px}
.dapp .dfrow-c .dsegm button.on{background:var(--d-surf3,var(--d-surf2))}
.dapp .dfg .hb-day{background:var(--d-surf);height:40px;border-radius:50%;aspect-ratio:1;width:100%;max-width:42px;justify-self:center;padding:0;display:grid;place-items:center}
.dapp .dfg .hb-day.on{background:var(--hc);color:var(--hc-ink)}
.dapp .dfg .hb-days{gap:4px}
.dapp .dfg .hb-time{background:var(--d-surf)}
.dapp .hb-unit{display:flex;align-items:center;gap:2px;flex:1;min-width:0}
.dapp .hb-unit input{flex:1}
.dapp .hb-unit .hbib{width:34px;height:34px}
.dapp .hb-ed .hb-more{border:0;padding:0;border-radius:0}
.dapp .hb-ed .hb-more > summary{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 16px;border-radius:18px;background:var(--d-surf2);color:var(--d-ink2);font-size:14px;font-weight:600}
.dapp .hb-ed .hb-more > summary i{font-style:normal;font-weight:400;font-size:12px;color:var(--d-faint);min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dapp .hb-ed .hb-more[open]{padding-bottom:0}
.dapp .hb-ed .dfx textarea.dfx-ta{background:var(--d-surf)}
.dapp .hb-ed .hb-rem2 .dfrow-ic{background:color-mix(in srgb,var(--hc,var(--d-acc)) 17%,transparent);color:var(--hc,var(--d-acc))}
.dapp .hb-ed .hb-rem2 .dfrow-ic .ic{width:17px;height:17px}
.dapp .hb-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.dapp .hb-kpis > .hb-kpi:last-child:nth-child(odd){grid-column:1 / -1}
@media (min-width:560px){.dapp .hb-kpis{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.dapp .hb-kpis > .hb-kpi:last-child:nth-child(odd){grid-column:auto}}
/* کارت‌های یادآوری: دکمه آن‌طرف متن، نه زیرش */
.dapp .hb-nudge{flex-wrap:nowrap}
.dapp .hb-nudge > .dnudge-t{flex:1 1 auto;min-width:0}
.dapp .hb-nudge > .dbtn{flex:none}
.dapp .hb-nudge > .hb-chips{flex:none;flex-direction:column;align-items:center;gap:2px;flex-wrap:nowrap}
.dapp .hb-det-acts{justify-content:flex-end}
/* حال امروز: چهره‌ها در یک ردیف کامل و هم‌فاصله، پیوند آن‌طرف */
.dapp .hb-mood .hb-faces{flex:1 1 100%;justify-content:space-around}
.dapp .hb-mood .hb-face{display:grid;place-items:center;padding:0}
.dapp .hb-face-svg{display:block}
/* تنظیمات: دکمه‌های زیر یک توضیح، آن‌طرف (نه زیر متن) */
.dapp .hb-brks > .dbtn{align-self:flex-end}
.dapp .hb-brks > .hb-brk{align-self:stretch}
.dapp .hb-cal > .hb-chips,.dapp .hb-set .dgroup-b > .hb-chips{justify-content:flex-end}
.dapp .hb-set .dgroup-b > .hb-chips{padding:4px 8px 8px}
