/* Studio panel — light pages, navy menu on the right, Bitfa gold (owner, 2026-11-23: the look of her printed report).
   Right-to-left, phone first. No external requests: fonts and images are served from here.
   The Content-Security-Policy allows no inline style, so every size that depends on data is an SVG attribute.
   Sections: base · buttons · sign-in · shell (right-hand menu) · cards and tiles · tables · report · overview ·
   task flow and board · one content · team chart · editors · people and roles · small screens · print. */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(Vazirmatn-Regular.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(Vazirmatn-Medium.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(Vazirmatn-Bold.woff2) format("woff2"); }

:root {
  --bg: #f2f4f9; --card: #fff; --inset: #f5f6fa; --line: #e5e8f0; --line2: #eef0f6; --text: #0f172a; --text2: #334155;
  --muted: #6b7489; --brand: #f5b400; --brand-soft: #fff4d6; --brand-ink: #0b1330;
  --navy: #0b1330; --navy2: #1e2a5a; --on-navy: #c9d0e6; --on-navy-muted: #8590b5;
  --ok: #12a150; --ok-soft: #e6f6ec; --bad: #e5484d; --bad-soft: #fdecec; --warn: #9a6a00; --warn-soft: #fff4d6;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
  --side: 256px;
}
/* a data series: team 1, team 2, everyone else, and «late» — the same colours in every chart, table and the team chart */
.s0 { --c: #f5b400; } .s1 { --c: #1e2a5a; } .s2 { --c: #8c95b5; } .s3 { --c: #e5484d; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.8 Vazirmatn, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1 { margin: 0 0 4px; font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.5; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 3px; background: var(--brand); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy2); }
small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 13.5px; }
.card > h2 + .muted { margin: -6px 0 14px; font-size: 12.5px; }
.note { margin-top: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px; font: 700 15.5px/1 Vazirmatn, Tahoma, sans-serif;
  text-decoration: none; cursor: pointer; transition: opacity .15s, background .15s; }
.btn.primary { background: var(--brand); color: var(--brand-ink); width: 100%; }
.btn.ghost { background: var(--card); color: var(--text2); border-color: var(--line); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 500; }
.btn:hover { opacity: .9; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.busy .label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-start: 8px;
  vertical-align: -2px; border: 2px solid var(--brand-ink); border-inline-start-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- sign-in */
body[data-page="login"], body[data-page="link"], body[data-page="404"] {
  background: radial-gradient(900px 400px at 80% -10%, rgba(245, 180, 0, .18), transparent 60%), linear-gradient(160deg, var(--navy), #151f4a);
  color: #fff; }
.login { min-height: 100svh; max-width: 400px; margin: 0 auto; padding: 28px 20px 32px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.login h1 { margin-top: 14px; }
.login .logo { border-radius: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.login .sub, .login .hint, .login .status { color: var(--on-navy); }
.login .sub { margin-bottom: 22px; }
.login section, .login form { width: 100%; }
.login .hint { margin-top: 16px; font-size: 13px; }
.login .lead { font-weight: 500; }
.login .btn.ghost { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, .18); }
.num { margin: 6px auto 16px; font: 700 clamp(56px, 20vw, 76px)/1.15 Vazirmatn, Tahoma, sans-serif; letter-spacing: 6px;
  color: var(--brand); }
.steps { margin: 18px 0 14px; padding: 14px 34px 14px 16px; text-align: start; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; font-size: 14px; }
.steps li + li { margin-top: 4px; }
.status { font-size: 13.5px; margin-bottom: 14px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.alert, .error { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); border: 1px solid #f5c2c2; color: #b42318;
  font-size: 14px; }
.alert { margin-bottom: 16px; }
.error { margin-top: 12px; }

/* ------------------------------------------------- shell: menu on the right
   In a right-to-left page the inline start is the right edge, so the menu sits there. Under 960px it is a drawer
   opened by the checkbox #nav-open (two labels: the «☰» button and the dark sheet behind the drawer). */
.nav-toggle { position: fixed; opacity: 0; pointer-events: none; }
.side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30; width: var(--side); display: flex;
  flex-direction: column; gap: 14px; padding: 20px 14px 14px; color: var(--on-navy);
  background: linear-gradient(180deg, var(--navy) 0%, #0e1838 100%); overflow-y: auto; }
.main { margin-inline-start: var(--side); min-width: 0; }
.topbar, .scrim { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 16px; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand img, .topbar img { border-radius: 10px; }
.brand b { display: block; font-size: 16px; line-height: 1.35; }
.brand small { display: block; color: var(--brand); font-size: 11px; letter-spacing: .3px; }
.menu { display: grid; gap: 3px; align-content: start; flex: 1; }
.group { margin: 4px 10px 4px; color: #6f7ba3; font-size: 11.5px; letter-spacing: .4px; }
.group.low { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--on-navy); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.item.active { background: linear-gradient(90deg, rgba(245, 180, 0, .05), rgba(245, 180, 0, .17)); color: #fff; }
.item.active::before { content: ""; position: absolute; inset-inline-start: -14px; inset-block: 9px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--brand); }
.item.low { min-height: 38px; font-size: 13px; font-weight: 400; color: var(--on-navy-muted); }
.ico { flex: none; fill: currentColor; opacity: .8; }
.item.active .ico { fill: var(--brand); opacity: 1; }
.item.low .ico { width: 17px; height: 17px; opacity: .6; }
.me { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); }
.me .av { grid-row: span 2; align-self: center; }
.me b { color: #fff; font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .title { color: var(--brand); font-size: 12px; font-weight: 500; line-height: 1.5; }
.me form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.linkbtn { padding: 2px 0; border: 0; background: none; color: var(--on-navy-muted); font: 400 12px/1.6 Vazirmatn, Tahoma, sans-serif;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }
.av { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), #ff9500); color: var(--navy); }

@media (max-width: 959px) {
  .main { margin-inline-start: 0; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 56px;
    padding: 0 14px; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(11, 19, 48, .25); }
  .topbar b { flex: 1; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .burger { display: grid; gap: 5px; align-content: center; width: 44px; height: 44px; padding: 0 11px; margin-inline-start: -8px;
    border-radius: 12px; cursor: pointer; }
  .burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
  .nav-toggle:focus-visible ~ .topbar .burger { outline: 2px solid var(--brand); }
  .side { width: min(84vw, 300px); transform: translateX(105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .nav-toggle:checked ~ .side { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(11, 19, 48, .5); }
}

/* --------------------------------------------------------- cards and tiles */
.page { max-width: 1200px; margin: 0 auto; padding: 22px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pagehead { padding: 6px 2px 2px; }
.pagehead .muted { max-width: 760px; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 1px 10px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line); font-size: 12.5px; }
.count { margin-inline-start: 2px; padding: 0 9px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px; }
.badge { display: inline-block; margin-inline-start: 6px; padding: 0 9px; border-radius: 999px; background: var(--line2);
  color: var(--text2); font-size: 11.5px; font-weight: 500; line-height: 2; white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.bad { color: var(--bad); background: var(--bad-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.dot { display: inline-block; width: 9px; height: 9px; margin-inline-end: 6px; border-radius: 3px; background: var(--c); }
.keys { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.keys:empty { display: none; }
.empty { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: var(--card); color: var(--muted); font-size: 14px; }
.foot { color: var(--muted); font-size: 12.5px; padding: 0 2px; }
.quiet { color: var(--muted); }
.codetag { display: inline-block; padding: 0 9px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px;
  font-weight: 700; line-height: 22px; white-space: nowrap; text-decoration: none; unicode-bidi: isolate; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: 14px 8px 12px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line2); text-align: center; }
.tile b { display: block; font-size: 26px; line-height: 1.3; }
.tile span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.tile.hot { background: var(--navy); border-color: var(--navy); }
.tile.hot b { color: var(--brand); font-size: 32px; }
.tile.hot span { color: var(--on-navy); font-weight: 500; }
.tile.bad b { color: var(--bad); }
.tile.zero { opacity: .55; }
.tile.zero b { color: var(--muted); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin: 14px 0 0; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-weight: 700; white-space: nowrap; }

.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text2); text-decoration: none;
  font: 500 13px/1 Vazirmatn, Tahoma, sans-serif; cursor: pointer; white-space: nowrap; }
.filter:hover { border-color: var(--navy2); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(11, 19, 48, .2); }

/* bars and columns (inline SVG) */
svg .track { fill: var(--line2); }
svg rect[class^="s"] { fill: var(--c); }
svg.bar { display: block; width: 100%; height: 10px; border-radius: 6px; }
svg.col { display: block; width: 100%; height: 110px; border-radius: 10px; }
svg.share { display: block; width: 100%; height: 14px; margin-top: 14px; border-radius: 7px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(84px, 140px) minmax(0, 1fr) 34px; align-items: center; gap: 12px; }
.bars .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .nm i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.bars b { text-align: center; }
.bars li.zero { opacity: .5; }
.bars.load li { grid-template-columns: minmax(84px, 140px) minmax(0, 1fr) 104px; }
.bars.load b { text-align: end; white-space: nowrap; }
.bars.load b small { font-weight: 400; font-size: 11.5px; }

/* ----------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { border-collapse: collapse; width: 100%; }
.cmp { border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { padding: 9px 8px; border-top: 1px solid var(--line2); text-align: center; font-size: 13.5px; }
.cmp thead th { border-top: 0; font-weight: 500; white-space: nowrap; background: var(--navy); color: #fff; }
.cmp thead th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.cmp thead th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.cmp tbody th { text-align: start; font-weight: 400; color: var(--muted); }
.cmp tr.sum th, .cmp tr.sum td { font-weight: 700; color: var(--text); font-size: 15px; }
.flow { min-width: 780px; }
.flow th, .flow td { padding: 10px 8px; border-top: 1px solid var(--line2); text-align: start; font-size: 13px; vertical-align: top; }
.flow thead th { border-top: 0; color: var(--muted); font-weight: 500; white-space: nowrap; }
.flow td small { display: block; }
.flow td a { color: var(--text); text-decoration: none; }
.flow td a:hover { text-decoration: underline; }
.flow .code, .flow .code a { font-weight: 700; color: var(--navy2); white-space: nowrap; }
.flow .subj { max-width: 280px; }
.flow tr.late td { background: #fdf3f3; }
.versions { min-width: 720px; }

/* ----------------------------------------------------------------- report */
.hero { padding: 28px 24px 24px; color: #fff;
  background: radial-gradient(1100px 300px at 85% -40%, rgba(245, 180, 0, .24), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy2)); }
.hero > * { max-width: 1152px; margin-inline: auto; }
.hero small { display: block; color: var(--brand); font-size: 12px; letter-spacing: .5px; }
.hero h1 { margin: 8px auto 18px; font-size: clamp(24px, 4.6vw, 36px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 0; }
.facts div { min-width: 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--brand); }
.facts dt { color: var(--muted); font-size: 12px; }
.hero .facts dt { color: #b5bedc; }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.facts.grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 14px; }
.facts.grid div { border-inline-start-color: var(--line); }
.facts.grid dd { font-weight: 500; }
.controls { display: grid; gap: 10px; }
.range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.range label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.range input { width: 122px; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--inset); color: var(--text); font: 500 14px Vazirmatn, Tahoma, sans-serif; text-align: center; }
.days { display: flex; gap: 10px; align-items: end; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 1 0 54px; display: grid; justify-items: center; gap: 3px; text-align: center; }
.day b { font-size: 15px; }
.day span { font-size: 12.5px; font-weight: 500; }
.day small { font-size: 11px; }

/* --------------------------------------------------------------- overview */
.hero.over { padding-bottom: 26px; }
.hrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.hrow h1 { margin: 6px 0 0; }
.hrow .sub { color: #b5bedc; font-size: 13px; }
.hero .filters { max-width: 100%; }
.hero .filter { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: var(--on-navy); }
.hero .filter.active { background: var(--brand); border-color: var(--brand); color: var(--navy); box-shadow: none; }
.kpis { display: grid; grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { min-width: 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); }
.kpi b { display: block; font-size: 30px; line-height: 1.25; }
.kpi span { display: block; color: #b5bedc; font-size: 12.5px; }
.kpi small { display: block; color: #8fa0d0; font-size: 11.5px; letter-spacing: 0; margin-top: 2px; }
.kpi.big { background: linear-gradient(135deg, var(--brand), #ffc93c); border: 0; color: var(--navy); }
.kpi.big b { font-size: 44px; }
.kpi.big span { color: #4d3a00; font-weight: 500; }
.kpi.big small { color: #6b5200; }
.kpi.warn b { color: #ff9a9a; }

.pipe { display: flex; align-items: stretch; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: thin; }
.st { position: relative; flex: 1 0 112px; display: flex; flex-direction: column; align-items: center; padding: 0 4px;
  text-align: center; color: var(--text); text-decoration: none; }
.st::after { content: ""; position: absolute; top: 27px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.st:last-child::after { display: none; }
.st .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0; border-radius: 50%;
  background: var(--card); border: 3px solid var(--line); color: var(--muted); font-size: 20px; font-weight: 700; transition: transform .15s; }
.st.has .dot { border-color: var(--navy); color: var(--navy); }
.st.hot .dot { background: var(--brand); border-color: var(--brand); color: var(--navy); box-shadow: 0 0 0 6px rgba(245, 180, 0, .2); }
.st.end .dot { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
a.st:hover .dot { transform: translateY(-2px); }
.st b { margin-top: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.st small { font-size: 11px; }
.st .hand { margin-top: 3px; padding: 0 8px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: 10.5px; }
.st .tag { margin-top: 4px; padding: 0 9px; border-radius: 999px; background: var(--brand-soft); color: #8a6500; font-size: 10.5px; font-weight: 700; }

.alist { list-style: none; margin: 0; padding: 0; }
.alist li + li { border-top: 1px solid var(--line2); }
.alist a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px;
  color: var(--text); text-decoration: none; }
.alist a:hover b { text-decoration: underline; }
.alist .txt b, .feed .txt b { font-weight: 500; }
.alist .txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alist .txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alist .badge { margin: 0; }
.alist li.ok { padding: 10px 2px; color: var(--ok); }

.tm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 14px; }
.tm + .tm { margin-top: 10px; }
.tm .av { width: 44px; height: 44px; background: var(--c); color: #fff; }
.tm.s0 .av { color: var(--navy); }
.tm .txt { min-width: 0; }
.tm .txt b { display: block; }
.tm .txt small { display: block; }
.tm dl { display: flex; gap: 16px; margin: 0 auto 0 0; margin-inline: auto 0; text-align: center; }
.tm dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.tm dt { color: var(--muted); font-size: 11px; white-space: nowrap; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 13.5px; }
.feed li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 42px; bottom: -6px; width: 2px; background: var(--line2); }
.feed li:last-child::before { display: none; }
.feed .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--line2); font-size: 15px; }
.feed .e-done, .feed .e-approved { background: var(--ok-soft); }
.feed .e-fix, .feed .e-deleted { background: var(--bad-soft); }
.feed .e-accepted, .feed .e-editdue { background: var(--brand-soft); }
.feed .txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .codetag { font-size: 11px; line-height: 20px; }

/* ------------------------------------------------------- task flow: board */
.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding: 6px 0 10px; margin-top: 8px; scrollbar-width: thin; }
.colm { flex: 0 0 262px; display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #eaedf5; }
.colm > small { margin: -6px 6px 2px; font-size: 11px; }
.ch { display: flex; align-items: center; gap: 8px; padding: 2px 6px; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.ch .n { margin-inline-start: auto; padding: 0 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11.5px; line-height: 20px; }
.colm.hot .ch .n { background: var(--brand); color: var(--navy); }
.ch.on { color: var(--navy2); text-decoration: underline; text-underline-offset: 4px; }
.colm .none { margin: 4px 6px 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.tk { display: grid; gap: 6px; padding: 11px 12px; border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none;
  border-inline-start: 4px solid var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .07); transition: transform .15s, box-shadow .15s; }
.tk:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tk.late { border-inline-start-color: var(--bad); }
.tk.old { border-inline-start-color: var(--brand); }
.tk .h { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk .h .codetag { font-size: 11px; line-height: 20px; }
.tk b { font-size: 13.5px; font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk .f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.tk .f .badge { margin: 0; }
.tk .who { color: var(--text2); margin-inline-end: 4px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.recent li + li { padding-top: 8px; border-top: 1px solid var(--line2); }
.recent a { color: var(--text); text-decoration: none; }
.recent a:hover { text-decoration: underline; }
.recent b { color: var(--navy2); margin-inline-end: 4px; }
.recent small { display: block; }

/* ------------------------------------------------------------ one content */
.back { color: var(--muted); font-size: 13px; text-decoration: none; padding: 0 2px; }
.back:hover { color: var(--text); }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.chead .codetag { padding: 1px 12px; font-size: 13px; }
.ctitle { font-size: clamp(19px, 4vw, 24px); }
.now { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #f7dc8d; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; inset-block: 26px 0; inset-inline-start: 12px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); font-size: 13px; line-height: 1; color: #fff; }
.timeline .done .mark { background: var(--ok); border-color: var(--ok); }
.timeline .open .mark { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.timeline .skipped .mark { background: var(--line2); border-color: var(--line2); color: var(--muted); }
.timeline .wait b, .timeline .skipped b { color: var(--muted); font-weight: 500; }
.timeline b { font-size: 14px; }
.timeline .val { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.timeline small { display: block; }

/* -------------------------------------------------------------- team chart
   Her chart: a root box, a line down, one branch per head (in colour), the requesters under it with their pages. */
.chart .root { width: max-content; max-width: 100%; margin: 4px auto 0; padding: 10px 40px; border-radius: 14px; background: #f1efe8;
  border: 1px solid #d9d5c9; font-size: 16px; font-weight: 700; }
.branches { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 0; margin-top: 26px; }
.chart .root + .branches::before { content: ""; position: absolute; top: -26px; left: calc(50% - 1px); width: 2px; height: 26px; background: #9aa3b5; }
.branch { position: relative; display: grid; gap: 12px; align-content: start; padding: 16px 12px 0; border-top: 2px solid #9aa3b5; }
.branch .head { padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--card)); text-align: center; }
.branch .head b { display: block; font-size: 17px; }
.branch .head > span, .node .who > span { display: block; color: var(--muted); font-size: 12.5px; }
.node { margin-inline-start: 20px; padding-inline-start: 18px; border-inline-start: 2px solid #c3c9d6; display: grid; gap: 0; }
.node .who { padding: 9px 14px; border-radius: 14px 14px 0 0; border: 1.5px solid color-mix(in srgb, var(--c) 40%, var(--line));
  border-inline-start: 4px solid var(--c); background: color-mix(in srgb, var(--c) 6%, var(--card)); text-align: center; }
.branch.s1 .node .who, .branch.s1 .head { --c: #1e2a5a; }
.pgs { list-style: none; margin: 0; padding: 8px 12px; border-radius: 0 0 14px 14px; border: 1px solid var(--line); border-top: 0;
  background: #fbfbfd; text-align: center; font-size: 13.5px; }
.pgs:empty { display: none; }
.live { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.live .badge { margin: 0; }

/* ---------------------------------------------------------------- editors */
.ed { min-width: 760px; }
.ed th, .ed td { padding: 11px 8px; border-top: 1px solid var(--line2); text-align: start; font-size: 13.5px; vertical-align: middle; }
.ed thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ed td.num { font-weight: 700; font-size: 15px; }
.ed .barcell { min-width: 150px; }
.ed .badge { margin: 0; }
.pers { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.pers .av { width: 32px; height: 32px; font-size: 13px; background: var(--navy); color: #fff; }

/* -------------------------------------------- overview: orders that wait */
.stuck .sg { padding: 12px 0; border-top: 1px solid var(--line2); }
.stuck .sg:first-of-type { border-top: 0; padding-top: 2px; }
.sgh { display: flex; align-items: flex-start; gap: 12px; }
.sgh .n { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
  background: var(--navy); color: var(--brand); font-weight: 700; }
.sgh b { display: block; font-size: 14px; font-weight: 500; line-height: 1.6; }
.sgh small { display: block; }
.sks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 46px 0 0; margin-inline: 46px 0; }
.sk { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset);
  color: var(--text); text-decoration: none; font-size: 12.5px; line-height: 1.6; max-width: 260px; }
.sk b { color: var(--navy2); }
.sk small { font-size: 11px; }
a.sk:hover { border-color: var(--navy2); }
.sk.late { border-color: #f5c2c2; background: var(--bad-soft); }
.stuck .ok { color: var(--ok); }

/* ------------------------------------------------------- orders' funnel */
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
a.tile.go { color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.tile.go:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--navy2); }
a.tile.go small { display: block; min-height: 16px; font-size: 11px; color: var(--navy2); }
a.tile.go.hot small { color: var(--brand); }
h2.sect { margin: 8px 2px -6px; font-size: 17px; }
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rqh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rqh h2 { margin-bottom: 8px; font-size: 17px; }
.rqh h2 a { color: var(--navy); text-decoration: none; }
.rqh h2 a:hover { text-decoration: underline; }
.rq .more { font-size: 12.5px; white-space: nowrap; }
.mcs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.mc { display: grid; justify-items: center; padding: 6px 4px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line2);
  color: var(--muted); text-decoration: none; font-size: 11.5px; line-height: 1.5; }
.mc b { color: var(--text); font-size: 17px; }
.mc:hover { border-color: var(--navy2); }
.mc.zero { opacity: .55; }
.funnel a.arrow { text-decoration: none; display: grid; }
.funnel a.arrow small { font-size: 11px; font-weight: 400; color: #8a4a4c; text-decoration: underline; }
.proof { padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid #bfe6cc; color: #0d6b36; font-size: 13.5px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel .fs { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 96px; align-items: center; gap: 12px; }
.funnel .fs .nm { font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.funnel .fs .nm small { display: block; font-weight: 400; font-size: 11.5px; }
.funnel .fs b { white-space: nowrap; }
.funnel .fs b small { font-weight: 400; }
.funnel .fs svg.bar { height: 14px; }
.funnel .start .nm { color: var(--navy2); font-weight: 700; }
.funnel .drop { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 12px; align-items: start;
  margin: 0 0 2px; padding: 6px 10px; border-radius: 10px; background: var(--bad-soft); }
.funnel .drop .arrow { color: var(--bad); font-weight: 700; font-size: 13px; }
.funnel .drop .why b { display: block; font-size: 13px; color: #8c1d21; font-weight: 500; }
.funnel .drop .why small { display: block; color: #8a4a4c; font-size: 12px; }
.loss td.n2 { font-weight: 700; font-size: 15px; }
.fun { min-width: 980px; }
.fun th, .fun td { padding: 8px 6px; border-top: 1px solid var(--line2); text-align: center; font-size: 13px; vertical-align: middle; }
.fun thead th { border-top: 0; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.fun tbody th { text-align: start; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fun tbody th a { color: var(--navy2); }
.fun td.n2 { font-weight: 700; }
.fun td.hm { font-weight: 700; }
.fun td.h0 { color: var(--muted); font-weight: 400; }
.fun td.h1 { background: #fdecec; }
.fun td.h2 { background: #fff4d6; }
.fun td.h3 { background: #f3f7e3; }
.fun td.h4 { background: var(--ok-soft); color: #0d6b36; }
.fun td.t { color: var(--warn); font-weight: 700; }
.fun td.z, .rt td.z { color: #b8becc; }
.fun td.end { font-weight: 700; color: var(--ok); }
.fun td.del { font-weight: 700; color: var(--bad); }
.fun td.del small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; line-height: 1.5; }
.fun .more { font-size: 12.5px; white-space: nowrap; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.three h3 { margin: 0 0 8px; font-size: 14px; }
.rt th, .rt td { padding: 7px 6px; border-top: 1px solid var(--line2); text-align: center; font-size: 13px; }
.rt thead th { border-top: 0; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.rt tbody th { text-align: start; font-weight: 500; white-space: nowrap; }
.rt td { font-weight: 700; }
.orders { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ord { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); border-inline-start: 4px solid var(--navy); background: var(--card); }
.ord.done { border-inline-start-color: var(--ok); }
.ord.open { border-inline-start-color: var(--brand); }
.ord.stopped { border-inline-start-color: var(--bad); }
.ord.test { border-inline-start-color: #c3c9d6; background: #fafbfd; }
.oh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.oh b { font-weight: 500; font-size: 14px; }
.oh .badge { margin: 0; }
.path { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.path li { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.path li::after { content: ""; position: absolute; top: 11px; inset-inline-start: calc(50% + 12px); width: calc(100% - 20px); height: 2px; background: var(--line); }
.path li:last-child::after { display: none; }
.path .mk { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); font-size: 12px; line-height: 1; }
.path .lb { font-size: 11px; color: var(--muted); line-height: 1.4; }
.path .ok .mk { background: var(--ok); border-color: var(--ok); color: #fff; }
.path .ok::after { background: var(--ok); }
.path .here .mk { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.path .stop .mk { background: var(--bad); border-color: var(--bad); color: #fff; }
.path .here .lb, .path .stop .lb { color: var(--text); font-weight: 700; }
.st8 { font-size: 13px; line-height: 1.8; }
.st8 .badge { margin: 0 0 0 4px; }
.data { margin-top: 2px; color: var(--muted); font-size: 12px; }
.markf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.markf label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.markf select { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset);
  color: var(--text); font: 500 13px Vazirmatn, Tahoma, sans-serif; }

/* ------------------------------------------------------- people and roles */
.people { list-style: none; margin: 8px 0 0; padding: 0; }
.person { display: grid; grid-template-columns: 10px minmax(0, 1.3fr) minmax(0, 1.2fr) auto; align-items: center;
  gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line2); }
.person:first-child { border-top: 0; }
.who b { font-weight: 500; }
.handles { display: flex; flex-wrap: wrap; gap: 0 8px; }
.handle { color: var(--muted); font-size: 12.5px; unicode-bidi: plaintext; }
.state { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c7ccd8; }
.state.on { background: var(--ok); }
.start { font-size: 12.5px; white-space: nowrap; }
.start.yes { color: var(--ok); }
.start.no { color: var(--muted); }
.legend { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.legend .state { margin-inline: 10px 4px; }
.legend .state:first-child { margin-inline-start: 0; }
.roles { min-width: 720px; }
.roles th, .roles td { padding: 9px 6px; border-top: 1px solid var(--line2); text-align: center; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.roles thead th { border-top: 0; color: var(--muted); }
.roles tbody th { text-align: start; font-size: 14px; position: sticky; inset-inline-start: 0; background: var(--card); }
.roles tbody th .muted { display: block; font-size: 11.5px; font-weight: 400; }
.sw { width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: #d5dae5; position: relative; cursor: pointer; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: inset-inline-start .15s, background .15s; }
.sw.on { background: var(--brand); border-color: var(--brand); }
.sw.on::after { inset-inline-start: 21px; background: var(--navy); }
.sw[disabled] { opacity: .45; cursor: not-allowed; }
.sw.busy { opacity: .6; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi.big { grid-column: span 3; }
}
@media (max-width: 1100px) {
  .three, .reqs { grid-template-columns: minmax(0, 1fr); }
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding: 16px 12px 48px; gap: 14px; }
  .card { padding: 16px; border-radius: 16px; }
  .hero { padding: 20px 14px 18px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi.big, .kpi:last-child { grid-column: span 2; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 26px; }
  .kpi.big b { font-size: 38px; }
  .person { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 4px; }
  .person .tags { grid-column: 2 / -1; grid-row: 2; }
  .person .start { grid-column: 3; grid-row: 1; }
  .node { margin-inline-start: 8px; padding-inline-start: 12px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .days { gap: 5px; }
  .day { flex-basis: 38px; }
  .day span { display: none; }
  svg.col { height: 90px; }
  .bars li { grid-template-columns: minmax(72px, 100px) minmax(0, 1fr) 30px; gap: 8px; }
  .bars.load li { grid-template-columns: minmax(72px, 100px) minmax(0, 1fr) 92px; }
  .colm { flex-basis: 240px; }
  .tm { flex-wrap: wrap; }
  .tm dl { margin-inline-start: auto; }
  /* a wide table becomes one block per row: the header goes, each cell says what it is (td[data-l]) */
  .cards { min-width: 0; }
  .cards thead { display: none; }
  .cards tr { display: block; padding: 12px 2px; border-top: 1px solid var(--line2); }
  .cards tbody tr:first-child { border-top: 0; padding-top: 4px; }
  .cards td { display: block; max-width: none; padding: 1px 0; border: 0; font-size: 13.5px; }
  .cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
  .cards td small { display: inline; margin-inline-start: 6px; }
  .cards td.code, .cards td.code + td { display: inline-block; margin-inline-end: 8px; }
  .cards td.subj { padding: 2px 0 4px; font-size: 14.5px; font-weight: 500; }
  .cards tr.late { padding-inline-start: 10px; box-shadow: inset -3px 0 0 var(--bad); }
  .flow.cards tr.late td { background: none; }
  .ed.cards td.barcell { padding: 6px 0; }
  .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel .fs { grid-template-columns: minmax(88px, 120px) minmax(0, 1fr) 70px; gap: 8px; }
  .funnel .drop { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .path .lb { font-size: 9.5px; }
}

/* ------------------------------------------------------------------ print
   The report on paper or as a PDF: without the menu and the controls. */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
  .side, .topbar, .scrim, .nav-toggle, .controls, .quiet, .back, .hero .filters { display: none !important; }
  .main { margin: 0; }
  .page { max-width: none; padding: 12px 0 0; }
  .card { box-shadow: none; border-color: var(--line); }
  .card, .two { break-inside: avoid; }
}

/* ------------------------------------------- orders' path: the stepper and the content masters (2026-11-24 noon)
   Owner: the yellow bars and the percentages were not clear → one box per stage with how many passed, and under it
   in red how many stayed there (a link to them). */
.stepper { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; margin-top: 4px; }
.sx { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 12px 6px 10px; text-align: center; }
.sx::after { content: "←"; position: absolute; top: 22px; inset-inline-end: -8px; color: #b8becc; font-size: 16px; }
.sx:last-child::after { display: none; }
.sx b { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 16px; background: var(--card);
  border: 2px solid var(--navy); color: var(--navy); font-size: 22px; font-weight: 700; }
.sx.start b { background: var(--navy); color: var(--brand); }
.sx.end b { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.sx.zero b { border-color: var(--line); color: var(--muted); }
.sx span { margin-top: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.sx small { font-size: 11px; line-height: 1.5; }
.sx .lost { margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-size: 12px;
  font-weight: 700; text-decoration: none; white-space: nowrap; }
.sx a.lost:hover { background: var(--bad); color: #fff; }
.sx .lost.none { background: none; color: #b8becc; font-weight: 400; }
.crumb { display: block; color: var(--warn); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.filters.pages .filter.dim { opacity: .55; }
.item.cm { min-height: 38px; font-size: 13.5px; }
.item.cm .ico { width: 17px; height: 17px; }
.fun td.end { color: var(--ok); }
@media (max-width: 1100px) {
  .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px; }
  .sx::after { display: none; }
}
@media (max-width: 720px) {
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------- person-based path (2026-11-24 afternoon)
   Owner: an order is in the hands of the requester, the edit manager, the editor, QC, or done — a tag per person. */
.ptag { display: inline-block; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; white-space: nowrap;
  background: var(--line2); color: var(--text2); }
.ptag.p-order { background: #e8eefc; color: #1e3a8a; }
.ptag.p-head { background: #fff4d6; color: #8a6500; }
.ptag.p-editor { background: #f3e8ff; color: #6b21a8; }
.ptag.p-qc { background: #e0f2fe; color: #075985; }
.ptag.p-done { background: var(--ok-soft); color: #0d6b36; }
.stepper.five { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 820px; }
.stepper.five .sx .ptag { margin-top: 8px; }
.path.five { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 640px; }
.mini { list-style: none; margin: 10px 0 0; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; border-radius: 10px;
  background: #f4f6fb; font-size: 12.5px; }
.mini li { display: inline-flex; align-items: baseline; gap: 5px; }
.mini li b { font-weight: 500; color: var(--text2); }
.mini li small { color: var(--muted); font-size: 11.5px; }
.mini li + li::before { content: "←"; color: #b8becc; margin-inline-end: 9px; }
.st8 .ptag { margin-inline-end: 4px; }
.loss td .ptag { font-size: 11.5px; }
@media (max-width: 720px) {
  .stepper.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the requesters in the menu, folded in two levels (owner, 2026-11-24: «سفارش‌دهنده‌ها کشویی باشه، ۲ لول») */
.mgroup > summary, .msub > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.mgroup > summary::-webkit-details-marker, .msub > summary::-webkit-details-marker { display: none; }
.mgroup > summary { margin: 4px 10px 4px; color: #6f7ba3; font-size: 11.5px; letter-spacing: .4px; }
.mgroup > summary::after, .msub > summary::after { content: "▾"; margin-inline-start: auto; font-size: 11px; transition: transform .15s; }
.mgroup:not([open]) > summary::after, .msub:not([open]) > summary::after { transform: rotate(90deg); }
.msub > summary { min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--on-navy); font-size: 13px; font-weight: 500; }
.msub > summary:hover { background: rgba(255, 255, 255, .05); }
.msub > summary small { padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--on-navy-muted); font-size: 11px; }
.msub .item.cm { padding-inline-start: 22px; }

/* person model on the board, the pipeline and one order (2026-11-24 afternoon) */
.tk .sb { font-size: 12px; color: var(--text2); }
.st .ptag { margin-top: 8px; }
.ch .ptag { font-size: 12.5px; }
.timeline .bad .mark { background: var(--bad); border-color: var(--bad); }
.timeline li .ptag { margin-inline-end: 4px; vertical-align: 1px; }
.now .ptag { margin-inline: 4px; }
