:root {
  --bg: #ffffff;
  --ink: #16140f;
  --ink-2: #56514a;
  --ink-3: #8c867c;
  --line: #e9e5dd;
  --line-2: #f1eee8;
  --accent: #ff5a1f;
  --accent-700: #e6470f;
  --ok: #1f8a4c;
  --warn: #b45309;
  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 14px 40px -18px rgba(20, 18, 12, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font-family: inherit; }

.lm-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.lm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.lm-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.lm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.lm-brand__logo { display: block; height: 36px; width: auto; }
.lm-brand__tag {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-2);
  max-width: 180px;
}
.header .header__row { gap: 12px; }
.lm-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lm-login {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lm-main { padding-block: 28px 64px; }
.lm-main--narrow { max-width: 720px; }
.lm-head h1 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.lm-lead {
  margin: 12px 0 0;
  color: var(--ink-2);
  max-width: 640px;
}
.lm-hint {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f5;
  color: var(--ink);
  font-size: 14px;
}
.lm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}
.lm-filters { display: flex; gap: 8px; }
.lm-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lm-chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.lm-period { margin: 0; color: var(--ink-3); font-size: 13px; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.lm-btn:active { transform: translateY(1px); }
.lm-btn--accent { background: var(--accent); color: #fff; }
.lm-btn--accent:hover { background: var(--accent-700); box-shadow: 0 12px 24px -10px rgba(255, 90, 31, .55); }
.lm-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.lm-btn--ghost:hover { border-color: var(--ink); }
.lm-btn:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.lm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.lm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.lm-table th, .lm-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.lm-table th {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  background: #faf9f6;
}
.lm-table tr:last-child td { border-bottom: 0; }
.lm-table a.name {
  font-weight: 600;
  text-decoration: none;
}
.lm-table a.name:hover { color: var(--accent); }
.lm-muted { color: var(--ink-3); }
.lm-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lm-state {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--line-2);
}
.lm-state.is-on { background: #e8f6ee; color: var(--ok); }
.lm-state.is-off { background: #f4f1ea; color: var(--ink-3); }

.lm-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.lm-empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.lm-empty p { margin: 0 0 18px; color: var(--ink-2); }

.lm-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  background: #fff;
}
.lm-card h1 {
  margin: 0 8px 0 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}
.lm-meta { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.lm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.lm-stat {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px;
  background: #faf9f6;
}
.lm-stat b { display: block; font-size: 22px; font-weight: 700; }
.lm-stat span { color: var(--ink-3); font-size: 13px; }
.lm-note { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.lm-back { margin: 0 0 16px; }
.lm-back a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.lm-back a:hover { color: var(--accent); }
.lm-error { color: #9b1c1c; font-size: 14px; margin: 12px 0 0; }
.lm-skel {
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f1ea, #fff, #f4f1ea);
  background-size: 200% 100%;
  animation: lm-pulse 1.2s ease infinite;
  margin-bottom: 10px;
}
@keyframes lm-pulse { 50% { background-position: 100% 0; } }

@media (max-width: 720px) {
  .header__row { height: auto; min-height: 60px; padding-block: 8px; }
  .btn--ghost, .lm-btn--ghost { padding: 10px 12px; font-size: 13px; }
  .lm-table { min-width: 0; }
  .lm-table thead { display: none; }
  .lm-table, .lm-table tbody, .lm-table tr, .lm-table td { display: block; width: 100%; }
  .lm-table-wrap { border: 0; overflow: visible; }
  .lm-table tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 6px 0;
  }
  .lm-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 8px 14px;
  }
  .lm-table td::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-size: 12px;
    flex: none;
  }
  .lm-table td:first-child { display: block; }
  .lm-table td:first-child::before { display: none; }
  .lm-stats { grid-template-columns: 1fr; }
}

.lm-steps {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 8px 0 12px;
}
.lm-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.lm-period-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.lm-period-btn span {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
}
.lm-period-btn.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, .15);
}
.lm-cards, .lm-camp-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.lm-camp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lm-status-card, .lm-camp-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
}
.lm-status-card h2, .lm-camp-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.lm-status-card p, .lm-camp-card p { margin: 0 0 8px; color: var(--ink-2); }
.lm-status-card.is-ok { border-color: #bfe8cf; background: #f3fbf6; }
.lm-status-card.is-bad { border-color: #ffd7c6; background: #fff7f3; }
.lm-status-card.is-hold { background: #faf8f4; }
.lm-camp-card.is-disabled { opacity: .62; }
.lm-stats-inline { font-size: 14px; }
.lm-main--narrow { max-width: 760px; }
.page-free .hero { padding-top: 48px; }
.report-part {
  font-size: 22px;
  margin: 28px 0 14px;
}
@media (max-width: 720px) {
  .lm-periods { grid-template-columns: 1fr 1fr; }
}

.lm-check-list { list-style: none; margin: 0; padding: 0; }
.lm-check {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.lm-check:last-child { border-bottom: 0; }
.lm-tick {
  width: 36px; height: 36px;
}
.lm-tick circle {
  fill: none;
  stroke: #e4ded4;
  stroke-width: 2.5;
}
.lm-tick path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.lm-check.is-run .lm-tick circle { stroke: var(--accent); animation: lm-pulse 1s ease-in-out infinite; }
.lm-check.is-ok path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease; }
.lm-check.is-ok circle { stroke: var(--ok); }
.lm-check.is-fail circle { stroke: var(--accent); }
.lm-check.is-fail .lm-tick { position: relative; }
.lm-check h2 { margin: 0 0 4px; font-size: 18px; }
.lm-check p { margin: 0; color: var(--ink-2); font-size: 14px; }
.lm-errors { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #ffd7c6; border-radius: 16px; background: #fff7f3; }
.lm-errors h3 { margin: 0 0 8px; font-size: 16px; }
.lm-errors details { margin: 8px 0 0; }
.lm-errors summary { cursor: pointer; font-weight: 600; }
@keyframes lm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-tick path { transition: none; }
  .lm-check.is-run .lm-tick circle { animation: none; }
}

.report-fold {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px 12px;
  margin: 0 0 12px;
  background: #fff;
}
.report-fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0;
  list-style: none;
}
.report-fold summary::-webkit-details-marker { display: none; }
.report-fold summary::after { content: "▾"; float: right; color: var(--ink-3); }
.lm-compact { width: 100%; border-collapse: collapse; font-size: 15px; }
.lm-compact th, .lm-compact td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.lm-compact th { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.lm-toolbar-report { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 18px; }
.lm-switch { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.lm-switch select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 10px; }
