/* Design system of the panel: values copied from the four design files in ../design (2026-11-04).
   One typeface everywhere: Vazirmatn, served from this folder. */
@font-face { font-family: Vazirmatn; src: url(/static/fonts/Vazirmatn-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0E1116; --bar: #10151B; --card: #151A21; --line: #242B35; --line-2: #1F2630; --line-3: #2A323D;
  --tx: #E6EAF0; --tx-2: #B8C0CC; --mut: #8B95A5;
  --teal: #2DD4BF; --teal-2: #7EE8DC; --teal-bg: #13302E; --teal-line: #1E4440; --teal-tx: #9ED9D0;
  --coral: #F2795C; --coral-bg: #2A2320; --coral-line: #4A322A; --coral-tx: #FFD9CD; --coral-mut: #D9A896; --coral-ink: #1A0E0A;
  --amber: #F5B041; --amber-bg: #2E2614; --queued: #3A4453; --chip: #1A2029; --green: #4ADE80; --red: #F87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: Vazirmatn, sans-serif; font-size: 15px; line-height: 1.6; }
input, button, select, textarea, code, pre, kbd, samp { font-family: inherit; }
input, button, select, textarea { color: var(--tx); }
a { color: var(--teal); text-decoration: none; } a:hover { color: var(--teal-2); }
input:focus, button:focus, select:focus, textarea:focus, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
input[type=checkbox], input[type=range] { accent-color: var(--teal); }
h1, h2, h3, p { margin: 0; }
.mut { color: var(--mut); } .tx2 { color: var(--tx-2); } .small { font-size: 13px; } .xs { font-size: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; } .stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; border-bottom: 1px solid var(--line-2); background: var(--bar); }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brandline { display: flex; align-items: center; gap: 14px; }
.brandline strong { display: block; font-size: 17px; font-weight: 700; } .brandline .sub { font-size: 12px; color: var(--mut); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mut); } .crumbs a { color: var(--mut); } .crumbs .here { color: var(--tx); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--coral-bg); color: var(--coral); display: flex; align-items: center; justify-content: center; font-weight: 700; border: 0; cursor: pointer; font-size: 15px; }
.steppill { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--tx-2); }
.steppill b { color: var(--tx); font-weight: 600; }
.steppill .track { width: 120px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; display: block; } .steppill .track span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

/* the frame: sidebar, top bar, the way back */
::selection { background: var(--teal-bg); color: var(--teal-2); }
html { scrollbar-color: var(--line-3) transparent; }
.app { display: flex; min-height: 100vh; align-items: stretch; }
.appmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.appmain .top { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; min-height: 64px; padding: 12px 32px; }
.appmain .page, .appmain .flowgrid { padding-inline: 32px; }
.topstart { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.topactions { flex-shrink: 0; flex-wrap: nowrap; }
.backbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 9px; border: 1px solid var(--line); color: var(--tx-2); font-size: 13px; flex-shrink: 0; transition: border-color .15s ease-out, color .15s ease-out; }
.backbtn:hover { color: var(--tx); border-color: var(--queued); }
.appmain .crumbs { gap: 6px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.appmain .crumbs::-webkit-scrollbar { display: none; }
.crumbs a { transition: color .15s ease-out; } .crumbs a:hover { color: var(--tx); } .crumbs .sep { display: inline-flex; color: var(--queued); flex-shrink: 0; }
.iconbtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 9px; border: 0; background: transparent; color: var(--mut); cursor: pointer; transition: background .15s ease-out, color .15s ease-out; }
.iconbtn:hover { background: var(--chip); color: var(--tx); } .iconbtn:focus:not(:focus-visible) { outline: none; }
.sideopen { display: none; }
.side { position: sticky; top: 0; height: 100vh; width: 272px; flex: none; display: flex; flex-direction: column; background: var(--bar); border-inline-end: 1px solid var(--line-2); z-index: 40; }
.sidehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 12px 10px; min-height: 64px; border-bottom: 1px solid var(--line-2); }
.sidebrand { display: flex; align-items: center; gap: 10px; color: var(--tx); min-width: 0; } .sidebrand:hover { color: var(--tx); } .sidebrand strong { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sidebrand .logo { width: 36px; height: 36px; border-radius: 10px; color: var(--teal); }
.sidescroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.sideproj { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.allprojects { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); margin-bottom: 8px; width: fit-content; transition: color .15s ease-out; } .allprojects:hover { color: var(--tx); }
.pname { font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; } .pdom { font-size: 12px; color: var(--mut); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navgroup + .navgroup { padding-top: 14px; border-top: 1px solid var(--line-2); }
.navi { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--tx-2); font-size: 14px; cursor: pointer; list-style: none; transition: background .15s ease-out, color .15s ease-out; }
.navi svg { flex-shrink: 0; color: var(--mut); transition: color .15s ease-out; }
.navi:hover { background: var(--chip); color: var(--tx); } .navi:hover svg { color: var(--tx-2); }
.navi.on { background: var(--teal-bg); color: var(--teal-2); font-weight: 600; } .navi.on svg { color: var(--teal); }
.navi .lbl { flex: 1 1 auto; min-width: 0; }
.navb { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--mut); white-space: nowrap; flex-shrink: 0; }
.navb.amber { background: var(--amber-bg); color: var(--amber); } .navb.live { background: var(--coral-bg); color: var(--coral); }
.navb.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: var(--coral); vertical-align: 1px; animation: panel-pulse 1.8s ease-out infinite; }
@keyframes panel-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 121, 92, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(242, 121, 92, 0); } }
.navdetails summary::-webkit-details-marker { display: none; }
.navchev { display: inline-flex; transition: transform .2s cubic-bezier(.22, 1, .36, 1); } .navdetails[open] .navchev { transform: rotate(180deg); }
.navsub { display: flex; flex-direction: column; gap: 1px; padding: 4px 16px 6px 0; margin-inline-start: 18px; border-inline-start: 1px solid var(--line-2); }
.navsubi { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: 8px; color: var(--tx-2); font-size: 13px; transition: background .15s ease-out, color .15s ease-out; }
.navsubi:hover { background: var(--chip); color: var(--tx); } .navsubi.on { background: var(--teal-bg); color: var(--teal-2); font-weight: 600; }
.railonly { display: none; }
.journey { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 4px; border-top: 1px solid var(--line-2); }
.journeyhead { display: flex; justify-content: space-between; font-size: 12px; color: var(--mut); } .journeyhead b { color: var(--tx-2); font-weight: 600; }
.journey ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jstep a { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 13px; color: var(--mut); position: relative; transition: color .15s ease-out; } .jstep a:hover { color: var(--tx); }
.jdot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--queued); background: var(--bar); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; color: var(--bg); }
.jstep:not(:last-child) a::after { content: ""; position: absolute; top: 22px; bottom: -8px; inset-inline-start: 7.25px; width: 1.5px; background: var(--line-3); }
.jstep.done .jdot { background: var(--teal); border-color: var(--teal); } .jstep.done a { color: var(--tx-2); } .jstep.done:not(:last-child) a::after { background: var(--teal-line); }
.jstep.active .jdot { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-bg); } .jstep.active .jdot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); } .jstep.active a { color: var(--tx); font-weight: 600; }
.jstep .lbl:not(.jpct) { flex: 1 1 auto; min-width: 0; } .jpct { font-size: 11px; color: var(--coral); font-weight: 600; }
.sideuser { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.avatar.small { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; cursor: default; }
.uinfo { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.35; } .uinfo b { font-size: 13px; font-weight: 600; } .uinfo .ltr { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sideuser form { margin: 0; }
.sidescrim { display: none; }
html[data-side=rail] .side { width: 76px; }
html[data-side=rail] .side .lbl, html[data-side=rail] .navdetails, html[data-side=rail] .navb, html[data-side=rail] .journeyhead, html[data-side=rail] .sideproj, html[data-side=rail] .sideuser form { display: none; }
html[data-side=rail] .railonly { display: flex; }
html[data-side=rail] .navi { justify-content: center; padding: 0; }
html[data-side=rail] .sidehead { flex-direction: column; padding: 12px 0; } html[data-side=rail] .sidescroll { padding-inline: 14px; }
html[data-side=rail] .jstep a { justify-content: center; } html[data-side=rail] .jstep:not(:last-child) a::after { inset-inline-start: auto; right: 50%; margin-right: -.75px; }
html[data-side=rail] .sideuser { justify-content: center; padding-inline: 0; }
@media (max-width: 960px) {
  .sideopen { display: inline-flex; }
  #siderail { display: none; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); height: 100%; transform: translateX(100%); visibility: hidden; transition: transform .22s cubic-bezier(.22, 1, .36, 1), visibility .22s; box-shadow: -18px 0 48px rgba(0, 0, 0, .45); }
  .side.open { transform: none; visibility: visible; }
  .sidescrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(6, 8, 11, .6); opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
  .sidescrim.on { opacity: 1; pointer-events: auto; }
  body.noscroll { overflow: hidden; }
  html[data-side=rail] .side { width: min(300px, 86vw); }
  html[data-side=rail] .side .lbl, html[data-side=rail] .navb { display: revert; } html[data-side=rail] .navdetails, html[data-side=rail] .journeyhead, html[data-side=rail] .sideproj { display: revert; } html[data-side=rail] .railonly { display: none; }
  .appmain .top { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .appmain .page, .appmain .flowgrid { padding-inline: 16px; }
  .backbtn span { display: none; } .backbtn { padding: 0; width: 36px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .side, .sidescrim, .navchev, .navi, .navi svg, .navsubi, .backbtn, .iconbtn { transition: none; } .navb.live::before { animation: none; } }

/* the way forward: drawn, because Vazirmatn has no arrow and a text arrow would fall back to another font */
.go::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-inline-start: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* buttons */
.btn { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-3); background: transparent; color: var(--tx); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--tx); border-color: var(--queued); }
.btn-primary { border: 0; background: var(--teal); color: var(--bg); font-weight: 700; } .btn-primary:hover { background: var(--teal-2); color: var(--bg); }
.btn-lg { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.btn-soft { background: var(--card); font-weight: 600; }
.btn-coral { height: 50px; padding: 0 26px; border-radius: 12px; border: 0; background: var(--coral); color: var(--coral-ink); font-weight: 800; font-size: 16px; }
.btn-coral:hover { background: var(--coral-tx); color: var(--coral-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* page */
.page { flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 32px 40px 56px; max-width: 1360px; width: 100%; margin: 0 auto; }
.page.tight { gap: 24px; padding-top: 28px; }
.title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
h1.big { font-size: 30px; font-weight: 800; line-height: 1.3; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.coral { background: var(--coral-bg); color: var(--coral); } .chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.teal { background: var(--teal-bg); color: var(--teal-2); } .chip.neutral { background: var(--chip); color: var(--mut); }
.chip.tx { background: var(--chip); color: var(--tx-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; } .dot.lg { width: 10px; height: 10px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--teal-bg); border: 1px solid var(--teal-line); color: var(--teal-2); }
.flash.err { background: var(--coral-bg); border-color: var(--coral-line); color: var(--coral-tx); }

/* cards */
.card { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.card.row { flex-direction: row; } .card h2 { font-size: 16px; font-weight: 700; } .card.quiet { background: var(--bar); border-color: var(--line-2); }
h2.section { font-size: 18px; font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.kpi .l { font-size: 13px; color: var(--mut); } .kpi .v { font-size: 26px; font-weight: 700; line-height: 1.3; } .kpi .s { font-size: 13px; color: var(--mut); }
.kpi .v.teal { color: var(--teal); } .kpi .v.coral { color: var(--coral); } .kpi .v.amber { color: var(--amber); } .kpi .v .suffix { font-size: 14px; color: var(--mut); font-weight: 500; }
.kpi .delta { font-size: 14px; font-weight: 600; margin-inline-start: 8px; } .up { color: var(--green); } .down { color: var(--red); }
.track { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; } .track > span { display: block; height: 100%; border-radius: 999px; }
.kpis.tight { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; } .kpis.tight .kpi { padding: 18px 20px; border-radius: 14px; gap: 6px; } .kpis.tight .v { font-size: 28px; } .kpis.tight .s { font-size: 12px; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.phase { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bar); border: 1px solid var(--line-2); }
.phase .n { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.phase .o { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.phase .b { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; } .phase .b span { display: block; height: 100%; background: var(--coral); }
.phase.done { background: var(--teal-bg); border-color: var(--teal-line); } .phase.done .n { color: var(--teal-2); } .phase.done .o { background: var(--teal); border-color: var(--teal); } .phase.done .b { background: var(--teal); }
.phase.active { background: var(--coral-bg); border-color: var(--coral); } .phase.active .n { color: var(--coral-tx); font-weight: 700; } .phase.active .o { border-color: var(--coral); } .phase.active .b { background: var(--coral-line); }

/* chart + feed */
.split { display: flex; flex-wrap: wrap; gap: 20px; } .split > .wide { flex: 999 1 560px; } .split > .narrow { flex: 1 1 320px; } .split > .half { flex: 1 1 420px; }
.bars { display: grid; gap: 12px; align-items: end; height: 180px; direction: ltr; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 11px; color: var(--mut); text-align: center; }
.bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--queued); } .bar.after i { background: var(--teal); } .bar.after span { color: var(--tx-2); } .bar.partial i { opacity: .55; }
.barlabels { display: grid; gap: 12px; direction: ltr; font-size: 11px; color: var(--mut); text-align: center; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); flex-wrap: wrap; } .legend span { display: flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.feed { display: flex; flex-direction: column; gap: 12px; } .feed .e { display: flex; gap: 12px; align-items: flex-start; } .feed .e .dot { margin-top: 8px; } .feed .e .t { font-size: 14px; } .feed .e .m { font-size: 12px; color: var(--mut); }

/* agent boxes */
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; grid-auto-flow: dense; }
a.agent { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: inherit; transition: border-color .15s, transform .15s; }
a.agent:hover { border-color: var(--teal); color: inherit; transform: translateY(-1px); }
details.agent { display: block; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); } details.agent summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 12px; } details.agent summary::-webkit-details-marker { display: none; }
details.agent[open] { grid-column: 1 / -1; border-color: var(--teal); }
.agent .h { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .agent .nm { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 700; } .agent .pc { font-size: 14px; font-weight: 600; color: var(--tx-2); flex-shrink: 0; }
.agent .f { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mut); }

/* agent page */
.tabsbar { border-bottom: 1px solid var(--line-2); background: var(--bar); overflow-x: auto; }
.tabsbar .in { display: flex; gap: 4px; padding: 10px 40px 0; min-width: max-content; }
.tabsbar a { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 2px solid transparent; color: var(--mut); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tabsbar a.on { border-color: var(--teal); color: var(--tx); font-weight: 700; } .tabsbar a .p { font-size: 11px; color: var(--mut); }
.hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; } .ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.hero h1 { font-size: 26px; font-weight: 800; } .hero .facts { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--mut); } .hero .facts b { color: var(--tx-2); font-weight: 500; }
.hero .acts { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.check .box { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; border: 2px solid var(--line-3); display: flex; align-items: center; justify-content: center; }
.check.done .box { background: var(--teal); border-color: var(--teal); } .check.reused .box { background: var(--teal-bg); border-color: var(--teal-line); }
.check .lb { flex: 1; font-size: 14px; min-width: 0; } .check.done .lb, .check.reused .lb { color: var(--mut); } .check.mine { border-color: var(--teal-line); } .check.mine .lb { color: var(--tx); font-weight: 600; }
.mini { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--coral-bg); color: var(--coral); } .check.done .mini, .check.reused .mini { background: var(--teal-bg); color: var(--teal-2); } .mini.k { background: var(--chip); color: var(--mut); }
.dist { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 13px; }
.dist .tr { display: block; height: 14px; border-radius: 4px; background: var(--line); overflow: hidden; } .dist .tr i { display: block; height: 100%; } .dist .v { color: var(--tx-2); text-align: left; }
.bg-coral { background: var(--coral); } .bg-amber { background: var(--amber); } .bg-teal { background: var(--teal); }
.files { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--tx); font-size: 12px; direction: ltr; }
.handoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 16px; background: var(--bar); border: 1px solid var(--line-2); }
.node-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--tx); }

