/* Illustrative scenario (timeline) diagram */
.inline-diagram--timeline .canvas[data-size="diagram"] {
  max-width: 960px;
  padding: 28px 28px 24px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAF8 100%);
}
.inline-diagram--timeline .diagram__head { margin-bottom: 20px; }
.inline-diagram--timeline .diagram__title {
  font-size: 21px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  margin: 4px 0 0 !important;
}
.inline-diagram--timeline .lanes { gap: 20px; margin: 0 0 18px; }
.inline-diagram--timeline .lane {
  padding: 18px;
  border-radius: 14px;
}
.inline-diagram--timeline .lane[data-tone="muted"] {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.inline-diagram--timeline .lane[data-tone="accent"] {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  box-shadow: 0 8px 28px rgba(0, 171, 91, 0.10);
}
.inline-diagram--timeline .lane__head {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.inline-diagram--timeline .lane__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #0A1128;
}
.inline-diagram--timeline .lane__total { font-size: 10px; white-space: nowrap; }
.lane__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.lane[data-tone="muted"] .lane__icon { background: #FEE2E2; color: #DC2626; }
.lane[data-tone="accent"] .lane__icon { background: rgba(0, 171, 91, 0.14); color: #00AB5B; }

/* Mini phone + server illustration */
.scn-visual {
  margin: 0 0 16px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px dashed #E2E8F0;
}
.lane[data-tone="accent"] .scn-visual {
  background: #FFFFFF;
  border-color: rgba(0, 171, 91, 0.3);
}
.scn-visual svg { display: block; width: 100%; height: auto; }

/* Timeline rail */
.inline-diagram--timeline .scn-steps {
  position: relative;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inline-diagram--timeline .scn-steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #E2E8F0;
}
.lane[data-tone="accent"] .scn-steps::before { background: rgba(0, 171, 91, 0.25); }
.inline-diagram--timeline .scn-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 7px 10px 7px 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.scn-time {
  position: relative;
  z-index: 1;
  flex: none;
  width: 46px;
  padding: 2px 0;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  color: #64748B;
}
.lane[data-tone="accent"] .scn-time { border-color: rgba(0, 171, 91, 0.35); color: #00884A; }
.inline-diagram--timeline .scn-steps li[data-wait="true"] { background: rgba(239, 68, 68, 0.07); color: #B91C1C; }
.scn-steps li[data-wait="true"] .scn-time { border-color: #FCA5A5; color: #DC2626; }
.inline-diagram--timeline .scn-steps li[data-outcome="true"] { font-weight: 600; }
.inline-diagram--timeline .lane[data-tone="muted"] .scn-steps li[data-outcome="true"] { background: #F1F5F9; color: #475569; }
.inline-diagram--timeline .lane[data-tone="accent"] .scn-steps li[data-outcome="true"] { background: rgba(0, 171, 91, 0.1); color: #065F46; }
.scn-steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  font-family: var(--font-mono, monospace);
  font-size: 0.85em;
  color: inherit;
}

/* Result stats */
.scn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.scn-stat {
  padding: 10px 8px;
  border-radius: 9px;
  background: #F8FAFC;
  text-align: center;
}
.lane[data-tone="accent"] .scn-stat { background: #FFFFFF; border: 1px solid rgba(0, 171, 91, 0.2); }
.scn-stat b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0A1128;
}
.lane[data-tone="muted"] .scn-stat b { color: #DC2626; }
.lane[data-tone="accent"] .scn-stat b { color: #00884A; }
.scn-stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
}
.inline-diagram--timeline .diagram__note { font-size: 12.5px !important; }

.standalone .inline-diagram--timeline .canvas { max-width: 960px; }

/* Scenario spacing */
.inline-diagram--timeline .canvas[data-size="diagram"] { padding-bottom: 18px !important; }
.inline-diagram--timeline .lanes { margin-bottom: 14px; }
.inline-diagram--timeline .diagram__note { margin: 0 !important; padding-top: 12px !important; }

/* ===== Article-specific diagrams (.gd) ===== */
.article :where(.gd) :is(p, h2, h3, h4, ul, li) { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.gd {
  position: relative;
  padding: 22px 24px 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAF8 100%);
  font-family: var(--font-sans, 'Inter', sans-serif);
  color: #0A1128;
}
.gd::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #62CE00 0%, #10B981 40%, transparent 100%);
}
.gd .gd-head { margin-bottom: 16px; }
.gd .gd-kicker { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #00AB5B; }
.gd .gd-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: #0A1128; }
.gd .gd-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.25); font-size: 13px; line-height: 1.55; color: #64748B; }
.gd .gd-note strong { color: #0A1128; }
.gd .gd-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #F1F5F9; color: #334155; }
.gd .gd-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gd .gd-arrow { text-align: center; font-size: 18px; font-weight: 700; color: #00AB5B; }

/* A — what happens when a screen asks (stale-while-revalidate) */
.gd.swr { container-type: inline-size; --cycle: 9s; padding: 26px 24px 20px; }
.swr code { padding: 1px 5px; border-radius: 4px; background: #EEF3F0; font-family: var(--font-mono, monospace); font-size: 0.88em; color: #0B6B3C; }
.swr .swr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; margin-bottom: 20px; }
.swr .swr-head__text { flex: 1 1 340px; }
.swr .swr-kicker { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #E7F8EF; color: #00884A; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.swr .swr-title { margin-bottom: 6px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #0A1128; }
.swr .swr-sub { display: block; max-width: 520px; font-size: 13.5px; line-height: 1.55; color: #52697C; }
.swr .swr-flow { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid #E2E8F0; border-radius: 14px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); }
.swr .swr-flow__step { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.3; color: #334155; }
.swr .swr-flow__step svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swr .swr-flow__step code { font-size: 10px; }
.swr .swr-flow__step--hub { background: #00AB5B; color: #FFFFFF; }
.swr .swr-flow__step--out { background: #F1F5F9; color: #64748B; }
.swr .swr-flow__arrow { font-weight: 700; color: #00AB5B; }

.swr .swr-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.swr .swr-case { --tone: #00AB5B; --ink: #00884A; --soft: #DCFCE7; --tint: #F0FDF4; --line: #CDEFD9; --ring: rgba(0, 171, 91, 0.45);
  display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--tint) 0%, #FFFFFF 90%); transition: transform 0.25s, box-shadow 0.25s; }
.swr .swr-case:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09); }
.swr .swr-case--stale { --tone: #F59E0B; --ink: #B45309; --soft: #FEF3C7; --tint: #FFFBEB; --line: #FBE3B0; --ring: rgba(245, 158, 11, 0.5); }
.swr .swr-case--empty { --tone: #3B82F6; --ink: #1D4ED8; --soft: #DBEAFE; --tint: #EFF6FF; --line: #CFE0FB; --ring: rgba(59, 130, 246, 0.45); }
.swr .swr-case__head { display: flex; align-items: flex-start; gap: 10px; }
.swr .swr-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tone); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.swr .swr-case__head b { display: block; font-size: 15px; line-height: 1.3; color: #0A1128; }
.swr .swr-case__head small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: #52697C; }
.swr .swr-case__body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }

/* phone mockup */
.swr .swr-phone { width: 96px; padding: 4px; border-radius: 19px; background: #0F172A; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18); }
.swr .swr-phone__screen { position: relative; display: flex; flex-direction: column; height: 188px; padding: 5px 6px 0; border-radius: 15px; background: #FFFFFF; overflow: hidden; }
.swr .swr-phone__screen::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 8px; border-radius: 0 0 6px 6px; background: #0F172A; transform: translateX(-50%); }
.swr .swr-phone__status { display: flex; justify-content: space-between; align-items: center; height: 9px; padding: 0 2px; font-size: 6px; font-weight: 700; color: #0A1128; }
.swr .swr-phone__status i { width: 9px; height: 5px; border: 1px solid #0A1128; border-radius: 2px; }
.swr .swr-phone__title { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 6px; font-size: 9px; font-weight: 700; color: #0A1128; }
.swr .swr-tags { position: relative; width: 46px; height: 11px; }
.swr .swr-tag { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; border-radius: 999px; font-size: 5.8px; font-weight: 700; line-height: 11px; white-space: nowrap; }
.swr .swr-tag--green { background: #DCFCE7; color: #047857; }
.swr .swr-tag--amber { background: #FEF3C7; color: #B45309; }
.swr .swr-tag--blue { background: #DBEAFE; color: #1D4ED8; }
.swr .swr-spin { width: 5px; height: 5px; border: 1.2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: swrSpin 0.7s linear infinite; }
.swr .swr-phone__body { position: relative; flex: 1; }
.swr .swr-data, .swr .swr-skel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; }
.swr .swr-user { display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 8px; background: #F8FAFC; }
.swr .swr-avatar { flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, #00AB5B, #62CE00); color: #FFFFFF; font-size: 6.5px; font-weight: 700; }
.swr .swr-user b { display: block; font-size: 7px; line-height: 1.3; color: #0A1128; }
.swr .swr-user small { display: block; font-size: 5.8px; color: #64748B; }
.swr .swr-rows { display: flex; flex-direction: column; gap: 3px; }
.swr .swr-rows > span { display: flex; justify-content: space-between; align-items: center; height: 15px; padding: 0 5px; border: 1px solid #EEF2F6; border-radius: 5px; background: #FFFFFF; font-size: 6.2px; font-weight: 600; color: #334155; }
.swr .swr-rows em { position: relative; display: inline-grid; min-width: 11px; padding: 0 3px; border-radius: 999px; background: #E7F8EF; color: #00884A; font-size: 6px; font-style: normal; font-weight: 700; line-height: 9px; text-align: center; }
.swr .swr-rows em > span { grid-area: 1 / 1; }
.swr .swr-skel .swr-avatar { background: #E2E8F0; }
.swr .swr-skel i { display: block; height: 4px; margin: 2px 0; border-radius: 3px; background: linear-gradient(90deg, #E9EEF4 25%, #F8FAFC 50%, #E9EEF4 75%) 0 0 / 200% 100%; animation: swrShimmer 1.2s linear infinite; }
.swr .swr-skel .swr-user i:first-child { width: 36px; }
.swr .swr-skel .swr-user i:last-child { width: 24px; }
.swr .swr-skel .swr-rows i { width: 60%; margin: 0; }
.swr .swr-phone__tabs { display: flex; justify-content: space-around; margin: 0 -6px; padding: 6px 0 7px; border-top: 1px solid #F1F5F9; }
.swr .swr-phone__tabs i { width: 6px; height: 6px; border-radius: 2px; background: #CBD5E1; }
.swr .swr-phone__tabs i.on { background: #00AB5B; }

/* timeline */
.swr .swr-steps { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.8); }
.swr .swr-steps::before, .swr .swr-steps::after { content: ""; position: absolute; top: 21px; bottom: 30px; left: 17px; width: 2px; border-radius: 2px; background: #E2E8F0; }
.swr .swr-steps::after { background: var(--tone); transform-origin: top; }
.swr .swr-step { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 7px; }
.swr .swr-dot { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tone); color: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF; }
.swr .swr-dot--soft { background: var(--soft); color: var(--ink); }
.swr .swr-dot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.swr .swr-step b { display: block; font-size: 11.5px; line-height: 1.3; color: #0A1128; }
.swr .swr-step small { display: block; font-size: 10.5px; line-height: 1.35; color: #64748B; }

.swr .swr-case__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11.5px; line-height: 1.4; color: #52697C; }
.swr .swr-count { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 700; }

.swr .swr-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 16px; padding: 12px 14px; border: 1px solid #DCEFE4; border-radius: 14px; background: #F5FAF7; }
.swr .swr-info__item { display: flex; align-items: center; gap: 10px; }
.swr .swr-info__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; color: #00AB5B; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.swr .swr-info__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swr .swr-info b { display: block; font-size: 13px; color: #0A1128; }
.swr .swr-info span:not(.swr-info__ico) { display: block; font-size: 12px; line-height: 1.45; color: #52697C; }

/* Static (no JS / reduced motion) shows the finished state; .is-live runs the looping timeline. */
.swr .swr-o1, .swr .swr-o2, .swr .swr-o12 { opacity: 0; }
.swr.is-live .swr-o1 { animation: swrOnly1 var(--cycle) infinite; }
.swr.is-live .swr-o2 { animation: swrOnly2 var(--cycle) infinite; }
.swr.is-live .swr-o12 { animation: swrOnly12 var(--cycle) infinite; }
.swr.is-live .swr-a3 { animation: swrFrom3 var(--cycle) infinite; }
.swr.is-live .swr-step:nth-child(1) { animation: swrStep1 var(--cycle) infinite; }
.swr.is-live .swr-step:nth-child(2) { animation: swrStep2 var(--cycle) infinite; }
.swr.is-live .swr-step:nth-child(3) { animation: swrStep3 var(--cycle) infinite; }
.swr.is-live .swr-steps::after { animation: swrRail var(--cycle) infinite; }
.swr.is-live .swr-case:not(.swr-case--fresh) .swr-count { animation: swrPing var(--cycle) infinite; }
.swr.is-live .swr-changed { animation: swrFlash var(--cycle) infinite; }
.swr.is-live .swr-flow__step--hub { animation: swrHub var(--cycle) infinite; }
.swr.is-paused, .swr.is-paused * { animation-play-state: paused !important; }
.swr.is-paused .swr-steps::after { animation-play-state: paused !important; }

@keyframes swrOnly1 { 0%, 33% { opacity: 1; } 37%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes swrOnly2 { 0%, 33% { opacity: 0; } 37%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes swrOnly12 { 0%, 66% { opacity: 1; } 70%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes swrFrom3 { 0%, 66% { opacity: 0; } 70%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes swrStep1 { 0% { opacity: 0.3; transform: translateX(4px); } 5%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0.3; transform: translateX(4px); } }
@keyframes swrStep2 { 0%, 33% { opacity: 0.3; transform: translateX(4px); } 37%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0.3; transform: translateX(4px); } }
@keyframes swrStep3 { 0%, 66% { opacity: 0.3; transform: translateX(4px); } 70%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0.3; transform: translateX(4px); } }
@keyframes swrRail { 0%, 5% { transform: scaleY(0); } 37% { transform: scaleY(0.5); } 70%, 94% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes swrPing { 0%, 33% { box-shadow: 0 0 0 0 var(--ring); } 45%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
@keyframes swrFlash { 0%, 66%, 88%, 100% { background: #FFFFFF; border-color: #EEF2F6; } 71% { background: #DCFCE7; border-color: #86EFAC; } }
@keyframes swrHub { 0% { box-shadow: 0 0 0 0 rgba(0, 171, 91, 0.5); } 12%, 100% { box-shadow: 0 0 0 9px rgba(0, 171, 91, 0); } }
@keyframes swrSpin { to { transform: rotate(360deg); } }
@keyframes swrShimmer { to { background-position: -200% 0; } }

@container (max-width: 820px) {
  .swr .swr-cases { grid-template-columns: 1fr; }
  .swr .swr-case__body { grid-template-columns: 96px minmax(0, 1fr); max-width: 460px; }
}
@media (max-width: 640px) {
  .gd.swr { padding: 20px 16px 16px; }
  .swr .swr-title { font-size: 21px; }
  .swr .swr-info { grid-template-columns: 1fr; }
  .swr .swr-flow { width: 100%; gap: 4px; padding: 5px; }
  .swr .swr-flow__step { flex: 1; justify-content: center; padding: 6px; font-size: 10px; text-align: center; }
  .swr .swr-flow__step svg { display: none; }
}

/* B — a day in the life of a mobile app */
.gd-life .gd-life__scroll { overflow-x: auto; padding-bottom: 2px; }
.gd-life .gd-life__grid { position: relative; display: grid; grid-template-columns: 122px repeat(5, minmax(112px, 1fr)); gap: 6px; min-width: 720px; }
.gd-life .gd-life__rail { position: absolute; top: 25px; left: calc(122px + 6px + 8%); right: 8%; height: 2px; background: linear-gradient(90deg, #CBD5E1, #00AB5B); }
.gd .gd-moment { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #0A1128; }
.gd .gd-moment .gd-ico { background: #FFFFFF; border: 1px solid #E2E8F0; }
.gd .gd-rowlabel { display: flex; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.gd .gd-rowlabel--bad { background: #FEF2F2; color: #B91C1C; }
.gd .gd-rowlabel--good { background: #F0FDF4; color: #00884A; }
.gd .gd-cell { padding: 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; }
.gd .gd-cell--bad { background: #FFFFFF; border: 1px solid #FEE2E2; color: #7F1D1D; }
.gd .gd-cell--good { background: #FFFFFF; border: 1px solid #BBF7D0; color: #065F46; font-weight: 500; box-shadow: 0 2px 10px rgba(0, 171, 91, 0.06); }

/* C — one tap on a like button */
.gd-like .gd-like__flow { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1.35fr; align-items: stretch; gap: 8px; }
.gd-like .gd-arrow { align-self: center; }
.gd .gd-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 14px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E2E8F0; text-align: center; }
.gd .gd-step--accent { background: #F0FDF4; border-color: #86EFAC; }
.gd .gd-step__n { position: absolute; top: 7px; left: 10px; font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 700; color: #94A3B8; }
.gd .gd-step b { font-size: 13.5px; line-height: 1.3; color: #0A1128; }
.gd .gd-step small { font-size: 11.5px; line-height: 1.4; color: #64748B; }
.gd .gd-likebtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #CBD5E1; background: #FFFFFF; font-size: 14px; font-weight: 700; color: #475569; }
.gd .gd-likebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.gd .gd-likebtn--on { border-color: #FCA5A5; background: #FEF2F2; color: #DC2626; }
.gd .gd-likebtn--on svg { fill: currentColor; }
.gd .gd-pending { display: inline-flex; gap: 3px; margin-left: 2px; }
.gd .gd-pending i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: gdPulse 1.2s infinite ease-in-out; }
.gd .gd-pending i:nth-child(2) { animation-delay: 0.2s; }
.gd .gd-pending i:nth-child(3) { animation-delay: 0.4s; }
@keyframes gdPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.gd .gd-outcomes { display: flex; flex-direction: column; gap: 8px; }
.gd .gd-out { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid; }
.gd .gd-out--ok { background: #F0FDF4; border-color: #86EFAC; }
.gd .gd-out--fail { background: #FFF7ED; border-color: #FED7AA; }
.gd .gd-out b { display: block; font-size: 13px; color: #0A1128; }
.gd .gd-out small { display: block; font-size: 11.5px; line-height: 1.35; color: #64748B; }
.gd .gd-out .gd-likebtn { flex: none; padding: 4px 10px; font-size: 12.5px; }

@media (max-width: 760px) {
  .gd { padding: 18px 16px 14px; }
  .gd-like .gd-like__flow { grid-template-columns: 1fr; }
  .gd-like .gd-arrow { transform: rotate(90deg); }
}
