/* Стиль UI для куратора (не для пациента). Сдержанный, не отвлекающий. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --pink: #E93D8D;
  --purple: #5E5391;
  --lavender-soft: #EDE7F8;
  --almost-white: #F4F3F7;
  --graphite: #2E2E35;
  --gray: #8D8C96;
  --light-gray: #D8D7DE;
  --amber-soft: #FEF6E4;
  --amber: #C68A1C;
  --green-soft: #E6F4EA;
  --green: #1E8449;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--almost-white);
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.55;
}

.shell { max-width: 920px; margin: 32px auto; padding: 0 20px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar .logo { font-weight: 700; color: var(--purple); font-size: 18px; }
.topbar .backend-pill {
  background: var(--lavender-soft);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 14px rgba(46, 46, 53, 0.05);
  margin-bottom: 16px;
}

h1 { font-size: 22px; color: var(--purple); margin-bottom: 8px; line-height: 1.25; }
h2 { font-size: 16px; color: var(--purple); margin-bottom: 12px; line-height: 1.3; }
.lead { color: var(--gray); margin-bottom: 18px; font-size: 13px; line-height: 1.55; max-width: 100%; }

.dropzone {
  border: 2px dashed var(--light-gray);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--almost-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone:hover { border-color: var(--purple); background: white; }
.dropzone.over { border-color: var(--purple); background: var(--lavender-soft); }
.dropzone input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.dropzone .ico {
  width: 36px; height: 36px;
  color: var(--purple);
  margin-bottom: 4px;
}
.dropzone .dz-main { font-size: 14px; font-weight: 600; color: var(--graphite); }
.dropzone .hint { font-size: 12px; color: var(--gray); }
.dropzone .picked {
  margin-top: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  min-height: 1em;
}

.divider {
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  margin: 18px 0;
  position: relative;
}
.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  border-top: 1px solid var(--light-gray);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

textarea {
  width: 100%;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 120px;
}
textarea:focus { outline: none; border-color: var(--purple); }

.btn {
  background: var(--purple);
  color: white;
  border: 0;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: #4A3F7A; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn.outline { background: white; color: var(--purple); border: 1px solid var(--light-gray); }
.btn.outline:hover { background: var(--almost-white); }

.flags {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 14px 18px;
}
.flags h2 { color: var(--amber); margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.flags ol { padding-left: 18px; }
.flags li { margin-bottom: 6px; font-size: 13px; }
.flags.empty { background: var(--green-soft); border-left-color: var(--green); }
.flags.empty h2 { color: var(--green); }

.preview-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
}

.meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--gray);
  flex-wrap: wrap;
  margin-top: 14px;
}
.meta b { color: var(--graphite); font-weight: 600; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--purple);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.bar h1 { color: white; font-size: 16px; margin: 0; }
.bar .actions { display: flex; gap: 8px; }
.bar .btn { background: white; color: var(--purple); padding: 8px 16px; font-size: 13px; }
.bar .btn:hover { background: var(--almost-white); }