/* tables */
.tablewrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 10px 12px; font-weight: 600; font-size: 12px; color: var(--mut); text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
td .ttl { font-weight: 600; } .sevchip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sevchip.coral { background: var(--coral-bg); color: var(--coral); } .sevchip.amber { background: var(--amber-bg); color: var(--amber); } .sevchip.teal { background: var(--teal-bg); color: var(--teal-2); }
.st { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--tx-2); } .st.proposed, .st.blocked { color: var(--coral); } .st.approved, .st.in_progress { color: var(--amber); } .st.done { color: var(--teal-2); } .st.deferred, .st.rejected { color: var(--mut); }
.filters { display: flex; gap: 8px; } .filters button { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-3); background: transparent; color: var(--mut); font-size: 13px; cursor: pointer; } .filters button.on { background: var(--bg); color: var(--tx); }

/* links: a sample of plain links under the title, the rest as a CSV (ADR-0091) */
.url-rows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.url-rows li { font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; min-width: 0; }
a.u, span.u { unicode-bidi: isolate; color: var(--teal-2); overflow-wrap: anywhere; font-size: 12px; } a.u:hover { color: var(--teal); }
.url-more { margin: 0; font-size: 12px; line-height: 1.9; color: var(--mut); } .url-csv { color: var(--teal-2); text-decoration: underline; text-decoration-color: var(--teal-line); text-underline-offset: 3px; } .url-csv:hover { color: var(--teal); }

/* forms + onboarding flow */
.input { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--bg); color: var(--tx); font-size: 16px; width: 100%; }
.input.on-card { background: var(--card); font-size: 15px; } .input.ltr { direction: ltr; text-align: left; }
label.lb { font-size: 13px; color: var(--tx-2); }
.flowgrid { flex: 1; display: flex; flex-wrap: wrap; gap: 32px; padding: 36px 40px 56px; max-width: 1360px; width: 100%; margin: 0 auto; }
.flowcol { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; } .flowside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.node { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; }
.node .rail { display: flex; flex-direction: column; align-items: center; }
.circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; background: var(--bg); color: var(--mut); border: 2px solid var(--line-3); }
.circle.done { background: var(--teal); color: var(--bg); border-color: var(--teal); } .circle.active { color: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgba(242, 121, 92, .14); }
.rail .line { width: 2px; flex: 1; min-height: 28px; background: var(--line-3); } .rail .line.done { background: var(--teal); }
.stepcard { display: flex; flex-direction: column; margin-bottom: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); min-width: 0; }
.stepcard.todo { opacity: .6; } .stepcard.done { border-color: var(--line); } .stepcard.active { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(45, 212, 191, .25), 0 24px 60px -30px rgba(45, 212, 191, .5); }
.stephead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: inherit; border-radius: 16px; } .stephead:hover { color: inherit; }
.stephead .t { font-size: 16px; font-weight: 700; display: block; } .stephead .s { font-size: 13px; color: var(--mut); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 620px; }
.stepbody { display: flex; flex-direction: column; gap: 16px; padding: 4px 22px 22px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; } .checks > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; }
.apirow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.apirow input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--card); font-size: 13px; direction: ltr; text-align: left; min-width: 0; width: 100%; }
.notebox { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-3); font-size: 13px; color: var(--mut); }
.gscoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-3); }
.gscon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.okcircle { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.termchip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--teal-bg); color: var(--teal-2); font-size: 14px; font-weight: 500; }
.termchip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--teal-line); color: var(--teal-2); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.costbox { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; padding: 22px; border-radius: 16px; background: var(--teal-bg); border: 1px solid var(--teal-line); }
.costbox .big { font-size: 38px; font-weight: 700; color: #fff; line-height: 1.1; } .costbox .lbl { font-size: 13px; color: var(--teal-tx); }
.costbox .mults { flex: 2 1 320px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; } .costbox .m { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); } .costbox .m .k { font-size: 12px; color: var(--mut); } .costbox .m .x { font-size: 15px; font-weight: 600; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); cursor: pointer; } .opt input { width: 20px; height: 20px; flex-shrink: 0; } .opt b { font-size: 14px; font-weight: 600; display: block; } .opt small { font-size: 12px; color: var(--mut); display: block; } .opt.off { opacity: .55; cursor: not-allowed; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 20px; border-radius: 16px; border: 2px dashed var(--line-3); background: var(--bg); color: var(--tx); cursor: pointer; width: 100%; text-align: center; } .drop.over { border-color: var(--teal); } .drop input { display: none; }
.filerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 14px; background: var(--coral-bg); border: 1px solid var(--coral-line); } .banner strong { font-size: 15px; color: var(--coral-tx); display: block; } .banner span { font-size: 13px; color: var(--coral-mut); }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; } .sumrow span:first-child { color: var(--mut); }

