/* Estilos limitados à atividade. Cabeçalho/rodapé são globais. */
.ft-detetive-do-codigo{
  --ink: #122038;
  --muted: #64738a;
  --paper: #f4f1e9;
  --white: #ffffff;
  --navy: #0b1830;
  --navy-2: #14274a;
  --yellow: #ffc83d;
  --yellow-2: #f2a900;
  --cyan: #50d5ff;
  --green: #24a96b;
  --red: #d9534f;
  --line: #d8dee8;
  --shadow: 0 18px 50px rgba(11, 24, 48, .14);
  --radius: 18px;
}
.ft-detetive-do-codigo *{ box-sizing: border-box; }
.ft-detetive-do-codigo{ scroll-behavior: smooth; }
.ft-detetive-do-codigo{
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 24, 48, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 24, 48, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.ft-detetive-do-codigo button,.ft-detetive-do-codigo input,.ft-detetive-do-codigo textarea,.ft-detetive-do-codigo select{ font: inherit; }
.ft-detetive-do-codigo button,.ft-detetive-do-codigo a{ -webkit-tap-highlight-color: transparent; }
.ft-detetive-do-codigo button{ cursor: pointer; }
.ft-detetive-do-codigo .app-header{
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(11, 24, 48, .97);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 7px 28px rgba(0,0,0,.18);
}
.ft-detetive-do-codigo .brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.ft-detetive-do-codigo .brand-mark{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font: 800 1.8rem/1 ui-monospace, monospace;
  transform: rotate(-15deg);
}
.ft-detetive-do-codigo .brand strong,.ft-detetive-do-codigo .brand small{ display: block; }
.ft-detetive-do-codigo .brand strong{ font-size: 1.06rem; letter-spacing: .02em; }
.ft-detetive-do-codigo .brand small{ color: #b9c7dc; font-size: .78rem; }
.ft-detetive-do-codigo .header-status{
  color: #b9c7dc;
  font-size: .86rem;
  text-align: right;
}
.ft-detetive-do-codigo main{ min-height: calc(100vh - 76px); }
.ft-detetive-do-codigo .setup-shell{
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}
.ft-detetive-do-codigo .setup-copy{ position: relative; }
.ft-detetive-do-codigo .setup-copy::after{
  content: "CASO\AABERTO";
  white-space: pre;
  position: absolute;
  right: 0;
  bottom: -20px;
  color: rgba(11, 24, 48, .055);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 950;
  line-height: .72;
  text-align: right;
  pointer-events: none;
}
.ft-detetive-do-codigo .eyebrow{
  display: inline-block;
  padding: 7px 12px;
  color: var(--navy);
  background: var(--yellow);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.ft-detetive-do-codigo h1,.ft-detetive-do-codigo h2,.ft-detetive-do-codigo h3,.ft-detetive-do-codigo p{ margin-top: 0; }
.ft-detetive-do-codigo .setup-copy h1{
  max-width: 760px;
  margin: 26px 0 20px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.055em;
}
.ft-detetive-do-codigo .setup-copy > p{ max-width: 680px; color: #40506a; font-size: 1.12rem; }
.ft-detetive-do-codigo .mini-flow{
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  font-size: .92rem;
  font-weight: 750;
}
.ft-detetive-do-codigo .mini-flow li{ display: flex; align-items: center; gap: 7px; }
.ft-detetive-do-codigo .mini-flow span{ color: var(--yellow-2); font-family: ui-monospace, monospace; }
.ft-detetive-do-codigo .id-card{
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: var(--white);
  border: 1px solid #ccd4df;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.ft-detetive-do-codigo .id-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 18px, var(--navy) 18px 36px);
}
.ft-detetive-do-codigo .id-card-top{ display: flex; justify-content: space-between; font: 800 .78rem/1 ui-monospace, monospace; }
.ft-detetive-do-codigo .id-label{ color: var(--red); letter-spacing: .1em; }
.ft-detetive-do-codigo .id-number{ color: var(--muted); }
.ft-detetive-do-codigo .avatar-placeholder{
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 24px 0;
  border: 3px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: #eef3f8;
  font-size: 2rem;
  font-weight: 900;
}
.ft-detetive-do-codigo label{ display: block; font-weight: 760; }
.ft-detetive-do-codigo label small{ color: var(--muted); font-weight: 500; }
.ft-detetive-do-codigo input,.ft-detetive-do-codigo textarea,.ft-detetive-do-codigo select{
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #bfc9d8;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ft-detetive-do-codigo .id-card label + label{ margin-top: 16px; }
.ft-detetive-do-codigo textarea{ min-height: 112px; resize: vertical; }
.ft-detetive-do-codigo input:focus,.ft-detetive-do-codigo textarea:focus,.ft-detetive-do-codigo select:focus{
  border-color: #2477b9;
  box-shadow: 0 0 0 4px rgba(36, 119, 185, .14);
}
.ft-detetive-do-codigo .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.ft-detetive-do-codigo .button:hover{ transform: translateY(-1px); }
.ft-detetive-do-codigo .button:focus-visible{ outline: 3px solid var(--cyan); outline-offset: 2px; }
.ft-detetive-do-codigo .button-primary{ color: var(--navy); background: var(--yellow); box-shadow: 0 6px 0 #c99000; }
.ft-detetive-do-codigo .button-primary:hover{ background: #ffd461; }
.ft-detetive-do-codigo .button-secondary{ color: var(--white); background: var(--navy-2); }
.ft-detetive-do-codigo .button-ghost{ color: var(--navy); background: transparent; border-color: #aeb9c8; }
.ft-detetive-do-codigo .button-danger{ color: #9c2525; background: #fff4f4; border-color: #efb6b6; }
.ft-detetive-do-codigo .button-full{ width: 100%; margin-top: 24px; }
.ft-detetive-do-codigo .local-note{ margin: 18px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.ft-detetive-do-codigo .dashboard,.ft-detetive-do-codigo .case-shell{ width: min(1220px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 64px; }
.ft-detetive-do-codigo .dashboard-head{ display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ft-detetive-do-codigo .dashboard-head h1{ margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.ft-detetive-do-codigo .dashboard-head p{ margin-bottom: 0; color: var(--muted); }
.ft-detetive-do-codigo .student-chip{ flex: 0 0 auto; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 7px 20px rgba(11,24,48,.07); }
.ft-detetive-do-codigo .student-chip strong,.ft-detetive-do-codigo .student-chip span{ display: block; }
.ft-detetive-do-codigo .student-chip span{ color: var(--muted); font-size: .82rem; }
.ft-detetive-do-codigo .progress-board{ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 30px; padding: 20px 22px; color: var(--white); background: var(--navy); border-radius: 14px; }
.ft-detetive-do-codigo .progress-copy{ display: flex; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.ft-detetive-do-codigo .progress-track{ overflow: hidden; height: 10px; background: #273b5e; border-radius: 99px; }
.ft-detetive-do-codigo .progress-bar{ height: 100%; background: var(--yellow); border-radius: inherit; transition: width .35s; }
.ft-detetive-do-codigo .progress-number{ font: 900 1.6rem/1 ui-monospace, monospace; color: var(--yellow); }
.ft-detetive-do-codigo .case-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ft-detetive-do-codigo .case-card{
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(11, 24, 48, .08);
  transition: transform .2s, box-shadow .2s;
}
.ft-detetive-do-codigo .case-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.ft-detetive-do-codigo .case-card.done{ border-color: #7bcda3; }
.ft-detetive-do-codigo .case-card.done::after{ content: "CONCLUÍDO"; position: absolute; top: 15px; right: -8px; padding: 5px 10px; color: #075a34; background: #b8f0d1; font: 900 .7rem/1 ui-monospace, monospace; transform: rotate(3deg); }
.ft-detetive-do-codigo .case-card-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ft-detetive-do-codigo .case-number{ font: 900 2.5rem/1 ui-monospace, monospace; color: #c9d1dd; }
.ft-detetive-do-codigo .case-level{ padding: 5px 8px; border-radius: 999px; color: #695000; background: #fff1b8; font-size: .74rem; font-weight: 850; }
.ft-detetive-do-codigo .case-card h2{ margin: 24px 0 8px; font-size: 1.28rem; }
.ft-detetive-do-codigo .case-card p{ color: var(--muted); font-size: .94rem; }
.ft-detetive-do-codigo .case-card .button{ margin-top: auto; align-self: flex-start; }
.ft-detetive-do-codigo .dashboard-actions{ display: flex; justify-content: flex-end; margin-top: 32px; }
.ft-detetive-do-codigo .case-nav{ display: flex; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.ft-detetive-do-codigo .case-kicker{ color: var(--red); font: 850 .8rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.ft-detetive-do-codigo .case-title-row{ display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ft-detetive-do-codigo .case-title-row h1{ margin: 8px 0 6px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.ft-detetive-do-codigo .case-title-row p{ max-width: 760px; margin: 0; color: var(--muted); }
.ft-detetive-do-codigo .stepper{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 26px; }
.ft-detetive-do-codigo .step{ padding: 11px 13px; color: #65738a; background: #e7e9e8; border-radius: 10px; font-size: .86rem; font-weight: 760; }
.ft-detetive-do-codigo .step.active{ color: var(--navy); background: var(--yellow); }
.ft-detetive-do-codigo .step.done{ color: #0c6139; background: #cdf1de; }
.ft-detetive-do-codigo .work-panel{ overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ft-detetive-do-codigo .panel-header{ display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; color: var(--white); background: var(--navy); }
.ft-detetive-do-codigo .panel-header h2{ margin: 0; font-size: 1.15rem; }
.ft-detetive-do-codigo .panel-tag{ padding: 5px 8px; color: var(--navy); background: var(--yellow); border-radius: 4px; font: 800 .72rem/1 ui-monospace, monospace; }
.ft-detetive-do-codigo .panel-body{ padding: clamp(18px, 3vw, 30px); }
.ft-detetive-do-codigo .instruction{ padding: 14px 16px; border-left: 5px solid var(--yellow-2); background: #fff9df; }
.ft-detetive-do-codigo .instruction strong{ display: block; margin-bottom: 3px; }
.ft-detetive-do-codigo .preview-frame-wrap{ margin: 22px 0; padding: 10px; background: #23324d; border-radius: 14px; }
.ft-detetive-do-codigo .browser-bar{ display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 7px; }
.ft-detetive-do-codigo .browser-dot{ width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.ft-detetive-do-codigo .browser-dot:nth-child(2){ background: #ffd166; }
.ft-detetive-do-codigo .browser-dot:nth-child(3){ background: #4ecb71; }
.ft-detetive-do-codigo .browser-address{ flex: 1; margin-left: 8px; padding: 4px 12px; color: #9facbf; background: #15243e; border-radius: 6px; font: .72rem/1 ui-monospace, monospace; }
.ft-detetive-do-codigo .preview-frame{ display: block; width: 100%; min-height: 390px; background: white; border: 0; border-radius: 8px; }
.ft-detetive-do-codigo .question-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ft-detetive-do-codigo .question-grid .wide{ grid-column: 1 / -1; }
.ft-detetive-do-codigo .field-help{ display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.ft-detetive-do-codigo .form-actions{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.ft-detetive-do-codigo .code-layout{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.ft-detetive-do-codigo .code-card{ min-width: 0; overflow: hidden; background: #071223; border-radius: 12px; }
.ft-detetive-do-codigo .code-card-head{ display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; color: #dce8f7; background: #15243e; }
.ft-detetive-do-codigo .code-card-head strong{ font: 800 .84rem/1 ui-monospace, monospace; }
.ft-detetive-do-codigo .copy-code{ padding: 7px 9px; color: var(--cyan); background: transparent; border: 1px solid #446080; border-radius: 7px; font-size: .78rem; }
.ft-detetive-do-codigo .code-lines{ overflow: auto; max-height: 390px; margin: 0; padding: 14px 0; color: #d7e5f5; font: 14px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; tab-size: 2; }
.ft-detetive-do-codigo .code-line{ display: block; min-width: max-content; padding: 0 16px 0 0; white-space: pre; }
.ft-detetive-do-codigo .code-line::before{ content: attr(data-line); display: inline-block; width: 42px; margin-right: 13px; color: #536984; text-align: right; user-select: none; }
.ft-detetive-do-codigo .summary-sheet{
  position: relative;
  padding: clamp(24px, 5vw, 52px);
  background: #fffdfa;
  border: 1px solid #cfc7b7;
  box-shadow: 0 12px 28px rgba(40, 31, 14, .12);
}
.ft-detetive-do-codigo .summary-sheet::before{ content: "SÚMULA"; position: absolute; top: 22px; right: 26px; color: rgba(178, 35, 35, .14); border: 4px double rgba(178, 35, 35, .18); padding: 6px 10px; font: 900 1.15rem/1 ui-monospace, monospace; transform: rotate(7deg); }
.ft-detetive-do-codigo .summary-head{ padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.ft-detetive-do-codigo .summary-head h2{ margin-bottom: 5px; font-size: 1.8rem; }
.ft-detetive-do-codigo .summary-head p{ margin: 0; color: var(--muted); }
.ft-detetive-do-codigo .summary-meta{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.ft-detetive-do-codigo .summary-meta div{ padding: 10px 12px; background: #f2efe8; border-radius: 8px; }
.ft-detetive-do-codigo .summary-meta span,.ft-detetive-do-codigo .summary-item span{ display: block; color: var(--muted); font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.ft-detetive-do-codigo .summary-item{ padding: 17px 0; border-top: 1px dashed #b9b1a4; }
.ft-detetive-do-codigo .summary-item p{ margin: 5px 0 0; white-space: pre-wrap; }
.ft-detetive-do-codigo .summary-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ft-detetive-do-codigo .codepen-box{ margin-top: 24px; padding: 20px; color: white; background: var(--navy); border-radius: 14px; }
.ft-detetive-do-codigo .codepen-box h3{ margin-bottom: 6px; }
.ft-detetive-do-codigo .codepen-box p{ color: #c4d0e2; }
.ft-detetive-do-codigo .codepen-actions{ display: flex; flex-wrap: wrap; gap: 10px; }
.ft-detetive-do-codigo .complete-box{ margin-top: 18px; padding: 16px; background: #e9f8f0; border: 1px solid #a3dbbc; border-radius: 12px; }
.ft-detetive-do-codigo .complete-box label{ display: flex; align-items: start; gap: 10px; }
.ft-detetive-do-codigo .complete-box input{ width: 20px; height: 20px; margin: 2px 0 0; }
.ft-detetive-do-codigo .toast{ position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px); padding: 11px 16px; color: white; background: #17243a; border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; }
.ft-detetive-do-codigo .toast.show{ opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px){.ft-detetive-do-codigo .setup-shell{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .setup-copy::after{ display: none; }
.ft-detetive-do-codigo .case-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-detetive-do-codigo .code-layout{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .preview-frame{ min-height: 440px; }

}
@media (max-width: 640px){.ft-detetive-do-codigo .app-header{ position: static; min-height: 68px; padding: 10px 16px; }
.ft-detetive-do-codigo .brand small,.ft-detetive-do-codigo .header-status{ display: none; }
.ft-detetive-do-codigo .brand-mark{ width: 38px; height: 38px; }
.ft-detetive-do-codigo .setup-shell,.ft-detetive-do-codigo .dashboard,.ft-detetive-do-codigo .case-shell{ width: min(100% - 24px, 1220px); }
.ft-detetive-do-codigo .setup-shell{ padding: 34px 0; }
.ft-detetive-do-codigo .setup-copy h1{ font-size: 2.7rem; }
.ft-detetive-do-codigo .id-card{ padding: 25px 20px; }
.ft-detetive-do-codigo .dashboard-head,.ft-detetive-do-codigo .case-title-row{ align-items: stretch; flex-direction: column; }
.ft-detetive-do-codigo .student-chip{ align-self: flex-start; }
.ft-detetive-do-codigo .case-grid{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .progress-board{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .stepper{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .question-grid,.ft-detetive-do-codigo .summary-meta{ grid-template-columns: 1fr; }
.ft-detetive-do-codigo .question-grid .wide{ grid-column: auto; }
.ft-detetive-do-codigo .panel-header{ align-items: start; flex-direction: column; }
.ft-detetive-do-codigo .panel-body{ padding: 16px; }
.ft-detetive-do-codigo .preview-frame-wrap{ margin-inline: -7px; }
.ft-detetive-do-codigo .preview-frame{ min-height: 520px; }
.ft-detetive-do-codigo .form-actions,.ft-detetive-do-codigo .summary-actions,.ft-detetive-do-codigo .codepen-actions{ flex-direction: column; }
.ft-detetive-do-codigo .form-actions .button,.ft-detetive-do-codigo .summary-actions .button,.ft-detetive-do-codigo .codepen-actions .button{ width: 100%; }

}
@media print{.ft-detetive-do-codigo{ background: white; }
.ft-detetive-do-codigo .app-header,.ft-detetive-do-codigo .case-nav,.ft-detetive-do-codigo .case-title-row,.ft-detetive-do-codigo .stepper,.ft-detetive-do-codigo .panel-header,.ft-detetive-do-codigo .summary-actions,.ft-detetive-do-codigo .codepen-box,.ft-detetive-do-codigo .complete-box,.ft-detetive-do-codigo .toast{ display: none !important; }
.ft-detetive-do-codigo .case-shell,.ft-detetive-do-codigo .work-panel,.ft-detetive-do-codigo .panel-body{ width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
.ft-detetive-do-codigo .summary-sheet{ border: 0; box-shadow: none; }

}


.ft-detetive-do-codigo{position:relative;isolation:isolate;box-sizing:border-box;min-width:0;}

@media(prefers-reduced-motion:reduce){.ft-detetive-do-codigo *{animation-duration:0.01ms!important;transition-duration:0.01ms!important;}}

/* Superfícies e cores compartilhadas com a Biblioteca. */
.ft-detetive-do-codigo{--paper:var(--background,#f4f7f6);--navy:var(--school-blue-dark,#071739);
 --navy-2:var(--school-blue,#0d2c6c);--yellow:var(--school-yellow,#ffc107);background:var(--paper);font-family:inherit;min-width:0;}
.ft-detetive-do-codigo .app-header{position:static;background:var(--navy);box-shadow:none;}
.ft-detetive-do-codigo .setup-shell{min-height:560px;padding:40px 0;}
