:root {
  color-scheme: light;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17251d;
  background: #f5f7f2;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
[hidden] { display: none !important; }
header {
  height: 72px; padding: 0 clamp(20px, 6vw, 88px); border-bottom: 1px solid #dce2d8;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 680; font-size: 19px; letter-spacing: -.06em; color: inherit; text-decoration: none; }
.brand span { font: 38px/1 Georgia, serif; margin-top: -3px; color: #226245; }
header nav { display: flex; align-items: center; gap: clamp(6px, 2vw, 16px); }
.chat-link { display: inline-flex; align-items: center; font-weight: 650; text-underline-offset: 3px; }
main {
  width: min(440px, calc(100% - 32px)); margin: clamp(24px, 8vh, 90px) auto 40px;
  padding: clamp(24px, 6vw, 40px); background: #fff; border: 1px solid #dce2d8;
  border-radius: 20px; box-shadow: 0 12px 35px #1e392509;
}
.channel-mark { width: 54px; height: 54px; border-radius: 15px; background: #e3f3e7; position: relative; margin-bottom: 24px; }
.channel-mark i { position: absolute; width: 26px; height: 20px; top: 13px; left: 10px; background: #216342; border-radius: 50%; }
.channel-mark i::after { content: ""; position: absolute; left: 3px; bottom: -2px; border-top: 6px solid #216342; border-right: 7px solid transparent; transform: rotate(10deg); }
.channel-mark i + i { left: 24px; top: 25px; width: 21px; height: 16px; background: #67a775; outline: 2px solid #e3f3e7; }
.channel-mark i + i::after { left: auto; right: 2px; border-top-color: #67a775; transform: scaleX(-1); }
h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.12; letter-spacing: -.052em; font-weight: 650; }
p { font-size: 15px; line-height: 1.55; color: #56655c; margin: 12px 0 22px; }
form { display: flex; flex-direction: column; }
label { font-size: 14px; font-weight: 600; margin: 0 0 7px; }
input { font: inherit; font-size: 16px; color: inherit; border: 1px solid #acb9af; border-radius: 8px; background: #fff; padding: 12px; margin-bottom: 17px; min-width: 0; }
button, .secondary { font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid #358366; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
.primary, .secondary { border: 0; border-radius: 9px; min-height: 46px; }
.primary { width: 100%; background: #215c40; color: white; padding: 12px 16px; }
.primary:hover { background: #174c33; }
.quiet, .text-button { background: none; color: #285d44; border: 0; font-size: 14px; min-height: 44px; }
.text-button { padding: 8px 0; margin: 6px 12px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.qr-frame { margin: 0 auto 14px; max-width: 234px; overflow: hidden; border: 1px solid #cdd9ce; border-radius: 12px; }
.qr-frame img { width: 100%; height: auto; display: block; }
.status { font-weight: 650; color: #215c40; margin-bottom: 8px; }
.hint { font-size: 14px; margin: 0 0 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
#pairing-link { width: 100%; margin: 12px 0 0; }
.secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #24593e; background: #edf4ed; padding: 10px 12px; font-size: 14px; flex: 1 1 auto; }
#notice { margin: 14px 0 0; color: #8c3329; font-size: 14px; }
@media (max-width: 440px) { header { height: 58px; } main { margin-top: 22px; } }