/* login: the design's two columns */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth .form-side { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 26px; }
.auth .logo.lg { width: 44px; height: 44px; } .auth h1 { font-size: 30px; font-weight: 800; }
.auth .brand-side { flex: 1 1 520px; min-width: 0; position: relative; overflow: hidden; background: var(--bar); border-inline-start: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px; padding: 56px; min-height: 560px; }
.auth .brand-side h2 { font-size: 40px; font-weight: 800; line-height: 1.25; } .auth .kicker { font-size: 13px; color: var(--teal); font-weight: 600; letter-spacing: .04em; }
.auth .art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-radius: 18px; border: 1px solid var(--line); display: block; }
.auth .badge { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--tx-2); }
.auth input.f { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--card); color: var(--tx); font-size: 15px; text-align: left; direction: ltr; width: 100%; }
.auth .submit { height: 52px; border-radius: 12px; background: var(--teal); color: var(--bg); font-weight: 800; font-size: 16px; border: 0; cursor: pointer; width: 100%; }
.auth .google { height: 50px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--card); color: var(--tx); font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 12px; } .auth .or span { flex: 1; height: 1px; background: var(--line); } .auth .or em { font-style: normal; }
.auth .hint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bar); border: 1px solid var(--line-2); font-size: 13px; color: var(--mut); }

/* three-option decisions */
.decision { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.decision .ttl { font-weight: 700; } .decision .opts3 { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.decision textarea { display: none; width: 100%; height: 64px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg); font-size: 14px; margin-top: 8px; resize: vertical; } .decision.bad-open textarea { display: block; }
.opt3 { height: 40px; border-radius: 10px; border: 1px solid var(--line-3); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.opt3.good { color: var(--teal-2); } .opt3.good.on { background: var(--teal-bg); border-color: var(--teal); } .opt3.bad { color: var(--coral); } .opt3.bad.on { background: var(--coral-bg); border-color: var(--coral); } .opt3.delegate { color: var(--amber); } .opt3.delegate.on { background: var(--amber-bg); border-color: var(--amber); }

/* schedule and runs */
.sevchip.neutral { background: var(--chip); color: var(--mut); }
.gatecard { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 16px; background: var(--amber-bg); border: 1px solid var(--amber); }
.gatecard .ttl { font-size: 16px; font-weight: 700; } .gateopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.gateopts .opt3 { height: auto; min-height: 64px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--card); text-align: start; }
.gateopts .opt3 small { font-size: 12px; font-weight: 400; color: var(--tx-2); line-height: 1.7; } .gateopts .opt3:hover { border-color: var(--queued); }
.gateopts textarea { grid-column: 1 / -1; height: 72px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg); font-size: 14px; resize: vertical; }
a.activerun { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: inherit; font-size: 14px; }
a.activerun:hover { border-color: var(--coral); color: inherit; }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--chip); padding: 3px; cursor: pointer; display: flex; justify-content: flex-start; flex-shrink: 0; }
.switch i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--mut); } .switch.on { background: var(--teal-bg); border-color: var(--teal); justify-content: flex-end; } .switch.on i { background: var(--teal); }
.kpi-v { font-size: 26px; font-weight: 700; } .cadence select { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-3); background: var(--bg); font-size: 13px; }
.runform { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 0; } .runform.two { flex-wrap: wrap; max-width: 300px; } .runform.two .targetinput[name=page] { order: 3; flex: 1 0 100%; width: auto; } .targetinput { height: 40px; width: 170px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg); font-size: 13px; }
.check.running { border-color: var(--coral); } .check.running .box { border-color: var(--coral); background: var(--coral-bg); } .check.waiting { border-color: var(--amber); } .check.waiting .box { border-color: var(--amber); background: var(--amber-bg); } .check.failed { border-color: var(--coral); } .check.failed .box { background: var(--coral); border-color: var(--coral); }
.check .lb small.note { display: block; font-size: 12px; color: var(--tx-2); margin-top: 2px; } .mini.warning { color: var(--amber); } .mini.running { color: var(--coral); } .mini.failed { color: var(--coral); }
.mini.pending { background: var(--chip); color: var(--mut); } .mini.waiting { background: var(--amber-bg); color: var(--amber); }
@media (max-width: 720px) { .check { flex-wrap: wrap; } .check .lb { flex: 1 1 70%; } }
.liverow { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: baseline; } .liverow .ltr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .liverow.bad .small { color: var(--amber); }

/* reports rendered from Markdown */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; } .tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--tx-2); cursor: pointer; font-size: 13px; } .tabs button.on { border-color: var(--teal); color: var(--teal-2); background: var(--teal-bg); }
.md { line-height: 1.95; font-size: 14px; overflow-wrap: anywhere; } .md h1 { font-size: 24px; font-weight: 800; margin: 0 0 14px; } .md h2 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; } .md h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; } .md p, .md ul, .md ol { margin: 8px 0; } .md code { background: var(--bg); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; direction: ltr; unicode-bidi: isolate; } .md table { margin: 12px 0; display: block; max-width: 100%; overflow-x: auto; } .md hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; } .md pre { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; overflow: auto; direction: ltr; text-align: left; }
pre.log { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 12px; font-family: Vazirmatn, sans-serif; direction: ltr; text-align: left; max-height: 320px; overflow: auto; margin: 0; white-space: pre-wrap; }
@media (max-width: 720px) { .top, .page, .flowgrid { padding-left: 16px; padding-right: 16px; } .tabsbar .in { padding-inline: 16px; } .decision, .apirow { grid-template-columns: 1fr; } .auth .brand-side { padding: 32px 16px; } .auth .brand-side h2 { font-size: 28px; } .dist { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) 44px; } }

