/* Account overview: coherent markup, readable values and restrained brass accents. */
body.hyrca-theme .hyrca-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:18px; margin-bottom:26px; }
body.hyrca-theme .hyrca-stats .hyrca-stat {
 --stat-ink:#234332; --stat-soft:#edf0e5;
 display:grid; grid-template-columns:40px minmax(0,1fr) 20px;
 grid-template-rows:minmax(42px,auto) 1fr auto;
 grid-template-areas:"icon label nav" "value value value" "footer footer footer";
 gap:18px 10px; align-items:center; min-width:0; min-height:202px;
 margin:0; padding:22px; border:1px solid #e4dccb!important; border-radius:22px!important;
 background:#fffdf8; color:#25362d; box-shadow:0 4px 10px -6px #3c342b08,0 16px 36px -30px #57432955;
 text-decoration:none; container-type:inline-size;
 transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body.hyrca-theme .hyrca-stats .hyrca-stat--domains,
body.hyrca-theme .hyrca-stats .hyrca-stat--invoices { --stat-ink:#795b2c; --stat-soft:#f3ecdf; }
body.hyrca-theme .hyrca-stats .hyrca-stat.is-warning { background:linear-gradient(145deg,#fffdf8 55%,#faf3e3); border-color:#d9c49c!important; }
body.hyrca-theme .hyrca-stats .hyrca-stat:focus-visible { outline:3px solid #31543e; outline-offset:4px; }
body.hyrca-theme .hyrca-stats .hyrca-stat__icon { grid-area:icon; display:grid; place-items:center; align-self:center; width:40px; height:40px; margin:0; border:1px solid #e4ddcb; border-radius:13px; background:var(--stat-soft); color:#31533c; }
body.hyrca-theme .hyrca-stats .hyrca-stat__icon svg { width:23px; height:23px; }
body.hyrca-theme .hyrca-stats .hyrca-stat__label { grid-area:label; min-width:0; font-size:14px; font-weight:600; color:#4c5b50; line-height:1.8; }
body.hyrca-theme .hyrca-stats .hyrca-stat__nav { grid-area:nav; align-self:center; display:flex; color:#947244; }
body.hyrca-theme .hyrca-stats .hyrca-stat__nav svg { width:17px; height:17px; transform:rotate(45deg); }
body.hyrca-theme .hyrca-stats .hyrca-stat__row { grid-area:value; display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 12px; min-width:0; }
body.hyrca-theme .hyrca-stats .hyrca-stat__value { grid-area:auto; display:block; min-width:0; max-width:100%; font-size:36px; font-size:clamp(28px,18cqi,36px); font-weight:750; line-height:1.25; color:#25362d; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
body.hyrca-theme .hyrca-stats .hyrca-stat__meta { grid-area:auto; display:block; flex:1 1 78px; min-width:0; max-width:100%; margin:0; padding:0; border:0; font-size:12px; color:#5a665c; line-height:1.9; white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
body.hyrca-theme .hyrca-stats .hyrca-stat__meta bdi { font-weight:500; }
body.hyrca-theme .hyrca-stats .hyrca-stat__footer { grid-area:footer; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding-top:12px; border-top:1px solid #e9dfce; color:var(--stat-ink); font-size:12px; font-weight:500; line-height:1.8; }
body.hyrca-theme .hyrca-stats .hyrca-stat__footer > span { display:flex; color:#8b6a3d; }
body.hyrca-theme .hyrca-stats .hyrca-stat__footer svg { width:14px; height:14px; }
/* Cached older templates can have nested rows or the original direct value/meta. */
body.hyrca-theme .hyrca-stats .hyrca-stat__meter { display:none; }
body.hyrca-theme .hyrca-stats .hyrca-stat:not(:has(> .hyrca-stat__icon)) { grid-template-columns:minmax(0,1fr); grid-template-areas:"label" "value" "footer"; }
body.hyrca-theme .hyrca-stats .hyrca-stat > .hyrca-stat__value { grid-area:value; }
body.hyrca-theme .hyrca-stats .hyrca-stat > .hyrca-stat__meta { grid-area:footer; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body.hyrca-theme .hyrca-stats .hyrca-stat:hover { transform:translateY(-3px); border-color:#cbb687!important; box-shadow:0 12px 28px -20px #59442e66; }
}
@media(max-width:1199px) { body.hyrca-theme .hyrca-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) {
 body.hyrca-theme .hyrca-stats { gap:12px; }
 body.hyrca-theme .hyrca-stats .hyrca-stat { grid-template-columns:32px minmax(0,1fr); grid-template-rows:minmax(42px,auto) 1fr auto; grid-template-areas:"icon label" "value value" "footer footer"; gap:14px 8px; min-height:190px; padding:16px 14px; border-radius:20px!important; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__icon { width:32px; height:32px; border-radius:10px; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__icon svg { width:20px; height:20px; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__label { font-size:13px; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__nav { display:none; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__row { gap:8px; }
 body.hyrca-theme .hyrca-stats .hyrca-stat__footer { padding-top:10px; gap:4px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { body.hyrca-theme .hyrca-stats .hyrca-stat { transition:none; } }
