/* Стилистика как у Lisa portal (light) — без тёмной темы и лишнего */
:root {
  --paper: #f2f3f5;
  --surface: #ffffff;
  --ink: #1f2021;
  --muted: #7b7d80;
  --line: #e5e6e9;
  --line-strong: #cfd1d6;
  --accent: #ffcc00;
  --accent-press: #f0c000;
  --link: #0b5cd6;
  --link-hover: #0a4fb8;
  --ok: #0f8a45;
  --ok-soft: #e5f5ec;
  --warn: #b8860b;
  --warn-soft: #fdf4d7;
  --danger: #d43a2f;
  --danger-soft: #fdeae8;
  --info-soft: #e8f0fd;
  --brand-lisa: #8ab800;
  --brand-lisa-bright: #c8ff2e;
  --on-accent: #141600;
  --on-solid: #ffffff;
  --control-hover: #9ea3ab;
  --panel-shadow: rgba(31, 32, 33, 0.04);
  --font: "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

*:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* --- шапка как Lisa --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  margin: 0 -16px 28px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0f0f10;
  color: var(--brand-lisa-bright);
  font-size: 17px;
  font-weight: 700;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

.user-chip {
  font-size: 12px;
  color: var(--muted);
}

/* --- прогресс --- */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}

.progress strong {
  color: var(--ink);
  font-weight: 600;
}

.progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* --- панель --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 3px var(--panel-shadow);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-body {
  padding: 16px;
}

.card.bare .card-body {
  padding: 20px 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--info-soft);
  color: var(--link);
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.neutral {
  background: var(--paper);
  color: var(--muted);
}

.field {
  margin-bottom: 12px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

.field .value {
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  word-break: break-all;
}

.field input.value {
  display: block;
  width: 100%;
  font-family: var(--font);
  background: var(--surface);
  word-break: normal;
}

.code-big {
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-align: center;
  padding: 18px;
  border-radius: 6px;
  background: var(--selection, #fffbe6);
  border: 1px solid #f0e6b3;
  margin: 0 0 12px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.actions.row {
  flex-direction: row;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  height: 44px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(80, 60, 0, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-press);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--control-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  height: auto;
  padding: 8px;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-danger {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.empty {
  text-align: center;
}

.empty p {
  margin: 0 0 4px;
  color: var(--muted);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.step-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-list li:first-child {
  padding-top: 0;
}

.step-list .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--paper);
  color: var(--muted);
}

.step-list .n.done {
  background: var(--ok-soft);
  color: var(--ok);
}

.step-list .n.now {
  background: #0f0f10;
  color: var(--brand-lisa-bright);
}

.step-list .t {
  font-weight: 600;
}

.step-list .d {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.nav-mock {
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
}

.nav-mock a {
  margin-right: 10px;
  color: var(--muted);
}

.center-block {
  padding: 32px 8px 8px;
  text-align: center;
}

.center-block .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 28rem;
}
