/* draw.html — structure editor overlay + the practice-prompt cards. */

.dw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.dw-card { padding: 14px; }
.dw-card h4 { margin: 0 0 4px; font-size: 14.5px; }
.dw-card .muted { font-size: 12px; margin: 0 0 10px; }
.dw-card__status { font-size: 12px; font-weight: 600; margin-top: 8px; min-height: 16px; }
.dw-card__status--ok { color: var(--green, #1a7f43); }
.dw-card__status--no { color: var(--red, #c0392b); }
.dw-card__status--unk { color: var(--muted-ink, #8a7a55); }

.dw-free { padding: 16px; margin-bottom: 18px; }
.dw-free h3 { margin: 0 0 6px; }

.dw-result { padding: 12px 14px; margin-top: 12px; font-size: 12.5px; }
.dw-result code { display: block; word-break: break-all; background: var(--paper, #f6f3ea); padding: 6px 8px; border-radius: 6px; margin: 4px 0 8px; }

/* --------------------------------------------------------------- overlay */
.se-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 14, .55);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
  padding: 16px;
}
.se-overlay--open { opacity: 1; pointer-events: auto; }
body.se-lock { overflow: hidden; }

.se-modal {
  width: min(1100px, 100%); height: min(760px, 92vh);
  background: var(--card, #fff); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.se-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line, #e7e2d6);
}
.se-modal__actions { display: flex; gap: 8px; flex-shrink: 0; }
.se-modal__body { flex: 1; position: relative; min-height: 0; }
.se-frame { width: 100%; height: 100%; border: 0; display: block; }
.se-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  font-size: 14px; color: var(--body-c, #444);
}

@media (max-width: 640px) {
  .se-overlay { padding: 0; }
  .se-modal { width: 100%; height: 100%; border-radius: 0; }
}
