/* Maramer · Pricing Tracker — design tokens + Liquid Glass */
:root {
  --navy: #0a2a54; --blue: #1b86c7; --cyan: #4bd6f8; --sky: #6dbdff;
  --ink: #0f1b2d; --ink2: #2c3a52; --ink3: #4a5668;
  --lg-bg: rgba(255,255,255,.32); --lgs-bg: rgba(255,255,255,.58);
  --gb-a: rgba(255,255,255,.95); --gb-b: rgba(255,255,255,.55); --gs-a: #fff; --gs-b: rgba(255,255,255,.6);
  --lgs-sh: 0 12px 36px rgba(10,42,84,.10);
  --line: rgba(10,42,84,.09); --track: rgba(10,42,84,.10); --pill: rgba(255,255,255,.92);
  --field: rgba(255,255,255,.75); --field-line: rgba(10,42,84,.16);
  --th: rgba(10,42,84,.86); --th-ink: #fff;
  --risk: #b42318; --watch: #9a5b00; --info: #0c4e99; --ok: #1d6b48;
  --risk-bg: rgba(180,35,24,.08); --watch-bg: rgba(154,91,0,.10); --info-bg: rgba(12,78,153,.10); --ok-bg: rgba(29,107,72,.10); --mute-bg: rgba(10,42,84,.06);
  --ev-submit: #d93636; --ev-submit2: #ff8a7a; --ev-discuss: #1f9d63; --ev-discuss2: #7ee0b0; --ev-bond: #e0a100; --ev-bond2: #ffd666;
  --ev-submit-ink: #b42318; --ev-discuss-ink: #1d6b48; --ev-bond-ink: #8a5300;
  --card: rgba(255,255,255,.62); --card-sh: 0 6px 18px rgba(10,42,84,.08);
  --col-alt: rgba(255,255,255,.32);
  --accent: #0a2a54; --accent-ink: #fff;
  --bg: radial-gradient(1000px 600px at 85% -10%, rgba(75,214,248,.35), transparent 60%), radial-gradient(900px 700px at 0% 40%, rgba(27,134,199,.22), transparent 60%), radial-gradient(800px 600px at 60% 110%, rgba(109,189,255,.32), transparent 60%), linear-gradient(160deg, #eef4fb 0%, #d8e5f4 100%);
  --blob1: rgba(75,214,248,.25); --blob2: rgba(27,134,199,.16);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #fff; --ink2: rgba(255,255,255,.82); --ink3: rgba(255,255,255,.64);
  --lg-bg: rgba(255,255,255,.04); --lgs-bg: rgba(8,24,50,.45);
  --gb-a: rgba(255,255,255,.45); --gb-b: rgba(255,255,255,.15); --gs-a: rgba(255,255,255,.5); --gs-b: rgba(255,255,255,.2);
  --lgs-sh: 0 20px 50px rgba(0,0,0,.25);
  --line: rgba(255,255,255,.10); --track: rgba(255,255,255,.12); --pill: rgba(255,255,255,.92);
  --field: rgba(255,255,255,.07); --field-line: rgba(255,255,255,.18);
  --th: rgba(255,255,255,.07); --th-ink: rgba(255,255,255,.82);
  --risk: #ff8a7a; --watch: #f0b45a; --info: #8ec9f2; --ok: #5cc596;
  --risk-bg: rgba(255,138,122,.12); --watch-bg: rgba(240,180,90,.14); --info-bg: rgba(142,201,242,.14); --ok-bg: rgba(92,197,150,.14); --mute-bg: rgba(255,255,255,.08);
  --ev-submit-ink: #ff8a7a; --ev-discuss-ink: #5cc596; --ev-bond-ink: #f0b45a;
  --card: rgba(255,255,255,.07); --card-sh: 0 6px 18px rgba(0,0,0,.25);
  --col-alt: rgba(255,255,255,.05);
  --accent: #fff; --accent-ink: #061428;
  --bg: radial-gradient(1100px 650px at 85% -10%, rgba(27,134,199,.50), transparent 60%), radial-gradient(900px 700px at 0% 45%, rgba(75,214,248,.16), transparent 60%), radial-gradient(900px 600px at 55% 110%, rgba(12,78,153,.55), transparent 60%), linear-gradient(160deg, #0b2c57 0%, #061428 70%);
  --blob1: rgba(75,214,248,.22); --blob2: rgba(109,189,255,.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); min-height: 100%; }
body {
  font-family: Cairo, 'Segoe UI', Tahoma, sans-serif; color: var(--ink);
  background: transparent; transition: color .3s ease;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { letter-spacing: -0.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.blob { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob.a { background: var(--blob1); inset-inline-start: -120px; top: 20%; }
.blob.b { background: var(--blob2); inset-inline-end: -140px; top: -120px; }

/* glass */
.lg, .lgs { position: relative; isolation: isolate; }
.lg { background: var(--lg-bg); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 1px 1px rgba(255,255,255,.1); }
.lgs { background: var(--lgs-bg); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 4px 4px 4px rgba(0,0,0,.05), inset 0 1px 1px rgba(255,255,255,.15), var(--lgs-sh); }
.lg::before, .lgs::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.lg::before { background: linear-gradient(180deg, var(--gb-a) 0%, var(--gb-b) 20%, transparent 40%, transparent 60%, var(--gb-b) 80%, var(--gb-a) 100%); }
.lgs::before { background: linear-gradient(180deg, var(--gs-a) 0%, var(--gs-b) 20%, transparent 40%, transparent 60%, var(--gs-b) 80%, var(--gs-a) 100%); }

/* layout */
.frame { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.page { display: flex; flex-direction: column; gap: 16px; animation: pageIn .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grid2 { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 16px; }
.grid2e { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: 28px; padding: 20px; min-width: 0; }
.panel.tight { padding: 14px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14.5px; font-weight: 700; }
.muted { color: var(--ink3); font-size: 12.5px; }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.hr { height: 1px; background: var(--line); margin: 4px 0; }

/* header */
.top { z-index: 50; border-radius: 999px; padding: 8px 10px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
[dir="rtl"] .top { padding: 8px 18px 8px 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand .t { display: flex; flex-direction: column; line-height: 1.2; }
.brand .t b { font-size: 14px; }
.brand .t span { font-size: 12px; color: var(--ink3); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink2); transition: background .25s, color .25s; }
.nav a:hover { background: var(--mute-bg); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--risk); color: #fff; font-size: 11px; margin-inline-start: 6px; }
.tools { display: flex; align-items: center; gap: 6px; }
.iconbtn { border: 0; cursor: pointer; border-radius: 999px; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; background: transparent; }
.seg { display: inline-flex; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; cursor: pointer; width: 32px; height: 30px; border-radius: 999px; display: grid; place-items: center; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; }
.menu { position: absolute; top: 46px; inset-inline-end: 0; min-width: 220px; border-radius: 18px; padding: 10px; z-index: 30; display: flex; flex-direction: column; gap: 4px; }
.menu button { text-align: start; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.menu button:hover { background: var(--mute-bg); }

/* buttons + fields */
.btn { text-decoration: none; border: 0; cursor: pointer; border-radius: 999px; padding: 0 16px; min-height: 38px; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .2s ease, opacity .2s, background .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: var(--mute-bg); color: var(--ink); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: var(--risk); color: #fff; }
.btn.sm { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.link { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; font-size: 13px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink2); min-width: 0; }
label.f .hint { font-weight: 500; color: var(--ink3); font-size: 11.5px; }
.in { width: 100%; min-height: 40px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--field); padding: 8px 12px; font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,134,199,.18); }
textarea.in { min-height: 76px; resize: vertical; }
.in[dir="ltr"] { text-align: left; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.err { color: var(--risk); background: var(--risk-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.okmsg { color: var(--ok); background: var(--ok-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 20px; background: var(--mute-bg); color: var(--ink2); }
.chip.risk { color: var(--risk); background: var(--risk-bg); }
.chip.watch { color: var(--watch); background: var(--watch-bg); }
.chip.info { color: var(--info); background: var(--info-bg); }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.solid-risk { background: var(--risk); color: #fff; }
.chip.dash { background: transparent; border: 1px dashed currentColor; }
.trk-ico { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; flex: none; }

/* tabs */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; min-height: 34px; transition: background .3s ease, color .3s ease; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs .sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }

/* hero */
.hero { border-radius: 32px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; }
.hero .hslot { display: grid; min-height: 118px; }
.greet { grid-area: 1/1; margin: 0; font-weight: 500; font-size: 46px; line-height: 1.15; transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease; }
.greet .acc { font-family: 'Noto Naskh Arabic', serif; font-weight: 600; color: var(--blue); }
html[lang="en"] .greet { letter-spacing: -0.03em; }
html[lang="en"] .greet .acc { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 500; }
.greet.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); pointer-events: none; }
.widget { grid-area: 1/1; align-self: center; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; transition: opacity .9s ease .25s, transform .9s cubic-bezier(.22,1,.36,1) .25s; }
.widget.out { opacity: 0; transform: translateY(14px); pointer-events: none; }
.widget img { height: 62px; width: auto; }
.widget .sep { width: 1px; align-self: stretch; min-height: 48px; background: var(--line); }
.widget .clk { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.widget .dg { font-size: 14px; font-weight: 600; color: var(--ink2); }
.widget .dh { font-size: 13px; color: var(--ink3); }
.w { display: inline-block; opacity: 0; animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; margin-inline-end: .28em; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.kpi { border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .l { font-size: 12px; font-weight: 600; color: var(--ink3); }
.kpi .v { font-size: 30px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--ink3); }
.kpi .h { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* next accordion */
.acc { display: flex; gap: 8px; min-height: 180px; }
.acc .it { border: 0; border-radius: 26px; text-align: start; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; overflow: hidden; min-width: 0; padding: 16px 18px; flex: 0 0 128px; transition: flex .75s cubic-bezier(.22,1,.36,1), opacity .4s; opacity: .9; }
.acc .it.on { flex: 1 1 0px; opacity: 1; }
.acc .n { font-size: 64px; font-weight: 700; line-height: .85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transition: font-size .7s cubic-bezier(.22,1,.36,1); }
.acc .it.on .n { font-size: 100px; }
.acc .nm { font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acc .it.on .nm { font-size: 15px; color: var(--ink); -webkit-line-clamp: unset; }
.acc .det { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.22,1,.36,1), opacity .45s; width: 100%; }
.acc .it.on .det { grid-template-rows: 1fr; opacity: 1; transition-delay: 0s, .15s; }
.acc .det > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }

.alert { border-radius: 16px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; text-decoration: none; }
a.alert:hover { background: var(--mute-bg); }

/* timeline */
.tl { border-radius: 32px; padding: 20px 0 0; overflow: hidden; }
.tl .head { padding: 0 20px 14px; position: relative; z-index: 2; }
.tl .wm { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); width: min(520px, 60%); opacity: .07; pointer-events: none; animation: logoFloat 9s ease-in-out infinite; z-index: 0; }
:root[data-theme="dark"] .tl .wm { opacity: .10; }
@keyframes logoFloat { 0%,100% { transform: translate(-50%,-54%); } 50% { transform: translate(-50%,-46%); } }
.tl .ridge { position: absolute; bottom: 0; inset-inline-start: 0; width: 200%; pointer-events: none; z-index: 0; }
.ridge-a { height: 80%; animation: ridgeDrift 70s linear infinite alternate; }
.ridge-b { height: 55%; animation: ridgeDrift 45s linear infinite alternate-reverse; }
@keyframes ridgeDrift { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.cols { position: relative; z-index: 1; display: flex; overflow-x: auto; margin: 0; padding: 0; scroll-snap-type: x proximity; }
.cols::-webkit-scrollbar { height: 8px; } .cols::-webkit-scrollbar-thumb { background: var(--track); border-radius: 8px; }
.tcol { position: relative; list-style: none; flex: 1 0 186px; min-height: 380px; padding: 0 14px 70px; scroll-snap-align: start; }
.tcol:nth-child(odd) { background: var(--col-alt); }
.tcol + .tcol { border-inline-start: 1px solid var(--line); }
.tcol .dd { font-size: 34px; font-weight: 800; line-height: 1; padding-top: 14px; font-variant-numeric: tabular-nums; }
.tcol .mm { font-size: 13px; font-weight: 600; color: var(--ink3); }
.tcol .dot { position: absolute; inset-inline-start: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 6px rgba(27,134,199,.14), 0 0 20px rgba(27,134,199,.35); }
:root[data-theme="dark"] .tcol .dot { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 20px rgba(255,255,255,.5); }
.tcol .dot.hot { background: var(--risk); animation: dotPulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 6px var(--risk-bg), 0 0 20px rgba(255,90,70,.55); }
@keyframes dotPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.tcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: start; width: 100%; border: 0; cursor: pointer; gap: 2px; border-radius: 12px; padding: 10px 12px; background: var(--card); box-shadow: var(--card-sh); transition: opacity .35s, transform .3s, outline-color .3s; animation: itemIn .55s cubic-bezier(.22,1,.36,1) both; outline: 2px solid transparent; outline-offset: 2px; }
.tcard:hover { transform: translateY(-3px); }
.tcard.dim { opacity: .28; }
.tcard.on { transform: translateY(-2px); }
.tcard .bd { position: absolute; inset-inline: 0; height: 4px; background-size: 200% 100%; animation: bandFlow 3.2s linear infinite; }
.tcard .bd.t { top: 0; } .tcard .bd.b { bottom: 0; }
.tcard .ty { font-size: 12.5px; font-weight: 700; }
.tcard .nm { font-size: 13px; font-weight: 600; line-height: 1.4; }
.ev-submit .bd { background-image: linear-gradient(90deg, var(--ev-submit), var(--ev-submit2), var(--ev-submit)); } .ev-submit .ty { color: var(--ev-submit-ink); } .ev-submit.on { outline-color: var(--ev-submit); }
.ev-discuss .bd { background-image: linear-gradient(90deg, var(--ev-discuss), var(--ev-discuss2), var(--ev-discuss)); } .ev-discuss .ty { color: var(--ev-discuss-ink); } .ev-discuss.on { outline-color: var(--ev-discuss); }
.ev-bond .bd { background-image: linear-gradient(90deg, var(--ev-bond), var(--ev-bond2), var(--ev-bond)); } .ev-bond .ty { color: var(--ev-bond-ink); } .ev-bond.on { outline-color: var(--ev-bond); }
@keyframes bandFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.empty { padding: 30px 20px; text-align: center; color: var(--ink3); }

/* table */
.tbl-wrap { overflow-x: auto; border-radius: 18px; }
table.tbl { width: 100%; min-width: 860px; border-collapse: collapse; }
.tbl th { background: var(--th); color: var(--th-ink); font-size: 12.5px; font-weight: 700; text-align: start; padding: 10px 12px; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13.5px; }
.tbl tbody tr { cursor: pointer; transition: background .3s ease, opacity .3s ease; }
.tbl tbody tr:hover { background: var(--mute-bg); }
.tbl tbody tr.sel { background: rgba(27,134,199,.13); }
.tbl tbody tr.faded { opacity: .45; }
.tbl.static tbody tr { cursor: default; }
.cards-m { display: none; flex-direction: column; gap: 10px; }
.cardm { border-radius: 20px; padding: 14px; text-decoration: none; display: block; }

/* tender page */
.thead { border-radius: 30px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.thead h1 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 10px; }
.dbox { border-radius: 18px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.dbox .l { font-size: 12px; font-weight: 700; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.dbox .v { font-size: 17px; font-weight: 800; }
.dbox .s { font-size: 12px; font-weight: 600; }
.mk { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* assignment board */
.board { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 16px; }
.pool { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; padding: 2px; }
.person { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 8px 10px; cursor: grab; user-select: none; border: 1px solid transparent; background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.person:active { cursor: grabbing; }
.person.picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,134,199,.2); }
.person .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--mute-bg); flex: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 10px; }
.slot { border-radius: 18px; padding: 12px; min-height: 92px; display: flex; flex-direction: column; gap: 8px; border: 1.5px dashed var(--field-line); transition: border-color .2s, background .2s, transform .2s; }
.slot.empty { opacity: .55; }
.slot.over { border-color: var(--blue); background: rgba(27,134,199,.10); opacity: 1; transform: scale(1.02); }
.slot.filled { border-style: solid; border-color: transparent; background: var(--card); box-shadow: var(--card-sh); opacity: 1; }
.slot .who { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.x { border: 0; background: var(--mute-bg); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex: none; }

/* checklist */
.ph { border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ci { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci.na .tt { text-decoration: line-through; opacity: .55; }
.ci input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; flex: 1; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .6s ease; }

/* tasks */
.task { border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.reply { border-inline-start: 3px solid var(--line); padding-inline-start: 10px; font-size: 13px; }

/* toast + modal */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; border-radius: 16px; padding: 12px 16px; max-width: min(560px, calc(100vw - 32px)); font-weight: 600; font-size: 13.5px; animation: pageIn .3s ease both; display: flex; gap: 10px; align-items: flex-start; }
.toast.bad { color: var(--risk); }
.toast.good { color: var(--ok); }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(6,20,40,.35); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; animation: pageIn .35s cubic-bezier(.22,1,.36,1) both; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; z-index: 1; }
.login .box { width: min(420px, 100%); border-radius: 32px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.login img { height: 54px; width: auto; align-self: center; }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--ink3); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--blue); animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.foot span { border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--ink3); }

@media (max-width: 1100px) {
  .grid2, .grid2e { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .pool { flex-direction: row; flex-wrap: wrap; max-height: none; }
}
@media (max-width: 760px) {
  .frame { padding: 12px 16px 32px; gap: 12px; }
  .top { border-radius: 24px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .brand .t span { display: none; }
  .greet { font-size: 32px; }
  .hero { padding: 18px; border-radius: 26px; }
  .hero .hslot { min-height: 92px; }
  .widget img { height: 42px; } .widget .sep { display: none; } .widget .clk { font-size: 30px; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .acc { flex-direction: column; min-height: 0; }
  .acc .it, .acc .it.on { flex: none; width: 100%; }
  .acc .n, .acc .it.on .n { font-size: 44px; }
  .acc .det { grid-template-rows: 1fr; opacity: 1; }
  .tbl-wrap.resp { display: none; }
  .cards-m { display: flex; }
  .panel { padding: 16px; border-radius: 24px; }
  .thead h1 { font-size: 21px; }
  .ci { grid-template-columns: auto minmax(0,1fr) auto; }
  .ci .wt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) { .lg, .lgs { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* date input */
.din { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.din-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 12px; }
[dir="rtl"] .din-row { padding: 2px 12px 2px 4px; }
.din-row input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: start; padding: 6px 0; }
[dir="rtl"] .din-row input { text-align: right; }
.din-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,134,199,.18); }
.din-bad { border-color: var(--risk) !important; }
.din-dis { opacity: .5; }
.din-cal { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--ink3); flex: none; }
.din-cal:hover { background: var(--mute-bg); color: var(--ink); }
.din-msg { font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.din-msg.bad { color: var(--risk); }
.din-pop { position: fixed; z-index: 120; box-shadow: 0 18px 50px rgba(10,42,84,.25); border: 1px solid var(--line); color: var(--ink); font-family: Cairo, 'Segoe UI', Tahoma, sans-serif; width: 292px; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
:root:not([data-theme="dark"]) .din-pop { background: rgba(255,255,255,.96); }
:root[data-theme="dark"] .din-pop { background: rgba(10,30,60,.97); }
.din-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.din-wd { font-size: 11px; font-weight: 700; color: var(--ink3); padding: 4px 0; }
.din-wd.we { opacity: .55; }
.din-d { border: 0; background: transparent; height: 34px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.din-d:hover:not(:disabled) { background: var(--mute-bg); }
.din-d.we { color: var(--ink3); }
.din-d.tod { box-shadow: inset 0 0 0 1.5px var(--blue); }
.din-d.sel { background: var(--accent); color: var(--accent-ink); }
.din-d:disabled { opacity: .22; cursor: not-allowed; }
.checkline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.checkline input { width: 16px; height: 16px; accent-color: var(--blue); }
.fcol { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink2); min-width: 0; }
.fcol .hint { font-weight: 500; color: var(--ink3); font-size: 11.5px; }

/* mobile agenda (upcoming dates) */
.only-mobile { display: none; }
.ag-row { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: start; }
.ag-date { border-radius: 18px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 6px 0; }
.ag-date b { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ag-date span { font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.ag-date.hot b, .ag-date.hot span { color: var(--risk); }
.ag-it { border: 0; background: none; padding: 2px 0; cursor: pointer; display: flex; align-items: flex-start; gap: 8px; text-align: start; font-size: 13px; line-height: 1.5; color: var(--ink); }
.ag-it b { font-weight: 700; }
.ag-sh { flex: none; width: 10px; height: 10px; margin-top: 6px; }
.ag-sh.submit { border-radius: 50%; background: var(--navy); }
:root[data-theme="dark"] .ag-sh.submit { background: #fff; }
.ag-sh.discuss { border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; background: var(--blue); }
:root[data-theme="dark"] .ag-sh.discuss { background: #8ec9f2; }
.ag-sh.bond { border-radius: 3px; background: var(--ev-bond); }
@media (max-width: 760px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}
.ag-row + .ag-row { border-top: 1px solid var(--line); padding-top: 12px; }
:root:not([data-theme="dark"]) .ag-row + .ag-row { border-top-color: rgba(10,42,84,.13); }
:root[data-theme="dark"] .ag-row + .ag-row { border-top-color: rgba(255,255,255,.14); }
:root:not([data-theme="dark"]) .modal { background: rgba(255,255,255,.95); }
:root[data-theme="dark"] .modal { background: rgba(10,30,60,.96); }
.modal-bg { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* native dropdown lists in dark mode */
:root[data-theme="dark"] select.in { color-scheme: dark; }
:root[data-theme="dark"] select.in option, :root[data-theme="dark"] select.in optgroup { background-color: #0d2547; color: #ffffff; }
:root:not([data-theme="dark"]) select.in option { background-color: #ffffff; color: #0f1b2d; }
/* account menu: solid surface so the page underneath never shows through */
.menu { box-shadow: 0 18px 50px rgba(6,20,40,.35); border: 1px solid var(--line); }
:root:not([data-theme="dark"]) .menu { background: rgba(255,255,255,.98); }
:root[data-theme="dark"] .menu { background: #0d2547; }
.menu, .menu b { color: var(--ink); }
.menu .muted { color: var(--ink3); }

/* ===== milestone timeline (desktop) ===== */
.omark { display: inline-grid; place-items: center; flex: none; overflow: hidden; position: relative; color: #fff; box-shadow: 0 6px 16px rgba(10,42,84,.18); }
.omark.img { background: #fff; border: 1px solid var(--line); }
.omark.img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; box-sizing: border-box; }
.omark.sym svg { position: absolute; inset: 0; margin: auto; }
.omark.sym b { position: relative; font-weight: 800; letter-spacing: .02em; font-family: Cairo, sans-serif; }

.mt-wrap { overflow-x: auto; padding: 6px 0 22px; position: relative; z-index: 1; }
.mt-wrap::-webkit-scrollbar { height: 8px; } .mt-wrap::-webkit-scrollbar-thumb { background: var(--track); border-radius: 8px; }
.mt { display: grid; grid-template-rows: auto 54px auto; column-gap: 0; min-width: min-content; padding: 0 12px; }
.mt-cell { display: flex; flex-direction: column; align-items: center; padding: 0 8px; position: relative; }
.mt-cell.top { justify-content: flex-end; padding-bottom: 14px; }
.mt-cell.bot { justify-content: flex-start; padding-top: 14px; }

/* the arrow strip */
.mt-chev { position: relative; height: 54px; background: var(--seg, #8aa0b8); margin-inline-end: -10px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
  display: grid; place-items: center; filter: drop-shadow(0 6px 10px rgba(10,42,84,.18)); }
[dir="rtl"] .mt-chev { clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 20px 100%, 0 50%); }
.mt-chev.tail { background: rgba(138,160,184,.45); }
:root[data-theme="dark"] .mt-chev.tail { background: rgba(255,255,255,.18); }
.mt-node { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.28); position: relative; }
.mt-node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--seg); }

/* date label */
.mt-date { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.05; }
.mt-date b { font-size: 34px; font-weight: 800; color: var(--seg); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
:root[data-theme="dark"] .mt-date b { filter: brightness(1.55); }
.mt-date span { font-size: 13px; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.mt-date em { font-style: normal; font-size: 11.5px; font-weight: 700; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--mute-bg); color: var(--ink2); }
.mt-date em.hot { background: #f07c1e; color: #fff; }

/* connector line from the strip to the card */
.mt-cell.top:has(.mt-card)::after, .mt-cell.bot:has(.mt-card)::before { content: ""; position: absolute; left: 50%; width: 2px; height: 14px; background: var(--line); transform: translateX(-50%); }
.mt-cell.top:has(.mt-card)::after { bottom: 0; }
.mt-cell.bot:has(.mt-card)::before { top: 0; }

/* card */
.mt-card { width: 100%; max-width: 230px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; position: relative;
  background: var(--card); box-shadow: var(--card-sh); border-top: 3px solid var(--seg); }
.mt-cell.top .mt-card { border-top: 0; border-bottom: 3px solid var(--seg); }
.mt-it { border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: start; padding: 4px; border-radius: 12px; color: var(--ink);
  transition: opacity .3s, background .25s, transform .25s; animation: itemIn .5s cubic-bezier(.22,1,.36,1) both; outline: 2px solid transparent; outline-offset: 1px; }
.mt-it:hover { background: var(--mute-bg); }
.mt-it.one { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 4px; }
.mt-it.dim { opacity: .3; }
.mt-it.on { background: var(--mute-bg); }
.mt-it.on.ev-submit { outline-color: var(--ev-submit); } .mt-it.on.ev-discuss { outline-color: var(--ev-discuss); } .mt-it.on.ev-bond { outline-color: var(--ev-bond); }
.mt-logo { position: relative; display: inline-flex; padding: 5px; }
.mt-it.one .mt-logo::before, .mt-it.one .mt-logo::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--seg, #1b86c7); }
.mt-it.one .mt-logo::before { top: 0; inset-inline-start: 0; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 6px; }
.mt-it.one .mt-logo::after { bottom: 0; inset-inline-end: 0; border-inline-start: 0; border-top: 0; border-end-end-radius: 6px; }
.mt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mt-txt .ty { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.mt-it.ev-submit .ty { color: var(--ev-submit-ink); } .mt-it.ev-discuss .ty { color: var(--ev-discuss-ink); } .mt-it.ev-bond .ty { color: var(--ev-bond-ink); }
.mt-txt .nm { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-txt .ow { font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mt-it.one .mt-txt { align-items: center; }
@media (prefers-reduced-motion: reduce) { .mt-it { animation: none; } }
/* message state stripes */
.task.t-unack { border-inline-start: 4px solid var(--watch); background: var(--watch-bg); }
.task.t-unack.late { border-inline-start-color: var(--risk); background: var(--risk-bg); }
.task.t-acked { border-inline-start: 4px solid var(--ok); }
.task.t-closed { opacity: .62; border-inline-start: 4px solid var(--line); }
/* "My responsibilities" side drawer */
.duty-tab { position: fixed; z-index: 70; inset-inline-end: 0; top: 42%; border: 0; cursor: pointer; background: var(--blue); color: #fff;
  padding: 14px 8px; border-start-start-radius: 14px; border-end-start-radius: 14px; box-shadow: 0 8px 24px rgba(10,42,84,.3); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
[dir="ltr"] .duty-tab { border-radius: 14px 0 0 14px; }
[dir="rtl"] .duty-tab { border-radius: 0 14px 14px 0; inset-inline-end: auto; left: 0; }
.duty-tab-t { writing-mode: vertical-rl; letter-spacing: .02em; }
.duty-tab .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f07c1e; color: #fff; font-size: 11px; }
.duty-bg { position: fixed; inset: 0; z-index: 71; background: rgba(6,20,40,.3); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
.duty-panel { position: fixed; z-index: 72; top: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease; opacity: 0; pointer-events: none; }
[dir="rtl"] .duty-panel { left: 12px; transform: translateX(-110%); }
[dir="ltr"] .duty-panel { right: 12px; transform: translateX(110%); }
.duty-panel.on { transform: none; opacity: 1; pointer-events: auto; }
:root:not([data-theme="dark"]) .duty-panel { background: rgba(255,255,255,.97); }
:root[data-theme="dark"] .duty-panel { background: rgba(10,30,60,.97); }
.duty { display: block; text-decoration: none; color: var(--ink); border-radius: 18px; padding: 12px; transition: transform .2s, box-shadow .2s; }
.duty:hover { transform: translateY(-2px); box-shadow: var(--card-sh); }
.duty-line { font-size: 12.5px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .duty-tab { top: auto; bottom: 18px; padding: 10px 14px; flex-direction: row; border-radius: 999px !important; inset-inline-end: 16px; left: auto !important; }
  [dir="rtl"] .duty-tab { left: 16px !important; }
  .duty-tab-t { writing-mode: horizontal-tb; }
}
.duty-tab { gap: 10px; padding: 16px 9px; font-size: 13.5px; }
.duty-tab:hover { filter: brightness(1.1); }
.duty-help { font-size: 12.5px; border-radius: 14px; padding: 8px 12px; background: var(--mute-bg); }
.duty-help summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.duty-help ul { margin: 8px 0 2px; padding-inline-start: 18px; line-height: 1.8; color: var(--ink2); }
