/* /src/pages/setup/styles.css */
:root{
  --bg:#0b0f19;
  --card:#0f172a;
  --card2:#111c33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.10);
  --accent:#60a5fa;
  --danger:#fb7185;
  --ok:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 10% 0%, rgba(96,165,250,.18), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(52,211,153,.14), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
}

.card{
  width:min(520px, 100%);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  font-size:12px;
  border:1px solid var(--line);
  border-radius:999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

.h1{
  font-size: 22px;
  font-weight: 750;
  letter-spacing:.2px;
  margin: 4px 0 8px;
}

.lead{
  color: var(--muted);
  line-height:1.65;
  margin: 0 0 14px;
  font-size: 14px;
}

.section{
  border-top:1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height:1.7;
  font-size: 14px;
}
.list li{ margin: 4px 0; color: var(--text); }
.muted{ color: var(--muted); }

.note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: 13px;
  line-height:1.6;
}

.note.danger{
  border-color: rgba(251,113,133,.35);
  color: #fecdd3;
  background: rgba(251,113,133,.06);
}
.note.ok{
  border-color: rgba(52,211,153,.35);
  color: #bbf7d0;
  background: rgba(52,211,153,.06);
}

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 650;
  font-size: 14px;
  user-select:none;
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn.primary{
  border-color: rgba(96,165,250,.45);
  background: rgba(96,165,250,.18);
}
.btn.primary:hover{ background: rgba(96,165,250,.24); }
.btn.link{
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.link:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: var(--text);
}

.footer{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  animation: spin 1s linear infinite;
}

/* GSI ボタンの外枠（paddingを持たせない） */
.gsi-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* GSI の描画先 */
#gsi-button {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* iframe は固定幅だが、親をはみ出さない */
#gsi-button iframe {
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes spin { to { transform: rotate(360deg); } }
