/* Page layout (compact, no big empty space) */
.page{
  max-width:1100px;
  margin:auto;
  padding:22px 20px 60px;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.header-card{
  background:rgba(255,255,255,0.09);
  border:1px solid rgba(255,255,255,0.12);
  padding:22px;
  border-radius:24px;
  backdrop-filter: blur(10px);
  box-shadow:0 18px 50px rgba(0,0,0,0.35);
}
.header-card h1{font-size:2.05rem; margin-bottom:8px; letter-spacing:-0.4px;}
.header-card p{color:#cbd5e1; line-height:1.65; font-size:1.02rem;}

.tool{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:22px;
}
@media (max-width:900px){
  .tool{grid-template-columns:1fr;}
}

.panel{
  background:rgba(40,55,75,0.92);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:24px;
  padding:24px;
  box-shadow:0 30px 60px rgba(0,0,0,0.45);
}
.panel h2{font-size:1.25rem; margin-bottom:14px;}

.controls{display:flex; flex-direction:column; gap:14px;}
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}
label{color:#e2e8f0; font-size:0.95rem;}

input[type="number"], input[type="text"], textarea, select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.08);
  color:#f1f5f9;
  outline:none;
}
textarea{width:100%; min-height:110px; resize:vertical;}
input[type="text"]{width:100%;}
input[type="number"]{width:120px;}

.switch{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px; border-radius:14px;
  border:1px solid rgba(148,163,184,0.25);
  background:rgba(255,255,255,0.06);
}
.switch input{transform:scale(1.1);}

.hint{color:#cbd5e1; font-size:0.92rem; line-height:1.55; opacity:0.95; margin-top:6px;}
.small{color:#cbd5e1; font-size:0.9rem; line-height:1.6;}

.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:8px;}
button{
  border:none; padding:12px 14px; border-radius:14px; cursor:pointer;
  font-weight:650; color:#0b1220; background:var(--accent,#38bdf8);
  transition:transform .15s ease, opacity .15s ease;
}
button:hover{transform:translateY(-1px); opacity:0.95;}
button.secondary{
  background:rgba(255,255,255,0.10);
  color:#f1f5f9;
  border:1px solid rgba(255,255,255,0.14);
}

.output{display:flex; flex-direction:column; gap:12px;}
.output-box{
  padding:14px; border-radius:16px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(148,163,184,0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size:1.05rem; word-break:break-all;
}

.meter{
  height:12px; border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(148,163,184,0.22);
  overflow:hidden;
}
.meter > div{height:100%; width:0%; background:#22c55e; transition:width .2s ease;}
.strength-line{display:flex; justify-content:space-between; color:#e2e8f0; font-size:0.95rem;}

.other{margin-top:4px;}
.other h2{font-size:1.25rem; margin-bottom:14px; color:#fff;}
.other-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px;}
.other a{
  text-decoration:none; padding:14px; border-radius:18px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.10);
  transition:transform .2s ease, background .2s ease;
}
.other a:hover{transform:translateY(-4px); background:rgba(59,130,246,0.26);}
.other .t{font-weight:750;}
.other .d{color:#cbd5e1; font-size:0.92rem; margin-top:6px; line-height:1.4;}

.notice{
  margin-top:10px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(148,163,184,0.18);
  color:#e2e8f0;
  line-height:1.6;
  font-size:0.95rem;
}
