/* Owner Notifications Center (#/host/notifications, public/owner-notifications.js): Moataz's approved design
   (2026-11-07 reference, 1536×1024), measured against it pixel by pixel. Colours from his list: deep navy #10283D,
   primary navy #203D4E, gold #C7A250, gradient #E0B755 → #B98412, background #F5F7F9, cards #FFFFFF, text #172536,
   borders #E0E5EB, soft gold #FFF4DD, unread red #DC2626, success green #16A34A.
   Logical properties throughout, so English mirrors the Arabic layout. */
.onc {
  /* The owner shell's :root tokens (owner-shell.css); the fallbacks are the same values. */
  --onc-deep: var(--os-ink, #10283D); --onc-navy: var(--os-navy, #203D4E); --onc-gold: var(--os-gold, #C7A250); --onc-g1: #E0B755; --onc-g2: #B98412;
  --onc-bg: var(--os-bg, #F5F7F9); --onc-text: #172536; --onc-line: var(--os-line, #E0E5EB); --onc-soft: #FFF4DD; --onc-red: #DC2626; --onc-green: #16A34A;
  --onc-muted: #5B6676; --onc-pink: #E0338C; --onc-tcol: 100px; --onc-bcol: 165px;
  --onc-grad: linear-gradient(100deg, var(--onc-g1) 0%, #D3A23A 45%, var(--onc-g2) 100%);
  position: relative; color: var(--onc-text); background: var(--onc-bg); padding-block-end: 24px;
  font-variant-numeric: lining-nums;
}
html[dir="ltr"] .onc { --onc-tcol: 124px; --onc-bcol: 190px; }
html[dir="rtl"] .onc { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
/* One sans family for every heading on this page, as in the approved image (the site's serif display font is not used here). */
.onc h1, .onc h2, .onc h3 { font-family: inherit; letter-spacing: 0; }
.onc svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Banner: his coastal villa-and-pool image, deep navy sky behind white text, fading into the page at the bottom. */
.onc-hero { position: relative; height: 260px; overflow: hidden; background: var(--onc-bg); isolation: isolate; }
.onc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; z-index: -2; }
html[dir="ltr"] .onc-hero > img { transform: scaleX(-1); }
.onc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245,247,249,0) 52%, rgba(245,247,249,.55) 72%, var(--onc-bg) 96%); }
.onc-hero-text { position: absolute; inset-inline-start: 30px; inset-block-start: 22px; max-width: min(760px, 56%); color: #fff; }
html[dir="ltr"] .onc-hero-text { max-width: min(620px, 47%); }
html[dir="ltr"] .onc-hero p { font-size: 1.1rem; }
.onc-hero h1 { display: flex; align-items: center; gap: 18px; margin: 0; font-size: 2.15rem; font-weight: 800; line-height: 1.25; color: #fff; letter-spacing: 0; }
.onc-hero-ic { width: 48px; height: 48px; color: #F2C14E; stroke-width: 2.2; flex: none; }
.onc-hero p { margin: 8px 0 0; font-size: 1.2rem; font-weight: 500; color: #F3F6FA; line-height: 1.6; text-wrap: pretty; }

/* Four summary cards over the bottom of the banner; the first is the gold total. */
.onc-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-block-start: -122px; margin-inline: 18px 30px; }
.onc-stat { position: relative; display: flex; align-items: center; gap: 26px; height: 104px; padding: 0 30px; border: 1px solid #E6EBF1; border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%); color: var(--onc-text); box-shadow: 0 10px 24px rgba(16,40,61,.10), inset 0 1px 0 #fff;
  cursor: pointer; text-align: start; font: inherit; transition: transform .15s ease, box-shadow .15s ease;
  justify-content: center; container-type: inline-size; }
.onc-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,40,61,.14); }
.onc-stat:focus-visible { outline: 3px solid var(--onc-gold); outline-offset: 2px; }
.onc-stat-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; color: #D69A1E; }
.onc-sic { width: 54px; height: 54px; stroke-width: 1.7; }
.onc-stat:nth-child(4) .onc-stat-ic { color: #6E7A88; }
.onc-stat-txt { display: grid; gap: 4px; justify-items: start; }
.onc-stat-txt b { font-size: 2rem; line-height: 1.05; font-weight: 800; color: var(--onc-text); }
.onc-stat-txt span { font-size: 1.08rem; font-weight: 700; color: var(--onc-text); line-height: 1.3; text-wrap: balance; }
/* Narrow cards (four across on a laptop, two across on a phone): every label keeps room for two lines, so the
   numbers and labels of all four cards sit on the same lines whether or not a label wraps. */
@container (max-width: 320px) { .onc-stat-txt span { min-height: 2.6em; } }
.onc-stat.is-gold { background: var(--onc-grad); border-color: #E7C979; color: #fff; box-shadow: 0 12px 26px rgba(185,132,18,.30), inset 0 1px 0 rgba(255,255,255,.35); }
.onc-stat.is-gold .onc-stat-ic, .onc-stat.is-gold .onc-stat-txt b, .onc-stat.is-gold .onc-stat-txt span { color: #fff; }
.onc-stat-rule { align-self: stretch; width: 1px; margin-block: 20px; margin-inline: -10px; background: rgba(255,255,255,.45); }

/* Filter chips on the reading side; "Select all" and the gold settings button at the far end. */
.onc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 18px 0 26px; }
html[dir="ltr"] .onc-bar { margin: 30px 26px 0 18px; }
.onc-chips { display: flex; flex-wrap: wrap; gap: 15px; }
html[dir="ltr"] .onc-chips { gap: 10px; }
html[dir="ltr"] .onc-tools { gap: 14px; }
html[dir="ltr"] .onc-gold { min-width: 0; }
.onc-tools { display: flex; gap: 30px; margin-inline-start: auto; }
.onc-chip, .onc-ghost, .onc-gold, .onc-more, .onc-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.onc-chip { padding: 0 14px; background: linear-gradient(180deg, #FFFFFF, #F6F8FA); color: var(--onc-text); border: 1px solid #D9DFE6; box-shadow: 0 2px 4px rgba(16,40,61,.05); }
.onc-chip:hover { border-color: var(--onc-gold); }
.onc-chip.is-on { background: var(--onc-grad); color: #fff; border-color: #D8B05A; box-shadow: 0 6px 14px rgba(185,132,18,.28); }
.onc-chip bdi { font-weight: 700; }
.onc-cic { width: 21px; height: 21px; flex: none; }
.onc-chip .onc-dot { width: 11px; height: 11px; }
.onc-ghost { background: linear-gradient(180deg, #FFFFFF, #F6F8FA); color: var(--onc-text); border: 1px solid #D9DFE6; padding: 0 18px; }
.onc-ghost:hover:not(:disabled) { border-color: var(--onc-gold); }
.onc-ghost:disabled { opacity: .5; cursor: not-allowed; }
.onc-gold { background: var(--onc-grad); color: #fff; border: 1px solid #D8B05A; padding: 0 22px; min-width: 202px; box-shadow: 0 6px 14px rgba(185,132,18,.28); }
.onc-gold:hover { filter: brightness(1.05); color: #fff; }
.onc-chip:focus-visible, .onc-ghost:focus-visible, .onc-gold:focus-visible, .onc-act:focus-visible, .onc-more:focus-visible, .onc-dots:focus-visible, .onc-check:focus-visible {
  outline: 3px solid var(--onc-navy); outline-offset: 2px; }

.onc-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 18px 0 26px; padding: 10px 14px; border-radius: 12px; background: var(--onc-soft); border: 1px solid #F1D58A; }
html[dir="ltr"] .onc-bulk { margin: 14px 26px 0 18px; }
.onc-bulk b { margin-inline-end: auto; }
.onc-link { background: none; border: 0; padding: 8px 6px; color: var(--onc-navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* The list panel and its rows: thumbnail · title and text · time · action · ⋮ */
.onc-panel { margin: 24px 18px 0 26px; padding: 20px 14px 18px; background: #fff; border-radius: 18px; border: 1px solid #EDF1F5; box-shadow: 0 8px 24px rgba(16,40,61,.06); }
html[dir="ltr"] .onc-panel { margin: 24px 26px 0 18px; }
.onc-list { display: grid; gap: 9px; }
.onc-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) var(--onc-tcol) var(--onc-bcol) 30px; align-items: center; column-gap: 32px;
  min-height: 82px; padding: 4px 16px 4px 12px; border: 1px solid var(--onc-line); border-radius: 12px; background: #FAFBFD; position: relative; }
html[dir="ltr"] .onc-row { padding: 4px 12px 4px 16px; }
.onc-row:has(.onc-check) { grid-template-columns: 30px 145px minmax(0, 1fr) var(--onc-tcol) var(--onc-bcol) 30px; column-gap: 24px; }
.onc-row.is-featured { min-height: 106px; background: linear-gradient(270deg, #FFF7E8 0%, var(--onc-soft) 60%, #FFF0D2 100%); border-color: #F3E2BD; }
.onc-row.is-picked { border-color: var(--onc-gold); box-shadow: 0 0 0 2px rgba(199,162,80,.25); }
.onc-pic { display: flex; justify-content: center; align-items: center; }
.onc-photo { display: block; width: 145px; height: 96px; border-radius: 10px; overflow: hidden; background: #E8EEF3; box-shadow: 0 2px 6px rgba(16,40,61,.12); }
.onc-row:not(.is-featured) .onc-photo { height: 74px; width: 142px; }
.onc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onc-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--onc-navy);
  color: #fff; font-weight: 800; font-size: 1.6rem; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(16,40,61,.18); flex: none; }
.onc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onc-avatar-ag { background: none; }
.onc-avatar-ag .ag-av { width: 100%; height: 100%; font-size: inherit; }
.onc-avatar-initials { background: linear-gradient(135deg, #203D4E, #10283D); color: #F1D58A; }
.onc-disc { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; flex: none; }
.onc-disc .onc-ic { width: 34px; height: 34px; }
.onc-disc-blue { background: #E3EDF8; color: #12355A; }
.onc-disc-gold { background: radial-gradient(circle at 35% 30%, #F7C948, #E69A0C 75%); color: #fff; box-shadow: 0 4px 10px rgba(230,154,12,.3); }
.onc-disc-gold b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.onc-disc-navy { background: #EAF0F5; color: var(--onc-navy); }
.onc-body { min-width: 0; }
.onc-row.is-featured .onc-body { margin-block-start: -12px; }
@media (max-width: 1280px) { .onc-row.is-featured .onc-body { margin-block-start: 0; } }
.onc-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.28rem; font-weight: 800; line-height: 1.25; }
.onc-tic { width: 30px; height: 30px; flex: none; }
.onc-tone-red { color: #B91C1C; }
.onc-tone-red .onc-tic { color: var(--onc-red); }
.onc-tone-green { color: var(--onc-green); }
.onc-tone-navy { color: var(--onc-text); }
.onc-tone-pink, .onc-tone-gold { color: var(--onc-text); }
.onc-tone-pink .onc-tic { color: var(--onc-pink); }
.onc-tone-gold .onc-tic { color: var(--onc-gold); }
.onc-body p { margin: 0; color: var(--onc-text); font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.onc-time { align-self: start; margin-block-start: 14px; display: inline-flex; align-items: center; gap: 9px; color: var(--onc-muted); font-size: .92rem; white-space: nowrap; }
.onc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--onc-red); flex: none; }
.onc-side { display: flex; justify-content: center; }
.onc-act { width: 100%; min-width: 165px; min-height: 42px; padding: 0 14px; background: #FFFBF3; color: #9A6A12; border: 2px solid #C08E2C; font-size: 1.05rem; gap: 14px; }
.onc-act:hover { background: #FFF3DC; }
.onc-act.is-solid { background: var(--onc-grad); color: #fff; border-color: #C9982F; box-shadow: 0 6px 14px rgba(185,132,18,.3); }
.onc-act span { order: 1; }
.onc-arrow { order: 2; width: 20px; height: 20px; flex: none; }
.onc-menu { position: relative; display: flex; justify-content: center; }
.onc-dots { display: grid; place-items: center; width: 30px; height: 44px; border: 0; background: none; color: var(--onc-text); border-radius: 10px; cursor: pointer; padding: 0; }
.onc-dots:hover { background: #EEF2F6; }
.onc-dots svg { width: 26px; height: 26px; stroke-width: 3; }
.onc-dots .onc-ic { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.onc-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 20; min-width: 200px; padding: 6px; background: #fff;
  border: 1px solid var(--onc-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(16,40,61,.16); display: grid; }
html[dir="rtl"] .onc-pop { inset-inline-end: auto; inset-inline-start: 0; }
.onc-pop[hidden] { display: none; }
.onc-pop.is-up { top: auto; bottom: calc(100% + 4px); }
.onc-pop > * { display: block; padding: 10px 12px; border: 0; background: none; text-align: start; font: inherit; color: var(--onc-text); border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.onc-pop > *:hover, .onc-pop > *:focus-visible { background: #F3F6F9; outline: none; }
.onc-check { display: grid; place-items: center; width: 30px; height: 40px; border: 0; background: none; color: var(--onc-navy); cursor: pointer; border-radius: 8px; padding: 0; }
.onc-check .onc-ic { width: 26px; height: 26px; }
.onc-check[aria-checked="true"] { color: var(--onc-g2); }

.onc-morewrap { display: flex; justify-content: center; margin-top: 28px; }
.onc-more { min-width: 250px; min-height: 44px; background: linear-gradient(180deg, #FFFFFF, #F3F6F9); color: var(--onc-text); border: 1px solid #CFD8E1; border-radius: 24px; font-size: 1.05rem; }
.onc-more:hover { border-color: var(--onc-gold); }
.onc-foot { text-align: center; margin: 12px 0 0; }
.onc .ah-empty { padding: 40px 16px; }

/* Narrower desktops and tablets: the time sits on the title line, the button under the text. */
@media (max-width: 1280px) {
  .onc-row, :is(.onc-row:has(.onc-check)) { grid-template-columns: 120px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 8px; padding: 12px 16px; }
  .onc-row:has(.onc-check) { grid-template-columns: auto 120px minmax(0, 1fr) auto; }
  .onc-time { grid-row: 1; grid-column: -2 / -1; margin: 0; justify-self: end; }
  .onc-menu { grid-row: 2; grid-column: -2 / -1; justify-self: end; }
  .onc-side { grid-row: 2; grid-column: 2 / 3; justify-content: flex-start; }
  .onc-row:has(.onc-check) .onc-side { grid-column: 3 / 4; }
  .onc-pic { grid-row: 1 / span 2; }
  .onc-photo, .onc-row:not(.is-featured) .onc-photo { width: 120px; height: 80px; }
  .onc-act { width: auto; }
}
/* Four across on a laptop: a little less side padding, so the labels wrap less. */
@media (min-width: 1101px) and (max-width: 1700px) { .onc-stat { padding: 0 18px; gap: 18px; } }
@media (max-width: 1100px) {
  .onc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: -122px; }
  .onc-stat { padding: 0 22px; }
}

/* Phone: compact banner, summary cards two per row, chips scroll sideways, each notification stacks. */
@media (max-width: 640px) {
  .onc { padding-block-end: 90px; }
  .onc-hero > img { object-position: 62% top; }
  html[dir="ltr"] .onc-hero > img { object-position: 38% top; }
  .onc-hero { height: 200px; }
  /* On a phone the title runs across the whole photo: a navy veil behind it keeps it readable (same header navy). */
  .onc-hero::after { background: linear-gradient(180deg, rgba(8,36,58,.66) 0%, rgba(8,36,58,.42) 42%, rgba(8,36,58,0) 62%),
    linear-gradient(180deg, rgba(245,247,249,0) 52%, rgba(245,247,249,.55) 72%, var(--onc-bg) 96%); }
  .onc-hero-text { text-shadow: 0 1px 6px rgba(4,24,42,.55); }
  .onc-hero-text, html[dir="ltr"] .onc-hero-text { inset-inline: 16px; inset-block-start: 14px; max-width: none; }
  html[dir="ltr"] .onc-hero p { font-size: .95rem; }
  .onc-hero h1 { font-size: 1.5rem; gap: 10px; }
  .onc-hero-ic { width: 32px; height: 32px; }
  .onc-hero p { font-size: .95rem; margin-top: 4px; }
  .onc-stats { gap: 10px; margin: -60px 12px 0; }
  .onc-stat { height: auto; min-height: 84px; padding: 12px; gap: 10px; }
  .onc-stat-ic, .onc-sic { width: 34px; height: 34px; }
  .onc-stat-rule { margin: 10px -4px; }
  .onc-stat-txt b { font-size: 1.5rem; }
  .onc-stat-txt span { font-size: .86rem; white-space: normal; }
  .onc-bar, html[dir="ltr"] .onc-bar { margin: 18px 12px 0; gap: 10px; }
  .onc-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .onc-chip { min-height: 42px; padding: 0 12px; font-size: .92rem; }
  .onc-tools { margin-inline-start: 0; width: 100%; gap: 10px; }
  .onc-tools > *, html[dir="ltr"] .onc-tools > * { flex: 1 1 auto; min-width: 0; padding-inline: 10px; gap: 8px; font-size: .92rem; white-space: normal; text-align: center; line-height: 1.2; }
  .onc-bulk, html[dir="ltr"] .onc-bulk { margin: 12px 12px 0; }
  .onc-panel, html[dir="ltr"] .onc-panel { margin: 14px 12px 0; padding: 10px; }
  .onc-row, :is(.onc-row:has(.onc-check)), html[dir="ltr"] .onc-row { grid-template-columns: 72px minmax(0, 1fr) 28px; column-gap: 10px; row-gap: 10px; padding: 12px; min-height: 0; }
  .onc-row.is-featured { min-height: 0; }
  .onc-row:has(.onc-check) .onc-check { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; z-index: 1; background: #fff; width: 32px; height: 32px; }
  .onc-pic { grid-row: 1; align-self: start; }
  .onc-photo, .onc-row:not(.is-featured) .onc-photo { width: 72px; height: 56px; }
  .onc-avatar, .onc-disc { width: 52px; height: 52px; font-size: 1.15rem; }
  .onc-disc .onc-ic { width: 26px; height: 26px; }
  .onc-disc-gold b { font-size: 1.5rem; }
  .onc-title { font-size: 1.02rem; gap: 6px; }
  .onc-tic { width: 22px; height: 22px; }
  .onc-body p { font-size: .9rem; }
  .onc-time, :is(.onc-row:has(.onc-check) .onc-time) { grid-row: 2; grid-column: 2 / 4; align-self: center; justify-self: end; font-size: .82rem; }
  .onc-side, :is(.onc-row:has(.onc-check) .onc-side) { grid-row: 2; grid-column: 1 / 3; justify-self: start; justify-content: flex-start; }
  .onc-act { width: auto; min-width: 150px; font-size: .95rem; }
  .onc-menu { grid-row: 1; grid-column: 3; align-self: start; justify-self: end; width: 28px; }
  .onc-more { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .onc-stat { transition: none; } .onc-stat:hover { transform: none; } }

/* Phones: the floating AI button steps aside while it would cover a notification or an action (owner-notifications.js). */
@media (max-width: 760px) {
  body.onc-launch-aside .as-launch { opacity: 0; pointer-events: none; }
}
