/* Клиент Kiro: вход, кто вошёл, переключатель языка.
   Копия группы `auth*` и `.who` из base.html центра (K-271, макет k1) — текстом,
   не импортом. Кнопка-капсула `.periods button` — то же, что `.periods a` в
   kiro-base.css: язык меняется запросом POST, а не ссылкой. Имя `.lang` в
   kiro-base.css занято бейджем языка — здесь `.lang-switch`. */
.topbar .who{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:13px;font-weight:500}
.topbar .lang-switch + .who{margin-left:12px}
.topbar .who form{margin:0}
.lang-switch.periods{margin:0;gap:4px}
.topbar .lang-switch.periods{margin:0 0 0 auto}
.lang-switch form{margin:0}
.periods button{padding:5px 12px;border-radius:999px;border:0;cursor:pointer;
  background:var(--fill);font:inherit;font-size:12.5px;font-weight:500;color:var(--ink);transition:background .12s}
.periods button.on{background:var(--accent);color:#fff;font-weight:600;cursor:default}
.periods button:hover{background:var(--fill-2)}
.periods button.on:hover{background:var(--accent);color:#fff;opacity:.9}
.topbar .lang-switch button{padding:3px 9px;font-size:11.5px}
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--bg)}
.auth-side{background:var(--ink);color:#f5f5f7;padding:48px;display:flex;flex-direction:column;justify-content:space-between}
/* Логотип Kiro цветной: инверсия из K-271 делает из него белое пятно — показываем как есть. */
.auth-side img{height:40px;width:auto;align-self:flex-start;filter:none;opacity:1}
.auth-side h2{font-size:34px;line-height:1.15;letter-spacing:-.022em;margin:0;max-width:16ch;font-weight:700}
.auth-side p{color:rgba(245,245,247,.7);font-size:15px;max-width:44ch;margin:14px 0 0}
.auth-side .foot{color:rgba(245,245,247,.5);font-size:12.5px}
.auth-main{display:grid;place-items:center;padding:48px 24px;position:relative}
.auth-main .lang-switch{position:absolute;top:20px;right:24px}
.auth-form{width:min(380px,100%)}
.auth-form h1{font-size:26px}
.auth-form .sub{color:var(--ink-2);font-size:14px;margin:0 0 22px}
.auth-form label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin:14px 0 6px}
.auth-form input[type=text],.auth-form input[type=email],.auth-form input[type=password]{width:100%;padding:11px 12px;
  border:.5px solid rgba(0,0,0,.2);border-radius:10px;font:inherit;font-size:15px;background:var(--surface);color:var(--ink)}
.auth-form .btn{width:100%;min-height:44px;border-radius:12px;font-size:15px;margin-top:20px;justify-content:center}
.auth-form .msg{margin:0 0 6px}
.auth-form .alt{font-size:13px;margin:18px 0 0;color:var(--ink-2)}
@media (max-width:820px){.auth{grid-template-columns:1fr} .auth-side{display:none}}
/* Отчёты (Б-2): адрес страницы переносится где угодно, данные магазина (title,
   запрос) не сжимаются в столбик. */
.report-table td.url{min-width:220px;max-width:340px;overflow-wrap:anywhere}
.report-table th{white-space:normal;vertical-align:bottom}
.report-table td.text{min-width:260px}
.report-totals .metric{vertical-align:top}
/* Заявка (Б-4, макет k2): строка доступа, адрес для копирования, капсула
   состояния. `.chk` из макета в kiro-base.css занят клеткой чек-листа —
   здесь `.access`; `.x-st` — копия из макета. */
.apply-form .hint,.apply-item .hint{font-size:12.5px;color:var(--ink-2);margin:6px 0 0}
.apply-form .field-error{font-size:12.5px;color:var(--bad-ink);margin:6px 0 0}
.apply-form input[aria-invalid=true]{border-color:var(--bad-ink)}
.apply-form .access,.apply-item .access{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;
  background:var(--surface);box-shadow:var(--shadow);margin:8px 0;font-size:13.5px}
