/* Окно подключения Garmin (1.63.0): вёрстка по макетам E6 и A3. Только классы — встроенных стилей нет (CSP). */
@font-face { font-family: "Manrope"; src: url("/static/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root { --bg: #F8F7F1; --fg: #1B1410; --orange: #FF6A2B; --green: #1E7A3C; --mut: #6B635C; --line: #E4E1D8;
        --card: #FFFFFF; --red: #C8221A; --link: #A0381A; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4;
       -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 20px 20px 16px;
       display: flex; flex-direction: column; }
.bar { display: flex; gap: 6px; margin-bottom: 18px; }
.bar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.bar span.done { background: var(--fg); }
.bar span.now { background: var(--orange); }
.screen { display: flex; flex-direction: column; }
#form, #profile { flex: 1; }
.fill { flex: 1; display: flex; flex-direction: column; }
.step { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--mut); }
h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.sub { margin: 6px 0 0; color: var(--mut); font-size: 15px; }
.lead { margin: 40px 0 0; font-size: 18px; font-weight: 600; text-align: center; }
.label { display: block; margin: 20px 0 8px; font-size: 15px; font-weight: 700; }
.field { width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--fg); background: var(--card);
         border: 1px solid #CFCBC0; border-radius: 12px; outline: none; -webkit-appearance: none; appearance: none; }
.field:focus { border-color: var(--fg); border-width: 1.5px; }
.field[readonly] { color: var(--mut); }
.pw { position: relative; }
.pw .field { padding-right: 52px; }
.eye { position: absolute; right: 6px; top: 5px; width: 40px; height: 40px; border: 0; background: none; color: var(--mut);
       display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.notes { list-style: none; margin: 16px 0 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
         border-radius: 14px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; }
.notes svg { flex: none; margin-top: 1px; color: var(--link); }
.bottom { margin-top: auto; padding-top: 20px; position: sticky; bottom: 0; background: var(--bg); }
.error { margin: 0 0 10px; min-height: 0; color: var(--red); font-size: 14px; font-weight: 600; }
.error:empty { display: none; }
.primary { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--orange); color: var(--fg);
           font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.primary:disabled { opacity: .6; }
.trust { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--mut); }
.policy { color: var(--link); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card .sub { font-size: 14px; margin: 0; }
.cells { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.cells input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0;
               letter-spacing: 40px; color: transparent; background: transparent; caret-color: transparent; }
.cell { height: 50px; border: 1.5px solid var(--fg); border-radius: 10px; display: flex; align-items: center;
        justify-content: center; font-size: 20px; font-weight: 700; background: var(--card); }
.cells.focus .cell.next { border-color: var(--orange); }
.card .error { margin: 10px 0 0; }
.ok { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; color: var(--green); font-size: 14px; font-weight: 700; }
#progress { margin-top: 24px; }
#code + #progress { margin-top: 24px; }
.steps { list-style: none; margin: 16px 0 0; padding: 4px 14px; background: var(--card); border: 1px solid var(--line);
         border-radius: 14px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 13px 0; font-size: 15px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps i { flex: none; width: 20px; height: 20px; border-radius: 50%; position: relative; }
.steps li.wait i { border: 1.5px solid #BDB8AE; }
.steps li.wait span { color: var(--mut); }
.steps li.run span { font-weight: 700; }
.steps li.run i { border: 2.5px solid #F1E7DD; border-top-color: var(--orange); animation: spin .9s linear infinite; }
.steps li.done i::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
                          border: solid var(--green); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.hint { margin: 16px 0 0; font-size: 14px; color: var(--mut); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.run i { animation: none; } }
/* Шаг 3 в окне (круг 4, БП-60): строки «подпись — значение», пустое — поле ввода; кнопки «Всё верно | Исправить» рядом. */
.rows { margin: 16px 0 0; padding: 2px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px 0;
       border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-l { flex: none; font-size: 15px; color: var(--mut); }
.row-v { font-size: 16px; font-weight: 700; text-align: right; }
.field.small { width: 58%; height: 44px; font-size: 16px; text-align: right; }
.seg { display: flex; gap: 6px; }
.seg button { height: 40px; padding: 0 12px; border: 1px solid #CFCBC0; border-radius: 10px; background: var(--card); color: var(--fg);
              font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair.one { grid-template-columns: 1fr; }
.secondary { width: 100%; height: 54px; border: 1.5px solid var(--fg); border-radius: 14px; background: transparent; color: var(--fg);
             font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.primary:disabled + .secondary, .secondary:disabled { opacity: .6; }
.big-ok { width: 64px; height: 64px; margin: 24px 0 16px; border-radius: 50%; background: #E3F1E6; color: var(--green);
          display: flex; align-items: center; justify-content: center; }
#saved h1, #connected h1 { margin-top: 4px; }
