* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #eceef2;
  min-height: 100dvh;
  color: #454a5c;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: #f3f4f7;
}
.title { font-size: 15px; font-weight: 600; color: #4d4d55; letter-spacing: 1px; }
.spacer40 { width: 40px; }

.iconbtn.small {
  height: 24px; padding: 0 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
  color: #8b8fa3;
  font-size: 10.5px;
  display: flex; align-items: center;
  text-decoration: none;
}

.card {
  margin: 14px 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(80,90,130,0.10), inset 0 0 0 1px rgba(200,205,220,0.4);
  padding: 14px 16px 16px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: #8b8fa3;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(200,205,220,0.35);
  gap: 10px;
}
.row:first-of-type { border-top: none; }
.row-label { font-size: 13.5px; color: #454a5c; }
.hint { display: block; font-size: 10.5px; color: #b3b6c4; margin-top: 2px; }
.hint-block { font-size: 11px; color: #9a9db0; margin-top: 8px; line-height: 1.5; }

select {
  border: 1px solid rgba(190,195,215,0.5);
  border-radius: 10px;
  background: #fff;
  color: #454a5c;
  font-size: 13px;
  padding: 6px 10px;
}

input[type="text"], input[type="password"] {
  border: 1px solid rgba(190,195,215,0.5);
  border-radius: 10px;
  background: #fff;
  color: #454a5c;
  font-size: 13px;
  padding: 6px 10px;
  width: 100%;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn.ghost { background: rgba(190,195,215,0.22); color: #7b86a8; }
.btn.ghost.small { padding: 5px 10px; font-size: 11.5px; }
.btn.primary { background: #7b86a8; color: #fff; width: 100%; }
.btn:active { transform: scale(0.97); }

.usage-box {
  font-size: 12.5px;
  color: #4d4d55;
  background: rgba(123,134,168,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}

.provider-fields { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.field-label { font-size: 11.5px; color: #8b8fa3; margin-bottom: 4px; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(190,195,215,0.45);
  border-radius: 999px;
  transition: 0.2s;
}
.slider::before {
  content: ""; position: absolute;
  height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: #7b86a8; }
.switch input:checked + .slider::before { transform: translateX(18px); }
