:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #1d1d1f;
  --ink-title: #1d1d1f;
  --muted: #6e6e73;
  --quote: #424245;
  --line: #d2d2d7;
  --cinnabar: #0071e3;
  --cinnabar-deep: #0077ed;
  --bronze: #6e6e73;
  --cover: #f5f5f7;
  --cover-ink: #1d1d1f;
  --cover-soft: #1d1d1f;
  --cover-dim: #86868b;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Noto Sans SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--cover);
  color: var(--cover-ink);
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 16px;
}
.seal {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: #e8f2fc;
  color: #0071e3;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
}
.brand-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand-sub {
  margin-top: 2px;
  color: #86868b;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.search {
  display: block;
  margin: 0 16px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cover-ink);
  padding: 10px 12px;
  outline: none;
  font-size: 16px;
}
.search input::placeholder { color: #86868b; }

.years {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px 10px;
}
.years button {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--cover-dim);
  border-radius: 999px;
  padding: 4px 8px;
}
.years button.on {
  background: #e8f2fc;
  color: #0071e3;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 16px 8px;
  padding: 3px;
  background: #e8e8ed;
  border-radius: 10px;
}
.view-switch button {
  border: 0;
  background: transparent;
  color: #6e6e73;
  border-radius: 8px;
  padding: 6px 0;
}
.view-switch button.on {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 8px;
}
.list::-webkit-scrollbar { width: 8px; }
.list::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: 99px;
}

.month-label, .pin-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 18px 6px;
  background: var(--cover);
  color: #86868b;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.entry {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--cover-ink);
  padding: 9px 16px 9px 14px;
  border-left: 2px solid transparent;
}
.entry:hover { background: rgba(0, 0, 0, 0.04); }
.entry.active {
  background: #ffffff;
  border-left-color: #0071e3;
}
.entry .title { color: #1d1d1f; }
.entry .day {
  font-variant-numeric: tabular-nums;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #1d1d1f;
}
.entry .ym {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #86868b;
}
.entry .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  font-size: 14px;
}
.entry .meta-line {
  margin-top: 3px;
  color: #86868b;
  font-size: 12px;
}
.empty-note {
  padding: 24px 18px;
  color: var(--cover-dim);
  font-size: 14px;
}