.apply-form .access.invalid{box-shadow:0 0 0 1px var(--bad-ink)}
.apply-form .access label{display:inline;margin:0;font-size:13.5px;font-weight:400;color:var(--ink)}
.apply-form .access input[type=checkbox]{margin:0;width:16px;height:16px;flex:none}
.apply-form .access .x-st,.apply-item .access .x-st{margin-left:auto}
.apply-form .access.state,.apply-item .access.state{font-size:15px}
.apply-form .copy,.apply-item .copy{display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:9px;padding:8px 10px;
  font:12px ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;margin:6px 0 0}
.apply-form .copy span,.apply-item .copy span{flex:1}
.apply-form .copy .btn,.apply-item .copy .btn{width:auto;min-height:0;margin:0;font:inherit;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px}
.apply-form a.btn{display:flex}
.apply-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;font-size:13.5px;margin:16px 0 0}
.apply-facts dt{color:var(--ink-2)}
.apply-facts dd{margin:0;overflow-wrap:anywhere}
.x-st{font-size:12px;font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap}
.x-st.ok{background:var(--ok-bg);color:var(--ok-ink)}
.x-st.wait{background:var(--warn-bg);color:var(--warn-ink)}
.x-st.bad{background:var(--bad-bg);color:var(--bad-ink)}
.x-st.off{background:var(--fill);color:var(--ink-2)}
.x-st.info{background:var(--info-bg);color:var(--info-ink)}
/* Заявки на «Моих проектах» (решение 117): карточка на заявку. */
.apply-list{display:grid;gap:12px;margin-top:14px;max-width:640px}
.apply-item{padding:14px 16px}
.apply-item .access{box-shadow:none;padding:0;background:none}
.apply-item .apply-facts dd .x-st{display:inline-block}

/* Вход через Google (K-315, решение 143 центра): классы экрана входа, заявки и
   её шагов — из макета docs/client-auth-google.html центра, текстом, как в макете. */
