.tensor-skill-download-page .tensor-reading-progress { display: none; }

.tensor-skill-download-main {
  --skill-ink: #0d1930;
  --skill-muted: #485971;
  --skill-blue: #0755c8;
  --skill-border: #dbe4f0;
  --skill-surface: #fff;
  color: var(--skill-ink);
  background: #f5f8fd;
}

html.tensor-dark .tensor-skill-download-main {
  --skill-ink: #edf4ff;
  --skill-muted: #bdcce1;
  --skill-blue: #82baff;
  --skill-border: #334665;
  --skill-surface: #14233e;
  background: #0d182d;
}

.tensor-download-shell {
  box-sizing: border-box;
  --skill-gutter: clamp(10px, 2.6vw, 24px);
  --skill-content-width: 860px;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 16px 0 24px;
  overflow-wrap: anywhere;
}

/* Faixas de ponta a ponta; textos e artigos mantêm a largura de leitura. */
.tensor-download-shell > :not(.tensor-download-identification, .tensor-download-control, .tensor-download-previous) {
  box-sizing: border-box;
  width: min(var(--skill-content-width), calc(100% - 2 * var(--skill-gutter)));
  max-width: 100%;
  margin-inline: auto;
}

.tensor-download-shell > :is(.tensor-download-identification, .tensor-download-control, .tensor-download-previous) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(clamp(16px, 5vw, 24px), calc((100% - var(--skill-content-width)) / 2));
  border-radius: 0;
  box-shadow: none;
}

.tensor-download-shell > :is(.tensor-download-identification, .tensor-download-control) {
  border: 0;
}

.tensor-download-shell svg { width: 20px; height: 20px; flex: none; }
.tensor-download-shell a:not(.tensor-download-action) { color: var(--skill-blue); }

.tensor-download-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--skill-muted);
  font-size: .81rem;
  margin-bottom: 12px;
}
.tensor-download-breadcrumbs a { text-decoration: none; }

.tensor-download-panel {
  background: var(--skill-surface);
  border: 1px solid var(--skill-border);
  border-radius: 17px;
  padding: clamp(12px, 2.5vw, 22px);
  box-shadow: 0 4px 16px #2039530e;
}

.tensor-download-identification {
  display: grid;
  grid-template-columns: clamp(72px, 23vw, 148px) minmax(0, 1fr);
  gap: clamp(10px, 3vw, 24px);
  align-items: center;
  padding-block: clamp(10px, 2.5vw, 18px);
  line-height: 1.35;
}

.tensor-download-cover {
  display: block;
  aspect-ratio: 1;
  height: auto;
  width: 100%;
  border-radius: clamp(8px, 2vw, 14px);
  background: #021434;
}

.tensor-download-intro { min-width: 0; }
.tensor-download-panel h1 {
  color: var(--skill-ink);
  margin: 0 0 4px;
  font-size: clamp(1rem, 3.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.tensor-download-credit {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--skill-muted);
  font-size: clamp(.72rem, 2.4vw, .94rem);
}
.tensor-download-credit svg { width: 14px; height: 14px; }

.tensor-download-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin: 5px 0 0;
  padding-top: 5px;
  border-top: 1px solid var(--skill-border);
  line-height: 1.25;
}

.tensor-download-spec { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
.tensor-download-spec > svg { width: 14px; height: 14px; }
.tensor-download-spec-platform { grid-column: 1 / -1; }
.tensor-download-spec > div, .tensor-download-info > div > div { min-width: 0; }
.tensor-download-spec svg, .tensor-download-info svg, .tensor-download-section h2 svg { color: var(--skill-blue); }
.tensor-download-spec dt, .tensor-download-info dt { color: var(--skill-muted); font-size: .76rem; font-weight: 650; }
.tensor-download-spec dd, .tensor-download-info dd { margin: 2px 0 0; font-size: .88rem; font-weight: 700; }
.tensor-download-shell .tensor-skill-chip svg { color: inherit; width: 12px; height: 12px; }

@media (min-width: 720px) {
  .tensor-download-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .tensor-download-spec + .tensor-download-spec { padding-inline-start: 16px; border-inline-start: 1px solid var(--skill-border); }
  .tensor-download-spec-platform { flex: 1 1 180px; }
}

.tensor-download-control { margin-top: 12px; text-align: center; }
.tensor-download-shell > [data-tensor-ad-slot="tensor_skill_ads_01"] + .tensor-download-control { margin-top: 0; }
.tensor-download-file { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; text-align: start; }
.tensor-download-file div { min-width: 0; }
.tensor-download-file strong { display: block; color: var(--skill-ink); font-size: clamp(1rem, 3.75vw, 1.65rem); line-height: 1.25; }
.tensor-download-file div span { color: var(--skill-muted); font-size: .86rem; }
.tensor-download-file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  color: #0755c8;
  background: #eaf3ff;
  border-radius: 12px;
}
.tensor-download-file-icon svg { width: 27px; height: 27px; }

