.tool-hero--cctv, .tool-hero--cctv-large-oil-rig,
.tool-hero--cctv-small-oil-rig, .tool-hero--cctv-airfield {
  --cctv-cover: radial-gradient(ellipse at 78% 60%,#457366,#122722 70%);
  margin-bottom: .85rem;
  background: linear-gradient(95deg,#101b1b 15%,#162323eb 51%,#20312b7a),var(--cctv-cover) center / cover;
}
.tool-hero--cctv-large-oil-rig { --cctv-cover: url('/assets/guides/gameplay-large-oil-rig.webp'); }
.tool-hero--cctv-small-oil-rig { --cctv-cover: url('/assets/guides/gameplay-small-oil-rig.webp'); }
.tool-hero--cctv-airfield { --cctv-cover: url('/assets/guides/gameplay-airfield-route.webp'); }
[data-cctv] { --cctv-border:#3c5349; --cctv-muted:#b1c5ba; }
[data-cctv] [hidden] { display:none !important; }
.cctv-nav, .cctv-equipment-links { display:flex; gap:.5rem; flex-wrap:wrap; margin:.75rem 0; }
.cctv-nav a, .cctv-equipment-links a, .cctv-camera button {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:44px;
  padding:.45rem .7rem; border:1px solid #4b695b; border-radius:8px; background:#233730; color:#e4f4e8; text-decoration:none;
}
.cctv-nav a:hover, .cctv-equipment-links a:hover, .cctv-camera button:not(:disabled):hover { border-color:#9cdac0; background:#2d4a3e; }
.cctv-controls { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:.65rem; margin:1rem 0 .4rem; }
.cctv-controls label, [data-cctv-suffix] { display:grid; align-content:start; gap:.3rem; min-width:0; }
.cctv-controls :is(input,select), [data-cctv-suffix] input {
  width:100%; min-width:0; min-height:44px; border:1px solid #537164; border-radius:8px;
  padding:.45rem .65rem; color:#eaf3ed; background:#162720; font:inherit;
}
.cctv-controls input::placeholder, [data-cctv-suffix] input::placeholder { color:#acc6ba; }
.cctv-status { min-height:1.4em; font-size:.89rem; color:#aee0c6; margin-block:.45rem; }
.cctv-places { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.8rem; }
.cctv-places:has(> :only-child) { grid-template-columns:minmax(0,1fr); }
.cctv-place, .cctv-equipment {
  min-width:0; overflow:hidden; padding:1rem; border:1px solid #3c5349; border-radius:12px; background:#182822;
}
.cctv-place-photo {
  display:block; width:100%; block-size:clamp(72px,12vw,128px); object-fit:cover; object-position:center 48%;
  border:1px solid #456253; border-radius:7px; margin-bottom:.66rem;
}
.cctv-place-heading {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.35rem .65rem; margin-bottom:.5rem;
}
.cctv-place-heading h2, .cctv-equipment h2 { margin:0; font-size:clamp(1.4rem,2vw,1.8rem); }
.cctv-place-heading > span, .cctv-place p { color:var(--cctv-muted); font-size:.86rem; margin:.15rem 0 .55rem; }
.cctv-place ul { display:grid; gap:.4rem; margin:0; padding:0; list-style:none; }
.cctv-camera {
  display:grid; grid-template-columns:minmax(0,1fr) auto 44px; gap:.3rem; align-items:center;
  min-height:54px; border:1px solid #324c40; border-radius:8px; padding:.35rem; background:#162620;
}
.cctv-camera:has([data-cctv-suffix]) { grid-template-columns:minmax(0,1fr) minmax(66px,.52fr) auto 44px; }
.cctv-camera button { cursor:pointer; font:inherit; font-size:.81rem; }
.cctv-camera button[data-cctv-copy].copied { color:#d4ffe7; border-color:#a2d4b5; background:#3a5c46; }
.cctv-camera button:disabled { cursor:default; color:#a0b4a8; border-color:#3a4e43; background:#192b23; }
.cctv-camera .cctv-star { font-size:1.25rem; color:#cbded2; padding-inline:.35rem; }
.cctv-camera .cctv-star[aria-pressed="true"] { color:#ffe19d; background:#453b26; border-color:#b49056; }
.cctv-label { min-width:0; padding-left:.2rem; }
.cctv-label code { display:block; color:#b7ecd6; overflow-wrap:anywhere; font-size:clamp(.82rem,1.35vw,1.04rem); font-weight:700; }
.cctv-label small, [data-cctv-suffix] span { color:var(--cctv-muted); font-size:.76rem; }
.cctv-label small { display:block; }
.cctv-equipment { margin:1rem 0; }
.cctv-equipment ol { padding-inline-start:1.45rem; }
.cctv-equipment li { padding:.26rem 0; }
.cctv-equipment p,.cctv-sources { color:#baccc2; }
.cctv-equipment-links img { width:34px; height:34px; object-fit:contain; }
.cctv-sources { font-size:.86rem; }
.cctv-sources a { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:850px) { .cctv-places { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) {
  .battery-main:has([data-cctv-detail]) .breadcrumb { margin-bottom:1.15rem; }
  [class*="tool-hero--cctv"]:has(+ [data-cctv-detail]) .tool-hero-items { display:none; }
  .cctv-controls { grid-template-columns:minmax(0,1fr); }
  .cctv-place,.cctv-equipment { padding:.65rem; }
  .cctv-camera:has([data-cctv-suffix]) { grid-template-columns:minmax(0,1fr) auto 44px; }
  .cctv-camera:has([data-cctv-suffix]) .cctv-label { grid-column:1 / -1; }
  .cctv-camera [data-cctv-suffix] { font-size:.8rem; }
}
