/* Sumer Operation Center: projects page.
   SOC-P02: first design. SOC-P08 (2026-11-16): owner design, a first-glance overview only.
   Layout: header over the sky of the background, content below the gold band.
   Wide (>= 1280px): overview + latest updates on one side, the project explorer beside them.
   Tablet and phone: one column (overview, explorer, latest updates). The previous files are in assets/archive/. */
:root {
  --bg: #030915;
  --text: #eef3fa;
  --muted: #a9b9cd;
  --faint: #7d90aa;
  --cyan: #38d6ff;
  --gold: #d9a04a;
  --gold2: #e2a94f;
  --dev: #facc15;
  --done: #22c55e;
  --unknown: #a3a3a3;
  --plan: #9fb0c6;
  --track: rgba(120, 150, 190, .22);
  --line: rgba(90, 200, 245, .38);
  /* bg-desktop (1672x941, cover, center top): band top row 140, band bottom row 205;
     the space between the winged bulls is 1208 image px wide. */
  --s: max(calc(100vw / 1672), calc(100vh / 941));
  --band-top: max(8.37vw, 14.88vh);
  --band-bottom: max(12.26vw, 21.79vh);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.bg { position: fixed; inset: 0; background: url(../login/bg-desktop.webp) center top / cover no-repeat; }
.bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 9, 21, .05) 0%, rgba(3, 9, 21, .10) 25%, rgba(3, 9, 21, .45) 60%, rgba(3, 9, 21, .6) 100%); }

