.flow-watch {
  --flow-mine: #5659da;
  --flow-following: #7daeea;
  --flow-done: #26a08a;
  --flow-paused: #d79842;
  container-type: inline-size;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 18px #1c375407;
}
.flow-header, .flow-list-head, .flow-header h2, .flow-header a,
.flow-item-name, .flow-meta { display: flex; align-items: center; }
.flow-header {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8ecf4;
}
.flow-header h2 { gap: 9px; margin: 0; font-size: 1rem; }
.flow-header h2 .ic { width: 19px; height: 19px; color: #5e64c4; }
.flow-header a, .flow-more { color: #4357a6; font-size: .76rem; font-weight: 600; text-decoration: none; }
.flow-header a { gap: 6px; white-space: nowrap; }
.flow-header a .ic { width: 15px; height: 15px; }
.flow-header a:hover, .flow-more:hover { text-decoration: underline; }
.flow-grid { display: grid; grid-template-columns: minmax(215px, .8fr) minmax(0, 1.7fr); }
.flow-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 23px);
  padding: 18px;
  border-right: 1px solid #e6eaf4;
  background: linear-gradient(140deg, #f6f9ff 0%, #f8f9fe 70%, #fff 100%);
  border-radius: 0 0 0 16px;
}
.flow-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(96px, 10vw, 144px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #b8c8e2 0deg 1deg, transparent 1deg 15deg);
  isolation: isolate;
}
.flow-ring::before, .flow-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--flow-arcs);
  z-index: -1;
}
.flow-ring::after { inset: 17%; background: #fbfcff; }
.flow-ring:hover::after { background: white; box-shadow: 0 0 0 3px #ffffff70; }
.flow-ring > span { display: grid; justify-items: center; gap: 2px; }
.flow-ring strong { font: 650 clamp(1.75rem, 2.5vw, 2.5rem)/1.05 "Inter", system-ui, sans-serif; letter-spacing: -.05em; color: #23334d; }
.flow-ring small { font-size: .7rem; color: #566477; }
.flow-legend { display: grid; align-content: center; gap: 4px; min-width: 88px; }
.flow-key {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 31px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #455470;
  text-align: left;
  font-size: .75rem;
  white-space: nowrap;
}
.flow-key:hover, .flow-key[aria-pressed="true"] { border-color: #c9d6eb; background: #fff; color: #23334d; }
.flow-key b { margin-left: 5px; font-variant-numeric: tabular-nums; font-size: .88rem; }
.flow-dot { width: 7px; height: 7px; border-radius: 2px; }
.flow-dot.mine { background: var(--flow-mine); }
.flow-dot.following { background: var(--flow-following); }
.flow-dot.done { background: var(--flow-done); }
.flow-dot.paused { background: var(--flow-paused); }
.flow-list { min-width: 0; padding: 8px 20px; align-self: stretch; }
.flow-list-head { min-height: 28px; gap: 8px; justify-content: space-between; }
.flow-list-head h3 { margin: 0; color: #495972; font-size: .75rem; font-weight: 650; }
.flow-more { padding: 4px; }
.flow-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(65px, auto) 12px;
  gap: 9px;
  align-items: center;
  min-height: 49px;
  padding: 6px 0;
  border-top: 1px solid #e9edf4;
  color: var(--ink);
  text-decoration: none;
}
.flow-item:hover { background: #f7faff; }
.flow-item-text { min-width: 0; }
.flow-item-name { gap: 6px; flex-wrap: wrap; }
.flow-item-name strong { font-size: .85rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.flow-urgent { font-size: .64rem; font-weight: 700; color: #93451c; background: #fff1df; padding: 0 5px; border-radius: 3px; }
.flow-meta { gap: 0 6px; flex-wrap: wrap; margin-top: 2px; color: #5d6c82; font-size: .7rem; overflow-wrap: anywhere; }
.flow-meta code { color: #535e84; font-size: .69rem; }
.flow-handoff { display: grid; justify-items: end; text-align: right; gap: 1px; }
.flow-handoff b { font-size: .75rem; font-weight: 600; }
.flow-handoff small { font-size: .69rem; color: #5d6c82; }
.flow-item > .ic { width: 12px; height: 12px; color: #617494; }
.flow-empty { min-height: 70px; padding: 14px 0; color: #5d6c82; font-size: .83rem; border-top: 1px solid #e9edf4; }
@container (max-width: 820px) and (min-width: 621px) {
  .flow-chart { gap: 8px; padding: 12px 8px; }
  .flow-ring { width: 100px; }
  .flow-list { padding-inline: 14px; }
}
@container (max-width: 620px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-chart { justify-content: start; gap: 20px; padding: 12px 18px; border: 0; border-bottom: 1px solid #e6eaf4; border-radius: 0; }
  .flow-ring { width: 90px; }
  .flow-legend { flex: 1; max-width: 250px; gap: 0; }
  .flow-key { min-height: 28px; }
  .flow-header { padding: 12px 14px 10px; }
  .flow-list { padding: 6px 14px; }
}
@container (max-width: 380px) {
  .flow-item { grid-template-columns: minmax(0, 1fr) 72px 10px; gap: 4px; }
  .flow-item-name strong { font-size: .8rem; }
  .flow-meta, .flow-meta code, .flow-handoff small { font-size: .67rem; }
  .flow-handoff b { font-size: .69rem; }
}