.calendar { padding: 6px 14px 16px; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-nav strong {
  font-weight: 500;
  letter-spacing: 0.06em;
}
.cal-nav button, .icon-btn, .ghost, .lb-close, .lb-nav, .menu-btn {
  border: 0;
  background: transparent;
  color: inherit;
}
.cal-nav button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--cover-ink);
}
.cal-nav button:hover { background: rgba(0, 0, 0, 0.05); }
.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.weekdays span {
  text-align: center;
  font-size: 11px;
  color: #86868b;
  padding-bottom: 4px;
}
.day-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #86868b;
  position: relative;
}
.day-cell.has { color: #1d1d1f; font-weight: 600; }
.day-cell.has::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0071e3;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
}
.day-cell.today { box-shadow: inset 0 0 0 1px #d2d2d7; }
.day-cell.on {
  background: #0071e3;
  color: #ffffff;
}
.day-cell.on::after { background: #ffffff; }
.day-cell:disabled { color: #d2d2d7; }
.day-entries { margin-top: 12px; display: grid; gap: 4px; }
.day-entries button {
  text-align: left;
  border: 0;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.4;
}
.day-entries button.active { background: #e8f2fc; }
.cal-empty {
  margin-top: 14px;
  color: var(--cover-dim);
  font-size: 13px;
  line-height: 1.6;
}
.cal-empty button {
  margin-top: 8px;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 6px 12px;
}

.side-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--cover);
}
.primary {
  border: 0;
  background: #0071e3;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  letter-spacing: 0;
  font-weight: 500;
}
.primary:hover { background: var(--cinnabar-deep); }
.primary.block { width: 100%; padding: 10px 16px; }
.primary:disabled { opacity: 0.6; cursor: progress; }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}
.menu-btn { display: none; padding: 6px 2px; }
.crumb {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.site-notice {
  flex: none;
  border-top: 1px solid var(--line);
  background: #f5f5f7;
  padding: 14px 28px;
}
.site-notice p {
  max-width: 760px;
  margin: 0 auto;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 28px 96px;
}
.eyebrow {
  color: #6e6e73;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 500;
}
.page h1 {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-weight: 600;
  color: #1d1d1f;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: start;
}
.page .meta {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
  color: #6e6e73;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}
.article {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: #1d1d1f;
  font-weight: 400;
}
.article h2, .article h3, .article h4 {
  font-weight: 600;
  color: var(--ink-title);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: start;
  text-wrap: wrap;
}
.article h2 { font-size: 1.35rem; margin: 1.8em 0 0.6em; }
.article h3 { font-size: 1.18rem; margin: 1.7em 0 0.55em; }
.article h4 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.article .num {
  display: inline-block;
  margin-right: 0.45em;
  color: #0071e3;
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.article p,
.article li {
  margin: 0 0 0.95em;
  text-align: justify;
  text-align-last: start;
  text-justify: inter-character;
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  hanging-punctuation: allow-end;
}
.article li { margin: 0.25em 0; }
.article strong {
  font-weight: 700;
  color: var(--ink-title);
}
.article a {
  color: #0066cc;
  text-decoration-color: rgba(0, 102, 204, 0.35);
  text-underline-offset: 3px;
}
.article blockquote {
  margin: 1.1em 0 1.3em;
  padding: 0.1em 0 0.1em 1em;
  border-left: 3px solid #d2d2d7;
  color: #424245;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: 0.4em 0 1.1em; padding-left: 1.3em; }
.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.article figure { margin: 1.35em 0 1.5em; }
.article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  cursor: zoom-in;
  background: rgba(29, 26, 22, 0.04);
}
.endmark {
  margin-top: 48px;
  text-align: center;
  color: #86868b;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-family: var(--sans);
}
.danger-text {
  display: block;
  margin: 28px auto 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.danger-text:hover { color: var(--cinnabar); }
.loading, .empty-day {
  max-width: 760px;
  margin: 0 auto;
  padding: 18vh 28px 0;
  color: var(--muted);
}
.empty-day h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 32px;
  margin: 8px 0 18px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 10, 0.45);
  z-index: 20;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 10, 0.46);
}
.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: var(--paper-2);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sheet h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.icon-btn { font-size: 28px; line-height: 1; padding: 0 4px; }
.sheet label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.sheet input[type="text"],
.sheet input[type="date"],
.sheet input[type="time"],
.sheet textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.sheet textarea {
  resize: vertical;
  min-height: 180px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.sheet input:focus, .sheet textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drop {
  position: relative;
  margin-top: 14px;
  border: 1px dashed rgba(29, 26, 22, 0.22);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop.over { border-color: var(--cinnabar); color: var(--cinnabar); }
.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.previews img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(29, 26, 22, 0.05);
}
.form-error {
  color: var(--cinnabar);
  font-size: 13px;
  margin: 10px 0 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.ghost {
  border-radius: 999px;
  padding: 8px 14px;
}
.ghost:hover { background: rgba(29, 26, 22, 0.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 10, 8, 0.92);
  display: grid;
  place-items: center;
}
.lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}
.lb-close, .lb-nav {
  position: absolute;
  color: white;
  font-size: 36px;
  line-height: 1;
  width: 48px;
  height: 48px;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.08em;
  font-size: 13px;
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sidebar.open { transform: none; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
  }
  .topbar {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .primary { min-height: 44px; }
  .page {
    padding: 28px max(18px, env(safe-area-inset-right)) 32px max(18px, env(safe-area-inset-left));
  }
  .site-notice {
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .site-notice p { font-size: 12.5px; }
  .page h1 { font-size: 30px; }
  .article { font-size: 17.5px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
  .lb-close { top: max(16px, env(safe-area-inset-top)); }
}

.article .flow {
  --f-ink: #1d1d1f;
  --f-line: #636366;
  --f-neutral-bg: #f5f5f7;
  --f-neutral-bd: #8e8e93;
  --f-green-bg: #e7f6ee;
  --f-green-bd: #1f8a4d;
  --f-orange-bg: #fff3e6;
  --f-orange-bd: #c56a12;
  --f-purple-bg: #f3eefe;
  --f-purple-bd: #6b4cae;
  container-type: inline-size;
  margin: 1.35em 0 1.5em;
  color: var(--f-ink);
  font-size: 16px;
  line-height: 1.4;
}
.article .flow figcaption {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 12px;
  text-align: center;
}
.article .flow .node {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--f-neutral-bd);
  border-radius: 10px;
  background: var(--f-neutral-bg);
  color: var(--f-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-align-last: center;
}
.article .flow .node strong { font-weight: 650; color: inherit; }
.article .flow .node span { font-size: 16px; font-weight: 400; line-height: 1.35; }
.article .flow .node.judge {
  width: min(100%, 280px);
  border: 0;
  border-radius: 0;
  background: #f7f7f8;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  filter: drop-shadow(0.7px 0 0 var(--f-neutral-bd)) drop-shadow(-0.7px 0 0 var(--f-neutral-bd)) drop-shadow(0 0.7px 0 var(--f-neutral-bd)) drop-shadow(0 -0.7px 0 var(--f-neutral-bd));
  padding: 11px 20px;
  margin-left: auto;
  margin-right: auto;
}
.article .flow .node.real { background: var(--f-green-bg); border-color: var(--f-green-bd); }
.article .flow .node.asset { background: var(--f-orange-bg); border-color: var(--f-orange-bd); }
.article .flow .node.out { background: var(--f-purple-bg); border-color: var(--f-purple-bd); }
.article .flow .node.end { border-width: 2.5px; }
.article .flow .tag {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.3;
  color: #3a3a3c;
  text-align: center;
}
.article .flow .arr {
  display: flex;
  justify-content: center;
  min-height: 22px;
  margin: 0;
}
.article .flow .arr i {
  width: 1.5px;
  height: 22px;
  background: var(--f-line);
  position: relative;
}
.article .flow .arr i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--f-line);
}
.article .flow .flow-top { width: min(100%, 420px); margin: 0 auto; }
.article .flow .flow-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.article .flow .gate-col { min-width: 0; }
.article .flow .pass-col { display: flex; flex-direction: column; }
.article .flow .arr.long { display: none; }
.article .flow .pass-elbow {
  position: relative;
  flex: 1;
  min-height: 28px;
}
.article .flow .pass-elbow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 0.75px);
  width: 1.5px;
  background: var(--f-line);
}
.article .flow .pass-elbow::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 0;
  width: calc(50% + 9px);
  height: 1.5px;
  background: var(--f-line);
}
.article .flow .pass-elbow i {
  position: absolute;
  left: calc(-8px - 0.75px);
  bottom: -18px;
  width: 1.5px;
  height: 18px;
  background: var(--f-line);
}
.article .flow .pass-elbow i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--f-line);
}
.article .flow .absorb { margin-top: 22px; }
.article .flow .fork3 {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 2.14fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
  margin-top: 8px;
  padding-top: 8px;
}
.article .flow .fork3 .bar {
  position: absolute;
  top: 0;
  left: 16%;
  width: 51%;
  height: 1.5px;
  background: var(--f-line);
}
.article .flow .fork3 .bar::before,
.article .flow .fork3 .bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 8px;
  background: var(--f-line);
}
.article .flow .fork3 .bar::before { left: 0; }
.article .flow .fork3 .bar::after { right: 0; }
.article .flow .col { min-width: 0; display: flex; flex-direction: column; }
.article .flow .arr.grow { flex: 1; min-height: 22px; }
.article .flow .arr.grow i { height: 100%; }
.article .flow .two {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 2px;
}
.article .flow .recv {
  width: 1.5px;
  height: 28px;
  margin: 0 auto;
  background: var(--f-line);
  position: relative;
}
.article .flow .recv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--f-line);
}
.article .flow .to-mid {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 0 -18px;
}
.article .flow .to-mid i {
  flex: 1;
  height: 1.5px;
  background: var(--f-line);
  position: relative;
}
.article .flow .to-mid i::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid var(--f-line);
}
.article .flow .to-mid b {
  flex: none;
  max-width: 8.2em;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.25;
  color: #3a3a3c;
  text-align: left;
}
.article .flow .fx {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 8px;
  margin: 6px 0 8px;
}
.article .flow .rail {
  border-left: 1.5px solid var(--f-line);
  border-bottom: 1.5px solid var(--f-line);
  margin: 10px 0 6px 6px;
  position: relative;
}
.article .flow .rail::after {
  content: "";
  position: absolute;
  left: -5.5px;
  bottom: -7px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--f-line);
}
.article .flow .rail span {
  position: absolute;
  left: 6px;
  top: 0;
  width: max-content;
  font-size: 15px;
  font-weight: 550;
  color: #3a3a3c;
  background: #fff;
  line-height: 1.2;
}
.article .flow .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.article .flow .m2-pair { align-items: start; }
.article .flow .m2-down { display: flex; flex-direction: column; }
.article .flow .pair .node { min-height: 64px; }
.article .flow .aside,
.article .flow .foot {
  margin: 8px 0 0;
  text-align: left;
  text-align-last: left;
  text-justify: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #6e6e73;
}
.article .flow .foot {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  text-align-last: center;
}
.article .flow .m-only { display: none; }

@container (max-width: 640px) {
  .article .flow .d-only { display: none !important; }
  .article .flow .m-only { display: block; }
  .article .flow .flow-gate,
  .article .flow .fork3,
  .article .flow .two,
  .article .flow .pair { grid-template-columns: 1fr; }
  .article .flow .pass-elbow { display: none; }
  .article .flow .arr.long {
    display: flex;
    min-height: 22px;
    height: auto;
  }
  .article .flow .arr.long i { height: 22px; }
  .article .flow .arr.long i::after { content: ""; }
  .article .flow .absorb { margin-top: 0; }
  .article .flow .fork3 .bar { display: none; }
  .article .flow .arr.grow { flex: none; }
  .article .flow .arr.grow i { height: 22px; }
  .article .flow .rail span { position: static; display: inline-block; margin: 4px 0 0 4px; }
  .article .flow .flow-top,
  .article .flow .node.judge { width: 100%; }
}

::selection { background: rgba(0, 113, 227, 0.18); }
