/* ==========================================================================
   COVERS.CSS — 5 Palcos Interativos DOM/SVG (Antonio Silva Portfolio)
   Cada capa é uma demonstração viva da arquitetura real do projeto.
   ========================================================================== */

.case-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 290px;
  border-radius: var(--r-md);
  background: oklch(0.115 0.015 265);
  border: 1px solid oklch(1 0 0 / 0.1);
  overflow: hidden;
  color: oklch(0.95 0.01 265);
  font-family: var(--font-sans);
  user-select: none;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 18px 40px -20px oklch(0 0 0 / 0.5);
  display: flex;
  flex-direction: column;
}

.case-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.case-cover > * {
  position: relative;
  z-index: 1;
}

/* Barra superior comum das capas */
.cv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  background: oklch(0.095 0.014 265 / 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: oklch(0.70 0.015 265);
}

.cv-dots {
  display: inline-flex;
  gap: 5px;
}
.cv-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.18);
}
.cv-dots i:nth-child(1) { background: #ef4444; }
.cv-dots i:nth-child(2) { background: #f59e0b; }
.cv-dots i:nth-child(3) { background: #10b981; }

.cv-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.07);
  color: oklch(0.84 0.012 265);
  font-size: 0.66rem;
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Replay button */
.cover-replay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: oklch(0.16 0.02 265 / 0.85);
  border: 1px solid oklch(1 0 0 / 0.14);
  color: oklch(0.82 0.015 265);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}
.cover-replay:hover {
  background: oklch(0.24 0.025 265);
  color: #fff;
  transform: rotate(-45deg) scale(1.06);
}
.cover-replay svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   COVER 01: TRINKETOS CORE (Fluxo Bidirecional: Widget no Site do Cliente <-> Painel TrinketOS Real-Time)
   ========================================================================== */
.cover--trinketos-core {
  background:
    radial-gradient(circle at 82% 18%, oklch(0.58 0.27 322 / 0.22), transparent 52%),
    radial-gradient(circle at 12% 88%, oklch(0.52 0.22 258 / 0.18), transparent 50%),
    oklch(0.11 0.016 268);
}

.cv-tk-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.cv-tk-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: oklch(0.14 0.018 268 / 0.9);
  border: 1px solid oklch(1 0 0 / 0.09);
  border-radius: 11px;
  padding: 11px;
  height: 100%;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cv-tk-pane.is-lit {
  border-color: oklch(0.68 0.26 322 / 0.65);
  box-shadow: 0 0 24px -8px oklch(0.58 0.27 322 / 0.45);
}

.cv-tk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: oklch(0.72 0.015 265);
  padding-bottom: 6px;
  border-bottom: 1px solid oklch(1 0 0 / 0.07);
}

.cv-tk-domain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 600;
}
.cv-tk-domain::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.cv-tk-stomp {
  color: #e879f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.cv-tk-stomp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 8px #e879f9;
}

.cv-tk-chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-block: auto;
}

.cv-tk-msg {
  padding: 8px 10px;
  border-radius: 8px;
  background: oklch(0.18 0.02 268);
  border: 1px solid oklch(1 0 0 / 0.08);
  font-size: 0.71rem;
  line-height: 1.38;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}
.cv-tk-msg b {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: oklch(0.68 0.015 265);
  margin-bottom: 3px;
}
.cv-tk-msg.is-customer {
  border-left: 2.5px solid #38bdf8;
}
.cv-tk-msg.is-ai {
  background: linear-gradient(135deg, oklch(0.58 0.27 322 / 0.18), oklch(0.18 0.02 268));
  border-color: oklch(0.68 0.26 322 / 0.45);
}
.cv-tk-msg.is-ai b {
  color: #f0abfc;
}
.cv-tk-msg.is-reply {
  background: linear-gradient(135deg, oklch(0.62 0.18 162 / 0.18), oklch(0.18 0.02 268));
  border-color: oklch(0.68 0.18 162 / 0.5);
}
.cv-tk-msg.is-reply b {
  color: #6ee7b7;
}
.cv-tk-msg.is-pulse {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px oklch(0 0 0 / 0.5);
}