.gx{min-height:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:56px 16px 28px;position:relative}
.gx-lang{position:absolute;top:16px;right:18px;font-size:13px;font-weight:600}
.gx-lang summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink)}
.gx-lang summary::-webkit-details-marker{display:none}
.gx-lang .caret{font-size:10px;color:var(--ink-3)}
.gx-lang-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:92px;background:var(--surface);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.18),0 0 0 .5px rgba(0,0,0,.08);padding:5px;display:flex;flex-direction:column;z-index:3}
.gx-lang-menu a{display:flex;justify-content:space-between;gap:14px;padding:7px 10px;border-radius:8px;color:var(--ink);text-decoration:none}
.gx-lang-menu a:hover{background:var(--fill)} .gx-lang-menu a.on{color:var(--accent)}
.gx-card{width:min(400px,100%);background:var(--surface);border-radius:20px;box-shadow:var(--shadow);padding:32px 30px 28px;display:flex;flex-direction:column;align-items:center;text-align:center}
.gx-card.wide{width:min(480px,100%);align-items:stretch;text-align:left}
.gx-card.wide .gx-logo{align-self:flex-start}
.gx-logo{height:40px;width:auto;margin:0 0 18px}
.gx-card h1{font-size:24px;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px;text-wrap:balance}
.gx-sub{color:var(--ink-2);font-size:14px;margin:0 0 22px;max-width:44ch}
.gx-points{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:9px;text-align:left;align-self:stretch;font-size:14px;color:var(--ink-2)}
.gx-points li{position:relative;padding-left:26px} .gx-points b{color:var(--ink);font-weight:600}
.gx-points li::before{content:"✓";position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;background:var(--ok-bg);color:var(--ok-ink);font-size:11px;font-weight:700;display:grid;place-items:center}
.gx-card .gx-sub{margin-bottom:18px}
.gx-how{margin:4px 0 0;padding:0;list-style:none;counter-reset:how;display:flex;flex-direction:column;gap:12px;font-size:13.5px;color:var(--ink)}
.gx-how li{position:relative;padding-left:30px;counter-increment:how}
.gx-how li::before{content:counter(how);position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--fill);color:var(--ink-2);font-size:12px;font-weight:700;display:grid;place-items:center}
.gx-copy{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 6px 6px 12px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 .5px rgba(0,0,0,.2)}
.gx-copy code{flex:1;min-width:0;background:none;padding:0;font:12.5px ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;color:var(--ink)}
.gx-copy .btn{width:auto!important;min-height:32px!important;margin:0!important;border-radius:9px!important;font-size:13px!important;padding:0 12px;flex:none}
.gx-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;border-radius:12px;border:.5px solid rgba(0,0,0,.22);background:#fff;color:#1f1f1f;font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:background .12s}
.gx-google:hover{background:#f6f6f8}
.gx-alt{color:var(--ink-2);font-size:13px;margin:16px 0 0;max-width:46ch}
.gx-foot{color:var(--ink-3);font-size:12.5px;margin:0}
.gx-who{display:flex;align-items:center;gap:10px;background:var(--fill);border-radius:12px;padding:10px 12px;margin:0 0 4px;font-size:13.5px}
.gx-who div{flex:1;display:flex;flex-direction:column;min-width:0} .gx-who span{color:var(--ink-2);font-size:12.5px}
.gx-who a{font-size:12.5px;white-space:nowrap}
.gx-ava{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff!important;font-weight:700;font-size:12px!important;display:grid;place-items:center;flex:none}
.gx-steps{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:0}
.gx-steps li{position:relative;padding:0 0 18px 34px;font-size:14px;color:var(--ink-3)}
.gx-steps li:last-child{padding-bottom:0}
.gx-steps li b{display:block;font-weight:600} .gx-steps li span{display:block;font-size:12.5px;margin-top:1px}
.gx-steps li::before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;background:var(--fill);box-shadow:inset 0 0 0 1.5px var(--line)}
.gx-steps li::after{content:"";position:absolute;left:9.5px;top:24px;bottom:2px;width:1.5px;background:var(--line-soft)}
.gx-steps li:last-child::after{display:none}
.gx-steps li.done{color:var(--ink)} .gx-steps li.done span{color:var(--ink-2)}
.gx-steps li.done::before{content:"✓";background:var(--ok);box-shadow:none;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.gx-steps li.now{color:var(--ink)} .gx-steps li.now span{color:var(--ink-2)}
.gx-steps li.now::before{background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent),0 0 0 4px rgba(0,136,255,.15)}
.gx-steps li.bad{color:var(--bad-ink)} .gx-steps li.bad span{color:var(--ink-2)}
.gx-steps li.bad::before{content:"!";background:var(--bad);box-shadow:none;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}

/* Своё к макету: страница целиком, формы и кнопки внутри карточки, язык —
   кнопками формы (POST set_language) вместо ссылок макета, вид тот же. */