/* the «؟» of a process (ADR-0060) */
.q { position: relative; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--line-3); background: transparent; color: var(--mut); font-size: 12px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; vertical-align: 2px; flex-shrink: 0; cursor: pointer; transition: color .15s ease-out, border-color .15s ease-out, background .15s ease-out; }
.q::before { content: ""; position: absolute; inset: -8px; }
.q:hover, .q[aria-expanded=true] { color: var(--teal-2); border-color: var(--teal); background: var(--teal-bg); }
.q:focus:not(:focus-visible) { outline: none; }
.qhost { position: relative; min-width: 0; }
.q.corner { position: absolute; top: 18px; inset-inline-end: 14px; z-index: 1; }
.q.endq { margin-inline-start: auto; }
.qhost > a.agent { height: 100%; } .qhost > a.agent .h { padding-inline-end: 26px; }
.stepcard.qhost .q.corner { top: 12px; inset-inline-end: 12px; }
.stepcard.qhost .stephead { padding-inline-end: 42px; }
.qpop { position: fixed; z-index: 60; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-3); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .7); animation: qpop-in .14s cubic-bezier(.22, 1, .36, 1); }
.qpop strong { font-size: 14px; font-weight: 700; } .qpop p { font-size: 13px; line-height: 1.85; color: var(--tx-2); } .qpop a { font-size: 13px; font-weight: 600; width: fit-content; }
@keyframes qpop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* a process page */
.prochead { display: flex; flex-direction: column; gap: 10px; max-width: 92ch; } a.chip:hover { color: var(--amber); filter: brightness(1.15); }
.procabout { display: flex; flex-direction: column; gap: 12px; }
.proclead { font-size: 16px; line-height: 1.95; color: var(--tx); } .proctext { font-size: 14px; line-height: 2; color: var(--tx-2); }
.procparents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; } .procparents .node-pill { padding: 4px 12px; font-size: 12px; } .procparents .node-pill:hover { border-color: var(--teal); }
.procstale { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber); color: var(--amber); font-size: 13px; } .procstale svg { flex-shrink: 0; margin-top: 3px; }
.procgaps { scroll-margin-top: 84px; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-radius: 14px; background: var(--amber-bg); border: 1px solid var(--amber); } .procgaps h2 { font-size: 15px; color: var(--amber); } .procgaps ul { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.95; color: var(--tx); } .procgaps li::marker { color: var(--amber); }
.procfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px 28px; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--bar); border: 1px solid var(--line-2); }
.procfacts dt { font-size: 12px; color: var(--mut); margin-bottom: 4px; } .procfacts dd { margin: 0; font-size: 14px; line-height: 1.9; color: var(--tx-2); } .procfacts .wide { grid-column: 1 / -1; } .procfacts .wide dt { color: var(--teal-2); }
.procgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.procgrid.open { grid-template-columns: minmax(0, 1fr) 390px; }
.procmain { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.fcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fclegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mut); } .fclegend > span { display: inline-flex; align-items: center; gap: 6px; }
.fclegend .lg { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); }
.fclegend .lg.k-agent { background: var(--coral-bg); border-color: var(--coral-line); color: var(--coral); } .fclegend .lg.k-human { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); } .fclegend .lg.k-script { color: var(--teal); } .fclegend .lg.k-decision { background: var(--chip); color: var(--tx-2); } .fclegend .lg.k-external { color: var(--tx-2); } .fclegend .lg.k-data { border-style: dashed; border-color: var(--line-3); background: transparent; color: var(--mut); }
.fcwrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-2); background-color: var(--bar); background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.fc { position: relative; direction: ltr; margin-inline: auto; }
.fcsvg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fce { fill: none; stroke: var(--queued); stroke-width: 1.5; transition: stroke .15s ease-out; } .fce.back { stroke-dasharray: 5 4; } .fce.on { stroke: var(--teal); stroke-width: 2; }
.fcl { position: absolute; transform: translate(-50%, -50%); padding: 0 8px; border-radius: 999px; background: var(--bar); border: 1px solid var(--line-3); color: var(--tx-2); font-size: 11px; line-height: 18px; white-space: nowrap; direction: rtl; }
.fcn { --nbg: var(--card); --nline: var(--line-3); position: absolute; isolation: isolate; width: 220px; height: 84px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 1px 8px; align-content: center; padding: 8px 12px; text-align: start; direction: rtl; border-radius: 12px; background: var(--nbg); border: 1px solid var(--nline); color: var(--tx); cursor: pointer; transition: border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out; }
.fcn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); } .fcn:focus:not(:focus-visible) { outline: none; }
.fci { display: flex; margin-top: 2px; color: var(--teal); }
.fct { font-size: 13px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fcnum { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; } .fcnum.big { font-size: 12px; }
.fcs { grid-column: 1 / 4; font-size: 11.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcmark { position: absolute; bottom: 7px; inset-inline-end: 9px; display: flex; color: var(--teal-2); }
.fcn.has-sub { box-shadow: inset 0 0 0 3px var(--nbg), inset 0 0 0 4px var(--nline); } .fcn.has-sub .fcs { padding-inline-end: 16px; }
.fcn.k-agent { --nbg: var(--coral-bg); --nline: var(--coral-line); } .fcn.k-agent .fci { color: var(--coral); }
.fcn.k-human { --nbg: var(--amber-bg); --nline: var(--amber); } .fcn.k-human .fci { color: var(--amber); }
.fcn.k-external .fci { color: var(--tx-2); }
.fcn.k-data { --nbg: var(--bar); border-style: dashed; } .fcn.k-data .fci { color: var(--mut); } .fcn.k-data .fct { font-weight: 500; }
.fcn.k-start, .fcn.k-end { border-radius: 42px; padding-inline: 18px; --nbg: var(--teal-bg); --nline: var(--teal-line); } .fcn.k-start .fct, .fcn.k-end .fct { font-weight: 700; }
.fcn.k-end.o-limit { --nbg: var(--amber-bg); --nline: var(--amber); } .fcn.k-end.o-limit .fci { color: var(--amber); }
.fcn.k-end.o-fail { --nbg: var(--coral-bg); --nline: var(--coral); } .fcn.k-end.o-fail .fci { color: var(--coral); }
.fcn.k-decision { background: transparent; border: 0; padding-inline: 26px; } .fcn.k-decision::before, .fcn.k-decision::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%); } .fcn.k-decision::before { inset: 0; background: var(--line-3); } .fcn.k-decision::after { inset: 1px; background: var(--chip); } .fcn.k-decision .fci { color: var(--tx-2); } .fcn.k-decision.has-sub { box-shadow: none; }
.fcn.on { --nline: var(--teal); box-shadow: 0 10px 26px -12px rgba(45, 212, 191, .55); } .fcn.on.has-sub { box-shadow: inset 0 0 0 3px var(--nbg), inset 0 0 0 4px var(--teal), 0 10px 26px -12px rgba(45, 212, 191, .55); } .fcn.k-decision.on::before { background: var(--teal); } .fcn.k-decision.on.has-sub { box-shadow: none; }
.insp { position: sticky; top: 80px; display: block; max-height: calc(100vh - 96px); overflow-y: auto; padding: 18px 20px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-3); scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; animation: qpop-in .16s cubic-bezier(.22, 1, .36, 1); }
.insp[hidden] { display: none; } .inspclose { position: absolute; top: 10px; inset-inline-end: 10px; }
#inspbody, .nd { display: flex; flex-direction: column; gap: 12px; }
.ndhead { display: flex; align-items: center; gap: 8px; padding-inline-end: 36px; }
.nd h3, #inspbody h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0; }
.ndsub { font-size: 13px; color: var(--mut); } .ndtext { font-size: 14px; line-height: 2; color: var(--tx-2); }
.ndrules { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.95; color: var(--tx); } .ndrules li::marker { color: var(--teal); }
.ndrow { display: flex; flex-direction: column; gap: 6px; } .ndl { font-size: 12px; color: var(--mut); }
.ndfiles { display: flex; flex-wrap: wrap; gap: 6px; } .ndfiles .file { padding: 3px 10px; }
.ndset { display: flex; flex-direction: column; gap: 6px; } .ndset > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; } .ndset code { font-size: 12px; color: var(--teal-2); text-align: left; overflow-wrap: anywhere; } .ndset .ltr.xs { text-align: left; }
.ndexits { display: flex; flex-direction: column; gap: 4px; } .ndexit { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; background: transparent; border: 1px solid var(--line-2); color: var(--tx-2); font-size: 13px; text-align: start; cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out; } .ndexit:hover { border-color: var(--teal); color: var(--tx); } .ndexit b { font-weight: 600; color: var(--teal-2); flex-shrink: 0; }
.ndcode { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mut); text-align: left; overflow-wrap: anywhere; }
.ndmore summary { font-size: 13px; color: var(--tx-2); cursor: pointer; } .ndmore pre { margin-top: 6px; }
.nd pre.log, #inspbody pre.log { max-height: 240px; line-height: 1.7; }
.ndsubcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--teal-line); } .ndsubcard .btn { height: 36px; font-size: 13px; }
.procrules { display: flex; flex-direction: column; gap: 10px; } .procrulerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; } a.procrule { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bar); border: 1px solid var(--line-2); color: inherit; transition: border-color .15s ease-out; } a.procrule:hover { border-color: var(--teal); color: inherit; }
.subs { display: flex; flex-direction: column; gap: 10px; } .sublist { display: flex; flex-direction: column; gap: 6px; }
details.sub, details.fulltext { border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; } details.sub[open] { border-color: var(--line-3); } details.sub > summary > a { white-space: nowrap; flex-shrink: 0; }
details.sub > summary, details.fulltext > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 12px; } details.sub > summary::-webkit-details-marker, details.fulltext > summary::-webkit-details-marker { display: none; } details.sub > summary:hover, details.fulltext > summary:hover { background: var(--chip); }
details.fulltext > summary { font-size: 14px; font-weight: 600; } details.fulltext > summary .xs { font-weight: 400; }
.subchev { display: inline-flex; color: var(--mut); flex-shrink: 0; transition: transform .2s cubic-bezier(.22, 1, .36, 1); } details[open] > summary > .subchev { transform: rotate(180deg); }
.subbody { display: block; padding: 2px 14px 14px; } .fragment { display: flex; flex-direction: column; gap: 12px; } .subloading { padding: 26px; text-align: center; font-size: 13px; color: var(--mut); }
.ftbody { display: grid; gap: 10px; padding: 2px 14px 14px; } .ftbody .nd { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); scroll-margin-top: 84px; }
details.allgaps { border-color: var(--amber); background: var(--amber-bg); } details.allgaps > summary { color: var(--amber); } details.allgaps > summary:hover { background: transparent; } .allgap { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); } .allgap ul { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.95; color: var(--tx-2); } .allgap li::marker { color: var(--amber); }
.procsource { line-height: 1.9; } .procsource .ltr { overflow-wrap: anywhere; }
.procsearch { display: flex; align-items: center; gap: 10px; max-width: 420px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-3); color: var(--mut); margin-top: 6px; } .procsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; color: var(--tx); outline: none; } .procsearch:focus-within { border-color: var(--teal); }
.procgroup { display: flex; flex-direction: column; gap: 10px; } .procgroup[hidden] { display: none; }
.procitems { display: flex; flex-direction: column; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
a.procitem { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) 54px; gap: 16px; align-items: baseline; padding: 12px 16px; color: inherit; border-bottom: 1px solid var(--line-2); transition: background .15s ease-out; } a.procitem:last-child { border-bottom: 0; } a.procitem:hover { background: var(--chip); color: inherit; } a.procitem[hidden] { display: none; } a.procitem strong { font-size: 14px; font-weight: 600; } a.procitem .navb { justify-self: end; }
@media (max-width: 1180px) {
  .procgrid.open { grid-template-columns: minmax(0, 1fr); }
  .insp { position: fixed; inset: auto 0 0 0; top: auto; max-height: 66vh; border-radius: 16px 16px 0 0; border-inline: 0; border-bottom: 0; z-index: 35; box-shadow: 0 -18px 48px rgba(0, 0, 0, .5); }
}
@media (max-width: 720px) { a.procitem { grid-template-columns: minmax(0, 1fr) auto; } a.procitem > .small { grid-column: 1 / -1; grid-row: 2; } details.sub > summary .xs { display: none; } }
@media (prefers-reduced-motion: reduce) { .qpop, .insp { animation: none; } .fcn, .fce, .q, .subchev { transition: none; } .fcn:hover { transform: none; } }

