:root {
    --bg: #0f1220;
    --card: #1e2240;
    --card-2: #262b52;
    --border: #333a6a;
    --text: #e8eaf6;
    --muted: #9aa0c8;
    --accent: #6c7cff;
    --accent-2: #a855f7;
    --success: #22c55e;
    --danger: #ef4444;
    --draft: #f59e0b;
    --schema-node: #2e3468;
    --schema-node-selected: #6c7cff;
}

header h1 {
    font-size: 2rem;
}

.subtitle { color: var(--muted); font-size: .95rem; }

main { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.block {
    background: linear-gradient(180deg, var(--bg-2), var(--card));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.block-header h2 { font-size: 1.2rem; }
.block-header h3 { font-size: 1rem; color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 16px; }

/* Проект + черновик */
.project-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.project-block { padding: 16px 20px; }
.project-label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 260px; }
.project-title { font-size: .95rem; font-weight: 600; color: var(--accent); }

.project-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 11px 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.project-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,124,255,.15); }

.draft-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(245,158,11,.06);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: .15s;
    min-width: 220px;
}
.draft-toggle:hover { background: rgba(245,158,11,.12); }
.draft-toggle input { width: 18px; height: 18px; accent-color: var(--draft); cursor: pointer; }
.draft-label { font-size: .85rem; line-height: 1.3; }
.draft-label small { color: var(--muted); font-size: .72rem; }

body.draft-mode .action-card { border-color: rgba(245,158,11,.35); }

/* Карточки */
.card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    animation: fadeIn .25s ease;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    gap: 10px;
    flex-wrap: wrap;
}

.card-header-right { display: flex; align-items: center; gap: 12px; }

.card-title { font-weight: 600; color: var(--accent); font-size: .95rem; }

.card-body { display: flex; gap: 16px; flex-wrap: wrap; }
.fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }

/* Чекбокс «Добавить в схему» */
.schema-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.schema-toggle:hover { background: rgba(108,124,255,.1); color: var(--text); }
.schema-toggle input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }

/* Фото */
.photo-area { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.photo-label {
    width: 130px; height: 130px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
    background: rgba(255,255,255,.02);
    transition: .2s;
    text-align: center; color: var(--muted);
    font-size: .85rem; position: relative;
}
.photo-label:hover { border-color: var(--accent); color: var(--accent); }

.photo-preview, .location-photo-preview { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-label.has-image .photo-preview,
.photo-label.has-image .location-photo-preview { display: block; }
.photo-label.has-image .photo-placeholder { display: none; }

/* Локация */
.location-block { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.location-photo-area { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.location-photo-label { width: 110px; height: 110px; font-size: .75rem; }
.location-text-label { flex: 1; min-width: 200px; }

/* Поля */
label {
    display: flex;
    flex-direction: column;
    font-size: .82rem;
    gap: 4px;
}

input[type=text], input[type=number], textarea, select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 10px;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,124,255,.15); }
input::placeholder, textarea::placeholder { color: #5b628f; }
textarea { resize: vertical; min-height: 60px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; width: 100%; }
.grid .full { grid-column: 1 / -1; }

.checkbox-label { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; color: var(--text); padding-top: 20px; }
.checkbox-label input { width: auto; }

.sound-block { background: rgba(108,124,255,.06); border: 1px dashed var(--border); border-radius: 10px; padding: 10px; }
.sound-block[hidden] { display: none; }

/* Кнопки сцен ▲/▼ */
.scene-move { display: flex; gap: 4px; }

.btn-move {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .7rem;
    padding: 2px 8px;
    line-height: 1;
    border-radius: 6px;
}
.btn-move:hover { color: var(--text); border-color: var(--accent); }
.btn-move:disabled { opacity: .3; cursor: not-allowed; }

/* ===================== СХЕМА СВЯЗЕЙ (SVG) ===================== */
.schema-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.schema-hint { color: var(--muted); font-size: .78rem; font-style: italic; }

.schema-wrap {
    position: relative;
    width: 100%;
    min-height: 380px;
    background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.02) 23px 24px),
                repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.02) 23px 24px),
                var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

#relationSchema { display: block; width: 100%; height: 380px; }

.schema-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
    pointer-events: none;
    text-align: center;
    padding: 20px;
}
.schema-empty[hidden] { display: none; }

.node { cursor: pointer; transition: filter .15s; }
.node:hover .node-bg { filter: brightness(1.2); }
.node-bg {
    fill: var(--schema-node);
    stroke: var(--accent);
    stroke-width: 1.5;
    rx: 10;
    transition: fill .15s, stroke .15s;
}
.node.selected .node-bg {
    fill: rgba(108,124,255,.35);
    stroke: var(--accent-2);
    stroke-width: 2.5;
}
.node-text {
    fill: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}
