/* The bold pass (owner, 2026-10-26, after the first round read as too quiet: "wow", "smooth", "animations increased"). Stronger hierarchy and colour on the Dashboard,
   richer card depth, and motion you can feel on every screen: a change of section rises and fades in 380 ms, a push slides 44 px, the cards below the fold
   rise as they are scrolled into view, the hero figure runs up. Colours: the company's own colour (--dp) and fixed status colours that read with white text in
   light and dark. Transform and opacity only; logical properties (Arabic mirrors); everything off under Reduce Motion. */

/* ---- screen transitions you can feel ---- */
.content{ --nav-x:0px; --nav-y:0px }
.content.nav-push{ --nav-x:44px } .content.nav-pop{ --nav-x:-44px } .content.nav-tab{ --nav-y:28px }
html[dir=rtl] .content.nav-push{ --nav-x:-44px } html[dir=rtl] .content.nav-pop{ --nav-x:44px }
.content.nav-pre{ opacity:.01 }
.main{ position:relative } .content-ghost{ will-change:opacity; overflow:hidden; max-height:100vh; animation:none !important; transition:none !important }   /* held invisible until the screen is drawn (motion.js animateScreen): the entrance then plays whole */
.content.nav-push, .content.nav-pop, .content.nav-tab{ animation:navInBold .46s cubic-bezier(.2,.85,.2,1) }
@keyframes navInBold{ from{ opacity:0; transform:translate3d(var(--nav-x), var(--nav-y), 0) scale(.985) } to{ opacity:1; transform:none } }

/* ---- cards that rise as they are scrolled into view (motion-plus.js scrollReveal marks the ones below the fold) ---- */
.rv{ opacity:0; transform:translate3d(0, 36px, 0) scale(.975); transition:opacity .55s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.9,.25,1.05) }
.rv.rv-in{ opacity:1; transform:none }

/* ---- richer depth: a card is lifted, with a hairline of light on top ---- */
:root{ --sh-soft:0 1px 0 rgba(255,255,255,.85) inset, 0 26px 46px -30px rgba(19,33,58,.5), 0 3px 8px rgba(19,33,58,.06) }
html[data-company-dark="true"]{ --sh-soft:0 1px 0 rgba(255,255,255,.07) inset, 0 28px 50px -30px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.35) }
@media(prefers-color-scheme:dark){ html.native-ios{ --sh-soft:0 1px 0 rgba(255,255,255,.07) inset, 0 28px 50px -30px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.35) } }