.gx-page{min-height:100vh;background:var(--bg)}
.gx-form{width:100%;margin:0}
.gx-card .gx-msg{align-self:stretch;text-align:left;margin:0 0 14px}
.gx-lang-menu form{margin:0}
.gx-lang-menu button{display:flex;justify-content:space-between;gap:14px;width:100%;padding:7px 10px;border:0;border-radius:8px;
  background:none;color:var(--ink);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.gx-lang-menu button:hover{background:var(--fill)} .gx-lang-menu button.on{color:var(--accent)}
.gx-copy-after{margin-top:16px}
.btn.gx-wide{width:100%;min-height:44px;border-radius:12px;font-size:15px;margin-top:12px;justify-content:center}
.gx-card form + .gx-alt{margin-top:12px}
.apply-item .gx-steps{margin-top:12px}

/* K-290: список языков в шапке рядом с проектами — тот же, что на входе, но в потоке шапки. */
.gx-lang.top{position:relative;top:auto;right:auto;margin-left:auto;margin-right:8px}
.gx-lang.top summary{box-shadow:none;background:var(--fill)}

/* Внутри проекта, пока нет данных (K-441, решение 159; макет docs/auth-screens.html центра). */
.pp .card.acc{max-width:860px;display:flex;flex-direction:column;gap:12px;padding:16px;margin:0 0 10px}
.pp .card.acc .gx-copy{margin:0;max-width:600px} .pp .card.acc .gx-steps{margin:0} .pp .card.acc p{margin:0}
.pp .adv-box form{margin:0;flex:none}

/* Окно согласия чата и подключения чата (решение 352 центра; макет team). Копия правил .oa и .cnx из _ds 12.13, раздел 65 —
   в kiro-ui их пока нет; переедут туда вместе с экраном «Команда». */
.cnx{list-style:none;margin:0;padding:0}
.cnx>li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:10px 0;box-shadow:0 .5px 0 var(--line-soft)}
.cnx>li:first-child{padding-top:0} .cnx>li:last-child{padding-bottom:0;box-shadow:none}
.cnx .ci{width:30px;height:30px;border-radius:9px;background:var(--fill);color:var(--ink-2);display:grid;place-items:center;flex:none}
.cnx .ci svg{width:16px;height:16px}
.cnx .ct{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.cnx .ct b{font-weight:600}
.cnx .ct span{font-size:12.5px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.cnx .ca{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.cnx>li.off .ct b{font-weight:500;color:var(--ink-2)}
.cnx.pick>li{grid-template-columns:20px 30px minmax(0,1fr);padding:10px 12px;margin:0 -12px;border-radius:12px;box-shadow:none;cursor:pointer}
.cnx.pick>li:first-child{padding-top:10px} .cnx.pick>li:last-child{padding-bottom:10px}
.cnx.pick>li:has(input:checked){background:var(--info-bg)}
.cnx.pick>li:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
.cnx.pick input{margin:0;width:16px;height:16px;accent-color:var(--accent)}
.oa-wrap{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:32px 16px;box-sizing:border-box;background:var(--bg)}
.oa{width:min(420px,100%);box-sizing:border-box;background:var(--surface);border-radius:20px;box-shadow:var(--shadow);padding:28px 28px 24px}
.oa-pair{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:var(--ink-3)}
.oa-pair .ci{width:40px;height:40px;border-radius:12px;background:var(--fill);color:var(--ink);display:grid;place-items:center;flex:none}
.oa-pair .ci svg{width:20px;height:20px} .oa-pair .ci img{width:24px;height:24px;border-radius:6px}
.oa-pair>svg{width:16px;height:16px;flex:none}
.oa h1{font-size:20px;line-height:1.25;font-weight:650;letter-spacing:-.015em;margin:0;text-wrap:balance}
.oa .sub{margin:6px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink-2);text-wrap:pretty}
.oa-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 16px;margin:18px 0 0;padding:14px 0;border-top:.5px solid var(--line-soft);border-bottom:.5px solid var(--line-soft);font-size:13.5px;line-height:1.4}
.oa-dl dt{color:var(--ink-2)} .oa-dl dd{margin:0;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.oa-note{margin:12px 0 0;font-size:12.5px;line-height:1.45;color:var(--ink-2)}
.oa-pick{margin:18px 0 0;padding:0;border:0;min-width:0}
.oa-pick legend{padding:0;margin:0 0 6px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.oa-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 0}
.oa-acts.one{grid-template-columns:minmax(0,1fr)}
.oa-acts .btn{min-height:44px;justify-content:center;border-radius:12px;font-size:15px;padding:0 12px}
.oa-acts .btn[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.oa .btn.goog{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);gap:10px;font-weight:600}
.oa .btn.goog:hover{background:var(--surface-sub)}
.oa .btn.goog svg{width:18px;height:18px;flex:none}
.oa-st{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;margin:0 0 16px;background:var(--fill);color:var(--ink-2)}
.oa-st svg{width:20px;height:20px}
.oa-st.warn{background:var(--warn-bg);color:var(--warn-ink)} .oa-st.bad{background:var(--bad-bg);color:var(--bad-ink)} .oa-st.ok{background:var(--ok-bg);color:var(--ok-ink)}
@media (max-width:380px){ .oa-acts{grid-template-columns:minmax(0,1fr)} }
@media (max-width:700px){
  .cnx>li{grid-template-columns:30px minmax(0,1fr)} .cnx .ca{grid-column:2;justify-content:flex-start;margin:4px 0 0 -10px}
  .cnx .ca .btn{min-height:36px}
  .oa{padding:24px 20px 20px;border-radius:18px}
}
.oa-acts button.btn{border:0;cursor:pointer;font:inherit;font-size:15px}
.cnx.pick label.ct{cursor:pointer}
