/* install.css — значок «52 карты»: окно «На рабочий экран», «Как установить»,
   «Войти по коду», «Мои устройства», «Нет связи». Токены — из style.css. */

.dev-screen { padding: var(--page-pad-y) var(--page-pad-x) 40px; max-width: var(--container-max); margin: 0 auto; }
.dev-head { margin-bottom: 16px; }
.dev-back {
  background: none; border: 0; padding: 4px 0; margin: 0 0 8px; color: var(--accent);
  font: inherit; font-size: 15px; cursor: pointer;
}
.dev-sub, .dev-note, .dev-hint { color: var(--fg-3); font-size: 13px; line-height: 18px; margin: 0 0 12px; }
.dev-lead { color: var(--fg-2); font-size: 15px; line-height: 22px; margin: 0 0 16px; }
.dev-label { font-size: 13px; color: var(--fg-2); margin: 16px 0 6px; }
.dev-status { min-height: 18px; font-size: 13px; line-height: 18px; color: var(--fg-2); margin: 8px 0; }
.dev-wide { width: 100%; margin-top: 10px; }
.dev-small { padding: 8px 12px; font-size: 14px; min-height: 0; width: auto; flex: none; }

.dev-notice {
  border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 20px;
  background: var(--panel); color: var(--fg-1);
}
.dev-notice--ok { background: rgba(52, 168, 83, 0.12); color: #1f6b34; }
.dev-notice--warn { background: var(--error-bg); color: #a8322a; }

.dev-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px; margin-bottom: 16px; }
.dev-busy { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; color: var(--fg-3); font-size: 14px; }

/* Вкладки инструкции */
.dev-tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border-radius: var(--r-pill); margin: 8px 0 16px; }
.dev-tab {
  flex: 1 1 0; min-width: 0; border: 0; background: none; border-radius: var(--r-pill); padding: 8px 6px;
  font: inherit; font-size: 13px; color: var(--fg-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dev-tab.active { background: var(--card); color: var(--fg-1); font-weight: 600; box-shadow: var(--shadow-sm); }

/* Шаги со схемами */
.dev-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dev-step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px;
}
.dev-step__num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--fg-1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.dev-step__title { margin: 2px 0 4px; font-size: 15px; line-height: 20px; font-weight: 600; }
.dev-step__detail { margin: 0; font-size: 14px; line-height: 20px; color: var(--fg-2); overflow-wrap: anywhere; }
.dev-step__schema { grid-column: 2; margin-top: 8px; }
.schema { display: block; width: 100%; max-width: 220px; height: auto; }
.schema__frame { fill: var(--bg-soft); stroke: var(--fg-3); stroke-width: 1.5; }
.schema__bar, .schema__icon { fill: var(--hairline); }
.schema__icon { fill: var(--fg-4); }
.schema__line { stroke: var(--fg-4); stroke-width: 1; }
.schema__dot { fill: var(--fg-3); }
.schema__text { font-size: 6px; fill: var(--fg-1); font-family: var(--font-sans); }
.schema__hit { fill: var(--accent); stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; }
.schema__hit path { fill: none; stroke: #fff; }

/* Окно «На рабочий экран» */
.dev-layer {
  position: fixed; inset: 0; z-index: 1000; background: rgba(14, 14, 16, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
}
.dev-sheet {
  position: relative; width: 100%; max-width: var(--container-max); max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px var(--page-pad-x) 28px;
  box-shadow: var(--shadow-lg);
}
.dev-sheet__title { margin: 0 32px 4px 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.dev-sheet__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--panel); color: var(--fg-2); font-size: 14px; cursor: pointer;
}
.dev-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 34px; line-height: 44px; letter-spacing: 0.08em;
  font-weight: 700; text-align: center; padding: 12px 0; background: var(--bg-soft); border-radius: var(--r-md);
}
.dev-link {
  width: 100%; box-sizing: border-box; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px;
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--bg-soft); color: var(--fg-1);
}
.dev-row {
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px;
  background: none; border: 0; border-top: 1px solid var(--divider); padding: 14px 0 0; font: inherit; font-size: 15px;
  color: var(--fg-1); cursor: pointer; text-align: left;
}
.dev-row__chev { color: var(--fg-3); font-size: 20px; }

/* Вход по коду */
.dev-code-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace !important; font-size: 22px !important;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}
.dev-guide-slot { margin-top: 16px; }

/* Мои устройства */
.dev-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dev-item {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 12px 14px;
}
.dev-item--current { border-color: var(--accent); }
.dev-item__text { flex: 1 1 auto; min-width: 0; }
.dev-item__title { font-size: 15px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.dev-item__sub { font-size: 12px; line-height: 16px; color: var(--fg-3); }

/* Строки входа: меню профиля и низ «Личности» */
.device-entries { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.device-entries .device-entry { width: 100%; margin: 0; }
.device-row-wrap { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.device-row-wrap .btn { width: 100%; }

/* Нет связи */
#screen-offline { text-align: center; padding-top: 64px; }
#screen-offline .btn { margin-top: 16px; }