/* ---- the Dashboard hero: a company-coloured card with light and shape in it, the figure large ---- */
.ledger{ background:radial-gradient(110% 120% at 100% -20%, color-mix(in srgb, #fff 26%, transparent), transparent 52%), linear-gradient(155deg, var(--dp, #5B2C6F), color-mix(in srgb, var(--dp, #5B2C6F) 72%, #000)) !important;
  box-shadow:0 22px 34px -24px color-mix(in srgb, var(--dp, #5B2C6F) 80%, #000) !important; will-change:transform, opacity }
.ledger::before{ content:""; position:absolute; inset-block-start:-60px; inset-inline-end:-50px; width:210px; height:210px; border-radius:50%; background:rgba(255,255,255,.09); pointer-events:none }

.ledger .hero-num .big{ will-change:transform; display:inline-block; text-align:start; font-variant-numeric:tabular-nums; font-size:calc(52px * var(--dt-cap,1)); letter-spacing:-.035em; text-shadow:0 4px 18px rgba(0,0,0,.22) }
@media(min-width:1000px){ body[data-view="overview"] .content > .ledger .hero-num .big{ font-size:calc(64px * var(--dt-cap,1)) } }
.ledger .hbar{ height:16px; border-radius:100px }

/* ---- the four figures under it: filled colour cards, white figures, one tint each (red for what is late, green for collected, the company colour, brass) ---- */
.dcards .dcard{ border:0; color:#fff; min-height:128px; overflow:hidden; box-shadow:0 16px 26px -20px rgba(10,20,40,.6); will-change:transform, opacity }
.dcards .dcard .dk, .dcards .dcard .ds{ color:rgba(255,255,255,.88) } .dcards .dcard .dv{ color:#fff !important; font-size:calc(36px * var(--dt-cap,1)); letter-spacing:-.03em }
.dcards .dcard::after{ content:""; position:absolute; inset-block-start:-34px; inset-inline-end:-30px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.12); pointer-events:none }
.dcards .dcard:nth-child(1){ background:linear-gradient(150deg, #CB4B3A, #8E2A1E) }
.dcards .dcard:nth-child(1):not(.bad){ background:linear-gradient(150deg, #5E6E86, #34425A) }
.dcards .dcard:nth-child(2){ background:linear-gradient(150deg, #22946E, #0F5C44) }
.dcards .dcard:nth-child(3){ background:linear-gradient(150deg, var(--dp, #5B2C6F), color-mix(in srgb, var(--dp, #5B2C6F) 66%, #000)); color:var(--dpf, #fff) }
.dcards .dcard:nth-child(4){ background:linear-gradient(150deg, #CDA052, #8C6626) }
.dcards .dcard .darrow{ background:rgba(255,255,255,.9); color:#0A2540 }
@media(hover:hover) and (pointer:fine){ .dcards .dcard:hover{ transform:translateY(-4px) scale(1.012) } }

/* ---- the attention cards: bigger figures, a glint ---- */
.dat{ min-height:104px; overflow:hidden } .dat b{ font-size:calc(40px * var(--dt-cap,1)) } .dat::after{ content:""; position:absolute; inset-block-start:-30px; inset-inline-end:-24px; width:90px; height:90px; border-radius:50%; background:rgba(255,255,255,.13) } .dat{ position:relative }

/* ---- panels: a clear heading band, rounder, deeper ---- */
.dash .panel > h3, .dash .panel > .dhead-row{ background:linear-gradient(180deg, color-mix(in srgb, var(--dp, #5B2C6F) 7%, var(--card)), var(--card)) }
.panel{ box-shadow:var(--sh-soft) }

/* ---- a bento on a wide screen and on an iPad: the hero is wide, the cards under it are tiles of different sizes ---- */
@media(min-width:760px){
  body[data-view="overview"] .content{ display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:16px; align-content:start }
  body[data-view="overview"] .content > *{ grid-column:1 / -1; min-width:0; margin-bottom:0 }
  body[data-view="overview"] .content > .ledger{ grid-column:1 / 8; align-self:stretch }
  body[data-view="overview"] .content > .cfcard, body[data-view="overview"] .content > .dbycur{ grid-column:8 / 13 }
  body[data-view="overview"] .content > .dcards{ grid-template-columns:repeat(4, minmax(0, 1fr)) }
  body[data-view="overview"] .content > .dattn .dat-row{ grid-template-columns:repeat(5, minmax(0, 1fr)) }
}
@media(min-width:760px) and (max-width:999px){ body[data-view="overview"] .content > .dattn .dat-row{ display:flex; flex-wrap:wrap } body[data-view="overview"] .content > .dattn .dat{ flex:1 1 200px } body[data-view="overview"] .content > .ledger, body[data-view="overview"] .content > .cfcard, body[data-view="overview"] .content > .dbycur{ grid-column:1 / -1 } }

/* ---- an iPad and a desktop: the hub and More are a grid of cards (two across, three on a wide window), not rows stretched across the whole screen ---- */
@media(min-width:700px){
  .hub, .morelist{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; align-items:stretch }
  .hub .morerow, .morelist > .morerow:not(.morerow-out):not(.morebrand-switch){ min-height:96px; align-items:center }
  .morelist > .morehead, .morelist > .morebrand, .morelist > .morerow-out, .morelist > .morebrand-switch{ grid-column:1 / -1 }
  .hub .morerow-t small, .morelist .morerow-t small{ line-height:1.35 }
  /* the screen inside a sub-screen of Company settings keeps a readable width, centred */
  body[data-view="settings"] .content{ max-width:980px }
}
@media(min-width:1200px){ .hub{ grid-template-columns:repeat(3, minmax(0, 1fr)) } }
@media(min-width:700px) and (max-width:999px){ .plist{ grid-template-columns:repeat(2, minmax(0, 1fr)) } }   /* an iPad upright: two property pictures across, larger */
/* the floating tab bar on a tablet: a capsule of a sensible width in the middle, not the whole screen */
@media(min-width:700px){ .tabbar{ inset-inline:auto !important; inset-inline-start:50% !important; translate:-50% 0; width:min(560px, calc(100vw - 48px)) } html[dir="rtl"] .tabbar{ translate:50% 0 }   /* the start edge is the right one in Arabic, so the same 50% inset as English holds and only the shift flips (it was pushed off the screen by a wrong end inset) */ }

/* forms in a card on a tablet or desktop: the fields go two across, notes and buttons take the whole row (a single column of small fields left a card mostly empty) */
@media(min-width:700px){
  .pbody:has(> .field){ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px 18px; align-items:start }
  .pbody:has(> .field) > :not(.field){ grid-column:1 / -1 } .pbody:has(> .field) > .field{ margin:0 }
}

/* lists of cards on a tablet and a desktop: two across on an iPad, three on a wide window, instead of one stretched card per row */
@media(min-width:700px){
  .ucards{ grid-template-columns:repeat(2, minmax(0, 1fr)) }
  body[data-view="finance"] .content, body[data-view="tasks"] .content{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; align-content:start; align-items:start }
  body[data-view="finance"] .content > :not(.ent), body[data-view="tasks"] .content > :not(.ent){ grid-column:1 / -1; margin-bottom:0 }
  body[data-view="finance"] .content > .ent, body[data-view="tasks"] .content > .ent{ margin:0; height:100% }
}
@media(min-width:1180px){ .ucards:not(:has(> .cc)){ grid-template-columns:repeat(3, minmax(0, 1fr)) } body[data-view="finance"] .content, body[data-view="tasks"] .content{ grid-template-columns:repeat(3, minmax(0, 1fr)) } }

@media(prefers-reduced-motion:reduce){ .content.nav-pre{ opacity:1 } .content.nav-push, .content.nav-pop, .content.nav-tab{ animation:none } .rv{ opacity:1; transform:none; transition:none } .dcards .dcard:hover{ transform:none } }

/* ---- round 14, the bolder system: the Dashboard hero is "what came in this month" as one large figure, a change chip and six month bars in the same card ---- */
.dhero{ padding:20px 18px 18px; border-radius:28px; overflow:hidden }
.dhero .ledger-head{ display:block }
.dhero .hero-title{ font-size:calc(12px * var(--dt,1)); font-weight:700; letter-spacing:.07em; text-transform:uppercase; opacity:.92; margin:0 0 6px; padding-inline-end:0 }
.dhero .hero-title span{ font-weight:600; opacity:.78; letter-spacing:.03em }
html[lang="ar"] .dhero .hero-title{ letter-spacing:0; text-transform:none; font-size:calc(13px * var(--dt,1)) }
.dhero .hero-num{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px }
.dhero .hero-num .big{ font-size:calc(46px * var(--dt-cap,1)); line-height:1.05; letter-spacing:-.04em }
.dhero .hero-num .cur{ font-size:calc(16px * var(--dt,1)); font-weight:700; opacity:.8 }
.dh-meta{ display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:12px; font-size:calc(13.5px * var(--dt,1)) }
.dh-rate{ opacity:.9 }
.dhero .dchip{ background:color-mix(in srgb, currentColor 20%, transparent); color:inherit; font-size:calc(12.5px * var(--dt,1)) }
.dh-bars{ display:flex; align-items:flex-end; gap:10px; margin-top:18px }
.dh-col{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; gap:7px }
.dh-track{ position:relative; width:100%; height:78px }
.dh-fill, .dh-exp{ position:absolute; inset-inline:0; bottom:0; border-radius:12px; transform-origin:50% 100% }
.dh-fill{ background:color-mix(in srgb, currentColor 30%, transparent) }
.dh-fill.nil{ background:color-mix(in srgb, currentColor 14%, transparent) }
.dh-col.now .dh-fill{ background:currentColor; box-shadow:0 0 0 3px color-mix(in srgb, currentColor 28%, transparent) }
.dh-exp{ background:repeating-linear-gradient(135deg, color-mix(in srgb, currentColor 62%, transparent) 0 3px, transparent 3px 7px); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent) }
.dh-col em{ font-style:normal; font-size:calc(12px * min(var(--dt,1), 1.15)); font-weight:600; opacity:.85; white-space:nowrap; max-width:calc(100% + 8px) }   /* axis names stay small at the largest text size (the figures above the bars carry the values), or seven names run into one another */ .dh-col.now em{ opacity:1 }
.dhero .fxfold{ margin-top:14px }

/* the attention tiles: a gradient each, the figure large, an icon in the corner (a shape as well as a colour) */
.dat{ position:relative; min-height:112px }
.dat.bad{ background:linear-gradient(160deg, #B63F2E, #8A271B) } .dat.warn{ background:linear-gradient(160deg, #9B7229, #7A5A1E) } .dat.ok{ background:linear-gradient(160deg, #1B7D60, #0F5C44) } .dat.ink{ background:linear-gradient(160deg, #173B62, #0A2540) }
.dat-ic{ position:absolute; inset-block-start:12px; inset-inline-end:12px; width:26px; height:26px; opacity:.92 }
.dat-ic svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
@media(min-width:760px){ body[data-view="overview"] .content{ grid-auto-flow:row dense } }   /* the hero comes first now; the cashflow card back-fills the gap beside it instead of waiting under the attention row */
.dat b{ align-self:flex-start }   /* the figure keeps the leading edge in Arabic too (.num is left-to-right), clear of the corner icon */

/* the four figures under the attention row go tonal: a calm tint of the meaning (late, in, the company, empty) with the matching ink, so the hero and the attention tiles are the only saturated things on the screen */
.dcards .dcard{ color:var(--ink); min-height:118px; box-shadow:var(--sh-1) }
.dcards .dcard::after{ display:none }
.dcards .dcard .dk, .dcards .dcard .ds{ color:var(--muted) }
.dcards .dcard .dv{ font-size:calc(30px * var(--dt-cap,1)); display:flex; flex-wrap:wrap; align-items:baseline; gap:0 6px }
.dcards .dcard .dv .dcur{ margin-inline-start:0 }
.dcards .dcard:nth-child(1), .dcards .dcard:nth-child(1):not(.bad){ background:var(--card) } .dcards .dcard:nth-child(1).bad{ background:var(--bad-tint) }
.dcards .dcard:nth-child(1).bad .dv{ color:var(--bad-ink) !important } .dcards .dcard:nth-child(1):not(.bad) .dv{ color:var(--ink) !important }   /* nothing overdue: the 0 was still white (the saturated look's #fff) on the white card */
.dcards .dcard:nth-child(2){ background:var(--ok-tint) } .dcards .dcard:nth-child(2) .dv{ color:var(--ok-ink) !important }
.dcards .dcard:nth-child(3){ background:color-mix(in srgb, var(--dp, #5B2C6F) 11%, var(--card)); color:var(--ink) } .dcards .dcard:nth-child(3) .dv{ color:var(--ink) !important }
.dcards .dcard:nth-child(4){ background:var(--warn-tint) } .dcards .dcard:nth-child(4) .dv{ color:var(--brass-ink) !important }
.dhero{ display:flex; flex-direction:column } .dhero .dh-bars{ flex:1 1 auto; align-items:stretch } .dhero .dh-col{ min-height:104px } .dhero .dh-track{ flex:1 1 auto; height:auto; min-height:78px }   /* on a wide screen the card is as tall as its neighbours: the bars take the extra height */

/* ---- round 14, Collection: the month's progress is a hero (the company colour, one large figure, one bar: solid = paid in full, hatched = in part, the track = to come) ---- */
.chero-wrap{ display:flex; flex-direction:column; gap:10px; margin:0 0 14px } .chero-wrap:empty{ display:none }
.chero{ position:relative; overflow:hidden; border-radius:26px; padding:18px 18px 16px; color:var(--hero-fg, #fff);
  background:radial-gradient(110% 120% at 100% -20%, color-mix(in srgb, #fff 24%, transparent), transparent 52%), linear-gradient(155deg, var(--company-primary, #0A2540), color-mix(in srgb, var(--company-primary, #0A2540) 72%, #000));
  box-shadow:0 20px 32px -24px color-mix(in srgb, var(--company-primary, #0A2540) 80%, #000) }
.chero-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px }
.chero-main{ min-width:0; display:flex; flex-direction:column; gap:4px }
.chero-k{ font-size:calc(12px * var(--dt,1)); font-weight:700; letter-spacing:.07em; text-transform:uppercase; opacity:.9 } html[lang="ar"] .chero-k{ letter-spacing:0; text-transform:none; font-size:calc(13px * var(--dt,1)) }
.chero-fig{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px } .chero-fig b{ font-size:calc(40px * var(--dt-cap,1)); line-height:1.05; letter-spacing:-.035em; font-variant-numeric:tabular-nums } .chero-fig span{ font-size:calc(14.5px * var(--dt,1)); font-weight:700; opacity:.8 }
.chero-pc{ flex:none; text-align:end; display:flex; flex-direction:column; align-items:flex-end; gap:2px } .chero-pc b{ font-size:calc(32px * var(--dt-cap,1)); line-height:1; letter-spacing:-.03em } .chero-pc span{ font-size:calc(12.5px * var(--dt,1)); opacity:.85 }
.chero-bar{ display:flex; height:14px; border-radius:100px; overflow:hidden; margin-top:16px; background:color-mix(in srgb, currentColor 20%, transparent) }
.chero-bar i{ display:block; height:100% } .chero-bar .s{ background:currentColor; border-radius:100px } .chero-bar .p{ background:repeating-linear-gradient(135deg, color-mix(in srgb, currentColor 75%, transparent) 0 3px, transparent 3px 7px) }
.chero-lg{ display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:12px; font-size:calc(13px * var(--dt,1)) } .chero-lg span{ display:inline-flex; align-items:center; gap:6px }
.chero-lg i{ width:12px; height:12px; border-radius:4px; flex:none } .chero-lg .s{ background:currentColor } .chero-lg .p{ background:repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 4px); box-shadow:inset 0 0 0 1px currentColor } .chero-lg .o{ border-radius:50%; box-shadow:inset 0 0 0 1.5px currentColor }

/* a unit card: the status is a coloured edge and a chip, a round avatar leads the name, the amount is large */
html:root .ucards .ucard.cc{ border-radius:22px }
html:root .ucard.cc .cc-top h4 .linkish{ text-align:start }
.cc-av{ flex:none; width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-size:calc(14.5px * var(--dt,1)); font-weight:700; letter-spacing:.02em; color:var(--hero-fg, #fff); background:linear-gradient(150deg, var(--company-primary, #0A2540), color-mix(in srgb, var(--company-primary, #0A2540) 70%, #000)) }
html:root .ucard.cc .cc-top{ align-items:center; gap:12px }
html:root .cc-top .tag{ padding:4px 11px; border-radius:100px; font-size:calc(12.5px * var(--dt,1)); font-weight:650; background:var(--line-soft); color:var(--ink-soft, var(--ink)); white-space:nowrap }
html:root .cc-top .tag::before{ display:none }
html:root .cc-top .tag.t-unpaid, html:root .cc-top .tag.t-due{ background:var(--bad-tint); color:var(--bad-ink) } html:root .cc-top .tag.t-part{ background:var(--warn-tint); color:var(--warn-ink) } html:root .cc-top .tag.t-paid, html:root .cc-top .tag.t-adv{ background:var(--ok-tint); color:var(--ok-ink) }
html:root .ucard.cc .cc-amt .rent{ font-size:calc(30px * var(--dt-cap,1)); font-weight:700; letter-spacing:-.025em }
/* round 14 review: labelled bars with a baseline, a "rent due" line, tiles with a short label and a small second line */
.dh-bars{ padding-top:14px; margin-top:12px } .dh-track{ height:64px; border-bottom:1.5px solid color-mix(in srgb, currentColor 35%, transparent); overflow:visible }
.dh-v{ position:absolute; inset-inline:-6px; text-align:center; font-size:calc(12px * var(--dt,1)); font-weight:700; white-space:nowrap; pointer-events:none }
.dh-due{ margin-top:8px; font-size:calc(13.5px * var(--dt,1)); opacity:.88 }
.dat span:first-of-type{ font-weight:650; font-size:calc(14px * var(--dt,1)); opacity:1 } .dat small{ font-size:calc(12.5px * var(--dt,1)); opacity:.85; margin-top:-4px }
html:root .ucards .ucard.cc .cc-amt .rent{ font-size:calc(30px * var(--dt-cap,1)) }

/* ---- round 14, the unit page: the tenant and the rent are the header, a lease line, four tabs, the facts as tiles ---- */
.uhero{ padding:18px 18px 16px; border-radius:28px }
.uh-top{ display:flex; align-items:center; gap:14px }
.uh-av{ flex:none; width:54px; height:54px; border-radius:50%; display:grid; place-items:center; font-size:calc(19px * var(--dt,1)); font-weight:700; background:color-mix(in srgb, currentColor 20%, transparent) }
.uh-who{ min-width:0; display:flex; flex-direction:column; gap:3px }
.uh-k{ display:block; font-size:calc(12px * var(--dt,1)); font-weight:700; letter-spacing:.07em; text-transform:uppercase; opacity:.86 } html[lang="ar"] .uh-k{ letter-spacing:0; text-transform:none; font-size:calc(13px * var(--dt,1)) }
.uh-name{ font-size:calc(22px * var(--dt-cap,1)); line-height:1.2; letter-spacing:-.01em; overflow-wrap:anywhere }
.uh-rent{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:20px }
.uh-fig{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; margin-top:4px } .uh-fig b{ font-size:calc(44px * var(--dt-cap,1)); line-height:1.05; letter-spacing:-.035em; font-variant-numeric:tabular-nums } .uh-fig span{ font-size:calc(14.5px * var(--dt,1)); font-weight:700; opacity:.8 }
.uh-chip{ flex:none; display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:100px; font-size:calc(13px * var(--dt,1)); font-weight:650; background:color-mix(in srgb, currentColor 18%, transparent) } .uh-chip i{ width:9px; height:9px; border-radius:50%; background:currentColor }
.uh-lease{ margin-top:18px } .uh-track{ position:relative; display:block; height:6px; border-radius:6px; background:color-mix(in srgb, currentColor 24%, transparent) }
.uh-track i{ position:absolute; inset-block:0; inset-inline-start:0; border-radius:6px; background:currentColor } .uh-track b{ position:absolute; top:50%; width:16px; height:16px; margin-top:-8px; margin-inline-start:-8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb, currentColor 26%, transparent) }
.uh-dates{ display:flex; justify-content:space-between; gap:8px; margin-top:12px; font-size:calc(12.5px * var(--dt,1)); opacity:.9 }
.utabs{ display:flex; gap:16px; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--line); margin:6px 0 16px } .utabs::-webkit-scrollbar{ display:none }
.utab-btn{ flex:none; min-height:calc(46px * var(--dt,1)); padding:0 2px; border:0; border-bottom:3px solid transparent; margin-bottom:-1px; background:none; font:inherit; font-size:calc(14.5px * var(--dt,1)); font-weight:600; color:var(--muted); cursor:pointer }
.utab-btn[aria-selected="true"]{ color:var(--c-primary-ink, var(--ink)); border-bottom-color:var(--company-primary, var(--c-primary)) }
.ubody .utab{ display:none } .ubody[data-tab="overview"] .utab[data-ut="overview"], .ubody[data-tab="payments"] .utab[data-ut="payments"], .ubody[data-tab="lease"] .utab[data-ut="lease"], .ubody[data-tab="requests"] .utab[data-ut="requests"], .ubody[data-tab="files"] .utab[data-ut="files"]{ display:block }
.utiles{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-bottom:14px }
.utile{ display:flex; flex-direction:column; gap:6px; padding:15px 16px; border-radius:20px; background:var(--card); box-shadow:var(--sh-1) } .utile span{ font-size:calc(13px * var(--dt,1)); color:var(--muted) } .utile b{ font-size:calc(22px * var(--dt-cap,1)); letter-spacing:-.02em; overflow-wrap:anywhere }
@media(min-width:700px){ .utiles{ grid-template-columns:repeat(4, minmax(0, 1fr)) } }
.utile b .num{ font-size:inherit } .utile.ph b{ font-size:calc(17px * var(--dt-cap,1)); white-space:nowrap; direction:ltr; text-align:start }
.utile b .num{ color:inherit }

/* ---- round 14, More: the company is the hero; the money items are a two-column grid of tinted tiles; the rest are grouped rows ---- */
html:root body .morelist .morebrand{ display:grid; grid-template-columns:64px minmax(0, 1fr); column-gap:14px; row-gap:2px; align-items:center; text-align:start; margin:0 0 6px; padding:18px; border:0; border-radius:28px; color:var(--hero-fg, #fff);
  background:radial-gradient(110% 120% at 100% -20%, color-mix(in srgb, #fff 24%, transparent), transparent 52%), linear-gradient(155deg, var(--company-primary, #0A2540), color-mix(in srgb, var(--company-primary, #0A2540) 72%, #000)); box-shadow:0 20px 32px -24px color-mix(in srgb, var(--company-primary, #0A2540) 80%, #000) }
html:root body .morelist .morebrand .cmark, html:root body .morelist .morebrand-aqari{ grid-row:1 / span 2; --cm-h:64px; --cm-w:64px; --cm-r:18px; --cm-plate:8px; width:64px; height:64px; margin:0; border-radius:18px }
html:root body .morelist .morebrand-name{ grid-column:2; color:inherit; font-size:calc(22px * var(--dt-cap,1)); line-height:1.2; letter-spacing:-.01em }
html:root body .morelist .morebrand-role{ grid-column:2; color:inherit; opacity:.85; font-size:calc(14px * var(--dt,1)) }
html:root body .morelist .morebrand .morebrand-switch{ grid-column:1 / -1; margin-top:14px; min-height:calc(44px * var(--dt,1)); padding:0 16px; justify-content:space-between; border-radius:100px; background:color-mix(in srgb, currentColor 18%, transparent); color:inherit; box-shadow:none }
html:root body .morelist .morebrand .morerow-ic{ background:none; color:inherit; flex-basis:26px; height:26px } html:root body .morelist .morebrand .morerow-go{ color:inherit; opacity:.8 }
.moregrid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px }
@media(min-width:700px){ .morelist > .moregrid{ grid-column:1 / -1; grid-template-columns:repeat(3, minmax(0, 1fr)) } }
.morerow.morecard{ flex-direction:column; align-items:flex-start; justify-content:space-between; gap:14px; min-height:calc(112px * var(--dt,1)); padding:14px 16px; border-radius:22px }
.morecard .morerow-go{ display:none } .morecard .morerow-t{ flex:none; font-size:calc(16px * var(--dt,1)); font-weight:650 }
.morecard .morerow-ic{ flex:none; width:44px; height:44px; border-radius:14px }
.moregrid > .morecard:nth-child(even) .morerow-ic{ background:var(--warn-tint); color:var(--warn-ink) }

/* ---- round 14, Requests: three tonal counts, a coloured edge on each card, a drawn empty state ---- */
.rq-tiles{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 14px }
.rq-tile{ display:flex; flex-direction:column; justify-content:space-between; gap:8px; min-height:92px; padding:14px; border-radius:22px; color:#fff }
.rq-tile b{ font-size:calc(34px * var(--dt-cap,1)); line-height:1; letter-spacing:-.03em } .rq-tile span{ font-size:calc(13px * var(--dt,1)); font-weight:600; line-height:1.25 }
.rq-tile.bad{ background:linear-gradient(160deg, #B63F2E, #8A271B) } .rq-tile.warn{ background:linear-gradient(160deg, #9B7229, #7A5A1E) } .rq-tile.ink{ background:linear-gradient(160deg, #173B62, #0A2540) }
.rqrow{ border-radius:20px }
.empty-art{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 20px; border:2px dashed color-mix(in srgb, var(--company-primary, var(--ink)) 28%, var(--line)); border-radius:24px; background:none }
.empty-art svg{ display:block; width:96px; height:88px; fill:none; stroke:var(--company-primary, var(--ink)); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; opacity:.75 } .empty-art .ea-dot{ fill:var(--warn); stroke:none }
.empty-art p{ margin:0; max-width:28ch; text-align:center; color:var(--muted); font-size:calc(14.5px * var(--dt,1)); line-height:1.5 }
/* the look pass of the UI sweep: every screen with nothing to show draws its empty state. A second line and a button may follow the first line, which then
   reads as the heading; on the page it keeps a gap to what follows; inside a white card the card is the frame, so the dashed one goes */
.empty-art{ margin:0 0 16px } .empty-art p + p{ font-size:calc(13.5px * var(--dt,1)) } .empty-art p:first-of-type:not(:last-of-type){ color:var(--ink); font-weight:600 }
.empty-art .btn, .empty-art .btnrow{ margin-top:6px }
.panel .empty-art{ margin:0; border:0; border-radius:0 }

/* ---- round 14, Properties: three tiles, a tinted placeholder with the initials when there is no photo, the month's collection under each name ---- */
.ptiles{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 14px }
.ptile{ display:flex; flex-direction:column; justify-content:space-between; gap:6px; min-height:84px; padding:14px; border-radius:22px; background:var(--card); box-shadow:var(--sh-1) }
.ptile span{ font-size:calc(13px * var(--dt,1)); color:var(--muted) } .ptile b{ font-size:calc(30px * var(--dt-cap,1)); line-height:1; letter-spacing:-.03em }
.ptile.let{ background:linear-gradient(160deg, #1B7D60, #0F5C44); color:#fff } .ptile.let span{ color:rgba(255,255,255,.88) }
.pcard-ph{ background:linear-gradient(150deg, var(--company-primary, #0A2540), color-mix(in srgb, var(--company-primary, #0A2540) 55%, var(--warn))) !important; color:var(--hero-fg, #fff) !important }
.pcard-ph b{ font-size:calc(44px * var(--dt-cap,1)); font-weight:700; letter-spacing:.04em; opacity:.92 } .pcard-ph svg{ display:none }
.pcard-coll{ display:flex; flex-direction:column; gap:6px; margin-top:10px; font-size:calc(13px * var(--dt,1)); color:var(--muted) } .pcard-coll b{ color:var(--ink) }
.pcard-coll i{ display:block; height:6px; border-radius:6px; background:var(--line-soft); overflow:hidden } .pcard-coll u{ display:block; height:100%; border-radius:6px; background:var(--company-primary, var(--c-primary)); text-decoration:none }
.ptile span{ text-transform:capitalize }
.pcard-img:has(.pcard-ph){ aspect-ratio:16 / 8; height:auto; min-height:0 }

/* ---- round 14, motion: a sheet rises with a small spring (where the browser can draw it: Safari 17.2, Chrome 113; the older curve stays as the fallback), the web tab bar names its section with a capsule ---- */
@media(max-width:900px) and (prefers-reduced-motion:no-preference){
  .modal{ animation:sheetUp .28s cubic-bezier(.32,.72,0,1) }
  @supports (animation-timing-function:linear(0, 1)){ .modal{ animation:sheetUp .55s linear(0, .22 5%, .6 11%, .88 17%, 1.03 24%, 1.05 29%, 1.02 37%, .995 47%, 1 62%, 1) } }
}
.tabbar button[aria-current="true"]{ background:color-mix(in srgb, var(--company-primary, var(--c-primary)) 12%, transparent); border-radius:18px }
/* with several currencies the month's hero is a compact strip per currency (two full cards pushed the first unit off the screen) */
.chero.sm{ padding:14px 16px 13px; border-radius:22px } .chero.sm .chero-fig b{ font-size:calc(30px * var(--dt-cap,1)) } .chero.sm .chero-pc b{ font-size:calc(24px * var(--dt-cap,1)) } .chero.sm .chero-bar{ height:10px; margin-top:10px } .chero.sm .chero-lg{ display:none }
html:root .ucard.cc .cc-top h4 .linkish{ display:inline; margin-block:0; min-height:44px }   /* the name is a full 44 pt target (it measured 41.7 in English, 42.8 in Arabic) */
html:root .ucard.cc .cc-top h4{ display:flex; gap:.4em; align-items:baseline; flex-wrap:nowrap } html:root .ucard.cc .cc-top h4 .linkish{ flex:1 1 auto; min-width:0 }
html:root .ucard.cc .cc-top h4 > bdi{ flex:none; white-space:nowrap }
@media(prefers-color-scheme:dark){ html.native-ios .dtile.warn{ background:#3A3120 } }   /* the native dark page: the 30-day leases tile was a light cream with white figures (seen in the iPad simulator) */

/* ---- round 14, dark: the company-coloured cards keep their colour (their ink is chosen for it), but sit on the dark page with a hairline of light, a deeper shadow and a quieter glint, so they read as lit objects instead of bright patches ---- */
html[data-company-dark="true"] .ledger, html[data-company-dark="true"] .chero, html[data-company-dark="true"] body .morelist .morebrand{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.09), 0 26px 40px -26px #000 !important }
html[data-company-dark="true"] .ledger::before{ opacity:.55 }
@media(prefers-color-scheme:dark){ html.native-ios .ledger, html.native-ios .chero, html.native-ios body .morelist .morebrand{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.09), 0 26px 40px -26px #000 !important } html.native-ios .ledger::before{ opacity:.55 } }
.uh-rent{ flex-wrap:wrap } .uh-chip{ max-width:100% } .uh-av{ flex:none; min-width:54px }   /* at the largest text size the status chip drops under the rent instead of leaving the card */

/* ---- Collection with several currencies: one card, a row per currency (the boss's review of round 14) ---- */
.chero.multi{ padding:16px 18px 6px; display:flex; flex-direction:column }
.chero.multi .chero-row{ padding:12px 0 14px } .chero.multi .chero-row + .chero-row{ border-top:1px solid color-mix(in srgb, currentColor 22%, transparent) }
.chero.multi .chero-top{ align-items:baseline; flex-wrap:wrap } .chero.multi .chero-fig b{ font-size:calc(30px * var(--dt-cap,1)) }
.chero-of{ font-size:calc(13px * var(--dt,1)); opacity:.9 } .chero-of b{ font-size:calc(15px * var(--dt,1)); margin-inline-start:4px }
.chero.multi .chero-bar{ height:10px; margin-top:10px }
/* the collection bar of a property card sits on the card's last line, so neighbours with a shorter address line up */
.pcard{ display:flex; flex-direction:column; align-items:stretch } .pcard-info{ flex:1 } .pcard-coll{ margin-top:auto; padding-top:10px }
/* a request card keeps its own surface, so on a wide dark page (two columns) it does not melt into the page */
.rqrow{ background:var(--card); box-shadow:var(--sh-1) }
/* the small percentage chip on a property photo is nearly opaque already: no blur layer per card (one backdrop layer per screen is the tab bar) */
.pcard-occ{ backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(14,26,44,.8) }
/* every column keeps its month name (the owner, 2026-11-02); an Arabic name stays at 12 px at every text size, so August beside September keeps a gap of
   about 9 px at 375 px (it grew to 13.8 px at the largest size and the names touched). The figures above the bars still grow. A tap shows the month and amount */
html[dir="rtl"] .dh-col em{ font-size:12px }
.dh-col[data-tip]{ cursor:pointer }

/* ---- Contracts on a phone (the look pass of the UI sweep): a contract reads as an entry with a heading, where it was nine label and value lines in a box
   inside the card. The unit leads with its property beside it and the days left at the end of that line; the tenant and the scans button share the next
   line; the facts follow as label and value. Nothing is hidden: the same nine cells, placed. The "nothing here" row keeps its own shape ---- */
@media(max-width:640px){
  body[data-view="contracts"] table.stack tr[data-tenant]{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:8px; align-items:center; margin:0; padding:14px 18px; border:0; border-top:1px solid var(--line-soft); border-radius:0; background:transparent }
  body[data-view="contracts"] table.stack tr[data-tenant]:first-child{ border-top:0 }
  body[data-view="contracts"] table.stack tr[data-tenant]:active{ background:var(--surface-3) }
  body[data-view="contracts"] table.stack tr[data-tenant] > td{ grid-column:1 / -1; border:0 }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(-n+3)::before, body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(8)::before{ content:none }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(2){ grid-column:1; grid-row:1; padding:0; font-size:calc(18px * var(--dt,1)); letter-spacing:-.01em }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(1){ grid-column:2; grid-row:1; padding:0; justify-content:flex-start; text-align:start; color:var(--muted); font-size:calc(14px * var(--dt,1)) }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(8){ grid-column:3; grid-row:1; padding:0; justify-content:flex-end }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(3){ grid-row:2; padding:6px 0 8px; font-size:calc(16px * var(--dt,1)) }
  body[data-view="contracts"] table.stack tr[data-tenant] > td:nth-child(3) > .cv{ display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:start }
}