.node-sub {
    fill: var(--muted);
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}
.node-remove { cursor: pointer; opacity: 0; transition: opacity .15s; }
.node:hover .node-remove { opacity: 1; }
.node-remove circle { fill: rgba(239,68,68,.85); }
.node-remove text { fill: white; font-size: 12px; font-weight: bold; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

.edge { cursor: pointer; }
.edge-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    transition: stroke .15s, stroke-width .15s;
}
.edge:hover .edge-path { stroke: var(--accent-2); stroke-width: 2.8; }
.edge-label-bg {
    fill: var(--card);
    stroke: var(--border);
    stroke-width: 1;
    rx: 6;
}
.edge-label {
    fill: var(--text);
    font-size: 11px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}
.edge-remove { opacity: 0; transition: opacity .15s; cursor: pointer; }
.edge:hover .edge-remove { opacity: 1; }
.edge-remove circle { fill: var(--danger); }
.edge-remove text { fill: white; font-size: 10px; font-weight: bold; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

.relation-dialog {
    position: absolute;
    background: var(--card-2);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    animation: fadeIn .15s ease;
}
.relation-dialog label { font-size: .78rem; }
.relation-dialog input { font-size: .9rem; }
.relation-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.relation-dialog .btn-small { padding: 5px 12px; font-size: .8rem; }
.relation-dialog .btn-cancel { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.relation-dialog .btn-cancel:hover { color: var(--text); }

/* ===================== СХЕМА СЦЕН (board) ===================== */
.scenes-board {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 120px;
    padding: 12px;
    background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.02) 23px 24px),
                repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.02) 23px 24px),
                var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.scenes-board-empty {
    color: var(--muted);
    font-size: .85rem;
    font-style: italic;
    padding: 12px;
}
.scenes-board-empty[hidden] { display: none; }

.scene-board-item {
    display: flex;
    flex-direction: column;
    width: 170px;
    background: var(--card-2);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    cursor: grab;
    user-select: none;
    transition: border-color .15s, transform .15s, box-shadow .15s, opacity .15s;
    position: relative;
}
.scene-board-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.scene-board-item:hover .scene-board-title { color: var(--accent); }
.scene-board-item:active { cursor: grabbing; }

.scene-board-item.dragging { opacity: .35; border-style: dashed; }
.scene-board-item.drop-target {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(168,85,247,.3);
}
.scene-board-item.drop-before::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.scene-board-item.drop-after::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.scene-board-num {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: .7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.scene-board-thumb {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.scene-board-img { width: 100%; height: 100%; object-fit: cover; }
.scene-board-noimg { font-size: 1.8rem; opacity: .4; }

.scene-board-info { display: flex; flex-direction: column; gap: 2px; }
.scene-board-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scene-board-meta {
    font-size: .7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scene-board-handle {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.4);
    color: var(--text);
    font-size: .8rem;
    padding: 1px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s;
}
.scene-board-item:hover .scene-board-handle { opacity: 1; }

/* ===================== КНОПКИ (общие) ===================== */
.btn-video {
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s;
    font-family: inherit;
    color: white;
}
.btn-video:hover { transform: translateY(-1px); }
.btn-video:active { transform: translateY(0); }

.btn-add { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-add:hover { box-shadow: 0 6px 18px rgba(108,124,255,.35); }

.btn-small { padding: 4px 10px; font-size: .8rem; }

.btn-remove { background: transparent; color: var(--danger); font-size: 1.1rem; padding: 2px 8px; }
.btn-remove:hover { background: rgba(239,68,68,.15); }

.btn-clear-photo, .btn-clear-location-photo {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .72rem;
    padding: 3px 8px;
}
.btn-clear-photo:hover, .btn-clear-location-photo:hover { color: var(--text); }

.btn-copy { background: var(--card-2); border: 1px solid var(--border); }
.btn-copy:hover { background: var(--border); }

.generate-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.btn-generate {
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    font-size: 1.1rem;
    padding: 14px 40px;
    box-shadow: 0 8px 24px rgba(34,197,94,.3);
}
.btn-generate:hover { box-shadow: 0 12px 30px rgba(34,197,94,.45); }
.btn-generate:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.status { font-size: .9rem; min-height: 20px; text-align: center; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

.preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: .85rem;
    color: #c7d2fe;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.5;
}

/* Анимация перенумерации */
.action-card.renumber-flash { animation: renumberFlash .5s ease; }
@keyframes renumberFlash {
    0%   { border-color: var(--accent); box-shadow: 0 0 0 0 rgba(108,124,255,.6); }
    100% { border-color: var(--border);  box-shadow: 0 0 0 0 rgba(108,124,255,0);  }
}

@media (max-width: 640px) {
    .card-header-right { flex-wrap: wrap; }
    .schema-hint { display: none; }
    .relation-row { grid-template-columns: 1fr 1fr; }
    .relation-row .rel-type { grid-column: 1 / -1; order: -1; }
}
/* Подсветка сцены при переходе из board */
.action-card.scene-flash {
    animation: sceneFlash 1.2s ease;
}
@keyframes sceneFlash {
    0%   { border-color: var(--accent-2); box-shadow: 0 0 0 0 rgba(168,85,247,.7); }
    60%  { border-color: var(--accent-2); box-shadow: 0 0 0 6px rgba(168,85,247,0);   }
    100% { border-color: var(--border);   box-shadow: none; }
}

/* Выбор AI-модели */
.ai-select-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
    flex: 1.2;
}

.ai-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 11px 14px;
    font-size: .92rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.ai-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,124,255,.15);
}
.ai-select option {
    background: var(--card-2);
    color: var(--text);
}
/* Блок AI-моделей */
.ai-models-section {
  margin-bottom: 24px;
}

