/* الرئيسية (Home): the front door. One column of what needs you and today, a narrower one of money and events. */
.hm { display: grid; gap: 18px; }
.hm-hello h1 { font-family: var(--serif, 'Amiri', serif); font-size: 34px; margin: 0; }
.hm-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .hm-grid { grid-template-columns: 1fr; } }
.hm-main, .hm-side { display: grid; gap: 16px; min-width: 0; }
.hm-panel { background: var(--paper, #fffdf8); border: 1px solid var(--line, #e6dfcc); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.hm-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-panel h2 { margin: 0; font-family: var(--serif, 'Amiri', serif); font-size: 21px; }
.hm-list { display: grid; }
.hm-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; padding-inline-start: 10px; border-top: 1px solid var(--line, #efe9da); border-inline-start: 3px solid transparent; color: inherit; text-decoration: none; }
.hm-row:first-child { border-top: 0; }
.hm-row:hover { background: rgba(189, 183, 151, .12); }
.hm-room { font-size: 12px; color: var(--muted, #7a7468); letter-spacing: .02em; }
.hm-t { display: grid; gap: 2px; min-width: 0; }
.hm-t b { font-weight: 600; overflow-wrap: anywhere; }
.hm-t small { color: var(--muted, #7a7468); overflow-wrap: anywhere; }
.hm-act { font-size: 13px; border: 1px solid var(--gold-deep, #8f8a68); color: inherit; border-radius: 99px; padding: 3px 11px; white-space: nowrap; }
.hm-row.urgent .hm-room { color: #9a3b2e; font-weight: 600; }
.hm-row.urgent { border-inline-start: 3px solid #9a3b2e; padding-inline-start: 10px; }
.hm-row.next .hm-room { color: #8a5a12; }
.hm-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-figs div { display: grid; gap: 2px; }
.hm-figs small { color: var(--muted, #7a7468); font-size: 12.5px; }
.hm-figs b { font-family: var(--serif, 'Amiri', serif); font-size: 24px; font-variant-numeric: tabular-nums; }
.hm-figs .bad b { color: #9a3b2e; }
@media (max-width: 560px) { .hm-row { grid-template-columns: minmax(0, 1fr) auto; } .hm-room { grid-column: 1 / -1; } .hm-hello h1 { font-size: 27px; } }

/* A name or a number keeps its own direction inside the row, at the start of the line in either language. */
.hm-t b, .hm-t small { text-align: right; }
body.ui-en .hm-t b, body.ui-en .hm-t small { text-align: left; }
/* On a phone the quick actions sit two to a row, every one in sight (a row that scrolled hid half of them). */
@media (max-width: 760px) {
  .hm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-acts .btn { justify-content: center; text-align: center; padding-inline: 8px; }
  .hm-acts .btn.primary { grid-column: 1 / -1; }
}
.hm-cur { font-family: var(--ui-sans, inherit); font-size: 12px; color: var(--muted, #7a7468); font-weight: 400; margin-inline-start: 2px; }
/* A quick action with a long name says its short name on a phone («+ Review link»), so every pill keeps one line. */
.hm-acts .hm-short { display: none; }
@media (max-width: 760px) { .hm-acts .hm-long { display: none; } .hm-acts .hm-short { display: inline; } }