/* Ponte Central Bidirecional (Tempo Real) */
.cv-tk-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 4px;
  min-width: 92px;
}

.cv-tk-lane {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 8px;
  background: oklch(0.15 0.02 268);
  border: 1px solid oklch(1 0 0 / 0.08);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: oklch(0.72 0.015 265);
  transition: all 0.3s var(--ease-out);
}
.cv-tk-lane.is-Sending {
  border-color: #e879f9;
  color: #f5d0fe;
  background: oklch(0.58 0.27 322 / 0.2);
}
.cv-tk-lane.is-Returning {
  border-color: #34d399;
  color: #a7f3d0;
  background: oklch(0.62 0.18 162 / 0.2);
}

.cv-tk-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.12);
  position: relative;
  overflow: hidden;
}
.cv-tk-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e879f9, #38bdf8);
  animation: tkFlowRight 1.6s linear infinite;
}
.cv-tk-track.is-back i {
  background: linear-gradient(90deg, #34d399, #e879f9, transparent);
  animation: tkFlowLeft 1.6s linear infinite;
}

@keyframes tkFlowRight {
  0% { left: -45%; }
  100% { left: 105%; }
}
@keyframes tkFlowLeft {
  0% { right: -45%; }
  100% { right: 105%; }
}

.cv-tk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid oklch(1 0 0 / 0.07);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: oklch(0.72 0.015 265);
}

.cv-tk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cv-tk-tag {
  font-family: var(--font-mono);
  font-size: 0.59rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.09);
  transition: all 0.3s var(--ease-out);
}
.cv-tk-tag.is-hot {
  background: oklch(0.58 0.27 322 / 0.22);
  border-color: #e879f9;
  color: #f5d0fe;
}
.cv-tk-tag.is-ok {
  background: oklch(0.62 0.18 162 / 0.2);
  border-color: #34d399;
  color: #a7f3d0;
}

.cv-tk-sla {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   COVER 02: TRINKETOS LEARN (Funcionamento Dinâmico por Roles: Admin, Supervisor, Agente)
   ========================================================================== */
.cover--trinketos-learn {
  background:
    radial-gradient(circle at 18% 20%, oklch(0.58 0.27 322 / 0.2), transparent 50%),
    radial-gradient(circle at 85% 80%, oklch(0.65 0.18 162 / 0.18), transparent 52%),
    oklch(0.115 0.016 268);
}

.cv-ln-body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 12px;
  padding: 14px;
  align-items: stretch;
}

.cv-ln-roles {
  background: oklch(0.14 0.018 268 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.cv-ln-roles-head {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: oklch(0.68 0.015 265);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
}

.cv-ln-role-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.07);
  font-size: 0.69rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.cv-ln-role-tab b {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: #fff;
}
.cv-ln-role-tab small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: oklch(0.68 0.015 265);
}
.cv-ln-role-tab.is-active {
  border-color: #e879f9;
  background: oklch(0.58 0.27 322 / 0.2);
  box-shadow: 0 6px 16px -8px oklch(0.58 0.27 322 / 0.5);
}
.cv-ln-role-tab.is-active small {
  color: #f5d0fe;
}

.cv-ln-reader {
  background: oklch(0.14 0.018 268 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cv-ln-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.07);
}
.cv-ln-role b {
  color: #e879f9;
}

.cv-ln-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-ln-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.06);
  font-size: 0.68rem;
  transition: all 0.3s var(--ease-out);
}
.cv-ln-step i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-style: normal;
  background: #10b981;
  color: #052e16;
  font-weight: 700;
  flex-shrink: 0;
}
.cv-ln-step.is-active {
  border-color: #e879f9;
  background: oklch(0.58 0.27 322 / 0.16);
}
.cv-ln-step.is-active i {
  background: #e879f9;
  color: #2e1065;
}

