.modal.planner-modal { width: min(940px, 96vw); max-height: 92vh; overflow: auto; padding: 30px; }
.planner-head h2 { margin: 4px 0; font-size: 22px; }
.planner-head p { margin: 0; color: #737d88; font-size: 11px; }
.planner-kicker { color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.planner-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 25px 0 28px; border: 1px solid #293039; border-radius: 10px; overflow: hidden; }
.planner-progress button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; color: #68727e; background: #0e1216; border: 0; border-right: 1px solid #293039; font: 600 10px 'DM Sans'; cursor: pointer; }
.planner-progress button:last-child { border-right: 0; }
.planner-progress button b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #252b32; color: #7e8893; font-size: 9px; }
.planner-progress button.active { color: #fff; background: #191e24; }
.planner-progress button.active b { color: #fff; background: var(--accent); box-shadow: 0 0 15px #ff4d3655; }
.planner-progress button.done { color: var(--green); }
.planner-progress button.done b { color: #071b14; background: var(--green); }
.planner-panel { display: none; min-height: 365px; }
.planner-panel.active { display: block; animation: panel-in .18s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } }
.planner-modal .form-grid { gap: 17px; }
.planner-modal input, .planner-modal textarea, .planner-modal select { min-height: 40px; }
.planner-modal textarea { min-height: 82px; }
.panel-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-intro h3 { margin: 0 0 4px; font-size: 14px; }
.panel-intro p { margin: 0; color: #6e7883; font-size: 10px; }
.plan-editor { display: flex; flex-direction: column; gap: 12px; max-height: 380px; padding-right: 4px; overflow: auto; }
.plan-edit-step { position: relative; display: grid; grid-template-columns: 38px minmax(140px, .7fr) 1.5fr 25px; align-items: center; gap: 12px; padding: 13px; background: #0d1115; border: 1px solid #252c34; border-radius: 10px; }
.plan-edit-step:not(:last-child)::after { content: ''; position: absolute; left: 31px; bottom: -13px; width: 2px; height: 13px; background: var(--accent); opacity: .5; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--accent); font: 700 12px 'Space Grotesk'; }
.plan-edit-step textarea { min-height: 52px; height: 52px; }
.remove-step { color: #7b858f; background: transparent; border: 0; font-size: 20px; cursor: pointer; }
.remove-step:hover { color: var(--accent); }
.sketch-tools { display: flex; align-items: center; gap: 8px; }
.sketch-tools label { display: flex; align-items: center; gap: 5px; color: #727c87; font-size: 9px; }
.sketch-tools input { min-height: 0; width: 75px; }
.color-dot { width: 22px; height: 22px; padding: 0; border: 3px solid #171c22; border-radius: 50%; background: var(--dot); outline: 1px solid transparent; cursor: pointer; }
.color-dot.active { outline-color: #fff; }
.sketch-wrap, .review-sketch { position: relative; overflow: hidden; border: 1px solid #2d353e; border-radius: 11px; background-color: #0b0f13; background-image: linear-gradient(#20273055 1px, transparent 1px), linear-gradient(90deg, #20273055 1px, transparent 1px); background-size: 24px 24px; }
.sketch-wrap canvas, .review-sketch canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.sketch-wrap > span { position: absolute; left: 13px; bottom: 10px; color: #4f5964; font-size: 7px; letter-spacing: 1.4px; pointer-events: none; }
.planner-actions { display: flex; align-items: center; gap: 10px; padding-top: 20px; margin-top: 22px; border-top: 1px solid #252c34; }
.planner-actions #plannerHint { flex: 1; text-align: center; color: #66707b; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.review-hero { padding: 20px; margin-bottom: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--gang-color) 16%, #11151a), #11151a); border: 1px solid color-mix(in srgb, var(--gang-color) 38%, #283039); border-radius: 11px; }
.review-hero > span { color: var(--gang-color); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.review-hero h2 { margin: 5px 0; font-size: 18px; }
.review-hero p { margin: 0; color: #8a939e; font-size: 10px; }
.review-hero small { display: block; margin-top: 10px; color: #69737e; font-size: 9px; }
.flow-diagram { display: flex; align-items: stretch; gap: 8px; margin: 16px 0 20px; overflow-x: auto; padding-bottom: 5px; }
.flow-diagram > i { display: grid; place-items: center; color: var(--accent); font-style: normal; }
.flow-step { min-width: 180px; flex: 1; display: flex; align-items: flex-start; gap: 10px; padding: 13px; background: #0d1115; border: 1px solid #293039; border-radius: 9px; }
.flow-step > b { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; color: white; background: var(--accent); border-radius: 7px; font: 700 9px 'Space Grotesk'; }
.flow-step strong, .flow-step small { display: block; }
.flow-step strong { font-size: 10px; }
.flow-step small { margin-top: 4px; color: #69737e; font-size: 8px; line-height: 1.45; }
.heist-card { cursor: pointer; }
.heist-card:hover { border-color: var(--gang-color); }
.heist-detail > h2 { margin: 5px 0; font-size: 23px; }
.heist-detail > p { margin: 0 0 15px; color: #7f8994; }
.heist-detail > h3 { margin: 24px 0 6px; font-size: 12px; }
.heist-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.heist-meta span { padding: 6px 9px; color: #8d97a1; background: #181d23; border: 1px solid #2a3139; border-radius: 6px; font-size: 9px; }
.detail-flow .flow-step > b { background: var(--gang-color); }

@media (max-width: 700px) {
  .planner-progress button span { display: none; }
  .plan-edit-step { grid-template-columns: 32px 1fr 24px; }
  .plan-edit-step .field:nth-of-type(2) { grid-column: 2 / 3; }
  .panel-intro { align-items: flex-start; flex-direction: column; }
  .sketch-tools { flex-wrap: wrap; }
}
