:root{
  --bg:#0b0f14;
  --card:#121824;
  --muted:#96a2b4;
  --text:#e7edf6;
  --line:#243048;
  --btn:#1e2a40;
  --btn2:#152033;
  --accent:#4ea3ff;
  --warn:#ffcc66;
  --bad:#ff6b6b;
  --good:#6bff95;
  --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}
body{
  margin:0;
  font-family:var(--sans);
  background:radial-gradient(1200px 700px at 20% -10%, #122341 0%, var(--bg) 60%);
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:18px}
.brand{display:flex;gap:14px;align-items:center}
.logo{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,#2b5cff,#4ea3ff);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;color:#06101f;
}
h1{margin:0;font-size:28px;letter-spacing:0.2px}
.sub{margin:4px 0 0;color:var(--muted);max-width:760px}

.tabs{
  display:flex;gap:10px;flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;margin-bottom:16px;
}
.tab{
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.tab.active{
  border-color:#2a3b5c;
  background:rgba(78,163,255,0.10);
}

.panel{display:none}
.panel.show{display:block}

.grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:rgba(18,24,36,0.85);
  border:1px solid rgba(36,48,72,0.75);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.label{display:block;margin-bottom:8px;color:var(--muted);font-size:13px}
input[type="file"]{width:100%}

input, select, button{
  font-family:inherit;
  font-size:14px;
}
input[type="password"], input[type="text"]{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0d1420;
  color:var(--text);
}
select{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0d1420;
  color:var(--text);
}

.row{display:flex;gap:10px;align-items:center;margin-top:10px}
.row > *{flex:1}
.row button{flex:0 0 auto}

.btn{
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.btn.secondary{background:var(--btn2)}
.btn.primary{
  background:linear-gradient(135deg,#2b5cff,#4ea3ff);
  border-color:transparent;
  color:#06101f;
  font-weight:700;
}

.actions{display:flex;gap:12px;align-items:center;margin-top:14px}
.status{color:var(--muted);min-height:20px}
.hint{color:var(--muted);font-size:12.5px;margin-top:8px;line-height:1.35}
.hint.warn{color:var(--warn)}
.muted{color:var(--muted)}
.dot{margin:0 8px;color:var(--muted)}
.footer{display:flex;align-items:center;gap:0;color:var(--muted);padding-top:10px}
.mono{font-family:var(--mono)}

.kdfBox{
  margin-top:10px;
  padding:10px;
  border:1px dashed rgba(36,48,72,0.85);
  border-radius:12px;
  background:rgba(13,20,32,0.45);
}
.kdfRow{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}
@media (max-width: 980px){
  .kdfRow{grid-template-columns:1fr}
}
.kdfKey{color:var(--muted);font-size:12px}
.kdfVal{margin-top:2px;font-family:var(--mono);font-size:12.5px}

.meta{margin-top:10px}
.metaRow{
  display:flex;justify-content:space-between;gap:10px;
  padding:8px 0;border-bottom:1px solid rgba(36,48,72,0.45)
}
.metaRow:last-child{border-bottom:0}

.bullets{margin:0;padding-left:18px}
.bullets li{margin:8px 0}


/* Progress + strength UI */
.actionCol{display:flex;flex-direction:column;gap:10px}
.pwrap{min-width:260px}
.ptrack{
  width:100%;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(36,48,72,0.85);
  background:rgba(13,20,32,0.60);
  overflow:hidden;
}
.pbar{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(135deg,#2b5cff,#4ea3ff);
  transition:width 120ms linear;
}
.ptext{margin-top:6px;color:var(--muted);font-size:12px;min-height:16px}

.strength{margin-top:10px}
.strengthTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.strengthLabel{color:var(--muted);font-size:12.5px}
.strengthTrack{
  width:100%;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(36,48,72,0.85);
  background:rgba(13,20,32,0.60);
  overflow:hidden;
}
.strengthFill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(135deg,#2b5cff,#4ea3ff);
  transition:width 120ms linear;
}
.footer a.muted{color:var(--muted);text-decoration:none}
.footer a.muted:hover{color:var(--text);text-decoration:underline}