.cv-ln-pulse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: oklch(0.18 0.02 268);
  border: 1px solid oklch(1 0 0 / 0.07);
  font-family: var(--font-mono);
  font-size: 0.61rem;
}
.cv-ln-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}
.cv-ln-wave span {
  width: 3px;
  background: #34d399;
  border-radius: 2px;
  animation: lnWave 1.2s ease-in-out infinite;
}
.cv-ln-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.cv-ln-wave span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.cv-ln-wave span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.cv-ln-wave span:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.cv-ln-wave span:nth-child(5) { height: 50%; animation-delay: 0.6s; }

@keyframes lnWave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   COVER 03: TRINKETOS DESIGN & WORKSPACE (Tokens -> Componentes Reativos ao Vivo)
   ========================================================================== */
.cover--trinketos-design {
  background:
    radial-gradient(circle at 75% 22%, oklch(0.58 0.27 322 / 0.24), transparent 52%),
    radial-gradient(circle at 20% 80%, oklch(0.55 0.23 260 / 0.18), transparent 50%),
    oklch(0.11 0.016 268);
}

.cv-ds-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 12px;
  padding: 14px;
  align-items: stretch;
}

.cv-ds-tokens {
  background: oklch(0.14 0.018 268 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.cv-ds-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cv-ds-sw {
  height: 30px;
  border-radius: 7px;
  border: 1px solid oklch(1 0 0 / 0.15);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.cv-ds-sw.is-focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 2px #fff;
}

.cv-ds-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  padding: 8px 9px;
  border-radius: 8px;
  background: oklch(0.10 0.015 268);
  border: 1px solid oklch(1 0 0 / 0.08);
  color: oklch(0.84 0.012 265);
}
.cv-ds-code em {
  font-style: normal;
  color: #f0abfc;
  transition: color 0.3s;
}

.cv-ds-token-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 6px 8px;
  border-radius: 7px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.07);
  color: oklch(0.76 0.015 265);
}

