/* The modern presentation is opt-in; the legacy stylesheet remains available. */
.hoard-modern { --dh-panel:#2b2723; --dh-line:#ffffff0e; --dh-muted:#b4aa9d; --color-text-muted:#b4aa9d; background-color:#1a1816; line-height:1.5; }
.hoard-modern *, .hoard-modern *::before, .hoard-modern *::after { box-sizing:border-box; }
.hoard-modern.hoard-dashboard { padding:0; }
.hoard-modern #dragon-button { position:static; inset:auto; z-index:auto; }
.hoard-modern .profile-switcher .profile-button > span { display:inline; }
.hoard-modern .dh-nav .tab-button.active::after { display:none; }
.hoard-modern .dh-balance { background-image:none; -webkit-text-fill-color:var(--color-gold); }
.hoard-modern .positive { color:#8dc9a1; }
.hoard-modern .negative { color:#e6a292; }
.hoard-modern .dh-balance.dh-balance-long { font-size:clamp(24px,7vw,36px); }
.hoard-modern .dh-preview-message { margin-block:12px; padding:16px; background:#211e1b; border-radius:10px; }
.hoard-modern .dh-preview-message pre { white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.6 var(--font-body); }
.hoard-modern #transactions table :is(th,td):last-child { display:table-cell; }
.hoard-modern [hidden] { display:none !important; }
.hoard-modern button, .hoard-modern input, .hoard-modern select, .hoard-modern textarea { font:inherit; }
.hoard-modern button { cursor:pointer; }
.hoard-modern :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--color-gold); outline-offset:4px; }
.hoard-modern a { color:var(--color-gold); }
.hoard-modern a.nav-button { color:#21190b; display:inline-flex; align-items:center; justify-content:center; min-height:44px; }
/* Slimmer visible buttons retain a full-height touch target. */
.hoard-modern .landing-nav-links { gap:8px; }
.hoard-modern .landing-nav-links .nav-button { position:relative; isolation:isolate; height:44px; min-width:44px; padding:0 16px; margin:0; background:transparent; font:700 14px/1 var(--font-body); }
.hoard-modern .landing-nav-links .nav-button::before { content:""; position:absolute; inset:3px 0; z-index:-1; border-radius:5px; background:var(--color-gold); }
.hoard-modern .landing-nav-links .nav-button-icon-only { padding:0; }
@media (max-width:880px) {
 .hoard-modern.landing-page { padding:0; }
 .hoard-modern .landing-container { padding:20px 30px 30px; }
 .hoard-modern .landing-nav { flex-direction:row; gap:8px; padding:calc(8px + env(safe-area-inset-top,0px) + var(--app-top-padding,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px)); border-bottom-color:var(--dh-line); }
 .hoard-modern .landing-nav .logo { min-width:0; gap:6px; font-size:18px; line-height:1.2; }
 .hoard-modern .landing-nav .logo-icon { flex:0 0 24px; width:24px; height:24px; }
 .hoard-modern .landing-nav-links { flex-shrink:0; gap:2px; }
 .hoard-modern .landing-nav-links .nav-button { padding-inline:10px; font-size:13px; }
 .hoard-modern .landing-nav-links :is([href="login.php"],.nav-button-icon-only) { color:var(--color-text); }
 .hoard-modern .landing-nav-links :is([href="login.php"],.nav-button-icon-only)::before { background:transparent; }
 .hoard-modern .landing-nav-links .nav-button-icon-only { padding:0; color:var(--dh-muted); }
 .hoard-modern .landing-nav-links .nav-button-icon-only svg { width:20px; height:20px; fill:currentColor; }
}

/* Public information and help use the same quiet panels as the hoard. */
.hoard-modern .dh-information { border:0; padding-block:36px; }
.hoard-modern .dh-money-explainer { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.7fr); gap:28px; padding:28px; border-radius:14px; background:var(--dh-panel); }
.hoard-modern .dh-info-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:#f7b73312; color:var(--color-gold); }
.hoard-modern .dh-info-icon svg { width:22px; height:22px; }
.hoard-modern .dh-information h2 { margin:12px 0 16px; font:28px/1.2 var(--font-heading); }
.hoard-modern .dh-information p { margin:0 0 16px; color:var(--dh-muted); font-size:15px; line-height:1.7; }
.hoard-modern .dh-information-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; margin-top:18px; }
.hoard-modern .dh-information-card { padding:26px; border-radius:14px; background:var(--dh-panel); scroll-margin-top:180px; }
.hoard-modern .dh-info-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.hoard-modern .dh-info-actions .nav-button { margin:0; padding:10px 14px; min-height:44px; border-radius:8px; font:700 14px/1.4 var(--font-body); text-align:center; }
.hoard-modern .dh-info-actions .dh-quiet-link { background:#ffffff08; color:var(--color-text); }
.hoard-modern .dh-info-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:14px; text-underline-offset:3px; }
.hoard-modern .dh-info-link svg { width:14px; height:14px; }
.hoard-modern .dh-account-help { border-top:1px solid var(--dh-line); margin-top:24px; padding-top:20px; }
.hoard-modern .dh-account-help h3 { margin:0 0 10px; font:700 16px/1.5 var(--font-body); }
.hoard-modern .dh-account-help p { margin-bottom:0; }
.hoard-modern.hoard-help { padding:0; }
.hoard-modern .dh-help-header { max-width:1280px; margin:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:24px 28px; border-bottom:1px solid var(--dh-line); }
.hoard-modern .dh-help-brand { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--color-text); text-decoration:none; font:25px/1.2 var(--font-heading); }
.hoard-modern .dh-help-brand img { width:28px; height:28px; }
.hoard-modern .dh-help-brand span { padding-left:12px; border-left:1px solid #ffffff20; color:var(--dh-muted); font:14px/1.4 var(--font-body); }
.hoard-modern .dh-help-layout { display:grid; grid-template-columns:230px minmax(0,1fr); max-width:1280px; margin:auto; }
.hoard-modern .dh-help-navigation { min-width:0; padding:24px 12px 24px 20px; }
.hoard-modern .dh-help-topics { position:sticky; top:20px; display:flex; flex-direction:column; max-height:calc(100dvh - 40px); overflow:auto; padding-right:8px; }
.hoard-modern .dh-help-topics h2 { margin:8px 12px 12px; color:var(--dh-muted); font:700 12px/1.5 var(--font-body); }
.hoard-modern .dh-help-topics a { display:flex; align-items:center; min-height:44px; padding:10px 12px; color:var(--dh-muted); font-size:14px; line-height:1.4; text-decoration:none; border-radius:8px; }
.hoard-modern .dh-help-topics a:hover { background:#ffffff07; color:var(--color-text); }
.hoard-modern .dh-help-topics [aria-current=page] { background:#f7b73314; color:var(--color-gold); }
.hoard-modern .dh-help-content { min-width:0; max-width:900px; padding:32px 40px 48px; font-size:16px; line-height:1.7; overflow-wrap:anywhere; }
.hoard-modern .dh-help-content h1 { margin:0 0 22px; font:36px/1.2 var(--font-heading); }
.hoard-modern .dh-help-content h2 { margin:36px 0 12px; font:27px/1.25 var(--font-heading); }
.hoard-modern .dh-help-content h3 { margin:26px 0 8px; font-size:18px; }
.hoard-modern .dh-help-content p { margin:0 0 18px; }
.hoard-modern .dh-help-content li { margin-bottom:8px; }
.hoard-modern .dh-help-content :is(ul,ol) { padding-left:24px; }
.hoard-modern .dh-help-content a { text-underline-offset:3px; }
.hoard-modern .dh-help-content blockquote { margin:20px 0; padding:16px 20px; background:var(--dh-panel); border-left:3px solid var(--color-gold); border-radius:0 10px 10px 0; }
.hoard-modern .dh-help-content blockquote p:last-child { margin:0; }
.hoard-modern .dh-help-content hr { border:0; border-top:1px solid var(--dh-line); margin:28px 0; }
.hoard-modern .dh-help-screenshot { display:block; width:fit-content; max-width:100%; margin:22px 0 28px; border-radius:12px; }
.hoard-modern .dh-help-screenshot img { display:block; max-width:100%; height:auto; border-radius:12px; border:1px solid #ffffff12; }
.hoard-modern .dh-help-footer { margin-top:40px; padding-top:20px; border-top:1px solid var(--dh-line); font-size:14px; }
.hoard-modern .dh-help-toggle { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:44px; padding:12px 16px; background:var(--dh-panel); border:0; border-radius:9px; color:var(--color-text); }
.hoard-modern .dh-help-toggle svg { width:16px; height:16px; transform:rotate(90deg); }
.hoard-modern .dh-help-toggle[aria-expanded=true] svg { transform:rotate(-90deg); }
@media (max-width:760px) {
 .hoard-modern .dh-money-explainer,.hoard-modern .dh-information-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
 .hoard-modern .dh-money-explainer,.hoard-modern .dh-information-card { padding:22px; }
 .hoard-modern .dh-money-explainer h2 { margin-bottom:0; }
 .hoard-modern .dh-help-header { padding:18px 16px; gap:14px; }
 .hoard-modern .dh-help-brand { font-size:22px; }
 .hoard-modern .dh-help-brand span { font-size:12px; padding-left:8px; }
 .hoard-modern .dh-help-layout { display:block; }
 .hoard-modern .dh-help-navigation { padding:16px 16px 0; }
 .hoard-modern .dh-help-topics { position:static; max-height:none; padding:10px 0; }
 .hoard-modern .dh-help-content { padding:26px 18px 40px; }
 .hoard-modern .dh-help-content h1 { font-size:30px; }
 .hoard-modern .dh-help-content h2 { font-size:25px; }
}

.hoard-modern .carousel-dot { width:32px; height:44px; padding:0; background:none; border:0; border-radius:0; position:relative; }
.hoard-modern .carousel-dot::after { content:""; display:block; width:9px; height:9px; border-radius:50%; background:#ffffff80; margin:auto; }
.hoard-modern .carousel-dot.active::after { background:var(--color-gold); }
.hoard-modern .carousel-dots { gap:0; bottom:3px; padding-inline:5px; border-radius:24px; background:#0008; }
.hoard-modern .carousel-btn { font-size:26px; width:44px; padding:0; }
.hoard-modern :is(input,select,textarea) { min-width:0; max-width:100%; }
.hoard-modern :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) { font-size:16px; }
.hoard-modern button:not(.favorite-btn):not(.close-button):not(.delete-btn) { min-height:44px; }
.hoard-modern :is(h1,h2,h3) { overflow-wrap:anywhere; }
.hoard-modern .dh-frame { --dh-sidebar-width:174px; display:grid; grid-template-columns:var(--dh-sidebar-width) minmax(0,1fr); max-width:1440px; min-height:100vh; min-height:100dvh; margin:auto; background:#1a1816b3; position:relative; }
.hoard-modern .dh-sidebar { display:flex; flex-direction:column; gap:28px; padding:28px 12px; background:#211e1bf5; border-right:1px solid var(--dh-line); position:sticky; top:0; height:100vh; height:100dvh; overflow:auto; }
.hoard-modern .dh-brand { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:8px; padding:0 4px; color:var(--color-text); font:25px/1.12 var(--font-heading); text-decoration:none; }
.hoard-modern .dh-brand img { width:28px; height:28px; }
.hoard-modern .dh-brand span { min-width:0; }
.hoard-modern .dh-nav { display:grid; gap:5px; }
.hoard-modern .dh-nav :is(button,a) { display:flex; align-items:center; gap:11px; padding:11px 12px; min-height:44px; border:0; border-radius:8px; text-align:left; font:14px/1.4 var(--font-body); color:var(--dh-muted); background:transparent; text-decoration:none; }
.hoard-modern .dh-nav :is(button,a):hover { background:#ffffff07; color:var(--color-text); }
.hoard-modern .dh-nav [aria-current=page] { background:#f7b73314; color:var(--color-gold); }
.hoard-modern :is(.dh-nav,.dh-text-button,.dh-button,.dh-goal-title,.dh-giving-shortcut,.dh-treasure,.dh-list-icon,.dh-more-item,.dh-bottom-nav) svg { width:19px; height:19px; flex:none; }
.hoard-modern .dh-side-bottom { margin-top:auto; padding-top:20px; }
.hoard-modern .dh-work { min-width:0; }
/* Independent scroll regions keep navigation still, including on iPads without
   dynamic viewport units. The page itself cannot rubber-band behind the menu. */
@media screen and (min-width:681px) {
 .hoard-modern.hoard-dashboard { position:fixed; top:0; right:0; bottom:0; left:0; overflow:hidden; }
 .hoard-modern .dh-frame { position:fixed; top:0; right:0; bottom:0; left:0; width:100%; min-height:0; grid-template-rows:minmax(0,1fr); }
 .hoard-modern .dh-sidebar { position:static; height:auto; min-height:0; flex-shrink:0; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; }
 .hoard-modern .dh-sidebar > * { flex-shrink:0; }
 .hoard-modern .dh-work { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; }
}
/* Keep the help topic menu still too; its own scroll remains available when
   the guide list is taller than the screen. Phones retain the Topics control. */
@media screen and (min-width:761px) {
 .hoard-modern.hoard-help { position:fixed; top:0; right:0; bottom:0; left:0; display:flex; flex-direction:column; }
 .hoard-modern .dh-help-header { width:100%; flex-shrink:0; }
 .hoard-modern .dh-help-layout { width:100%; min-height:0; flex:1; grid-template-rows:minmax(0,1fr); }
 .hoard-modern .dh-help-navigation,.hoard-modern .dh-help-content { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; }
 .hoard-modern .dh-help-topics { position:static; max-height:none; overflow:visible; }
}
.hoard-modern .dh-mobile-brand { display:none; }
.hoard-modern .dh-mobile-header { display:none; }
.hoard-modern .dh-account-header { display:flex; flex-wrap:wrap; align-items:center; gap:16px 32px; margin-bottom:24px; }
.hoard-modern .dh-account-title { margin:0; font:inherit; }
.hoard-modern #profile-switcher-container .profile-button .dh-profile-avatar { width:40px; height:40px; }
.hoard-modern .dh-profile-logout { border-top:1px solid var(--dh-line); margin-top:6px; padding-top:6px; }
.hoard-modern .profile-dropdown #logout-button { display:flex; align-items:center; width:100%; background:none; border:0; text-align:left; font:14px/1.5 var(--font-body); }
.hoard-modern .profile-dropdown #logout-button svg { width:30px; height:20px; flex:none; color:var(--dh-muted); }
.hoard-modern .dh-page-title { margin:0 0 20px; font:28px/1.2 var(--font-heading); color:var(--color-text); }
.hoard-modern #dragon-button.dh-dragon-change { display:inline-flex; align-items:center; gap:7px; border:0; background:none; color:var(--dh-muted); padding:8px 12px; margin:4px auto 0; }
.hoard-modern #dragon-button.dh-dragon-change:hover { color:var(--color-gold); }
.hoard-modern #dragon-button.pulse-dragon-btn { animation:none; }
.hoard-modern #dragon-button.pulse-dragon-btn > svg { color:var(--color-gold); animation:dh-dragon-glow 1.6s ease-in-out infinite; }
@keyframes dh-dragon-glow {
 0%,100% { opacity:.55; filter:drop-shadow(0 0 0 transparent); }
 50% { opacity:1; filter:drop-shadow(0 0 4px #f7b73388); }
}

.hoard-modern #profile-switcher-container { position:relative; inset:auto; margin:0; padding:0; min-width:0; max-width:100%; z-index:50; }
.hoard-modern .profile-switcher { position:relative; margin:0; }
.hoard-modern .profile-button { position:static; margin:0; min-height:44px; background:transparent; border:0; color:var(--color-text); border-radius:8px; padding:8px; font-size:13px; max-width:100%; }
.hoard-modern .profile-button > span { min-width:0; white-space:normal; overflow-wrap:anywhere; color:var(--color-text); }
.hoard-modern .profile-dropdown { z-index:40; right:auto; left:0; width:max-content; max-width:min(320px,calc(100vw - 24px)); box-shadow:0 12px 40px #0007; background:#302a24; border:1px solid #584b3b; }
.hoard-modern .profile-dropdown a { white-space:normal; overflow-wrap:anywhere; min-height:44px; display:flex; align-items:center; }
.hoard-modern #profile-switcher-container .profile-button { display:flex; gap:12px; padding:4px 6px 4px 0; border:0; background:none; font:32px/1.2 var(--font-heading); text-align:left; }
.hoard-modern .dh-profile-avatar { width:32px; height:32px; object-fit:cover; border-radius:50%; background:#000; border:1px solid #675039; flex:none; }
.hoard-modern #profile-switcher-container .dh-profile-chevron { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; }
.hoard-modern .profile-dropdown { width:284px; padding:8px; border-radius:14px; max-height:calc(100dvh - 90px); overflow:auto; }
.hoard-modern .dh-profile-current { display:flex; align-items:center; gap:11px; padding:12px; margin-bottom:5px; border-bottom:1px solid var(--dh-line); }
.hoard-modern .dh-profile-current > span { min-width:0; }
.hoard-modern .dh-profile-current strong { display:block; overflow-wrap:anywhere; font-weight:600; }
.hoard-modern .dh-profile-current small { color:var(--dh-muted); }
.hoard-modern .profile-dropdown li :is(a,button) { gap:11px; padding:10px; border-radius:8px; color:var(--color-text); font-size:14px; }
.hoard-modern .profile-dropdown li :is(a,button):hover { background:#ffffff08; }
.hoard-modern .dh-profile-symbol { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#ffffff06; color:var(--color-gold); flex:none; font-size:16px; }
.hoard-modern .dh-profile-symbol svg { width:18px; height:18px; }
.hoard-modern .profile-dropdown .separator { margin:6px 8px; border-color:var(--dh-line); }
.hoard-modern .dh-content { padding:28px; min-width:0; }
.hoard-modern .dh-content > .tab-content { margin:0; padding:0; border:0; background:none; animation:none; }
.hoard-modern .dh-hero { display:grid; grid-template-columns:304px minmax(0,1fr); align-items:center; background:#000; border-radius:14px; overflow:hidden; }
.hoard-modern .dh-balance-block { padding:28px 0 28px 24px; }
.hoard-modern .dh-balance-label { margin:0; font-size:13px; color:var(--dh-muted); }
.hoard-modern .dh-balance { margin:4px 0 20px; color:var(--color-gold); font:700 clamp(36px,3.4vw,48px)/1.2 var(--font-body); font-variant-numeric:tabular-nums; letter-spacing:-1.5px; overflow-wrap:anywhere; }
.hoard-modern .dh-actions { display:flex; gap:8px; flex-wrap:wrap; }
.hoard-modern .dh-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:11px 13px; border:0; border-radius:9px; background:#38312a; color:var(--color-text); font-size:13px; font-weight:bold; }
.hoard-modern .dh-button.dh-primary { color:#21190b; background:var(--color-gold); }
.hoard-modern .dh-button.dh-spend { color:#f5b4a7; background:#3a2420; }
.hoard-modern .dh-button:hover { filter:brightness(1.12); }
.hoard-modern .footer-dragon-container.dh-dragon { padding:24px 12px 10px; margin:0; min-width:0; width:100%; text-align:center; background:#000; }
.hoard-modern .dh-dragon-art { display:block; width:100%; border:1px solid #ffffff1c; padding:6px; background:#000; border-radius:12px; box-shadow:0 0 0 4px #ffffff02; }
.hoard-modern .dh-dragon-art img { display:block; width:100%; max-width:none; height:auto; aspect-ratio:16/9; max-height:none; object-fit:contain; background:#000; }
.hoard-modern .dh-dragon .dh-text-button { font-size:12px; justify-content:center; color:var(--dh-muted); padding:4px; max-width:100%; flex-wrap:wrap; }
.hoard-modern .dh-dragon .dh-text-button svg { width:13px; }
.hoard-modern .dh-text-button { display:inline-flex; align-items:center; gap:5px; border:0; background:none; color:var(--color-gold); font-size:13px; padding:6px 0; text-decoration:none; }
.hoard-modern .dh-text-button svg { width:15px; }
.hoard-modern .dh-treasure { grid-column:1/-1; display:flex; align-items:center; gap:14px; padding:13px 24px; background:#100d09; color:var(--color-text); font-size:12px; border:0; border-top:1px solid #f7b73314; text-align:left; width:100%; }
.hoard-modern .dh-treasure > span:first-child { color:var(--dh-muted); margin-right:auto; }
.hoard-modern .dh-coin-count { display:inline-flex; gap:5px; align-items:center; white-space:nowrap; }
.hoard-modern .dh-coin-count .coin { width:13px; height:13px; margin:0; border-width:1px; flex:none; box-shadow:none; }
.hoard-modern .dh-home-lower { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:18px; margin-top:20px; }
.hoard-modern .dh-goal-stack { display:grid; gap:14px; }
.hoard-modern .dh-panel { padding:20px; border:0; border-radius:12px; background:var(--dh-panel); min-width:0; }
.hoard-modern .dh-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.hoard-modern .dh-panel h2 { font:23px/1.2 var(--font-heading); color:var(--color-text); margin:0; }
.hoard-modern .dh-sub,.hoard-modern .dh-muted { color:var(--dh-muted); }
.hoard-modern .dh-sub { font-size:13px; margin:3px 0; }
.hoard-modern .dh-goal-title { display:flex; align-items:center; gap:10px; margin:8px 0 12px; }
.hoard-modern .dh-goal-title > svg { color:var(--color-gold); width:23px; }
.hoard-modern .dh-goal-title strong { font-size:16px; overflow-wrap:anywhere; }
.hoard-modern .dh-progress { height:6px; overflow:hidden; border-radius:8px; background:#ffffff0d; margin:14px 0 9px; }
.hoard-modern .dh-progress span { display:block; height:100%; border-radius:8px; background:var(--color-gold); }
.hoard-modern .dh-goal-values { display:flex; justify-content:space-between; gap:8px; font-size:12px; color:var(--dh-muted); }
.hoard-modern .dh-goal-values > span { min-width:0; overflow-wrap:anywhere; }
.hoard-modern .dh-goal-values > span:last-child { text-align:right; }
.hoard-modern .dh-giving-shortcut { display:flex; align-items:center; gap:11px; padding:16px 20px; width:100%; border:0; border-radius:12px; color:var(--color-text); background:var(--dh-panel); text-align:left; }
.hoard-modern .dh-giving-shortcut > svg:first-child { color:var(--color-gold); }
.hoard-modern .dh-giving-shortcut strong { font-size:13px; font-weight:400; }
.hoard-modern .dh-giving-shortcut small { display:block; color:var(--dh-muted); font-size:11px; }
.hoard-modern .dh-giving-shortcut .dh-money { margin-left:auto; color:var(--color-gold); font-size:20px; }
.hoard-modern .dh-giving-shortcut > svg:last-child { width:14px; color:var(--dh-muted); }
.hoard-modern .dh-money { font-variant-numeric:tabular-nums; white-space:nowrap; }
.hoard-modern .dh-recent { list-style:none; padding:0; margin:0; }
.hoard-modern .dh-recent li { display:flex; align-items:center; gap:10px; min-height:58px; padding:10px 0; border-bottom:1px solid var(--dh-line); }
.hoard-modern .dh-recent li:last-child { border:0; }
.hoard-modern .dh-recent strong { display:block; font-size:13px; font-weight:400; overflow-wrap:anywhere; }
.hoard-modern .dh-recent time { display:block; font-size:11px; color:var(--dh-muted); }
.hoard-modern .dh-recent .dh-money { font-size:13px; font-weight:bold; margin-left:auto; }
.hoard-modern .dh-list-icon { display:grid; place-items:center; background:#ffffff06; border-radius:8px; width:30px; height:30px; flex:none; color:var(--dh-muted); }
.hoard-modern .dh-more-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hoard-modern .dh-more-item { display:flex; align-items:center; gap:12px; min-height:58px; padding:17px; border:0; border-radius:10px; background:var(--dh-panel); color:var(--color-text); text-align:left; text-decoration:none; }
.hoard-modern .dh-more-item > svg:first-child { color:var(--color-gold); }
.hoard-modern .dh-more-item > svg:last-child { margin-left:auto; width:15px; color:var(--dh-muted); }
.hoard-modern .dh-footer { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; color:var(--dh-muted); font-size:11px; padding:20px 20px 30px; }
.hoard-modern .dh-footer a { color:var(--dh-muted); }
.hoard-modern .dh-bottom-nav { display:none; }
.hoard-modern .dh-secondary-actions { display:flex; gap:8px; margin-bottom:18px; }
.hoard-modern .pm-summary { margin:16px 0 0; padding:14px 18px; background:var(--dh-panel); border:0; border-radius:12px; box-shadow:none; }
.hoard-modern .pm-eyebrow { display:none; }
.hoard-modern .pm-headline { font-size:14px; }
.hoard-modern .pm-detail,.hoard-modern .pm-pending-note { font-size:12px; }
.hoard-modern .pm-card-actions { flex-shrink:0; }
.hoard-modern .progress-bar-fg { background:var(--color-gold); }
.hoard-modern .interest-filters { display:flex; gap:8px; }
.hoard-modern .interest-filter-link { flex:1; text-align:center; font-size:13px; padding:10px 6px; white-space:nowrap; border:0; border-radius:8px; background:#ffffff06; }
.hoard-modern .interest-filter-link.active { background:#f7b7331c; }
.hoard-modern .goal-card { background:var(--dh-panel); border:0; border-radius:12px; box-shadow:none; }
/* Giving follows the same left edge as its title, with one focused action. */
.hoard-modern #donations { max-width:none; }
.hoard-modern .giving-totals { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:24px; background:var(--dh-panel); border:0; border-radius:12px; padding:24px; }
.hoard-modern .giving-totals > div,.hoard-modern .giving-totals dl > div { min-width:0; }
.hoard-modern .giving-totals strong { margin:4px 0 0; font:700 32px/1.25 var(--font-body); font-variant-numeric:tabular-nums; }
.hoard-modern .giving-totals dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.hoard-modern .giving-totals dd { font-size:22px; line-height:1.4; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.hoard-modern .giving-editor { margin:20px 0 28px; padding:0; background:none; border:0; box-shadow:none; }
.hoard-modern .giving-editor > summary { display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; min-height:44px; padding:11px 14px; border-radius:9px; color:#21190b; background:var(--color-gold); font-size:13px; list-style:none; }
.hoard-modern .giving-editor > summary::-webkit-details-marker { display:none; }
.hoard-modern .giving-editor > summary svg { width:18px; height:18px; flex:none; }
.hoard-modern .giving-editor > summary::after { content:""; width:7px; height:7px; margin:0 2px 4px 8px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); flex:none; }
.hoard-modern .giving-editor[open] > summary::after { transform:rotate(225deg); margin-block:4px 0; }
.hoard-modern .giving-editor-content { max-width:720px; margin-top:12px; padding:24px; border-radius:12px; background:var(--dh-panel); }
.hoard-modern .giving-editor .giving-form { max-width:none; margin:0; }
.hoard-modern .giving-editor .giving-form label { text-transform:none; }
.hoard-modern .giving-editor .giving-form button[type=submit] { width:auto; min-width:160px; font:700 14px/1.4 var(--font-body); }
.hoard-modern .giving-editor .giving-form > .giving-link { margin-left:20px; }
.hoard-modern .giving-history-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin:24px 0 12px; font-size:18px; }
.hoard-modern .giving-history-heading > span { color:var(--dh-muted); font:400 13px/1.5 var(--font-body); }
.hoard-modern .giving-history { background:var(--dh-panel); border-radius:12px; }
.hoard-modern .giving-history li { padding:20px 24px; border:0; border-bottom:1px solid #ffffff0e; background:none; border-radius:0; }
.hoard-modern .giving-history li:last-child { border-bottom:0; }
.hoard-modern .giving-history time { margin:3px 0; }
.hoard-modern .giving-result { display:flex; flex-direction:column; align-items:flex-end; text-align:right; flex:none; }
.hoard-modern .giving-result > strong { font-size:20px; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--color-gold); }
.hoard-modern .giving-result .giving-link { display:inline-flex; min-height:44px; min-width:44px; align-items:center; justify-content:center; padding:8px 10px; margin-top:6px; border-radius:8px; background:#ffffff08; text-decoration:none; font-size:13px; }
.hoard-modern .giving-pages { justify-content:flex-start; flex-wrap:wrap; }
.hoard-modern .giving-pages .giving-link { display:inline-flex; min-height:44px; align-items:center; }
.hoard-modern .giving-form button[type=submit] { border:0; border-radius:8px; background:var(--color-gold); color:#21190b; padding-inline:18px; }
.hoard-modern .goal-card { padding:22px; }
.hoard-modern .chores-controls { padding:12px 16px; margin-bottom:16px; border:0; border-radius:12px; background:var(--dh-panel); }
.hoard-modern .chore-toggle-label { justify-content:flex-start; text-align:left; font-size:14px; gap:10px; min-height:44px; }
.hoard-modern :is(.chore-action-buttons,.candy-action-buttons) { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.hoard-modern :is(.chore-action-buttons,.candy-action-buttons) .action-button { flex:none; min-height:44px; margin:0; padding:11px 16px; border:0; border-radius:9px; font:700 14px/1.4 var(--font-body); color:#21190b; background:var(--color-gold); box-shadow:none; transform:none; }
.hoard-modern :is(.chore-action-buttons,.candy-action-buttons) .action-button:hover { background:var(--color-gold); box-shadow:none; transform:none; filter:brightness(1.07); }
.hoard-modern :is(#define-chores-button,#define-candy-button) { background:var(--dh-panel); color:var(--color-text); border:1px solid #665a48; }
.hoard-modern #eat-candy-transaction-button { background:#442a24; color:#f1b09d; }
.hoard-modern #define-chores-button .icon { filter:invert(.8); }
.hoard-modern .goal-card h3 { margin-top:0; font:24px var(--font-heading); }
.hoard-modern .goals-grid { grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:18px; }
.hoard-modern table { width:100%; border-collapse:collapse; margin:0; font-size:14px; }
.hoard-modern th { background:#ffffff03; color:var(--dh-muted); font-size:12px; font-weight:400; border-bottom:1px solid var(--dh-line); }
.hoard-modern :is(th,td) { padding:15px 12px; border-bottom:1px solid var(--dh-line); overflow-wrap:anywhere; }
.hoard-modern tbody tr:nth-child(even) { background:#ffffff02; }
.hoard-modern .dh-table-wrap { border-radius:12px; overflow:auto; background:var(--dh-panel); }
.hoard-modern .dh-interest-info { text-decoration:none; }
.hoard-modern .action-btn,.hoard-modern .delete-btn { min-height:40px; min-width:36px; border:0; border-radius:7px; }
.hoard-modern .action-btn { color:var(--color-gold); background:#ffffff06; }
.hoard-modern .delete-btn { color:#e6a292; background:none; }
.hoard-modern .dh-history-filter { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin-bottom:16px; }
.hoard-modern .dh-history-filter label { flex:1 1 220px; margin:0; font-size:12px; color:var(--dh-muted); }
.hoard-modern .dh-history-filter input { display:block; width:100%; margin-top:5px; padding:11px 13px; background:var(--dh-panel); color:var(--color-text); border:1px solid #554a3e; border-radius:9px; }
.hoard-modern .dh-filter-chips { display:flex; gap:4px; }
.hoard-modern .dh-filter-chips button { border:0; border-radius:8px; color:var(--dh-muted); background:var(--dh-panel); padding:9px 12px; font-size:13px; }
.hoard-modern .dh-filter-chips [aria-pressed=true] { background:#f7b7331c; color:var(--color-gold); }
.hoard-modern .pagination-container { margin-top:16px; padding:0; flex-wrap:wrap; gap:12px; font-size:13px; }
.hoard-modern .pagination-container a { display:inline-flex; align-items:center; min-height:44px; }
.hoard-modern .pagination-nav { flex-wrap:wrap; }
.hoard-modern .chart-container { position:relative; border:0; border-radius:12px; background:var(--dh-panel); padding:20px; }
.hoard-modern .chart-container canvas { max-width:100%; }
.hoard-modern .dh-chart-status { position:absolute; inset:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; margin:0; color:var(--dh-muted); background:var(--dh-panel); z-index:1; text-align:center; }
.hoard-modern .dh-interest-section { padding:20px; border-radius:12px; background:var(--dh-panel); margin-bottom:18px; }
.hoard-modern .dh-interest-section .interest-display { padding:14px 0 0; }
.hoard-modern .dh-interest-section h2 { font-size:23px; }
.hoard-modern .dh-interest-section .interest-filters { margin:0; }
.hoard-modern .dh-interest-section .interest-total { font-size:36px; }
.hoard-modern .modal { padding:24px 12px; background:#000a; backdrop-filter:blur(4px); }
.hoard-modern .modal-content { position:relative; width:100%; max-width:500px; margin:3vh auto; padding:24px; background:#2b2723; border:1px solid #514435; border-radius:16px; box-shadow:0 20px 70px #0009; max-height:calc(94dvh - 48px); overflow:auto; overscroll-behavior:contain; }
.hoard-modern #dragon-modal .modal-content { max-width:820px; }
.hoard-modern .modal-content h2 { margin-top:0; padding-right:28px; font:27px/1.2 var(--font-heading); color:var(--color-text); }
.hoard-modern .close-button { width:44px; height:44px; display:grid; place-items:center; position:absolute; top:10px; right:10px; margin:0; border:0; border-radius:9px; background:none; color:var(--dh-muted); font-size:28px; line-height:1; cursor:pointer; z-index:2; }
.hoard-modern .modal-form :is(input,select,textarea) { background:#1a1816; border-color:#635747; border-radius:8px; }
.hoard-modern .modal-form label { font-size:13px; color:var(--dh-muted); }
.hoard-modern .modal-form :is(button[type=submit],button:not([type])) { border-radius:9px; }
.hoard-modern :is(.giving-dialog,.pm-dialog) { border:1px solid #514435; background:#2b2723; border-radius:16px; max-width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); }
.hoard-modern .giving-native-date { min-width:0; width:100%; }
.hoard-modern .giving-native-date input { min-width:0; padding:0; border:0; }
.hoard-modern .dragon-controls-row { display:flex; flex-wrap:wrap; gap:10px; }
.hoard-modern .dragon-control-group { flex:1 1 200px; min-width:0; }
.hoard-modern .dragon-control { width:100%; min-width:0; }
.hoard-modern .dragon-choice { background:#211e1b; border-color:#ffffff0b; border-radius:12px; }
.hoard-modern .dragon-choice.active { border-color:var(--color-gold); }
.hoard-modern .dragon-thumb { background:#000; }
.hoard-modern .dh-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.hoard-modern .dh-skip { position:fixed; top:-100px; left:12px; z-index:10000; padding:12px 18px; background:var(--color-gold); color:#21190b; border-radius:8px; }
.hoard-modern .dh-skip:focus { top:12px; }
/* Secondary pages use the same surfaces while retaining all existing forms. */
.hoard-modern:not(.hoard-dashboard) .dashboard-container { max-width:1280px; padding:24px; animation:none; }
.hoard-modern:not(.hoard-dashboard) .main-content { border:0; border-radius:14px; padding:28px; background:var(--dh-panel); box-shadow:none; }
.hoard-modern .dh-admin-header { gap:16px; }
.hoard-modern .dh-admin-header .auth-title { min-width:0; white-space:nowrap; overflow-wrap:normal; font-size:clamp(28px,4vw,40px); }
.hoard-modern .dh-admin-back { flex:none; white-space:nowrap; }
.hoard-modern .auth-box { border:1px solid #514435; border-radius:16px; background:#2b2723; padding:28px; box-shadow:0 18px 60px #0005; animation:none; }
.hoard-modern #giving-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.hoard-modern .header { border-bottom-color:var(--dh-line); padding-block:18px; }
.hoard-modern .header .logo { font-size:30px; gap:10px; }
.hoard-modern .header .logo-icon { width:30px; height:30px; }
.hoard-modern .feature-card { background:var(--dh-panel); border:0; border-radius:12px; box-shadow:none; }
@media (min-width:681px) and (max-width:1040px) {
 .hoard-modern .dh-hero { grid-template-columns:minmax(0,1fr); }
 .hoard-modern .dh-balance-block { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:18px; align-items:center; padding:24px 24px 0; }
 .hoard-modern .dh-balance-label { grid-column:1; grid-row:1; }
 .hoard-modern .dh-balance { grid-column:1; grid-row:2; margin:3px 0 0; }
 .hoard-modern .dh-actions { grid-column:2; grid-row:1/3; }
 .hoard-modern .footer-dragon-container.dh-dragon { padding-top:8px; }
 .hoard-modern .dh-content { padding:22px; }
 .hoard-modern .dh-panel { padding:16px; }
 .hoard-modern .dh-giving-shortcut { padding:16px; flex-wrap:wrap; }
}
@media (max-width:800px) and (min-width:681px) {
 .hoard-modern .dh-frame { --dh-sidebar-width:154px; }
 .hoard-modern .dh-brand { font-size:22px; }
 .hoard-modern .dh-home-lower { grid-template-columns:1fr; }
 .hoard-modern .dh-balance-block { display:block; }
 .hoard-modern .dh-balance { margin-bottom:16px; }
}
@media (max-width:680px) {
 html:has(body.hoard-dashboard) { scroll-padding-bottom:84px; }
 .hoard-modern :is(input,select,textarea) { scroll-margin-block:84px; }
 .hoard-modern .dh-frame { display:block; min-height:100dvh; }
 .hoard-modern .dh-sidebar { display:none; }
 .hoard-modern .dh-mobile-header { display:flex; min-height:56px; padding:calc(10px + env(safe-area-inset-top,0px) + var(--app-top-padding,0px)) 16px 10px; border-bottom:1px solid var(--dh-line); }
 .hoard-modern .dh-account-header { display:block; margin-bottom:20px; }
 .hoard-modern .dh-page-title { font-size:26px; margin-bottom:18px; }

 .hoard-modern .dh-mobile-brand { display:flex; align-items:center; gap:6px; color:var(--color-text); text-decoration:none; font:19px/1.1 var(--font-heading); white-space:nowrap; }
 .hoard-modern .dh-mobile-brand img { width:24px; height:24px; }
 .hoard-modern #profile-switcher-container .profile-button { gap:10px; font-size:28px; }
 .hoard-modern #profile-switcher-container .dh-profile-chevron { display:block; width:12px; }
 .hoard-modern #profile-switcher-container .profile-button .dh-profile-avatar { width:36px; height:36px; }
 .hoard-modern .profile-dropdown { max-height:calc(100dvh - 260px - env(safe-area-inset-bottom,0px)); }
 .hoard-modern .dh-content { padding:20px 16px 12px; }
 .hoard-modern .dh-hero { display:flex; flex-direction:column; align-items:stretch; }
 .hoard-modern .dh-balance-block { padding:21px 20px 0; }
 .hoard-modern .dh-balance { font-size:46px; margin:2px 0 16px; }
 .hoard-modern .dh-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
 .hoard-modern .dh-actions .dh-button { font-size:13px; padding-inline:8px; }
 .hoard-modern .footer-dragon-container.dh-dragon { padding:22px 12px 4px; }
 .hoard-modern .dh-dragon-art img { min-height:150px; max-height:190px; }
 .hoard-modern .dh-treasure { gap:9px; padding:12px 16px; font-size:11px; }
 .hoard-modern .dh-home-lower { display:flex; flex-direction:column; align-items:stretch; gap:14px; margin-top:16px; }
 .hoard-modern .dh-panel { padding:18px; }
 .hoard-modern .dh-panel-head h2 { font-size:22px; }
 .hoard-modern .dh-giving-shortcut { padding:16px 18px; }
 .hoard-modern .dh-giving-shortcut strong { font-size:12px; }
 .hoard-modern .dh-bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:80; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#24211ef7; backdrop-filter:blur(12px); border-top:1px solid #ffffff12; padding:6px 5px max(3px,calc(env(safe-area-inset-bottom,0px) - 12px)); }
 .hoard-modern .dh-bottom-nav button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:49px; border:0; border-radius:8px; background:none; color:var(--dh-muted); font-size:11px; padding:5px 0; }
 .hoard-modern .dh-bottom-nav [aria-current=page] { color:var(--color-gold); }
 .hoard-modern .dh-footer { padding-bottom:calc(90px + env(safe-area-inset-bottom,0px)); }
 .hoard-modern .dh-more-grid { grid-template-columns:1fr; }
 .hoard-modern .modal { padding:12px; z-index:100; }
 .hoard-modern .modal-content { padding:22px 18px; margin:12px auto; max-height:calc(100dvh - 48px); }
 .hoard-modern .modal-content h2 { font-size:25px; }
 .hoard-modern .dh-history-filter label { flex-basis:100%; }
 .hoard-modern .dh-filter-chips { width:100%; }
 .hoard-modern .dh-filter-chips button { flex:1; }
 .hoard-modern :is(th,td) { padding:12px 8px; font-size:12px; }
 .hoard-modern #transactions table { min-width:0; table-layout:auto; }
 .hoard-modern #transactions thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .hoard-modern #transactions tbody { display:block; }
 .hoard-modern #transactions tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; padding:14px 16px; border-bottom:1px solid var(--dh-line); }
 .hoard-modern #transactions td { display:block; padding:0; border:0; width:auto; }
 .hoard-modern #transactions td:nth-child(1) { grid-row:2; grid-column:1; color:var(--dh-muted); font-size:11px; align-self:center; }
 .hoard-modern #transactions td:nth-child(2) { grid-row:1; grid-column:1; font-size:14px; }
 .hoard-modern #transactions td:nth-child(3) { grid-row:1; grid-column:2; text-align:right; white-space:nowrap; font-size:14px; }
 .hoard-modern #transactions td:nth-child(4) { grid-row:2; grid-column:2; display:flex; align-items:center; justify-content:flex-end; gap:6px; }
 .hoard-modern #transactions td[colspan] { grid-column:1/-1; }
 .hoard-modern #transactions td:last-child :is(button,form) { margin:0; }
 .hoard-modern #transactions :is(.delete-btn,.edit-btn) { min-width:44px; min-height:44px; white-space:nowrap; padding:8px; }
 /* The legacy phone layout hid these ledgers. Keep their full history and
    pagination reachable, using the same compact rows as Transactions. */
 .hoard-modern .chore-ledger-section { display:block !important; }
 .hoard-modern .chore-ledger-section :is(table,tbody) { display:block; width:100%; }
 .hoard-modern .chore-ledger-section thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .hoard-modern .chore-ledger-section tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:14px 16px; border-bottom:1px solid var(--dh-line); background:var(--dh-panel); }
 .hoard-modern .chore-ledger-section tr:first-child { border-radius:10px 10px 0 0; }
 .hoard-modern .chore-ledger-section tr:last-child { border-radius:0 0 10px 10px; }
 .hoard-modern .chore-ledger-section td { display:block; padding:0; border:0; width:auto; min-width:0; overflow-wrap:anywhere; }
 .hoard-modern .chore-ledger-section td:first-child { color:var(--dh-muted); }
 .hoard-modern #chore-reports-tbody td { grid-column:1/-1; }
 .hoard-modern #chore-reports-tbody td:nth-child(2)::before { content:"Completed: "; color:var(--dh-muted); }
 .hoard-modern #chore-reports-tbody td:nth-child(3)::before { content:"Extra: "; color:var(--dh-muted); }
 .hoard-modern #candy-transactions-tbody td:nth-child(3) { grid-column:1/-1; }
 .hoard-modern .chore-ledger-section td:last-child { display:flex; grid-column:1/-1; justify-content:flex-end; align-items:center; gap:8px; }
 .hoard-modern .chore-ledger-section td form { margin:0; }
 .hoard-modern .chore-ledger-section td[colspan] { display:block; grid-column:1/-1; text-align:center; }
 .hoard-modern .chore-ledger-section :is(.delete-btn,.edit-btn) { min-width:44px; min-height:44px; padding:8px; }
 .hoard-modern .pm-summary { flex-direction:row; align-items:center; gap:10px; padding:14px; }
 .hoard-modern .pm-card-actions { width:auto; gap:2px; }
 .hoard-modern .pm-button { font-size:13px; padding:10px; }
 .hoard-modern :is(.chore-action-buttons,.candy-action-buttons) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hoard-modern :is(.chore-action-buttons,.candy-action-buttons) .action-button { width:100%; padding:10px 8px; font-size:13px; }
 .hoard-modern #define-candy-button { grid-column:1/-1; }
 .hoard-modern .chart-container { padding:12px; }
 .hoard-modern .giving-totals { grid-template-columns:minmax(0,1fr); gap:20px; padding:18px; }
 .hoard-modern .giving-totals dl { gap:16px; }
 .hoard-modern .giving-totals dd { font-size:20px; }
 .hoard-modern .giving-history li { padding:16px; }
 .hoard-modern .giving-editor-content { padding:16px; }
 .hoard-modern .giving-result > strong { font-size:18px; }
 .hoard-modern:not(.hoard-dashboard) .dashboard-container { padding:14px; }
 .hoard-modern:not(.hoard-dashboard) .main-content { padding:18px; }
 .hoard-modern .dh-admin-header { gap:12px; }
 .hoard-modern .dh-admin-back { padding:10px 12px; font-size:14px; }
 .hoard-modern .dh-admin-back-detail { display:none; }
 .hoard-modern .header { flex-wrap:wrap; gap:10px; }
 .hoard-modern .header .logo { font-size:25px; }
}
@media (max-width:350px) {
 .hoard-modern .dh-mobile-brand { font-size:16px; gap:4px; }
 .hoard-modern .dh-mobile-brand img { width:21px; height:21px; }
 .hoard-modern .dh-content { padding-inline:12px; }
 .hoard-modern .dh-balance { font-size:40px; }
 .hoard-modern .dh-balance-block { padding-inline:16px; }
 .hoard-modern .dh-actions .dh-button { font-size:12px; gap:4px; }
 .hoard-modern .dh-giving-shortcut { flex-wrap:wrap; }
}
/* Keep close controls below the phone's top edge and visible while scrolling. */
@media (max-width:680px), (max-height:520px) {
 .hoard-modern { --dh-modal-top:max(24px,5vh,calc(env(safe-area-inset-top,0px) + 12px)); --dh-modal-bottom:max(24px,5vh,calc(env(safe-area-inset-bottom,0px) + 12px)); }
 .hoard-modern .modal { height:100vh; height:100dvh; padding:var(--dh-modal-top) 12px var(--dh-modal-bottom); }
 .hoard-modern .modal > .modal-content { margin:0 auto; }
 .hoard-modern :is(.modal-content,.pm-dialog,.giving-dialog), .hoard-modern #spend-modal { max-height:min(86vh,calc(100vh - var(--dh-modal-top) - var(--dh-modal-bottom))); max-height:min(86dvh,calc(100dvh - var(--dh-modal-top) - var(--dh-modal-bottom))); }
 .hoard-modern .modal-content .dh-dialog-heading { position:sticky; top:-22px; z-index:3; margin:-22px -18px 20px; padding:22px 62px 12px 18px; background:#2b2723; }
 .hoard-modern .modal-content .dh-dialog-heading h2, .hoard-modern #spend-modal .dh-dialog-heading h2 { margin:0; padding:0; }
 .hoard-modern #spend-modal { padding:22px 18px; }
 .hoard-modern .pm-dialog-heading { position:sticky; top:-20px; z-index:3; margin:-20px -20px 16px; padding:12px 20px; background:#2b2723; }
}
@media (prefers-reduced-motion:reduce) {
 .hoard-modern *, .hoard-modern *::before, .hoard-modern *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
 .hoard-modern .ember { display:none; }
}
