/* Ассистент ЦСК: мини-приложение MAX. Мобильный экран, плотная читаемая вёрстка, без анимаций.
   Палитра - как у приборной панели /m (тёплая бумага, stone, оранжевый ЦСК). Тёмная тема - по системе:
   у моста MAX нет API темы (проверено по исходнику max-web-app.js), webview наследует prefers-color-scheme. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --text: #1c1917;
  --muted: #6f6964;
  --faint: #a29b95;
  --line: #e7e5e4;
  --accent: #c2410c;
  --on-accent: #ffffff;
  --accent-soft: #fdeee4;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --ok: #15803d;
  --ok-soft: #e7f5ec;
  --warn: #92400e;
  --warn-soft: #fbf1dc;
  --info-soft: #e9eef6;
  --bubble-client: #ffffff;
  --bubble-bot: #e9eef6;
  --bubble-human: #fdeee4;
  --toast-bg: #1c1917;
  --toast-fg: #fafaf9;
  --backdrop: rgba(28, 25, 23, .42);
  --call: #15803d;
  --call-soft: #e7f5ec;
  --acc-0: #1d4ed8;
  --acc-0-soft: #e6edfb;
  --acc-1: #7e22ce;
  --acc-1-soft: #f2e8fb;
  --acc-2: #0f766e;
  --acc-2-soft: #e3f4f2;
  --acc-3: #a16207;
  --acc-3-soft: #f7efdc;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --surface: #1f1c1a;
    --surface-2: #2a2623;
    --text: #f3f1ef;
    --muted: #b0a9a3;
    --faint: #7d7670;
    --line: #34302c;
    --accent: #fb923c;
    --on-accent: #1c1917;
    --accent-soft: #3a2416;
    --danger: #f87171;
    --danger-soft: #3a1c1c;
    --ok: #4ade80;
    --ok-soft: #16301f;
    --warn: #fbbf24;
    --warn-soft: #33290f;
    --info-soft: #1d2633;
    --bubble-client: #2a2623;
    --bubble-bot: #1d2633;
    --bubble-human: #3a2416;
    --toast-bg: #f3f1ef;
    --toast-fg: #1c1917;
    --backdrop: rgba(0, 0, 0, .6);
    --call: #4ade80;
    --call-soft: #16301f;
    --acc-0: #93b4ff;
    --acc-0-soft: #1b2540;
    --acc-1: #d8b4fe;
    --acc-1-soft: #2d1d3d;
    --acc-2: #5eead4;
    --acc-2-soft: #12302c;
    --acc-3: #fcd34d;
    --acc-3-soft: #33290f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }
.boot, .loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.screen { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.screen.no-tabs { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ── шапка ── */
.top { padding: 14px 16px 6px; display: flex; align-items: flex-start; gap: 8px; }
.top-text { flex: 1; min-width: 0; }
.top h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.top .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 4px;
  min-height: 52px; padding: 4px 8px 4px 4px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.bar-title { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── кнопки ── */
.ibtn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent;
  display: inline-grid; place-items: center; color: var(--muted); padding: 0;
}
.ibtn:active { background: var(--surface-2); }
.ibtn.ok { color: var(--ok); }
.ibtn.ok:active { background: var(--ok-soft); }
.ibtn.boxed { border: 1px solid var(--line); background: var(--surface); }
.btn {
  min-height: 44px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  text-align: center; line-height: 1.2;
}
.btn:active { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:active { filter: brightness(.92); }
.btn.ok { color: var(--ok); }
.btn.danger { color: var(--danger); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); }
.btn.small { min-height: 36px; padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-col { display: grid; gap: 8px; }
.link-btn { border: 0; background: none; color: var(--accent); padding: 8px 0; font-weight: 600; font-size: 14px; min-height: 36px; }

/* ── сводка-счётчики ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 12px 4px; }
.stat {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 4px 6px;
  text-align: center; min-height: 56px;
}
.stat b { display: block; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
/* просрочено - красная заливка и рамка; сегодня - янтарная заливка: плитки различимы с одного взгляда */
.stat.danger { background: var(--danger-soft); border-color: var(--danger); border-width: 1.5px; }
.stat.danger b, .stat.danger span { color: var(--danger); }
.stat.danger span { font-weight: 600; }
.stat.warn { background: var(--warn-soft); border-color: transparent; }
.stat.warn b { color: var(--warn); }
.stat.accent b { color: var(--accent); }
.stat.calm b { color: var(--text); }
.stat.zero b { color: var(--faint); }

/* ── чипы и сегменты ── */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; color: var(--text); white-space: nowrap;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ── блоки и строки ── */
.block { margin: 14px 0 0; }
.block-h {
  display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; min-height: 28px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
}
.block-h .cnt { font-variant-numeric: tabular-nums; color: var(--text); }
.block-h.danger, .block-h.danger .cnt { color: var(--danger); }
.block-h.accent .cnt { color: var(--accent); }
.block-h.warn, .block-h.warn .cnt { color: var(--warn); }
.block-h .grow { flex: 1; }
.block-h button.toggle {
  border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit;
  letter-spacing: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.block-h .hact { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--accent);
  border: 0; background: none; padding: 6px 0; min-height: 44px; }
.hint { padding: 0 16px 6px; color: var(--muted); font-size: 13px; }
.list { margin: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.empty { margin: 0 12px; padding: 10px 12px; color: var(--faint); font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; }

.row { display: flex; align-items: stretch; gap: 2px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; padding: 10px 4px 10px 12px; cursor: pointer; }
.row-main:active { background: var(--surface-2); }
.row-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.nm { font-weight: 650; white-space: nowrap; flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.co { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.row-title { margin-top: 2px; font-size: 14.5px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-quote { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-size: 13px; color: var(--muted); }
/* просрочка - красная полоса слева и жирный срок; это главный сигнал строки (метка «новая» - тихая) */
.row.is-overdue { box-shadow: inset 3px 0 0 var(--danger); }
.row.is-old .row-title { color: var(--muted); }
.row-acts { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 4px 4px 0; }
.row-acts.with-call { display: grid; grid-template-columns: 46px 46px; grid-auto-rows: 46px; align-content: center; }
.row-acts.with-call .abtn.call { grid-column: 1 / 3; flex-direction: row; gap: 6px; font-size: 13px; }
.abtn {
  width: 46px; min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0;
  font-size: 11px; font-weight: 600; line-height: 1.1; text-decoration: none;
}
.row-acts.with-call .abtn.call { width: auto; }
.abtn:active { background: var(--surface-2); }
.abtn.ok { color: var(--ok); }
.abtn.ok:active { background: var(--ok-soft); }
.abtn.call { color: var(--call); background: var(--call-soft); }
.row-extra { padding: 0 12px 10px; margin-top: -4px; }
.due { font-variant-numeric: tabular-nums; white-space: nowrap; }
.due.overdue { color: var(--danger); font-weight: 750; font-size: 14px; }
.due.today { color: var(--warn); font-weight: 700; font-size: 14px; }
.due.old { color: var(--muted); }
.acc { white-space: nowrap; }

.tag { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; font-style: normal; font-weight: 600; }
.tag.us { background: var(--accent-soft); color: var(--accent); }
.tag.new { background: transparent; color: var(--faint); border: 1px solid var(--line); font-weight: 500; }
.tag.cnew { background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.ch { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 0 5px; line-height: 18px; border-radius: 5px; border: 1px solid var(--faint); color: var(--text); }
.who-acc { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 0 6px; line-height: 18px; border-radius: 5px; }
.who-acc.c0 { color: var(--acc-0); background: var(--acc-0-soft); }
.who-acc.c1 { color: var(--acc-1); background: var(--acc-1-soft); }
.who-acc.c2 { color: var(--acc-2); background: var(--acc-2-soft); }
.who-acc.c3, .who-acc.cx { color: var(--acc-3); background: var(--acc-3-soft); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 5px; vertical-align: 1px; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.danger { background: var(--danger); }

.foot { padding: 18px 16px 8px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.foot .warn { color: var(--warn); }

.notice { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.errbox { margin: 12px; padding: 12px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.errbox .btn { margin-top: 10px; }

/* ── нижние вкладки ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 640px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  border: 0; background: none; min-height: 58px; padding: 6px 4px 5px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 12px;
}
.tab.on { color: var(--accent); font-weight: 700; }
.tab .badge {
  position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.tab .badge.calm { background: var(--surface-2); color: var(--muted); }

/* ── поиск ── */
.search {
  margin: 4px 12px 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); height: 44px; }
.search input::-webkit-search-cancel-button { display: none; }

/* ── карточка клиента ── */
.card-head { padding: 12px 16px 4px; }
.card-head h2 { margin: 0; font-size: 21px; line-height: 1.22; overflow-wrap: anywhere; }
.card-head .co2 { color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.phone-row { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 8px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.phone-row .ph { flex: 1; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-row.in-sheet { margin: 10px 0 0; }
.cnew-box { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.acc-line { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.acc-line:first-child { border-top: 0; }
.acc-line .l1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.acc-line .l2 { color: var(--muted); font-size: 13px; margin-top: 3px; }
.acc-line .fu { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--info-soft); font-size: 13px; }
.note-form { margin: 0 12px; display: grid; gap: 8px; }
textarea {
  width: 100%; min-height: 72px; resize: vertical; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1.35; color: var(--text);
}
textarea:focus, input[type=date]:focus, input[type=time]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.note { padding: 9px 12px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.note:first-child { border-top: 0; }
.note .when { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.dec { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dec:first-child { border-top: 0; }
.dec .l1 { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.dec .l1 b { color: var(--text); font-weight: 650; }
.dec .sm { margin-top: 3px; overflow-wrap: anywhere; }
.dec .tx { margin-top: 4px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }

/* ── переписка ── */
.chat { display: flex; flex-direction: column; gap: 6px; padding: 4px 12px; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 10px; margin: 6px 0 2px; }
.msg {
  max-width: 86%; padding: 6px 10px 5px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bubble-client); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.33;
}
.msg.client { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.bot { align-self: flex-end; background: var(--bubble-bot); border-color: transparent; border-bottom-right-radius: 4px; }
.msg.human { align-self: flex-end; background: var(--bubble-human); border-color: transparent; border-bottom-right-radius: 4px; }
.msg.src { box-shadow: 0 0 0 2px var(--accent); }
.msg .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 1px; white-space: normal; }
.msg .tm { display: block; font-size: 11px; color: var(--faint); text-align: right; margin-top: 1px; white-space: normal; }
.msg .src-l { color: var(--accent); font-weight: 700; }

/* ── нижний лист (задача, перенос, подтверждения) ── */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: var(--backdrop); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 640px; margin: 0 auto;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 16px 16px 0 0;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: flex-start; gap: 6px; margin-right: -8px; }
.sheet-head .meta { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 12px; font-size: 13px; color: var(--muted); }
.sheet h3 { margin: 6px 0 4px; font-size: 19px; line-height: 1.28; overflow-wrap: anywhere; }
.sheet .details { margin: 4px 0 0; color: var(--text); font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-line; }
.sheet .quote {
  margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 10px 10px 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.sheet .quote-src { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: normal; }
.sheet .kv { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.sheet .kv dt { color: var(--muted); }
.sheet .kv dd { margin: 0; overflow-wrap: anywhere; }
.sheet .section-t { margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sheet .chat { padding: 0; }
.sheet .acts { margin-top: 16px; display: grid; gap: 8px; }
.client-link {
  margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 8px 10px 12px; min-height: 52px;
}
.client-link .t { flex: 1; min-width: 0; }
.client-link .t small { display: block; color: var(--muted); font-size: 12.5px; }
.client-link .t span { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 600;
}
.opt small { color: var(--muted); font-weight: 400; font-size: 13.5px; white-space: nowrap; }
.opt:active { background: var(--surface-2); }
.date-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
input[type=date], input[type=time] {
  width: 100%; height: 46px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; color: var(--text); min-width: 0;
}
.field-l { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.form-err { color: var(--danger); font-size: 13.5px; margin-top: 8px; }
.warnbox { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }

/* ── всплывающее сообщение ── */
.toast {
  position: fixed; left: 12px; right: 12px; z-index: 70; max-width: 616px; margin: 0 auto;
  bottom: calc(70px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; min-height: 48px;
  border-radius: 12px; background: var(--toast-bg); color: var(--toast-fg); font-size: 14.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.toast.at-top, .no-tabs-toast .toast.at-top { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
.toast.err { background: var(--danger); color: #fff; }
.toast .msg-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast button { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; padding: 8px 8px; min-height: 40px; }
.no-tabs-toast .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }

/* ── экраны без входа / ошибки ── */
.fatal { padding: 72px 28px 24px; text-align: center; }
.fatal .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fatal h1 { font-size: 21px; margin: 0 0 8px; }
.fatal p { color: var(--muted); margin: 0 auto 8px; max-width: 340px; }
.fatal .btn { margin-top: 14px; }