.cv-ds-preview {
  background: oklch(0.14 0.018 268 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  transition: border-color 0.35s var(--ease-out);
}

.cv-ds-atomic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
.cv-ds-atomic-pills {
  display: flex;
  gap: 5px;
}
.cv-ds-atomic span {
  padding: 3px 8px;
  border-radius: 5px;
  background: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.08);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.cv-ds-atomic span.is-on {
  background: var(--ds-live-soft, rgba(190, 27, 211, 0.25));
  border-color: var(--ds-live, #be1bd3);
  color: #fff;
  box-shadow: 0 0 12px var(--ds-live-soft, rgba(190, 27, 211, 0.3));
}

.cv-ds-stage {
  position: relative;
  min-height: 92px;
  padding: 10px 11px;
  border-radius: 9px;
  background: oklch(0.17 0.02 268);
  border: 1px solid var(--ds-live, rgba(232, 121, 249, 0.45));
  box-shadow: inset 0 0 24px -14px var(--ds-live, #be1bd3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.cv-ds-view {
  display: none;
  flex-direction: column;
  gap: 7px;
  animation: dsFadeIn 0.28s var(--ease-out);
}
.cv-ds-view.is-active {
  display: flex;
}

@keyframes dsFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visão 1: ATOM (Botão + Badge + Tag primitiva) */
.cv-ds-atom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.cv-ds-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--ds-live, #be1bd3);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--ds-live-soft, rgba(190, 27, 211, 0.4));
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cv-ds-chip {
  font-family: var(--font-mono);
  font-size: 0.59rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ds-live-soft, rgba(190, 27, 211, 0.22));
  border: 1px solid var(--ds-live, #be1bd3);
  color: #fff;
  transition: all 0.35s;
}

/* Visão 2: MOLECULE (Campo de Busca/Filtro + Ação combinada) */
.cv-ds-mol-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cv-ds-input {
  flex: 1;
  padding: 5px 9px;
  border-radius: 6px;
  background: oklch(0.11 0.015 268);
  border: 1px solid var(--ds-live, #be1bd3);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: oklch(0.88 0.01 265);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-ds-input i {
  font-style: normal;
  color: var(--ds-live-bright, #e879f9);
}

/* Visão 3: ORGANISM (Mini Card completo de Tenant no Workspace) */
.cv-ds-org-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: oklch(0.12 0.016 268);
  border-left: 3px solid var(--ds-live, #be1bd3);
}
.cv-ds-org-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-ds-org-info strong {
  font-size: 0.67rem;
  color: #fff;
}
.cv-ds-org-info small {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: oklch(0.70 0.015 265);
}

.cv-ds-comp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: oklch(0.75 0.015 265);
  padding-top: 5px;
  border-top: 1px solid oklch(1 0 0 / 0.07);
}
.cv-ds-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-live, #be1bd3);
  margin-right: 5px;
  transition: background 0.35s;
}

/* ==========================================================================
   COVER 04: INDEPENDEV (Terminal + Guias agrupados com coesão visual)
   ========================================================================== */
.cover--independev {
  background:
    radial-gradient(circle at 80% 22%, oklch(0.52 0.22 258 / 0.28), transparent 54%),
    radial-gradient(circle at 18% 82%, oklch(0.62 0.18 162 / 0.15), transparent 50%),
    oklch(0.105 0.018 262);
}

.cv-id-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 12px;
  padding: 14px;
  align-items: stretch;
}

.cv-id-term {
  background: oklch(0.085 0.015 262);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 10px;
  padding: 11px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.52;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.cv-id-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  background: oklch(1 0 0 / 0.02);
  transition: background 0.25s;
}
.cv-id-line.is-active {
  background: oklch(0.52 0.22 258 / 0.24);
  box-shadow: inset 2px 0 0 #75a9ff;
}
.cv-id-cmd {
  color: oklch(0.88 0.012 265);
}
.cv-id-cmd b {
  color: #75a9ff;
}
.cv-id-ok {
  color: #34d399;
  font-weight: 600;
}

.cv-id-books {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.cv-id-book {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: oklch(0.14 0.02 262 / 0.92);
  border: 1px solid oklch(1 0 0 / 0.09);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.cv-id-book.is-highlight {
  border-color: #75a9ff;
  transform: translateX(-3px);
  box-shadow: 0 8px 20px -10px oklch(0.52 0.22 258 / 0.5);
}
.cv-id-book img {
  width: 34px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid oklch(1 0 0 / 0.15);
  flex-shrink: 0;
}
.cv-id-book-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-id-book-meta strong {
  font-size: 0.69rem;
  color: #fff;
  line-height: 1.22;
}
.cv-id-book-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #75a9ff;
}

/* ==========================================================================
   COVER 05: SISTEMAS SOB MEDIDA (Novo Atacarejo SAC + Carioca Lanches +33%)
   ========================================================================== */
.cover--sob-medida {
  background:
    radial-gradient(circle at 22% 20%, oklch(0.62 0.18 162 / 0.24), transparent 52%),
    radial-gradient(circle at 82% 82%, oklch(0.52 0.22 258 / 0.18), transparent 52%),
    oklch(0.11 0.016 265);
}

.cv-sm-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.cv-sm-panel {
  background: oklch(0.14 0.018 265 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cv-sm-panel.is-focus {
  border-color: #34d399;
  transform: translateY(-2px);
}

.cv-sm-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34d399;
}

.cv-sm-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.cv-sm-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cv-sm-kpi {
  padding: 6px 7px;
  border-radius: 7px;
  background: oklch(0.10 0.015 265);
  border: 1px solid oklch(1 0 0 / 0.07);
}
.cv-sm-kpi b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #34d399;
}
.cv-sm-kpi span {
  font-size: 0.6rem;
  color: oklch(0.68 0.015 265);
}

.cv-sm-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  color: oklch(0.76 0.015 265);
}
.cv-sm-flow span {
  padding: 2px 5px;
  border-radius: 4px;
  background: oklch(1 0 0 / 0.06);
}

@media (max-width: 640px) {
  .cv-tk-body,
  .cv-ln-body,
  .cv-ds-body,
  .cv-id-body,
  .cv-sm-body {
    grid-template-columns: 1fr;
  }
  .case-cover {
    aspect-ratio: auto;
    min-height: 320px;
  }
}
