:root{
  --bg:#eef4f7;
  --panel:#ffffff;
  --text:#17222b;
  --muted:#687984;
  --line:#d9e3e8;
  --green:#15965c;
  --blue:#2879d0;
  --red:#cf3a3a;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.shell{
  width:min(720px,100%);
  margin:0 auto;
  padding:32px 18px;
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  box-shadow:0 12px 36px rgba(20,45,60,.10);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}

.logo{
  width:50px;
  height:50px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  background:linear-gradient(135deg,#2879d0,#15965c);
}

h1{
  margin:0;
  font-size:24px;
}

p{
  margin:5px 0 0;
  color:var(--muted);
}

.notice,
.helpBox{
  margin:15px 0;
  padding:13px 15px;
  border-radius:12px;
  background:#edf6ff;
  line-height:1.5;
  font-size:14px;
}

label{
  display:block;
  margin:16px 0 6px;
  font-size:13px;
  font-weight:700;
}

input{
  width:100%;
  min-height:46px;
  padding:10px 13px;
  border:1px solid #c7d5dd;
  border-radius:11px;
  font:inherit;
  background:#fff;
}

#pairCode{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight:800;
}

.hint,
.small{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

.row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin-top:18px;
}

button{
  min-height:42px;
  padding:9px 15px;
  border:0;
  border-radius:11px;
  font:inherit;
  cursor:pointer;
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.primary{
  background:var(--green);
  color:#fff;
  font-weight:800;
}

.secondary{
  background:#e8eef2;
  color:#263640;
}

.help{
  margin-left:auto;
  width:42px;
  padding:0;
  border-radius:50%;
  font-weight:900;
}

.sep{
  height:1px;
  background:var(--line);
  margin:22px 0;
}

.stateTitle{
  font-size:18px;
  font-weight:850;
}

.stateText{
  margin-top:7px;
  color:var(--muted);
  line-height:1.5;
}

.fingerprint{
  margin-top:16px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
}

.mono{
  margin-top:5px;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}

[data-state="ok"]{
  color:var(--green);
}

[data-state="error"]{
  color:var(--red);
}

[data-state="wait"]{
  color:var(--blue);
}

@media(max-width:600px){
  .shell{
    padding:14px;
  }

  .card{
    padding:19px;
  }

  h1{
    font-size:21px;
  }
}


/* EMS_A4_3_PAIRING_CSS_TOUCH */

button{
  min-height:44px;
}

.help{
  width:44px;
  min-width:44px;
  height:44px;
}

@media(max-width:600px){
  button{
    min-height:44px;
  }

  .row > button:not(.help){
    flex:1 1 100%;
    width:100%;
  }
}
