/* Case de Design System: playgrounds e componentes recriados da biblioteca da Vammo.
   .pg  = moldura do playground, no visual do site.
   .vds = componentes, em Inter, com tokens em duas camadas: paleta e papéis. */

/* ----- Moldura do playground ----------------------------------------------- */
.pg{ border:1px solid var(--line); border-radius:22px; background:var(--surface); overflow:hidden; }
.pg-top{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding:16px clamp(18px,2.4vw,28px); border-bottom:1px solid var(--line); }
.pg-body{ display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,300px); }
.pg-stage{ position:relative; display:flex; align-items:center; justify-content:center; min-width:0; min-height:440px; padding:clamp(20px,3.2vw,44px); }
.pg-rail{ display:flex; flex-direction:column; gap:22px; min-width:0; padding:clamp(18px,2.4vw,28px); border-left:1px solid var(--line); }
.pg-group{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.pg-group > .label{ font-size:11px; }
.pg-seg{ display:flex; flex-wrap:wrap; gap:6px; }
.pg-seg button{
  min-height:36px; padding:0 11px; border:1px solid var(--line-2); border-radius:999px;
  background:transparent; color:var(--ink-2); font:500 13px/1 var(--sans); cursor:pointer;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pg-seg button:hover{ border-color:var(--ink); color:var(--ink); }
.pg-seg button[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.pg-text{ width:100%; min-height:40px; padding:0 12px; border:1px solid var(--line-2); border-radius:10px; background:var(--surface); color:var(--ink); font:400 15px var(--sans); }
.pg-seg button:focus-visible, .pg-text:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.pg-read{ display:flex; flex-direction:column; gap:6px; padding-top:18px; border-top:1px solid var(--line); font:400 14px/1.45 var(--sans); color:var(--ink-2); }
.pg-read b{ font-family:var(--serif); font-weight:400; font-size:34px; line-height:1; color:var(--ink); }
.pg-code{ font:500 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; color:var(--ink-2); overflow-wrap:anywhere; }
.pg-verdict{ display:flex; flex-direction:column; gap:6px; padding:16px; border-radius:14px; font:400 14px/1.45 var(--sans); transition:background .2s var(--ease), color .2s var(--ease); }
.pg-verdict strong{ font-size:15px; font-weight:600; }
.pg-verdict b{ font-family:var(--serif); font-size:38px; font-weight:400; line-height:1; }
.pg-verdict .pg-code{ color:inherit; }
.pg-verdict.bad{ background:#FDECEA; color:#A1261B; }
.pg-verdict.ok{ background:#E5F8EE; color:#0B6B45; }
.pg-legend{ display:flex; flex-direction:column; gap:10px; font:400 14px/1.45 var(--sans); color:var(--ink-2); }
.pg-legend b{ display:block; color:var(--ink); font-weight:600; }
.pg-tip{ margin:0; font:400 14px/1.45 var(--sans); color:var(--muted); }
@media (max-width:760px){
  .pg-body{ grid-template-columns:1fr; }
  .pg-rail{ border-left:0; border-top:1px solid var(--line); }
  .pg-stage{ min-height:340px; padding:16px; }
}

/* ----- Tokens ---------------------------------------------------------------- */
.vds{
  /* Paleta: valores medidos nas imagens da biblioteca e nas telas em produção */
  --neutral-0:#FFFFFF; --neutral-50:#F5F5F5; --neutral-100:#E2E2E2; --neutral-200:#D9D9D9;
  --neutral-300:#B2B2B2; --neutral-400:#A9A9A9; --neutral-500:#898989; --neutral-900:#000000;
  --neutral-75:#EBEBEB; --neutral-700:#444444; --neutral-800:#2B2B2B;
  --red-50:#FDF1F0; --red-100:#FBE3E0; --red-200:#F8D3CE; --red-500:#E75F52; --red-600:#D94F42; --red-700:#C4433A;
  --sky-50:#EBF9FF; --sky-500:#32CDFF;
  --amber-500:#F8B42D;

  /* Papéis: os componentes só usam esta camada */
  --background-surface:var(--neutral-0);
  --background-subtle:var(--neutral-50);
  --background-subtle-hover:var(--neutral-75);
  --background-pressed:var(--neutral-100);
  --background-action:var(--neutral-900);
  --background-action-hover:var(--neutral-800);
  --background-action-pressed:var(--neutral-700);
  --background-disabled:var(--neutral-100);
  --background-negative:var(--red-500);
  --background-negative-hover:var(--red-600);
  --background-negative-pressed:var(--red-700);
  --background-negative-soft:var(--red-50);
  --background-negative-soft-hover:var(--red-100);
  --background-negative-soft-pressed:var(--red-200);
  --background-selected:var(--sky-50);
  --background-warning:var(--amber-500);
  --background-warning-soft:color-mix(in srgb, var(--amber-500) 16%, var(--neutral-0));
  --stroke-default:var(--neutral-200);
  --stroke-strong:var(--neutral-900);
  --stroke-negative:var(--red-500);
  --stroke-selected:var(--sky-500);
  --text-primary:var(--neutral-900);
  --text-muted:var(--neutral-500);
  --text-placeholder:var(--neutral-300);
  --text-disabled:var(--neutral-400);
  --text-on-action:var(--neutral-0);
  --text-negative:var(--red-500);
  --text-negative-pressed:var(--red-700);
  --text-on-warning:var(--neutral-0);

  --radius-control:8px; --radius-tag:4px; --radius-card:12px; --radius-sheet:16px;
  --font:Inter, system-ui, -apple-system, sans-serif;

  color:var(--text-primary); font-family:var(--font); font-size:14px; line-height:20px;
  -webkit-font-smoothing:antialiased;
}
.vds *{ box-sizing:border-box; }
.vds-ico{ display:block; flex:none; width:24px; height:24px; }

/* ----- Botão: 52 de altura, canto 8, borda 2 ------------------------------------ */
.vds-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; max-width:312px; height:52px; padding:0 16px;
  border:2px solid var(--bd, transparent); border-radius:var(--radius-control); background:var(--b, transparent);
  color:var(--f, var(--text-primary)); font:600 16px/24px var(--font); cursor:pointer;
  transition:background-color .15s ease, color .15s ease, transform .1s ease;
}
.vds-btn.icon-only{ width:52px; padding:0; }
.vds-btn.solid{ --b:var(--background-action); --b-h:var(--background-action-hover); --b-p:var(--background-action-pressed); --f:var(--text-on-action); }
.vds-btn.outline{ --b:var(--background-surface); --b-h:var(--background-subtle); --b-p:var(--background-pressed); --bd:var(--stroke-strong); }
.vds-btn.tonal{ --b:var(--background-subtle); --b-h:var(--background-subtle-hover); --b-p:var(--background-pressed); }
.vds-btn.link{ --b:transparent; --b-h:transparent; --b-p:transparent; --f-p:var(--text-muted); width:auto; text-decoration:underline; text-underline-offset:3px; }
.vds-btn.danger.solid{ --b:var(--background-negative); --b-h:var(--background-negative-hover); --b-p:var(--background-negative-pressed); }
.vds-btn.danger.outline{ --b-h:var(--background-negative-soft); --b-p:var(--background-negative-soft-hover); --bd:var(--stroke-negative); --f:var(--text-negative); }
.vds-btn.danger.tonal{ --b:var(--background-negative-soft); --b-h:var(--background-negative-soft-hover); --b-p:var(--background-negative-soft-pressed); --f:var(--text-negative); }
.vds-btn.danger.link{ --f:var(--text-negative); --f-p:var(--text-negative-pressed); }
/* Estados forçados pelo playground, para quem está no celular ou apresentando */
.vds-btn.is-hover{ background:var(--b-h); }
.vds-btn.link.is-hover{ text-decoration-thickness:2px; }
.vds-btn.is-pressed{ background:var(--b-p); color:var(--f-p, var(--f, var(--text-primary))); transform:scale(.98); }
@media (hover:hover){
  .vds-btn:hover:not(:disabled):not([aria-busy]){ background:var(--b-h); }
  .vds-btn.link:hover:not(:disabled):not([aria-busy]){ text-decoration-thickness:2px; }
}
.vds-btn:active:not(:disabled):not([aria-busy]){ background:var(--b-p); color:var(--f-p, var(--f, var(--text-primary))); transform:scale(.98); }
.vds-btn[aria-busy]{ cursor:progress; }
.vds .vds-btn:disabled{ --f:var(--text-disabled); cursor:default; }
.vds .vds-btn.solid:disabled{ --b:var(--background-disabled); }
.vds .vds-btn.outline:disabled{ --b:var(--background-subtle); --bd:var(--text-disabled); }
.vds .vds-btn.tonal:disabled{ --b:var(--background-subtle); }
.vds .vds-btn.link:disabled{ --f:var(--text-placeholder); }
.vds-btn:focus-visible{ outline:2px solid var(--stroke-selected); outline-offset:2px; }
.vds-spin{ animation:vds-spin .9s linear infinite; }
@keyframes vds-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .vds-spin{ animation-duration:3s; } }

/* ----- Campo: 48 de altura, canto 8, borda 2 ------------------------------------- */
.vds-field{ display:flex; flex-direction:column; gap:6px; width:100%; max-width:312px; }
.vds-control{ display:flex; align-items:center; gap:8px; height:48px; padding:0 14px; border:2px solid var(--stroke-default); border-radius:var(--radius-control); background:var(--background-surface); }
.vds-control:focus-within{ border-color:var(--stroke-strong); }
.vds-control input{ flex:1; min-width:0; padding:0; border:0; outline:0; background:none; color:var(--text-primary); font:400 14px/20px var(--font); }
.vds-control input::placeholder{ color:var(--text-placeholder); opacity:1; }
.vds-control .vds-ico{ color:var(--text-primary); }
.vds-field.error .vds-control{ border-color:var(--stroke-negative); }
.vds-field.disabled .vds-control{ background:var(--background-subtle); }
.vds-field.disabled input, .vds-field.disabled .vds-ico{ color:var(--text-disabled); }
.vds-help{ padding-left:2px; color:var(--text-negative); font-size:12px; line-height:16px; }

/* ----- Tag: 24 de altura, canto 4 ------------------------------------------------- */
.vds-tag{ display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 6px; border-radius:var(--radius-tag); font:600 12px/16px var(--font); white-space:nowrap; }
.vds-tag .vds-ico{ width:14px; height:14px; }
.vds-tag.solid{ background:var(--s); color:var(--st); }
.vds-tag.tonal{ background:var(--t); color:var(--tt); }
.vds-tag[data-tone="black"]{ --s:#000000; --st:#FFFFFF; --t:#F5F5F5; --tt:#000000; }
.vds-tag[data-tone="gray"]{ --s:#898989; --st:#FFFFFF; --t:#EBEBEB; --tt:#898989; }
.vds-tag[data-tone="blue"]{ --s:#59B2F5; --st:#FFFFFF; --t:#EEF8FD; --tt:#59B2F5; }
.vds-tag[data-tone="green"]{ --s:#8CC271; --st:#FFFFFF; --t:#F5F9F1; --tt:#8CC271; }
.vds-tag[data-tone="red"]{ --s:#D8695A; --st:#FFFFFF; --t:#FAF1F0; --tt:#D8695A; }
.vds-tag[data-tone="yellow"]{ --s:#E7D655; --st:#000000; --t:#FEFADA; --tt:#7C7223; }
.vds-tag[data-tone="orange"]{ --s:#F49A57; --st:#FFFFFF; --t:#FCEDE3; --tt:#F49A57; }
.vds-tag[data-tone="pink"]{ --s:#F390DB; --st:#FFFFFF; --t:#FDF1FA; --tt:#F390DB; }
.vds-tag.warn{ background:var(--background-warning); color:var(--text-on-warning); }
.vds-tags{ display:grid; grid-template-columns:repeat(2,minmax(0,auto)); gap:18px clamp(24px,5vw,56px); }
.vds-tags > div{ display:flex; align-items:center; gap:10px; }

/* ----- Token em dois produtos ------------------------------------------------------ */
.vds-tok{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,2.4vw,28px); width:100%; align-items:start; }
.vds-tok-col{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.vds-tok-col > span{ color:var(--text-muted); font:500 12px/16px var(--font); }
.vds-inv{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-radius:var(--radius-card); background:var(--background-warning-soft); }
.vds-inv-val{ font:700 22px/28px var(--font); }
.vds-inv-due{ margin-top:6px; font-size:13px; }
.vds-inv .vds-tag{ margin-top:4px; }
.vds-pay{ height:42px; padding:0 26px; border:0; border-radius:24px; background:var(--background-action); color:var(--text-on-action); font:600 15px/1 var(--font); }
.vds-bo{ display:flex; flex-direction:column; border:1px solid var(--stroke-default); border-radius:var(--radius-card); overflow:hidden; background:var(--background-surface); }
.vds-bo-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; font-size:13px; }
.vds-bo-row + .vds-bo-row{ border-top:1px solid var(--stroke-default); }
.vds-bo-row b{ font-weight:600; }
.vds-tok[data-fail="1"] .vds-tag.warn, .vds-tok[data-fail="1"] .vds-bo-alert{ outline:2px solid #C4281C; outline-offset:1px; }
.vds-bo-alert{ padding:10px 12px; background:var(--background-warning); color:var(--text-on-warning); font:600 13px/18px var(--font); }
@media (max-width:520px){ .vds-tok{ grid-template-columns:1fr; } }

/* ----- Bottom sheet ------------------------------------------------------------------ */
/* O celular é sempre desenhado em 360 x 640, a largura real do app, e encolhe por inteiro em telas menores */
.vds-phone-fit{ position:relative; width:100%; max-width:360px; aspect-ratio:360 / 640; }
.vds-phone{ position:absolute; top:0; left:0; width:360px; height:640px; overflow:hidden; border:1px solid var(--line-2); border-radius:28px; background:#6E6E6E; transform-origin:0 0; transform:scale(var(--k, 1)); }
.vds-reopen{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; }
.vds-reopen .vds-btn{ max-width:180px; height:48px; }
.vds-sheet{ position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; gap:12px; padding:16px; border-radius:var(--radius-sheet) var(--radius-sheet) 0 0; background:var(--background-surface); cursor:grab; touch-action:none; transition:transform .32s var(--ease); }
.vds-sheet.dragging{ cursor:grabbing; transition:none; }
.vds-sheet.closed{ transform:translateY(calc(100% + 24px)); }
.vds-sheet-head{ display:flex; align-items:center; gap:12px; }
.vds-sheet-head h4{ flex:1; min-width:0; margin:0; font:600 16px/22px var(--font); }
.vds-sheet-x{ display:grid; place-items:center; width:32px; height:32px; margin:-4px -4px -4px 0; padding:0; border:0; background:none; color:var(--text-primary); cursor:pointer; }
.vds-sheet-x:focus-visible{ outline:2px solid var(--stroke-selected); }
.vds-sheet-round{ display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:50%; background:var(--background-subtle); }
.vds-sheet-body{ display:flex; flex-direction:column; gap:10px; font-size:14px; line-height:20px; }
.vds-sheet-body p{ margin:0; }
.vds-box{ text-align:center; font-size:13px; }
.vds-box b{ display:block; font:700 24px/30px var(--font); }
.vds-note{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--radius-control); background:var(--background-subtle); font-size:13px; line-height:18px; }
.vds-line{ display:flex; justify-content:space-between; gap:10px; }
.vds-line.total{ padding-top:8px; border-top:1px solid var(--stroke-default); font-weight:600; }
.vds-radio{ display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:0 12px; border:1px solid var(--stroke-default); border-radius:var(--radius-control); background:none; color:var(--text-primary); font:400 14px/20px var(--font); cursor:pointer; }
.vds-radio i{ flex:none; width:18px; height:18px; border:2px solid var(--stroke-strong); border-radius:50%; }
.vds-radio[aria-pressed="true"]{ border-width:2px; border-color:var(--stroke-strong); }
.vds-radio[aria-pressed="true"] i{ border-width:5px; }
.vds-radio:focus-visible{ outline:2px solid var(--stroke-selected); outline-offset:1px; }
.vds-sheet-actions{ display:flex; flex-direction:column; gap:8px; }
.vds-sheet-actions .vds-btn{ max-width:none; height:48px; }
.vds-zone{ position:relative; }
.vds-phone[data-reveal="1"] .vds-zone{ outline:1.5px solid var(--stroke-selected); outline-offset:3px; border-radius:4px; }
.vds-phone[data-reveal="1"] .vds-zone::after{ content:attr(data-z); position:absolute; top:-10px; right:-3px; padding:0 5px; border-radius:3px; background:var(--sky-500); color:#000; font:600 10px/15px var(--font); }

/* ----- Card da vitrine ---------------------------------------------------------------- */
.vds-cards{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; width:min(312px,100%); }
.vds-card{ display:flex; flex-direction:column; gap:4px; min-width:0; padding:16px; border:1px solid var(--stroke-default); border-radius:var(--radius-card); background:var(--background-surface); }
.vds-card.selected{ padding:15px; border:2px solid var(--stroke-selected); background:var(--background-selected); }
.vds-card.wide{ grid-column:1 / -1; }
/* Só o playground tem cards selecionáveis; as telas recriadas continuam estáticas */
.vds-card[role="radio"]{ cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; transition:background-color .15s ease, border-color .15s ease; }
.vds-card[role="radio"]:focus-visible{ outline:2px solid var(--stroke-selected); outline-offset:2px; }
@media (hover:hover){ .vds-card[role="radio"]:not(.selected):hover{ border-color:var(--stroke-selected); } }
.vds-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.vds-card-name{ min-width:0; font:600 16px/24px var(--font); overflow-wrap:anywhere; }
.vds-card-top .vds-tag{ flex:none; }
.vds-card-desc{ color:var(--text-muted); font-size:13px; line-height:20px; }
.vds-card-old{ color:var(--text-muted); font-size:13px; line-height:20px; text-decoration:line-through; }
.vds-card-price{ font-size:15px; line-height:22px; }
.vds-card-promo{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; }
.vds-card-from{ font-size:12px; line-height:16px; }

/* ----- Telas da vitrine, recriadas com os componentes ----------------------------------- */
.ds-pair .phone-screen{ overflow:hidden; background:#FFFFFF; }
.vds-screen{ width:360px; background:var(--background-surface); }
.vds-nav{ position:relative; display:flex; align-items:center; height:72px; padding:0 24px; border-bottom:1px solid var(--neutral-75); font:600 16px/24px var(--font); }
.vds-nav span{ position:absolute; left:0; right:0; text-align:center; }
.vds-sec{ padding:26px 24px 0; }
.vds-sec-h{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:18px; }
.vds-sec-t{ font:600 18px/26px var(--font); }
.vds-sec > .vds-sec-t{ margin-bottom:18px; }
.vds-sec-s{ display:flex; align-items:center; gap:6px; margin-top:4px; color:var(--text-muted); font-size:14px; line-height:20px; }
.vds-sec-s .vds-ico{ width:16px; height:16px; }
.vds-sec-l{ font:600 14px/20px var(--font); text-decoration:underline; text-underline-offset:3px; }
.vds-screen .vds-card > :last-child{ margin-top:auto; padding-top:6px; }

/* ----- Blocos do case ------------------------------------------------------------------ */
.ds-sheets.phone-row > *{ flex-basis:220px; }
.ds-pair.phone-row{ justify-content:center; }
.ds-lesson{ max-width:26ch; margin:0; color:var(--ink); font-family:var(--serif); font-size:clamp(22px,2.6vw,34px); line-height:1.22; letter-spacing:-.005em; text-wrap:balance; }
.ds-lesson .label{ display:block; margin-bottom:14px; letter-spacing:.16em; }
@media (max-width:680px){ .ds-sheets.phone-row{ display:grid; grid-template-columns:1fr 1fr; } }
/* No celular, o playground usa a largura toda: sem o recuo padrão das figuras */
@media (max-width:760px){ .fig:has(> .pg){ margin-inline:0; } }
/* Tela Antes da vitrine: o preço logo abaixo do texto, como na primeira versão do card */
.vds-cards.is-broken .vds-card > :last-child{ margin-top:0; padding-top:0; }

/* ----- Diagramas do case: mostram o sistema em vez de caixas e setas ---------------------- */
.ds-sw{ flex:none; display:block; width:44px; height:44px; border:1px solid rgba(0,0,0,.08); border-radius:12px; background:var(--c); }
.ds-code{ color:var(--ink); font:500 15px/1.35 ui-monospace, Menlo, Consolas, monospace; overflow-wrap:anywhere; }
.ds-code.small{ font-size:12.5px; }

/* Da paleta ao componente */
.ds-roles-row{ --gap:clamp(36px,6vw,76px); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr); align-items:center; column-gap:var(--gap); padding-block:clamp(18px,3vh,26px); border-top:1px solid var(--line); }
.ds-roles-row:first-child{ padding-top:0; padding-bottom:16px; border-top:0; }
.ds-roles-row .label{ margin:0; }
.ds-roles-cell{ position:relative; display:flex; align-items:center; gap:14px; min-width:0; }
.ds-roles-cell + .ds-roles-cell::before{ content:""; position:absolute; right:calc(100% + 10px); top:50%; width:calc(var(--gap) - 20px); height:1px; background:var(--ink-2); }
.ds-roles-cell + .ds-roles-cell::after{ content:""; position:absolute; right:calc(100% + 10px); top:calc(50% - 3px); width:7px; height:7px; border-top:1px solid var(--ink-2); border-right:1px solid var(--ink-2); transform:rotate(45deg); }
.ds-role{ padding:9px 15px; border:1px solid var(--ink); border-radius:999px; color:var(--ink); font:500 15px/1.2 ui-monospace, Menlo, Consolas, monospace; overflow-wrap:anywhere; }
.ds-field{ width:min(200px,100%); height:44px; }
.ds-field span{ color:var(--text-placeholder); font-size:14px; }

/* O caminho de uma mudança */
.ds-trail{ --pad:clamp(14px,1.8vw,24px); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); column-gap:var(--pad); margin:0; padding:0; list-style:none; }
.ds-step{ display:flex; flex-direction:column; min-width:0; }
.ds-art .ds-code{ overflow-wrap:normal; }
.ds-art{ display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:10px; height:124px; padding:14px; border-radius:14px; background:color-mix(in srgb, var(--line) 42%, var(--surface)); }
.ds-rail{ position:relative; height:30px; margin:18px calc(var(--pad) * -1) 16px 0; }
.ds-step:last-child .ds-rail{ margin-right:0; }
.ds-rail::before{ content:""; position:absolute; left:0; right:0; top:13px; height:4px; background:#E7D655; }
/* A barra é o token: sai do amarelo antigo e chega ao novo na etapa em que ele é definido */
.ds-step:first-child .ds-rail::before{ background:linear-gradient(90deg,#F8B42D 30px,#E7D655); }
.ds-step:last-child .ds-rail::before{ right:auto; width:30px; }
.ds-n{ position:relative; display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--ink); border-radius:50%; background:var(--surface); color:var(--ink); font:400 18px/1 var(--serif); }
.ds-who{ margin:0 0 8px; font-size:11px; }
.ds-t{ margin:0; color:var(--ink); font:400 clamp(20px,1.8vw,23px)/1.16 var(--serif); }
.ds-d{ margin:8px 0 0; color:var(--ink-2); font:400 14.5px/1.45 var(--sans); }
.ds-mark{ font:600 12.5px/16px var(--sans); }
.ds-mark.bad{ color:#A1261B; }
.ds-mark.ok{ color:#0B6B45; }
.ds-delta{ display:flex; align-items:center; gap:8px; max-width:100%; }
.ds-delta .ds-sw{ width:36px; height:36px; border-radius:9px; }
.ds-delta i{ display:block; flex:0 1 20px; min-width:8px; height:1px; background:var(--ink-2); }
.ds-doc{ display:flex; align-items:center; gap:8px; max-width:100%; padding:8px; border:1px solid var(--line-2); border-radius:12px; background:#FFFFFF; }
.ds-doc .ds-sw{ flex:0 1 36px; width:36px; height:auto; min-width:24px; aspect-ratio:1; border-radius:9px; }
.ds-doc b{ display:block; font:600 13px/17px var(--font); }
.ds-doc small{ display:block; color:var(--text-muted); font:400 12px/16px var(--font); }
.ds-libs{ display:flex; flex-direction:column; gap:8px; width:100%; max-width:120px; }
.ds-libs > div{ display:flex; align-items:center; justify-content:space-between; gap:8px; font:600 13px/17px var(--font); }
.ds-libs i{ display:block; width:11px; height:11px; border-radius:50%; background:var(--c); }
@media (max-width:760px){
  .ds-roles-row{ grid-template-columns:1fr; row-gap:12px; }
  .ds-roles-row:first-child{ display:none; }
  .ds-roles-row:nth-child(2){ padding-top:0; border-top:0; }
  .ds-roles-cell + .ds-roles-cell::before, .ds-roles-cell + .ds-roles-cell::after{ display:none; }
}
/* Abaixo disso, cinco colunas não comportam o conteúdo das caixas */
@media (max-width:1060px){
  .ds-trail{ grid-template-columns:1fr; }
  .ds-step{ display:grid; grid-template-columns:30px minmax(0,1fr); column-gap:16px; padding:0 0 26px; }
  .ds-step:last-child{ padding-bottom:0; }
  .ds-art{ grid-column:2; grid-row:1; height:auto; min-height:92px; margin-bottom:14px; }
  .ds-rail{ grid-column:1; grid-row:1 / span 4; height:auto; margin:0 0 -26px; }
  .ds-step:last-child .ds-rail{ margin-bottom:0; }
  .ds-rail::before{ left:13px; right:auto; top:0; bottom:0; width:4px; height:auto; }
  .ds-step:first-child .ds-rail::before{ background:linear-gradient(180deg,#F8B42D 30px,#E7D655); }
  .ds-step:last-child .ds-rail::before{ width:4px; bottom:auto; height:30px; }
  .ds-who, .ds-t, .ds-d{ grid-column:2; }
}