/* ===== Header (over the sky, above the gold band) ===== */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--band-top); min-height: 96px; padding: 10px 6.9vw 0; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* Sumer Operation Center logo (owner, 2026-11-25), in place of the Sumer mark and word. */
.logo { flex: none; display: block; width: 84px; height: 84px; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(240, 196, 110, .45), 0 0 16px rgba(70, 170, 255, .25); }
.sep { align-self: stretch; width: 1px; margin: 8px 0; background: linear-gradient(180deg, transparent, rgba(230, 236, 245, .55), transparent); }
.names .ar { font-weight: 700; font-size: 28px; line-height: 1.2; color: #f3f6fb; }
.names .en { font-weight: 500; font-size: 26px; line-height: 1.2; color: #f3f6fb; }
.names .kicker { margin-top: 4px; font-size: 11px; letter-spacing: .32em; color: #c8d6e6; }
.tools { display: flex; align-items: center; gap: 18px; }
.secure { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.25;
  color: #eafff2; background: rgba(6, 40, 30, .55); border: 1px solid rgba(61, 220, 132, .65); box-shadow: 0 0 12px rgba(61, 220, 132, .25); }
.secure .en { font-size: 11.5px; color: #7ff0b0; }
.secure svg { width: 24px; height: 24px; fill: none; stroke: #7ff0b0; stroke-width: 1.8; stroke-linecap: round; }
.user { display: flex; align-items: center; gap: 10px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(230, 236, 245, .35); }
.user svg { flex: none; width: 34px; height: 34px; fill: none; stroke: #dfe7f1; stroke-width: 1.4; }
.who { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #eef3fa; }
.out { flex: none; padding: 6px 14px; border: 1px solid rgba(170, 195, 225, .45); border-radius: 9px;
  color: #dfe7f1; text-decoration: none; font-size: 13.5px; transition: border-color .15s, color .15s; }
.out:hover { border-color: var(--cyan); color: #fff; }
.out:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ===== Layout (below the gold band, between the winged bulls) ===== */
.layout { position: relative; z-index: 1; display: grid; gap: 18px; align-items: start;
  width: min(1400px, calc(1208 * var(--s)), calc(100vw - 32px)); margin: 0 auto;
  padding-top: max(16px, calc(var(--band-bottom) - max(var(--band-top), 96px) + 14px)); }

.panel { position: relative; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 22, 38, .84), rgba(4, 13, 25, .88));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(56, 214, 255, .08), 0 0 22px rgba(56, 214, 255, .16), inset 0 0 18px rgba(56, 214, 255, .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.ph .en { font-size: 14px; font-weight: 500; color: var(--muted); }
.ph svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Overview numbers */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { --c: var(--cyan); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(10, 28, 48, .6); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.k-dev { --c: var(--dev); }
.k-done { --c: var(--done); }
.k-avg { --c: #7aa7ff; }
.kpi svg { flex: none; width: 38px; height: 38px; padding: 7px; border-radius: 10px; fill: none; stroke: var(--c);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.kn { font: 800 28px/1.05 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--c); }
.kl { color: var(--muted); font-size: 13px; }

/* Explorer */
.exhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.exactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addplan { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #dfe7f1; background: rgba(6, 18, 32, .75); border: 1px dashed rgba(170, 195, 225, .6); }
.addplan svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.addplan:hover { border-color: var(--cyan); color: #fff; }
.addplan:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
select, input { font: inherit; color: var(--text); }
.sort select { height: 36px; padding: 0 10px; border-radius: 9px; background: rgba(6, 18, 32, .75); border: 1px solid var(--line); }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; height: 40px; border-radius: 10px;
  background: rgba(6, 18, 32, .7); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 214, 255, .15); }
.search svg { flex: none; width: 20px; height: 20px; margin: 0 12px; fill: none; stroke: #c9d6e6; stroke-width: 1.7; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 12px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--faint); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #dfe7f1; background: rgba(10, 28, 48, .6); border: 1px solid rgba(150, 190, 230, .35); }
.fchip b { font-weight: 700; color: var(--muted); }
.fchip[aria-pressed="true"] { color: #031421; background: linear-gradient(180deg, #8af5ff, #2bd3ea); border-color: #9ef4ff;
  box-shadow: 0 0 12px rgba(56, 214, 255, .45); }
.fchip[aria-pressed="true"] b { color: #031421; }
.fchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Project cards (owner, 2026-11-16): 4 per row on wide screens, no description.
   The card is a size container: everything inside scales with the card width (cqi), so the layout
   stays the same when the card grows or shrinks. Reference width about 236px; clamp() keeps text readable. */
.explorer { container-type: inline-size; container-name: ex; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@container ex (min-width: 430px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ex (min-width: 660px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container ex (min-width: 880px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { --c: var(--unknown); container-type: inline-size; display: flex; flex-direction: column; padding: 12px; border-radius: 11px;
  background: rgba(9, 25, 44, .72); border: 1px solid rgba(110, 170, 225, .28); transition: border-color .15s, box-shadow .15s; }
.card > * + * { margin-top: clamp(8px, 4.2cqi, 14px); }
.card:hover { border-color: rgba(90, 210, 255, .6); box-shadow: 0 0 14px rgba(56, 214, 255, .18); }
.card[data-state="dev"] { --c: var(--dev); }
.card[data-state="done"] { --c: var(--done); }
.card[data-state="plan"] { --c: var(--plan); }
.ctop { display: flex; align-items: center; gap: clamp(8px, 4.2cqi, 14px); }
.clogo { flex: none; display: grid; place-items: center; width: clamp(34px, 17cqi, 54px); aspect-ratio: 1; border-radius: clamp(8px, 4cqi, 12px); overflow: hidden;
  background: rgba(10, 30, 52, .9); border: 1px solid rgba(110, 170, 225, .35); }
.clogo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.clogo svg, .rlogo svg { width: 60%; height: 60%; fill: none; stroke: #9fdcff; stroke-width: 1.6; stroke-linejoin: round; }
.ctitle { flex: 1; min-width: 0; }
/* SOC-P16 (P2): what waits for the owner, like "قراراتك المطلوبة" in the dashboard */
.owe { flex: none; display: inline-flex; align-items: center; gap: .3em; padding: .2em .55em; border-radius: 999px; line-height: 1;
  font-size: clamp(11px, 4.8cqi, 13px); color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .55); }
.owe .oi { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.owe b { font-weight: 800; }
.pname { flex: 1; min-width: 0; margin: 0; font-size: clamp(13px, 6.4cqi, 18px); font-weight: 700; line-height: 1.3; color: #f3f6fb;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { flex: none; padding: .15em .75em; border-radius: 7px; font-size: clamp(11px, 4.8cqi, 13px); font-weight: 700; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: clamp(5px, 2.6cqi, 8px); }
.pleft { display: inline-flex; align-items: center; gap: clamp(5px, 2.6cqi, 9px); min-width: 0; }
.prog .lbl, .prog .none { color: var(--muted); font-size: clamp(11px, 4.8cqi, 13px); white-space: nowrap; }
.prog .pct { font: 800 clamp(15px, 7.2cqi, 21px)/1 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--c); }
.bar { height: clamp(5px, 2.6cqi, 8px); border-radius: 999px; background: var(--track); overflow: hidden; }
.bar .fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(270deg, var(--cyan), #1f7bff);
  box-shadow: 0 0 8px rgba(56, 214, 255, .5); transition: width .4s ease; }
.card[data-state="done"] .bar .fill { background: linear-gradient(270deg, #4ade80, var(--done)); box-shadow: 0 0 8px rgba(34, 197, 94, .45); }
.cf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: clamp(8px, 4.2cqi, 14px); }
.card > .cf { margin-top: auto; }
.meta { display: inline-flex; align-items: center; gap: .35em; min-width: 0; color: var(--faint); font-size: clamp(11px, 4.6cqi, 13px); white-space: nowrap; }
.meta.stale { color: #f5b14a; }  /* SOC-P15 (P3): no change for more than 14 days */
.meta .mi { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.open { flex: none; padding: .6em 1em; border: 1px solid rgba(190, 250, 255, .7); border-radius: 8px;
  background: linear-gradient(180deg, #8af5ff 0%, #2bd3ea 55%, #13b8d6 100%); color: #03131d; text-decoration: none;
  font: 700 clamp(12px, 5cqi, 14px)/1 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", sans-serif;
  box-shadow: 0 0 10px rgba(56, 214, 255, .4); transition: filter .15s, box-shadow .15s; }
.open:hover { filter: brightness(1.06); box-shadow: 0 0 18px rgba(56, 214, 255, .7); }
.open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Planned project (SOC-P12): same card; Edit instead of the dashboard link */
.edit { flex: none; padding: .6em 1em; border: 1px solid rgba(170, 195, 225, .55); border-radius: 8px; cursor: pointer;
  background: rgba(10, 28, 48, .6); color: #dfe7f1;
  font: 700 clamp(12px, 5cqi, 14px)/1 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", sans-serif;
  transition: border-color .15s, color .15s; }
.edit:hover { border-color: var(--cyan); color: #fff; }
.edit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.err { margin: 0; color: #fca5a5; font-size: 13px; }
.empty { margin: 8px 0; color: var(--muted); text-align: center; }
.exfoot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(150, 195, 235, .2);
  color: var(--muted); font-size: 13px; }
.exfoot b { color: var(--text); }

/* Latest updates */
.rlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rlist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text);
  background: rgba(10, 28, 48, .55); border: 1px solid rgba(110, 170, 225, .22); transition: border-color .15s; }
.rlist a:hover { border-color: rgba(90, 210, 255, .6); }
.rlist a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.rlogo { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; overflow: hidden;
  background: rgba(10, 30, 52, .9); border: 1px solid rgba(110, 170, 225, .3); }
.rlogo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.rtime { flex: none; color: var(--faint); font-size: 12px; }

/* Planned project form (SOC-P12) */
.pdlg { width: min(460px, calc(100vw - 32px)); padding: 0; border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(8, 22, 38, .97), rgba(4, 13, 25, .98)); border: 1px solid var(--line);
  box-shadow: 0 0 26px rgba(56, 214, 255, .22); }
.pdlg::backdrop { background: rgba(2, 6, 14, .68); }
.pdlg form { display: grid; gap: 14px; padding: 20px; }
.pdt { margin: 0; font-size: 18px; }
.pf { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pf small { color: var(--faint); font-size: 12px; }
.pf input[type="text"], .pf textarea { width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 15px; resize: vertical;
  background: rgba(6, 18, 32, .8); border: 1px solid var(--line); outline: 0; }
.pf input[type="text"]:focus, .pf textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 214, 255, .15); }
.plogo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plogo .clogo { width: 48px; border-radius: 10px; }
.pbtn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #dfe7f1; background: rgba(10, 28, 48, .6); border: 1px solid rgba(170, 195, 225, .45); }
.pbtn:hover { border-color: var(--cyan); color: #fff; }
.pbtn:focus-visible, .pfile:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pfile { position: relative; }
.pfile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pbtn.primary { color: #03131d; font-weight: 700; border-color: rgba(190, 250, 255, .7);
  background: linear-gradient(180deg, #8af5ff 0%, #2bd3ea 55%, #13b8d6 100%); }
.pbtn.primary:disabled { opacity: .6; cursor: wait; }
.pbtn.danger { margin-inline-start: auto; color: #fca5a5; border-color: rgba(240, 82, 82, .55); }
.pact { display: flex; gap: 10px; flex-wrap: wrap; }
.perr { margin: 0; color: #fca5a5; font-size: 13px; }
.load { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; color: #fca5a5;
  background: rgba(60, 10, 10, .55); border: 1px solid rgba(240, 82, 82, .5); }
.foot { position: relative; z-index: 1; width: min(1400px, calc(100vw - 32px)); margin: 18px auto 0; padding-bottom: 22px;
  text-align: center; color: var(--faint); font-size: 12px; }
.trial { position: fixed; top: 8px; left: 50%; z-index: 3; transform: translateX(-50%); margin: 0;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(40, 24, 0, .78); border: 1px solid rgba(245, 180, 70, .6); color: #ffd58a; font-size: 12.5px; }

/* Wide: overview and latest updates beside the explorer (the side column is on the right in RTL) */
@media (min-width: 1280px) {
  .layout { grid-template-columns: minmax(300px, 350px) 1fr; grid-template-rows: auto 1fr; grid-template-areas: "overview explorer" "recent explorer"; }
  .overview { grid-area: overview; }
  .recent { grid-area: recent; align-self: start; }
  .kpi { gap: 10px; padding: 12px 10px; }
  .kpi svg { width: 34px; height: 34px; padding: 6px; }
  .kl { white-space: nowrap; font-size: 12.5px; }
  .explorer { grid-area: explorer; min-height: 100%; }
}
/* Laptop and landscape tablet: one column; the four numbers in one row */
@media (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .rlist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ===== Phones and portrait tablets: bg-mobile (941x1672) =====
   band top row 213, band bottom row 282; the content starts just below the band. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  :root { --band-top: max(22.64vw, 12.74vh); --band-bottom: max(29.97vw, 16.87vh); }
  .bg { background-image: url(../login/bg-mobile.webp); }
  .top { height: auto; min-height: 0; padding: 10px 16px 0; align-items: flex-start; }
  .brand { gap: 12px; }
  .logo { width: 54px; height: 54px; border-radius: 9px; }
  .names .ar { font-size: 19px; }
  .names .en { font-size: 15px; }
  .names .kicker { display: none; }
  .secure { display: none !important; }
  .user { padding: 0; border: 0; gap: 8px; }
  .user svg, .who { display: none; }
  .out { padding: 6px 12px; font-size: 13px; background: rgba(4, 13, 25, .55); }
  .layout { width: calc(100vw - 24px); gap: 12px;
    padding-top: max(12px, calc(var(--band-bottom) + 8px - 10px - 62px)); }
  .panel { padding: 14px; border-radius: 12px; }
  .ph { margin-bottom: 10px; font-size: 17px; }
  .ph .en { font-size: 12.5px; }
  .ph svg { width: 22px; height: 22px; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .kpi svg { width: 30px; height: 30px; padding: 5px; }
  .kn { font-size: 22px; }
  .kl { font-size: 12px; }
  .sort select { height: 34px; }
  .filters { gap: 10px; }
  .search { flex-basis: 100%; height: 42px; }
  .chips { width: 100%; }
  .rlist { grid-template-columns: 1fr; }
  .foot { width: calc(100vw - 24px); }
  .trial { top: auto; bottom: 10px; }
}
/* Phones: the four numbers as 2 x 2 */
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { flex-direction: row; align-items: center; }
}
/* Portrait tablets: the content starts below the winged bulls (row 362) */
@media (min-width: 561px) and (orientation: portrait) and (max-width: 1100px) {
  :root { --band-bottom: max(38.47vw, 21.65vh); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===== Project panel (SOC-P17): beside the cards; full screen on phones ===== */
.card[data-pick] { cursor: pointer; }
.card[data-pick]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card[data-selected="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(56, 214, 255, .35); }
.drawer { position: fixed; z-index: 4; top: 12px; bottom: 12px; left: 12px; width: min(440px, calc(100vw - 24px));
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #060f1c linear-gradient(180deg, #08162a, #040d19); border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(56, 214, 255, .08), 0 0 30px rgba(0, 0, 0, .55), 0 0 22px rgba(56, 214, 255, .18); }
.dhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(150, 195, 235, .2); }
.dhead .clogo { width: 44px; }
.dhead .clogo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.dtitle { flex: 1; min-width: 0; }
.dtitle h2 { margin: 0; font-size: 18px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsub { margin-top: 2px; color: var(--faint); font-size: 12px; text-align: end; }
.dclose { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  background: rgba(10, 28, 48, .6); border: 1px solid rgba(170, 195, 225, .45); color: #dfe7f1; }
.dclose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dclose:hover { border-color: var(--cyan); }
.dclose:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dbody { flex: 1; overflow-y: auto; padding: 6px 16px 14px; scrollbar-width: thin; }
.dsec { padding: 12px 0; border-bottom: 1px solid rgba(150, 195, 235, .14); }
.dsec:last-child { border-bottom: 0; }
.dsec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: #f3f6fb; }
.dsec h3 b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px;
  color: #031421; background: linear-gradient(180deg, #8af5ff, #2bd3ea); }
.dsec dl { margin: 0; display: grid; gap: 6px; }
.drow { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.drow dt { position: relative; padding-inline-start: 14px; color: var(--muted); }
.drow dt::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--s); }
.drow { --s: #7d90aa; }
.drow[data-src="auto"] { --s: var(--cyan); }
.drow[data-src="tracker"] { --s: var(--gold2); }
.drow dd { margin: 0; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.drow[data-src="none"] dd { color: var(--faint); }
.drow dd.stale { color: #f5b14a; }
.drow dd a { color: #8fe6ff; }
.dnote { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(150, 195, 235, .2); }
.dlegend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--faint); font-size: 12px; }
.dlegend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-inline-start: 6px; }
.s-auto { background: var(--cyan); } .s-tracker { background: var(--gold2); } .s-none { background: #7d90aa; }
.dfoot .open { font-size: 14px; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .drawer { top: 0; bottom: 0; left: 0; width: 100vw; border-radius: 0; }
  body.panel-open { overflow: hidden; }
  .drow { grid-template-columns: 8.5em 1fr; }
}
/* Wide screens: while the panel is open the page moves beside it (cards are never hidden under it) */
@media (min-width: 1101px) and (orientation: landscape), (min-width: 1101px) and (min-height: 0) {
  body.panel-open .layout, body.panel-open .foot { width: auto; margin-left: calc(min(440px, 100vw - 24px) + 28px); margin-right: 16px; }
}