.tensor-download-clock { position: relative; width: 116px; height: 116px; margin: 12px auto; }
.tensor-download-clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.tensor-download-clock circle { fill: none; stroke-width: 8; }
.tensor-download-clock-track { stroke: var(--skill-border); }
.tensor-download-clock-progress { stroke: var(--skill-blue); stroke-linecap: round; }
.tensor-download-clock > div { position: absolute; inset: 0; display: grid; place-content: center; }
.tensor-download-clock strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tensor-download-clock span { color: var(--skill-muted); font-size: .75rem; }

.tensor-download-control h2 { margin: 12px 0 3px; color: var(--skill-blue); font-size: clamp(1rem, 3vw, 1.3rem); }
.tensor-download-control p { margin: 0 0 12px; color: var(--skill-muted); font-size: .88rem; }
.tensor-download-action {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #0754cf;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
}
.tensor-download-action:is(:hover, :focus-visible) { color: #fff; background: #0046b6; }
.tensor-download-action:disabled { background: #537aae; cursor: wait; }
.tensor-download-action span { min-width: 0; }
.tensor-download-return { display: inline-block; margin-top: 10px; padding: 6px 0; font-size: .84rem; }

.tensor-download-section { margin-top: 20px; }
.tensor-download-section > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--skill-ink);
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 1.25;
}
.tensor-download-section > h2::after { content: ""; flex: 1; min-width: 10px; height: 1px; background: var(--skill-border); }
.tensor-download-description { margin: 0 0 10px; color: var(--skill-muted); }
.tensor-download-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 8px;
  margin: 0;
}
.tensor-download-info > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--skill-border);
  border-radius: 11px;
  background: var(--skill-surface);
}
.tensor-download-steps { padding-inline-start: 1.7rem; margin: 0; list-style: decimal; }
.tensor-download-steps li { padding-inline-start: 5px; margin-bottom: 10px; }
.tensor-download-steps li::marker { color: var(--skill-blue); font-weight: 800; }
.tensor-download-steps p { color: var(--skill-muted); margin: 2px 0 0; white-space: pre-line; }
.tensor-download-shell [data-tensor-ad-slot] { max-width: 100%; }

/* Primeiro e segundo anúncios: menos área vazia, sem alterar a altura
   reservada, o conteúdo do anúncio ou os demais slots. */
.tensor-download-shell > :is([data-tensor-ad-slot="tensor_skill_ads_01"], [data-tensor-ad-slot="tensor_skill_ads_02"]) {
  width: min(var(--skill-content-width), 100%);
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
}
.tensor-download-shell > :is([data-tensor-ad-slot="tensor_skill_ads_01"], [data-tensor-ad-slot="tensor_skill_ads_02"]) .tensor-ad-inner {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.tensor-download-shell > :is([data-tensor-ad-slot="tensor_skill_ads_01"], [data-tensor-ad-slot="tensor_skill_ads_02"]) .tensor-ad-disclosure {
  margin-bottom: 6px;
}

/* Segundo retorno ao artigo: somente linhas superior e inferior. */
.tensor-download-shell > a.tensor-download-previous {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-block: 14px 16px;
  padding-block: 10px;
  border: 0;
  border-block: 1px solid var(--skill-blue);
  background: var(--skill-surface);
  color: var(--skill-ink);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}
.tensor-download-previous svg { color: var(--skill-blue); }
.tensor-download-shell > a.tensor-download-previous:is(:hover, :focus-visible) { color: var(--skill-blue); }
.tensor-download-previous:focus-visible { outline: 2px solid var(--skill-blue); outline-offset: -4px; }