/* the target keywords (ADR-0062): position bands are one ordered teal ramp, checked against the card surface */
:root { --band-1: #7EE8DC; --band-2: #2DD4BF; --band-3: #1B8F82; --band-4: #155F57; --band-none: var(--line-3); }
.b-top3 { background: var(--band-1); } .b-top10 { background: var(--band-2); } .b-top20 { background: var(--band-3); } .b-rest { background: var(--band-4); } .b-none { background: var(--band-none); }
.trk { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.trkradio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trktabs label { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--tx-2); cursor: pointer; font-size: 13px; transition: border-color .15s ease-out, color .15s ease-out; }
.trktabs label:hover { color: var(--tx); border-color: var(--queued); }
#trk-week:checked ~ .trktabs label[data-g=week], #trk-month:checked ~ .trktabs label[data-g=month], #trk-year:checked ~ .trktabs label[data-g=year] { border-color: var(--teal); color: var(--teal-2); background: var(--teal-bg); }
#trk-week:focus-visible ~ .trktabs label[data-g=week], #trk-month:focus-visible ~ .trktabs label[data-g=month], #trk-year:focus-visible ~ .trktabs label[data-g=year] { outline: 2px solid var(--teal); outline-offset: 2px; }
.trkpanel { display: none; flex-direction: column; gap: 16px; min-width: 0; }
#trk-week:checked ~ .trkpanel[data-g=week], #trk-month:checked ~ .trkpanel[data-g=month], #trk-year:checked ~ .trkpanel[data-g=year] { display: flex; }
.trknow b { font-weight: 600; }
.trklegend i { border-radius: 3px; }
.trkbars { display: grid; gap: 12px; align-items: stretch; height: 170px; direction: ltr; }
.trkcol { display: flex; justify-content: center; height: 100%; border-radius: 6px; outline-offset: 2px; cursor: default; }
.trkcol:hover .trkstack { filter: brightness(1.12); } .trkcol.partial .trkstack { opacity: .55; }
.trkstack { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: 100%; max-width: 24px; height: 100%; }
.trkstack i { display: block; flex: none; min-height: 3px; } .trkstack i:first-child { border-radius: 4px 4px 0 0; }
.trkaxis { display: grid; gap: 12px; direction: ltr; font-size: 11px; color: var(--mut); text-align: center; font-variant-numeric: tabular-nums; } .trkaxis small { display: block; font-size: 10px; }
.trktable td { vertical-align: middle; } .trknum { font-variant-numeric: tabular-nums; white-space: nowrap; } .trknum b { font-weight: 700; font-size: 15px; }
.trktable .ttl { display: inline-flex; align-items: center; gap: 8px; } .trkdot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.trkrowline { display: block; } .trkpage { max-width: 340px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trkspark { display: block; direction: ltr; overflow: visible; } .trkspark path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .trkspark circle { fill: var(--teal-2); stroke: var(--card); stroke-width: 2; } .trkhit { fill: transparent; }
.trkall { margin-top: 2px; } .trkall summary { cursor: pointer; padding: 4px 0; } .trkall .tablewrap { margin-top: 8px; }
.trktip { position: fixed; z-index: 60; max-width: 300px; padding: 8px 12px; border-radius: 10px; background: var(--bar); border: 1px solid var(--line-3); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); color: var(--tx); font-size: 12px; line-height: 1.8; white-space: pre-line; pointer-events: none; }
.trkabout { line-height: 1.9; max-width: 110ch; } .trkempty p { max-width: 80ch; line-height: 2; }
.trkseg { display: flex; gap: 2px; height: 28px; } .trkseg i { display: flex; align-items: center; justify-content: flex-start; padding-inline: 8px; border-radius: 4px; min-width: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--bg); } .trkseg i.b-top20, .trkseg i.b-rest, .trkseg i.b-none { color: var(--tx); }
@media (max-width: 720px) { .trk .kpis.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trk .kpis.tight .v { font-size: 22px; } .trkbars, .trkaxis { gap: 6px; } }
/* what moved on the whole site (ADR-0076): two boxes per period, each with its own two radio pairs first in the box */
.trkmv { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trkmvboxhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.trkmvtoggles { display: flex; gap: 8px; flex-wrap: wrap; }
.mvseg { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--bar); }
.mvseg label { padding: 4px 12px; border-radius: 999px; color: var(--tx-2); cursor: pointer; font-size: 12px; transition: background-color .15s ease-out, color .15s ease-out; }
.mvseg label:hover { color: var(--tx); }
.trkmvbox .mvlist { display: none; min-width: 0; }
.trkmvbox input[data-m=clicks]:checked ~ input[data-d=query]:checked ~ .mvlist[data-m=clicks][data-d=query], .trkmvbox input[data-m=clicks]:checked ~ input[data-d=page]:checked ~ .mvlist[data-m=clicks][data-d=page], .trkmvbox input[data-m=impressions]:checked ~ input[data-d=query]:checked ~ .mvlist[data-m=impressions][data-d=query], .trkmvbox input[data-m=impressions]:checked ~ input[data-d=page]:checked ~ .mvlist[data-m=impressions][data-d=page] { display: block; }
.trkmvbox input[data-m=clicks]:checked ~ .trkmvboxhead label[data-m=clicks], .trkmvbox input[data-m=impressions]:checked ~ .trkmvboxhead label[data-m=impressions], .trkmvbox input[data-d=query]:checked ~ .trkmvboxhead label[data-d=query], .trkmvbox input[data-d=page]:checked ~ .trkmvboxhead label[data-d=page] { background: var(--teal-bg); color: var(--teal-2); }
.trkmvbox input[data-m=clicks]:focus-visible ~ .trkmvboxhead label[data-m=clicks], .trkmvbox input[data-m=impressions]:focus-visible ~ .trkmvboxhead label[data-m=impressions], .trkmvbox input[data-d=query]:focus-visible ~ .trkmvboxhead label[data-d=query], .trkmvbox input[data-d=page]:focus-visible ~ .trkmvboxhead label[data-d=page] { outline: 2px solid var(--teal); outline-offset: 1px; }
.trkmvtotals { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.trkmvgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.trkmvbox h2 { display: flex; align-items: center; gap: 8px; } .trkmvmark { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.trkmvbox.is-down .trkmvmark { background: var(--red); } .trkmvbox.is-up .trkmvmark { background: var(--green); }
.trkmvtable { table-layout: fixed; } .trkmvtable th, .trkmvtable td { padding: 8px 6px; vertical-align: middle; } .trkmvtable th:first-child, .trkmvtable td:first-child { padding-inline-start: 0; }
.trkmvtable th:not(:first-child), .trkmvtable td:not(:first-child) { width: 76px; } .trkmvtable th:last-child, .trkmvtable td:last-child { padding-inline-end: 0; }
.trkmvtable tbody tr { outline-offset: -2px; } .trkmvtable tbody tr:hover td { background: var(--line-2); }
.mvname { overflow-wrap: anywhere; } .mvname a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
@media (max-width: 900px) { .trkmvgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .trkmvbox { padding: 16px; } .trkmvtable th:not(:first-child), .trkmvtable td:not(:first-child) { width: 62px; } .trkmvtable { font-size: 13px; } .mvname a { white-space: normal; overflow-wrap: anywhere; } }
.moneyline { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-3); border-radius: 12px; } textarea.moneypages { height: auto; min-height: 112px; padding: 12px 16px; font-size: 14px; line-height: 1.7; resize: vertical; }
.phase .pleft { font-size: 11px; line-height: 1.7; color: var(--coral-tx); }

/* the link graph of an auto-linking run (ADR-0067) */
.lg-tools { gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.lg-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lg-stage svg { width: 100%; height: auto; max-height: 72vh; background: var(--bar); border: 1px solid var(--line); border-radius: 12px; }
.lg-side { border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-height: 72vh; overflow-y: auto; }
.lg-e { stroke: var(--line); stroke-width: 1; }
.lg-p { stroke-width: 2.5; opacity: .9; }
.lg-s { fill: var(--tx-2); font-size: 15px; paint-order: stroke; stroke: var(--bar); stroke-width: 5px; }
.lg-id { white-space: nowrap; }
.lg-p.lg-exact { stroke: var(--teal); }
.lg-p.lg-phrase { stroke: var(--amber); }
.lg-p.lg-paraphrase_needed { stroke: var(--coral); stroke-dasharray: 7 6; }
.lg-p.off { display: none; }
.lg-p.dim, .lg-e.dim { opacity: .08; }
.lg-n { cursor: pointer; stroke: var(--bg); stroke-width: 2; }
.lg-n.lg-money { fill: var(--teal-2); }
.lg-n.lg-support { fill: var(--mut); }
.lg-n.dim { opacity: .15; }
.lg-n.on, .lg-n:focus-visible { stroke: var(--tx); stroke-width: 3; outline: none; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }
.lg-dot.lg-money { background: var(--teal-2); }
.lg-dot.lg-support { background: var(--mut); }
.lg-dash { display: inline-block; width: 18px; height: 0; border-top: 2px solid; margin-inline-end: 6px; vertical-align: 3px; }
.lg-dash.lg-exact { border-color: var(--teal); }
.lg-dash.lg-phrase { border-color: var(--amber); }
.lg-dash.lg-paraphrase_needed { border-color: var(--coral); border-top-style: dashed; }
.lg-url { overflow-wrap: anywhere; font-size: 12px; }
.lg-row { overflow-wrap: anywhere; }
.chipbtn { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--tx-2); font: inherit; font-size: 12px; cursor: pointer; }
.chipbtn.on { background: var(--teal-bg); color: var(--teal-2); border-color: var(--teal); }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); }
  .lg-side { max-height: none; }
}
/* how to fix (ADR-0069): closed by default, opens under its row */
.fixrow td { padding-top: 0; border-top: 0; } tr:has(+ .fixrow) td { border-bottom: 0; }
.fixg summary { cursor: pointer; font-size: 13px; color: var(--teal-2); padding: 2px 0 8px; width: fit-content; }
.fixg .md { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; max-width: 100%; overflow-x: auto; }
/* the table keeps its columns when a guide opens: widths come from the colgroup, never from the guide (ADR-0091) */
.acttable { table-layout: fixed; } .acttable td:first-child { overflow-wrap: anywhere; }
@supports (interpolate-size: allow-keywords) {
  .fixg { interpolate-size: allow-keywords; }
  .fixg::details-content { height: 0; overflow: clip; transition: height .22s ease, content-visibility .22s allow-discrete; }
  .fixg[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { .fixg::details-content { transition: none; } }
}
.fixg .md pre { background: var(--card); white-space: pre-wrap; } .md pre code { display: block; border: 0; padding: 0; background: none; } .fixg .md p { margin: 6px 0; } .fixg .md h4 { font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
/* charts of the reports (ADR-0074): core/report/charts.py draws them; the categorical set was validated against the card
   (#151A21: lightness band, chroma, adjacent colour-blind and normal-vision separation, contrast), status keeps the panel tones */
:root { --v1: #14A391; --v2: #3987E5; --v3: #D55181; --v4: #9085E9; --v-info: #64748B; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); grid-auto-flow: row dense; gap: 16px; margin: 14px 0 22px; }
.viz { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; line-height: 1.7; }
.md .viz { margin: 14px 0; } .vgrid .viz { margin: 0; } .viz.wide { grid-column: 1 / -1; }
.viz figcaption { display: flex; flex-direction: column; gap: 2px; } .viz figcaption b { font-size: 15px; font-weight: 700; color: var(--tx); } .viz .vsub { font-size: 12px; color: var(--mut); }
.viz .vread { margin: 0; font-size: 13px; color: var(--tx-2); line-height: 1.9; }
.vleg { font-size: 12px; } .vleg i.ln { height: 2px; width: 14px; border-radius: 2px; } .vleg i.dot { border-radius: 50%; }
.vbars { display: flex; flex-direction: column; gap: 6px; }
.vrow { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; font-size: 13px; outline-offset: 0; }
.vrow:hover, .vrow:focus-visible { background: var(--bar); }
.vrow .vl { display: flex; flex-direction: column; min-width: 0; color: var(--tx-2); overflow-wrap: anywhere; line-height: 1.5; } .vrow .vl small { font-size: 11px; }
.vrow .vl .ltr { text-align: right; font-size: 12px; }
.vt { position: relative; display: flex; gap: 2px; height: 14px; } .vt i { display: block; height: 100%; min-width: 2px; flex: none; }
.vt i:last-of-type { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.vt.meter { background: var(--line); border-radius: 4px; } .vt.meter i:first-of-type { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.vrow .vv { min-width: 44px; text-align: left; color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vref { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--tx-2); opacity: .7; }
.vseg { display: flex; gap: 2px; height: 28px; } .vseg i { display: flex; align-items: center; padding-inline: 8px; border-radius: 4px; min-width: 4px; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: visible; outline-offset: 2px; }
.ink-dark { color: var(--bg); } .ink-light { color: var(--tx); }
.vseg i:hover, .vchip:hover, .vcol:hover i, .vrow:hover .vt i { filter: brightness(1.12); }
.vcols { display: grid; gap: 10px; align-items: stretch; height: 150px; direction: ltr; }
.vcol { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 11px; color: var(--tx-2); outline-offset: 2px; border-radius: 6px; }
.vcol i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; min-height: 0; } .vcol span { min-height: 16px; font-variant-numeric: tabular-nums; }
.vcolx { display: grid; gap: 10px; direction: ltr; font-size: 11px; color: var(--mut); text-align: center; line-height: 1.5; }
.vscroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; } .vscroll.lx { direction: ltr; }
.vline { display: block; width: 100%; min-width: 520px; height: auto; direction: ltr; font-family: inherit; overflow: visible; }
.vgridl { stroke: var(--line-2); stroke-width: 1; } .vtick { fill: var(--mut); font-size: 11px; font-variant-numeric: tabular-nums; } .vend { fill: var(--tx-2); font-size: 12px; }
.vpath { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .vdot { stroke: var(--card); stroke-width: 2; }
.vband rect { fill: transparent; } .vband .vx { stroke: var(--tx-2); stroke-width: 1; opacity: 0; } .vband:hover .vx, .vband:focus .vx { opacity: .55; } .vband:focus { outline: none; }
.vzone { fill: var(--line-2); opacity: .45; } .vpt { cursor: default; } .vpt .vhit { fill: transparent; } .vpt:focus { outline: none; } .vpt:focus .vdot, .vpt:hover .vdot { stroke: var(--tx); }
/* the three-dimensional scatter (charts.py::scatter3d): views and categories in one row above, the drawing turns by drag */
.v3d { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v3dbar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.v3dviews, .v3dkeys { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.v3dbar button { font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bar); color: var(--tx-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease-out, border-color .15s ease-out, opacity .15s ease-out; }
.v3dbar button:hover { color: var(--tx); border-color: var(--queued); } .v3dbar button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.v3dviews button[aria-pressed=true] { background: var(--teal-bg); color: var(--teal-2); border-color: var(--teal-line); }
.v3dkeys i { width: 10px; height: 10px; border-radius: 3px; display: block; } .v3dkeys button[aria-pressed=false] { opacity: .45; text-decoration: line-through; }
.v3dsvg { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; } .v3d.dragging .v3dsvg { cursor: grabbing; }
.v3dsvg:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.v3dzone { stroke: var(--line-3); stroke-width: 1; fill-opacity: .12; } .v3dzone.core { fill: var(--v1); } .v3dzone.support { fill: var(--v2); } .v3dzone.edge { fill: var(--v4); fill-opacity: .08; } .v3dzone.far { fill: var(--v3); }
.v3daxis { stroke: var(--line-3); stroke-width: 1.5; } .v3dstem { stroke-width: 1; opacity: .35; } .v3dshadow { fill: var(--mut); opacity: .45; }
.v3dzname { fill: var(--tx); font-size: 12px; font-weight: 700; pointer-events: none; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; } .v3dtitle { fill: var(--tx-2); font-size: 12px; pointer-events: none; }
.v3dhint { font-size: 12px; color: var(--mut); margin: 0; }
.v3d .vline { min-width: 0; } /* the drawing fits the width: on a phone a sideways scroll would fight the turning */
@media (max-width: 560px) { .v3dsvg .vtick { font-size: 18px; } .v3dsvg .v3dtitle, .v3dsvg .v3dzname { font-size: 20px; } .v3dsvg .vdot { r: 6px; } }
.v3dfloor b { font-weight: 600; color: var(--tx-2); } .v3dfloor i { opacity: .55; } .v3dfloor i.core { background: var(--v1); } .v3dfloor i.support { background: var(--v2); } .v3dfloor i.edge { background: var(--v4); } .v3dfloor i.far { background: var(--v3); }
.vmat { display: grid; gap: 4px; font-size: 12px; }
.vmh { color: var(--mut); text-align: center; padding: 2px 0; } .vmh:first-child { text-align: right; }
.vmr { color: var(--tx-2); display: flex; align-items: center; }
.vmc { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; min-height: 40px; padding: 8px; border-radius: 8px; background: var(--bar); border: 1px solid var(--line-2); }
.vmc.on { border-color: var(--teal-line); background: var(--teal-bg); } .vmark { width: 100%; font-size: 11px; color: var(--teal-tx); }
.vchip { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: default; outline-offset: 2px; }
.vrange { background: none; } .vrange::before { content: ""; position: absolute; inset-inline: 0; top: 6px; height: 2px; background: var(--line); border-radius: 2px; }
.vband2 { position: absolute; top: 2px; height: 10px; border-radius: 4px; background: var(--teal-line); }
.vnow, .vmid { position: absolute; top: 1px; width: 12px; height: 12px; margin-inline-start: -6px; border-radius: 50%; border: 2px solid var(--card); }
.vnow { background: var(--queued); } .vmid { background: var(--teal); }
.vaxis { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) minmax(44px, auto); gap: 12px; padding: 0 6px; font-size: 11px; color: var(--mut); } .vax { display: flex; justify-content: space-between; } .vax b { font-weight: 400; font-variant-numeric: tabular-nums; }
.vtab summary { cursor: pointer; font-size: 12px; color: var(--teal-2); width: fit-content; } .vtab .tablewrap { margin-top: 8px; max-height: 340px; overflow: auto; } .vtab table { font-size: 12px; } .vtab td, .vtab th { padding: 6px 10px; }
.viztip { position: fixed; z-index: 60; max-width: 320px; padding: 8px 12px; border-radius: 10px; background: var(--bar); border: 1px solid var(--line-3); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); color: var(--tx); font-size: 12px; line-height: 1.8; white-space: pre-line; pointer-events: none; }
.viztip b { font-weight: 700; }
.vheat { display: grid; gap: 3px; font-size: 12px; min-width: 520px; } .vheat .vmr { display: flex; flex-direction: column; justify-content: center; line-height: 1.4; } .vheat .vmr small { font-size: 11px; color: var(--mut); } .vheat .vmr .ltr { text-align: right; }
.vhc { display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 4px; font-weight: 700; font-variant-numeric: tabular-nums; outline-offset: 1px; cursor: default; } .vhc.zero { background: var(--bar); color: var(--mut); font-weight: 400; } .vhc:hover { filter: brightness(1.12); }
.vramp { display: inline-flex; gap: 2px; } .vramp i { width: 18px; height: 10px; border-radius: 2px; display: block; }
.vchecks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px 18px; font-size: 13px; } .vchecks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; } .vchecks li > span:last-child { display: flex; flex-direction: column; } .vchecks small { font-size: 11px; }
.vci { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 64px; font-size: 11px; padding-top: 2px; }
@media (max-width: 720px) { .vrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; } .vrow .vt { grid-column: 1 / -1; grid-row: 2; } .vaxis { grid-template-columns: 1fr; } .vaxis > span:empty { display: none; } .viz { padding: 16px; } }
/* the content reranker's keywords and one report per keyword (ADR-0082) */
.rrkform { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: end; margin: 0; } .rrkform label { gap: 6px; min-width: 0; } .rrkform .btn { height: 50px; }
.rrklist td { vertical-align: middle; } .rrkkw { font-size: 15px; } .rrkpath { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--tx-2); }
.rrknum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; } .rrknum.teal { color: var(--teal); } .rrknum.amber { color: var(--amber); } .rrknum.coral { color: var(--coral); }
.rrkopen { height: 34px; padding: 0 14px; font-size: 13px; }
.rrfacts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--mut); } .rrfacts b { color: var(--tx-2); font-weight: 500; } .rrfacts a { display: inline-block; max-width: min(420px, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.rrintent { gap: 8px; } .rrintent p { max-width: 110ch; line-height: 1.9; }
.rrtasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } .rrtask { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); } .rrtask:first-child { border-top: 0; padding-top: 4px; }
.rrn { width: 34px; height: 34px; border-radius: 10px; background: var(--chip); color: var(--tx); display: flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rrtask strong { font-size: 15px; } .rrtask p { max-width: 100ch; line-height: 1.9; font-size: 14px; }
.rrex summary, .rrmore > summary { cursor: pointer; font-size: 13px; color: var(--teal-2); width: fit-content; padding: 2px 0; } .rrex[open] > summary { margin-bottom: 8px; }
.rrexbody { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); max-width: 100ch; } .rrexbody p { font-size: 13px; line-height: 1.9; color: var(--tx-2); }
.rrmore { border-top: 1px solid var(--line-2); padding-top: 14px; } .rrmore[open] > summary { margin-bottom: 10px; } .rrlist { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.9; }
.rrown { border-top: 0; padding-top: 0; } .rrown > summary { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--tx); } .rrown > summary h2 { font-size: 16px; }
.rrmap td { vertical-align: middle; } .rrtopic summary { color: var(--tx); font-size: 14px; font-weight: 600; } .rrtopic[open] summary { color: var(--teal-2); } .rrloose { opacity: .6; }
.rrdots { display: inline-flex; gap: 5px; direction: rtl; align-items: center; } .rrcount { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tx-2); }
.rrdot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; box-sizing: border-box; }
.rrdot.covered { background: var(--teal); } .rrdot.touched { border: 2px solid var(--amber); background: linear-gradient(to left, var(--amber) 50%, transparent 50%); } .rrdot.missing { border: 2px solid var(--queued); }
.rrtitle { display: block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrtermlead { max-width: 110ch; line-height: 1.9; } .rrterms > summary { display: flex; align-items: center; gap: 10px; color: var(--tx); width: 100%; } .rrterms > summary .mut { font-size: 13px; }
.rrtermtable td { vertical-align: middle; } .rrtermtable strong { font-size: 14px; } .rrtermhead { display: block; } .rrtermline { line-height: 2; max-width: 120ch; }
.rrmeterline { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; } .rrmeterline b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--tx-2); }
.rrmeter { display: inline-block; width: 72px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; direction: rtl; flex: none; } .rrmeter i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.rrfoot { display: flex; flex-direction: column; gap: 10px; line-height: 1.9; max-width: 120ch; }
.rrover td { vertical-align: middle; } .rrbarline { display: flex; align-items: center; gap: 12px; min-width: 240px; } .rrbarline b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rrbar, .rrbands { display: flex; gap: 2px; height: 12px; flex: 1 1 auto; min-width: 120px; direction: rtl; } .rrbands { height: 16px; flex: none; }
.kpis.tight.six { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.rrbar i, .rrbands i { display: block; height: 100%; min-width: 4px; border-radius: 3px; }
.rrbar i.covered, .rrbands i.done, .rrbandkey.done { background: var(--teal); } .rrbar i.touched, .rrbands i.doing, .rrbandkey.doing { background: var(--amber); }
.rrbar i.missing { background: var(--queued); } .rrbands i.proposed, .rrbandkey.proposed { background: var(--coral); } .rrbands i.closed, .rrbandkey.closed { background: var(--queued); }
.rrbandkey { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
@media (max-width: 860px) { .rrkform { grid-template-columns: minmax(0, 1fr); } }
/* the writer's draft: the text box on top, the highlights drawn under it in the same box, the terms beside it */
.rrdraftcard { position: relative; scroll-margin-top: 84px; } .rrdraftcard [hidden] { display: none !important; }
.rrdraft { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 14px; }
@media (max-width: 1000px) { .rrdraft { grid-template-columns: minmax(0, 1fr); } .rrdraftside { position: static; max-height: none; } }
.rrdrafted { position: relative; }
.rrdrafthl, .rrdraftinput { box-sizing: border-box; width: 100%; margin: 0; padding: 14px 18px; border: 1px solid transparent; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 2.1; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; direction: rtl; text-align: right; scrollbar-gutter: stable; }
.rrdraftinput { position: relative; z-index: 1; display: block; height: 440px; min-height: 220px; resize: vertical; overflow-y: auto; background: transparent; color: var(--tx); border-color: var(--line-3); caret-color: var(--teal); }
.rrdraftinput::placeholder { color: var(--mut); }
.rrdrafthl { position: absolute; inset: 0; overflow: hidden; color: transparent; background: var(--bg); }
.rrdrafthl mark { color: transparent; border-radius: 4px; background: color-mix(in srgb, var(--teal) 20%, transparent); box-shadow: inset 0 -2px 0 var(--teal), inset 1px 0 0 var(--bg), inset -1px 0 0 var(--bg); -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .15s ease; }
.rrdrafthl mark.partly { box-shadow: inset 1px 0 0 var(--bg), inset -1px 0 0 var(--bg); background-color: color-mix(in srgb, var(--amber) 13%, transparent); background-image: linear-gradient(to left, var(--amber) 55%, transparent 0); background-size: 7px 2px; background-repeat: repeat-x; background-position: 0 100%; }
.rrdrafthl mark.on { background-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.rrdrafthl mark.partly.on { background-color: color-mix(in srgb, var(--amber) 38%, transparent); }
.rrdrafthl mark.here { animation: rrdraftpulse 1.4s ease-out 1; }
@keyframes rrdraftpulse { from { outline: 4px solid color-mix(in srgb, var(--teal) 70%, transparent); } to { outline: 4px solid transparent; } }
@media (prefers-reduced-motion: reduce) { .rrdrafthl mark.here { animation: none; } .rrdrafthl mark { transition: none; } }
.rrdraftfoot { margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.rrdraftkey { display: flex; gap: 14px; align-items: center; }
.rrdraftkey > span { display: flex; gap: 6px; align-items: center; }
.rrdraftkey i { width: 18px; height: 11px; border-radius: 3px; display: block; }
.rrdraftkey i.has { background: color-mix(in srgb, var(--teal) 20%, transparent); box-shadow: inset 0 -2px 0 var(--teal); }
.rrdraftkey i.partly { background-color: color-mix(in srgb, var(--amber) 13%, transparent); background-image: linear-gradient(to left, var(--amber) 55%, transparent 0); background-size: 6px 2px; background-repeat: repeat-x; background-position: 0 100%; }
.rrdraftclear { background: none; border: 0; padding: 0; color: var(--teal-2); font-size: 12px; cursor: pointer; }
.rrdraftside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); max-height: calc(100vh - 120px); overflow-y: auto; }
.rrdraftnum { display: flex; flex-direction: column; gap: 2px; } .rrdraftnum b { font-size: 30px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rrdraftnum b.teal { color: var(--teal); } .rrdraftnum b.amber { color: var(--amber); } .rrdraftnum b.coral { color: var(--coral); } .rrdraftnum span { font-size: 12px; color: var(--mut); }
.rrdraftmeter { display: flex; height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; direction: rtl; }
.rrdraftseg { display: block; height: 100%; flex: none; transition: width .3s ease; }
.rrdraftseg.has { background: var(--teal); } .rrdraftseg.partly { background: var(--amber); } .rrdraftseg.missing { background: transparent; }
.rrdraftlists { display: flex; flex-direction: column; gap: 16px; }
.rrdrafthead { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rrdraftchips { display: flex; gap: 6px; flex-wrap: wrap; }
.rrdraftchip { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; font-family: inherit; font-size: 12.5px; line-height: 1.7; cursor: pointer; }
.rrdraftchip.has { background: var(--teal-bg); color: var(--teal-2); } .rrdraftchip.partly { background: var(--amber-bg); color: var(--amber); } .rrdraftchip.missing { background: var(--line); color: var(--tx-2); }
.rrdraftchip:disabled { cursor: default; opacity: 1; } .rrdraftchip.added { border-color: var(--teal-line); } .rrdraftchip.on { border-color: currentColor; }
.rrdraftchip .n { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.rrdrafttip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); font-size: 12px; line-height: 1.7; pointer-events: none; }
.rrdrafttip b { font-size: 13px; }
/* the target keywords: which rose and which dropped, and the mean position of the non-brand ones as one line */
.trkmoves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .trkmoves { grid-template-columns: minmax(0, 1fr); } }
.trkmove { padding: 18px 20px; border-radius: 14px; gap: 6px; }
.trkmove .l { display: flex; align-items: center; gap: 8px; }
.trkmovemark { width: 10px; height: 10px; border-radius: 50%; display: block; flex: none; }
.trkmove.is-up .trkmovemark { background: var(--green); } .trkmove.is-down .trkmovemark { background: var(--red); }
.trkmove .v { font-size: 28px; font-weight: 700; line-height: 1.3; }
.trkmovenames { font-size: 12.5px; line-height: 1.8; color: var(--tx-2); }
.trkmove[data-tip] { cursor: default; } .trkmove[data-tip]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.trkmovefoot { margin: 8px 2px 0; }
.trkavg { margin-top: 14px; }
.trklinebox { position: relative; height: 230px; margin-top: 14px; }
@media (max-width: 720px) { .trklinebox { height: 180px; } }
.trkline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trkgrid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trklinepath { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trkpt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--card); transform: translate(-50%, -50%); pointer-events: none; }
.trkpt.partial { background: var(--card); border: 2px solid var(--teal); box-sizing: border-box; }
.trklinehit { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); border-radius: 6px; }
.trklinehit:hover, .trklinehit:focus-visible { background: color-mix(in srgb, var(--teal) 8%, transparent); outline: none; }
.trkyticks span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; pointer-events: none; }
.trklast { position: absolute; transform: translate(-50%, calc(-100% - 8px)); font-size: 12px; font-weight: 700; color: var(--tx); background: var(--card); padding: 0 4px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.trkxticks { position: relative; height: 22px; margin-top: 6px; }
.trkxticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--mut); white-space: nowrap; }
.trkxticks small { font-size: 10px; }
@media (max-width: 720px) { .trkxticks span:nth-child(even) { visibility: hidden; } }
/* settings: who may sign in, with which role, on which projects (ADR-0088) */
.setform { display: grid; gap: 16px; margin-top: 12px; }
.setfield { gap: 6px; max-width: 420px; }
.setroles, .setprojects { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.setroles legend, .setprojects legend { margin-bottom: 8px; }
.setrole { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 12px; cursor: pointer; min-width: 200px; flex: 1 1 200px; }
.setrole > span { display: flex; flex-direction: column; gap: 2px; } .setrole b { font-weight: 600; font-size: 14px; }
.setrole:has(input:checked) { border-color: var(--teal-line); background: var(--teal-bg); }
.setproj { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line-3); border-radius: 999px; cursor: pointer; font-size: 13px; }
.setproj:has(input:checked) { border-color: var(--teal-line); background: var(--teal-bg); color: var(--teal-2); }
.setpeople { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.setperson { border: 1px solid var(--line-2); border-radius: 12px; }
.setperson > summary { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, 1.4fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.setperson > summary::-webkit-details-marker { display: none; }
.setperson[open] > summary { border-bottom: 1px solid var(--line-2); }
.setwho { display: flex; flex-direction: column; min-width: 0; } .setwho .ltr { text-align: right; overflow: hidden; text-overflow: ellipsis; }
.setprojs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setedit { padding: 4px 14px 14px; }
/* the work basket of a developer or writer (ADR-0093) */
.setbasket { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 16px; } .setbasketnote { flex-basis: 100%; margin: -2px 0 4px; line-height: 1.8; }
.setactions { gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.setdanger { color: var(--coral); border-color: var(--coral-line); }
.setlinkrow { gap: 8px; margin-top: 10px; } .setlinkrow .input { flex: 1; }
@media (max-width: 720px) { .setperson > summary { grid-template-columns: auto minmax(0, 1fr) auto; } .setprojs { grid-column: 2 / -1; } }
/* tasks: who took what and where it stands (ADR-0089) */
.tkfilters { gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.tkchip { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; color: var(--tx-2); }
.tkchip.on { border-color: var(--teal-line); background: var(--teal-bg); color: var(--teal-2); }
.tksep { width: 1px; height: 22px; background: var(--line-3); margin: 0 4px; }
.tkguide { margin-inline-start: auto; color: var(--teal-2); }
.tkboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .tkboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tkboard { grid-template-columns: minmax(0, 1fr); } }
.tkcol { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tkcolhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .tkcolhead h2 { font-size: 15px; margin: 0; }
.tkcount { min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--chip); color: var(--tx-2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tkcol.is-review .tkcount { background: var(--amber-bg); color: var(--amber); } .tkcol.is-done .tkcount { background: var(--teal-bg); color: var(--teal-2); }
.tkcolnote { margin: -4px 0 2px; }
.tkcard { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); scroll-margin-top: 90px; }
.tkcard.mine { border-color: var(--teal-line); }
.tkcard:target { outline: 2px solid var(--teal); outline-offset: 2px; }
.tkcardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tkid { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.tktitle { font-size: 13.5px; font-weight: 600; line-height: 1.7; margin: 0; }
.tkmeta { display: flex; gap: 4px; flex-wrap: wrap; }
.tkreason { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--coral-bg); color: var(--coral-tx); }
.tkmoves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tkbtn { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.tkwhy > summary { list-style: none; } .tkwhy > summary::-webkit-details-marker { display: none; }
.tkwhy[open] { flex-basis: 100%; }
.tkreasonbox { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-3); background: var(--card); font-size: 13px; resize: vertical; margin-top: 6px; }
.tkempty { margin: 4px 2px; }
/* the tasks of one keyword under the writer's draft (ADR-0090) */
.rrwork { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.rrwork h3 { font-size: 14px; margin: 0; }
.rrworklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rrworkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.rrworktitle { flex: 1 1 260px; font-size: 13px; line-height: 1.7; }
.tkscore { margin: 0; color: var(--tx-2); } .tkscore b { color: var(--teal-2); font-variant-numeric: tabular-nums; }
/* priority as a coloured label on top of the card, Trello-like; the filter chips carry the same colour (ADR-0091) */
.tkprio { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 5px; font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--bg); background: var(--teal); }
.tkprio.coral { background: var(--coral); color: var(--coral-ink); } .tkprio.amber { background: var(--amber); color: #1F1605; }
.tkcardhead { justify-content: flex-start; } .tkcardhead .tkid { margin-inline-end: auto; } .tkcardhead .tkstage { padding: 2px 9px; font-size: 11.5px; }
.tkdot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: var(--teal); margin-inline-end: 6px; }
.tkdot.coral { background: var(--coral); } .tkdot.amber { background: var(--amber); }
.tkpcount { margin-inline-start: 6px; font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; } .tkchip.on .tkpcount { color: var(--teal-2); }
.tkcard { cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.tkcard:hover { border-color: var(--line-3); background: color-mix(in srgb, var(--bg) 70%, var(--card)); }
.tkcard.is-open { border-color: var(--teal); }
.tkopen { all: unset; cursor: pointer; display: inline; font: inherit; color: inherit; line-height: inherit; text-align: start; }
.tkopen:hover { color: var(--teal-2); } .tkopen:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.tkcard form, .tkcard details { cursor: auto; }
.tkcheck { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--teal-line); background: var(--teal-bg); color: var(--teal-2); font-weight: 600; transition: border-color .15s ease-out, color .15s ease-out; }
.tkcheck:hover { border-color: var(--teal); color: var(--teal); } .tkcheck svg { flex-shrink: 0; }
/* one task's side panel: opens on the left, the board stays where it was */
.tkdrawer { position: fixed; inset: 0; z-index: 60; }
.tkdback { position: absolute; inset: 0; background: rgb(5 8 12 / .55); opacity: 0; transition: opacity .2s ease-out; }
.tkdpanel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(620px, 100vw); background: var(--card); border-inline-start: 1px solid var(--line); box-shadow: -18px 0 40px rgb(0 0 0 / .35); overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 40px; transform: translateX(-102%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); outline: none; }
.tkdrawer.on .tkdback { opacity: 1; } .tkdrawer.on .tkdpanel { transform: none; }
@media (prefers-reduced-motion: reduce) { .tkdback, .tkdpanel { transition: none; } }
html.tkd-lock { overflow: hidden; }
.tkdclose { position: sticky; top: 0; float: left; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--card); color: var(--tx-2); font-size: 20px; line-height: 1; cursor: pointer; z-index: 1; }
.tkdclose:hover { color: var(--tx); border-color: var(--queued); }
.tkd { display: flex; flex-direction: column; gap: 12px; }
.tkdhead { display: flex; align-items: center; gap: 8px; }
.tkdtitle { font-size: 17px; font-weight: 700; line-height: 1.8; margin: 0; }
.tkdfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.tkdfacts > div { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.tkdfacts dt { font-size: 11.5px; color: var(--mut); } .tkdfacts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.tkdsec { border-top: 1px solid var(--line-2); padding-top: 12px; }
.tkdsec h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; } .tkdsec h3 .mut { font-weight: 500; font-size: 12px; margin-inline-start: 4px; }
.tkdguide { font-size: 13.5px; } .tkdguide pre { max-width: 100%; }
.tkdskel { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.tkdskel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--line-3), var(--line-2)); background-size: 200% 100%; animation: tkd-shimmer 1.2s linear infinite; }
.tkdskel i:nth-child(1) { width: 30%; } .tkdskel i:nth-child(2) { width: 85%; height: 20px; } .tkdskel i:nth-child(3) { width: 70%; } .tkdskel i:nth-child(4) { width: 90%; height: 80px; }
@keyframes tkd-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .tkdskel i { animation: none; } }
/* the progress of the approved work on the management pages (ADR-0090) */
.tkprog { display: flex; flex-direction: column; gap: 14px; }
.tkproghead { align-items: flex-start; gap: 16px; }
.tkprogpct { display: flex; flex-direction: column; align-items: flex-end; } .tkprogpct b { font-size: 28px; font-weight: 700; color: var(--teal); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tkprogbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line-2); gap: 2px; }
.tkseg { display: block; height: 100%; }
.tkseg.done { background: var(--teal); } .tkseg.in_review { background: var(--amber); } .tkseg.doing { background: color-mix(in srgb, var(--teal) 45%, var(--card)); }
.tkseg.blocked { background: var(--coral); } .tkseg.ready { background: var(--queued); }
.tkproglegend i.tkseg { width: 10px; height: 10px; border-radius: 3px; }
.tkproglegend b { color: var(--tx); font-weight: 600; margin-inline-start: 4px; }
.tkproggrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
@media (max-width: 860px) { .tkproggrid { grid-template-columns: minmax(0, 1fr); } }
.tkproggrid h3 { margin: 0 0 8px; color: var(--tx-2); }
.tkpeople { width: 100%; font-size: 13px; }
.tkrecent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.7; }
.tkproglink { color: var(--teal-2); align-self: flex-start; }
