/* Конвертер резюме — оформление страницы. Внешних зависимостей нет:
   сервис должен работать и без доступа в интернет. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1d2430;
  --muted: #6b7684;
  --line: #dfe4ea;
  --accent: #1f6feb;
  --accent-dark: #175bc4;
  --ok: #147d3f;
  --warn: #9a6400;
  --err: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; }
.wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px 60px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; margin-bottom: 18px;
}
.card h1 { margin: 0 0 6px; font-size: 21px; }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.muted-card { background: #fbfcfd; }
.plain { margin: 0; padding-left: 18px; }
.plain li { margin-bottom: 6px; }

.drop {
  margin: 18px 0 10px; border: 2px dashed #c3ccd6; border-radius: 12px;
  background: #fafbfc; padding: 28px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: #eef4ff; }
.drop.compact { padding: 12px; }
.drop-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.drop-inner { pointer-events: none; }
.drop-inner button, .drop-inner a { pointer-events: auto; }

.chosen {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 14px;
}
.hidden { display: none !important; }

.advanced { margin: 12px 0 18px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; color: var(--muted); }
input[type=text], input[type=password] {
  width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
input:focus { outline: 2px solid #cfe0ff; border-color: var(--accent); }

.button {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--text); font: inherit;
  text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.button.primary:hover { background: var(--accent-dark); }
.button.primary:disabled { opacity: .5; cursor: not-allowed; }
.button.ghost { background: #fff; }
.button.disabled { pointer-events: none; opacity: .5; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--accent);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.link { color: var(--accent); text-decoration: none; }

.status { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.status.busy { background: #eef4ff; color: var(--accent-dark); }
.status.ok { background: #e8f6ed; color: var(--ok); }
.status.error { background: #fdecea; color: var(--err); }

.summary { border-top: 1px solid var(--line); margin-bottom: 16px; }
.sumrow { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sumkey { color: var(--muted); min-width: 120px; }
.download-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.link-box input { font-size: 13px; color: var(--muted); }
.note { font-size: 13px; color: var(--warn); background: #fff8e6; border: 1px solid #ffe6a8;
        border-radius: 8px; padding: 9px 11px; margin-bottom: 12px; }
.warn { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.alert.error { background: #fdecea; color: var(--err); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.login { width: 100%; max-width: 380px; }
.login button { margin-top: 16px; width: 100%; }