.ai-models-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.ai-models-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.ai-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.ai-model-card {
  position: relative;
  display: block;
  background: var(--card-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ai-model-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Скрываем радио, но оставляем функционал */
.ai-model-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Состояние выбора */
.ai-model-card input[type="radio"]:checked + .ai-model-content {
  position: relative;
}

.ai-model-card:has(input:checked) {
  border-color: var(--accent-2);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.ai-model-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--accent-2);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.ai-model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-model-name {
  font-weight: 700;
  font-size: 1rem;
}

.ai-model-badge {
  font-size: 0.7rem;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.ai-model-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ai-model-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
}

.ai-model-features li {
  padding: 2px 0;
  padding-left: 14px;
  position: relative;
}

.ai-model-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.param-block {
    background-color: #ffffff;
    border-left: 4px solid #e94560;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.param-block h3 {
    font-size: 1.1rem;
    color: #e94560;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.analogy {
    background-color: #f1f3f8;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    font-style: italic;
    color: #444;
}

.analogy strong {
    font-style: normal;
}

.scenario-block {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.scenario-block h3 {
    font-size: 1.1rem;
    color: #0f3460;
    margin-top: 0;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.scenario-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background-color: #0f3460;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.highlight {
    background: linear-gradient(120deg, #ffe0e6 0%, #ffe0e6 100%);
    padding: 0.15em 0.3em;
    border-radius: 3px;
    font-weight: 600;
}

.note {
    background-color: #eef6ff;
    border-left: 4px solid #4a90d9;
    border-radius: 0 6px 6px 0;
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}
/* Кнопки выгрузки/загрузки */
.project-io {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding-bottom: 1px;
}

.btn-io {
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .85rem;
    padding: 10px 14px;
    white-space: nowrap;
}
.btn-io:hover {
    background: var(--border);
    border-color: var(--accent);
}
/* ===================== ИНСТРУКЦИЯ ===================== */
.instruction-block { padding: 0; overflow: hidden; }

.instruction { border: none; }

.instruction-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-2), var(--card));
    transition: background .15s;
    user-select: none;
}
.instruction-summary::-webkit-details-marker { display: none; }
.instruction-summary:hover { background: var(--card); }

.instruction-icon { font-size: 1.15rem; }

.instruction-toggle {
    margin-left: auto;
    font-size: .9rem;
    color: var(--muted);
    transition: transform .2s;
}
.instruction[open] .instruction-toggle { transform: rotate(180deg); }

.instruction-body {
    padding: 4px 20px 20px;
    animation: fadeIn .2s ease;
}

.instruction-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 14px 12px 48px;
    background: rgba(108,124,255,.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .88rem;
    line-height: 1.55;
}

.instruction-steps li::before {
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(108,124,255,.3);
}

.instruction-steps em {
    color: var(--muted);
    font-style: normal;
    background: rgba(245,158,11,.1);
    padding: 1px 5px;
    border-radius: 4px;
}

.instruction-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(34,197,94,.06);
    border: 1px dashed rgba(34,197,94,.4);
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.5;
}
.instruction-note strong { color: var(--success); }