:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --danger: #ff6b6b;
  --ok: #42f59e;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(110,231,255,0.18), transparent 55%),
    radial-gradient(900px 700px at 85% 20%, rgba(167,139,250,0.16), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, rgba(110,231,255,0.10), transparent 60%),
    var(--bg);
}

.app{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 28px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, rgba(110,231,255,0.35), rgba(167,139,250,0.35));
  border: 1px solid rgba(255,255,255,0.18);
}

.title{font-size: 16px; font-weight: 700}
.subtitle{font-size: 12px; color: var(--muted); margin-top: 2px}

.headerRight{
  display:flex;
  align-items:center;
  gap: 10px;
}

.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.main{margin-top: 16px;}

.card{
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.h1{margin: 0 0 8px; font-size: 22px;}
.h2{margin: 0 0 8px; font-size: 18px;}
.p{margin: 8px 0; color: var(--text); line-height: 1.55}
.subtle{color: var(--muted)}

.notice{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.noticeTitle{font-weight:700; margin-bottom: 6px}
.list{margin: 8px 0 0 18px; color: var(--muted); line-height:1.55}

.authBox{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.status{
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}
.status.error{color: var(--danger);}
.status.ok{color: var(--ok);}

.formRow{margin-top: 12px}
.formRowRight{display:flex; justify-content:flex-end}

.textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  resize: vertical;
}
.textarea:focus{
  border-color: rgba(110,231,255,0.35);
  box-shadow: 0 0 0 3px rgba(110,231,255,0.12);
}

.btn{
  appearance:none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 600;
}
.btn:hover{background: rgba(255,255,255,0.09);}
.btn:disabled{opacity: 0.6; cursor:not-allowed;}

.btnPrimary{
  border-color: rgba(110,231,255,0.28);
  background: linear-gradient(135deg, rgba(110,231,255,0.22), rgba(167,139,250,0.20));
}
.btnGhost{
  background: rgba(255,255,255,0.05);
}

.divider{
  margin: 16px 0;
  height: 1px;
  background: var(--border);
}

.resultTitle{font-weight: 700; margin-bottom: 8px}
.pre{
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  overflow:auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.86);
  min-height: 96px;
  white-space: pre-wrap;
  word-break: break-word;
}

.footer{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.small code{
  font-family: var(--mono);
  color: rgba(255,255,255,0.85);
}

.hidden{display:none !important;}


