/* أقسام نمط الحياة، الداشبورد، وقائمة جانبية بـ14 قسمًا — فوق styles.css و ui.css */

@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .side { gap: calc(var(--uy) * 2.5); }
  .side-link { height: calc(var(--uy) * 30); font-size: calc(var(--u) * 12.3); gap: calc(var(--u) * 9); }
  .side-link:first-child { height: calc(var(--uy) * 38); margin-block-end: calc(var(--uy) * 3); }
  .side-link .ic { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
}
@media not ((min-width: 1024px) and (min-aspect-ratio: 5/4)) { .kpi { gap: 8px; padding-inline: 12px; } .kpi-txt { min-width: 0; } }
@media (max-width: 420px) { .kpi-val { font-size: 17px; } }
@media (min-width: 700px) and (max-width: 1023px) { .kpi { gap: 6px; padding-inline: 9px; } .kpi-val { font-size: 14px; } }

/* لا ضباب: اللوحة بخلفية صريحة */
.sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, #fff, #fbeef5); }
.sheet.wide { width: min(1080px, 100vw); }

/* بنود الأقسام: كل قيمة زر ينسخها + أزرار الإجراءات */
.life-item { align-items: flex-start; }
.life-item > .grow { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .life-item > .grow > b { font-weight: 600; overflow-wrap: anywhere; }
.vals { display: flex; flex-wrap: wrap; gap: 5px; }
.valc { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font: 500 12.5px var(--font); color: var(--ink-2); cursor: copy; overflow-wrap: anywhere; text-align: start; text-decoration: none; }
.valc b { font-weight: 600; color: var(--ink); unicode-bidi: plaintext; } .valc:hover { border-color: var(--rose); background: #fdeef5; }
a.valc.file { cursor: pointer; color: var(--rose-d); font-weight: 600; } .valc .ic { width: 14px; height: 14px; }
.acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 92px; }
.acts .mini[data-life-act='del'] { color: #d5482f; }
.form[data-life] { margin-block-start: 8px; }

/* الداشبورد */
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dash-card { --c: #d86aa0; position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; text-align: start; border-radius: 18px; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(150, 80, 125, 0.6); transition: translate 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s, border-color 0.22s; }
.dash-card:hover { translate: 0 -3px; border-color: var(--rose); box-shadow: 0 18px 30px -16px rgba(150, 80, 125, 0.7); }
.dash-card.ok { --c: #17a69b; } .dash-card.bad { --c: #e2507c; } .dash-card.warn { --c: #d9a13a; }
.dash-ring { --w: 0%; flex: none; display: grid; place-items: center; width: 56px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c) var(--w), rgba(170, 130, 160, 0.2) 0); }
.dash-ring i { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--c); } .dash-ring .ic { width: 22px; height: 22px; }
.dash-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.dash-txt small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .dash-txt b { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); unicode-bidi: plaintext; font-variant-numeric: tabular-nums; }
.dash-txt > span { font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
