.admin-stage{
  max-width:820px;
  margin:0 auto;
  padding:32px 20px 64px;
}

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}
.panel h2{
  font-family:'Fredoka',sans-serif;
  font-size:19px;
  margin:0 0 6px;
  color:var(--brand);
}
.panel h3{
  font-family:'Fredoka',sans-serif;
  font-size:15px;
  margin:16px 0 8px;
}
.hint{
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.5;
  margin:0 0 14px;
}
code{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:4px;
  padding:1px 5px;
  font-family:'Space Mono',monospace;
  font-size:12px;
}

.stack{display:flex;flex-direction:column;gap:12px;max-width:360px;}
.stack-row{max-width:none;flex-direction:row;flex-wrap:wrap;align-items:end;}
.stack label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:var(--ink-soft);
  font-weight:500;
}
.stack-row label{flex:1 1 160px;}
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea{
  font-family:'Inter',sans-serif;
  font-size:14px;
  padding:10px 12px;
  border:1.5px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  width:100%;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--brand);
}
textarea{
  font-family:'Space Mono',monospace;
  font-size:12.5px;
  width:100%;
  margin:12px 0;
  resize:vertical;
}

.btn-primary{
  font-family:'Fredoka',sans-serif;
  font-weight:600;
  font-size:14px;
  background:var(--brand);
  color:#fff;
  border:none;
  padding:11px 22px;
  border-radius:999px;
  cursor:pointer;
  align-self:start;
  transition:opacity .15s ease;
}
.btn-primary:hover{opacity:.9;}
.btn-primary:disabled{opacity:.5;cursor:not-allowed;}

.btn-google{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  max-width:360px;
  font-family:'Inter',sans-serif;
  font-weight:600;
  font-size:14px;
  background:#fff;
  color:var(--ink);
  border:1.5px solid var(--line);
  padding:11px 22px;
  border-radius:999px;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.btn-google:hover{border-color:#4285F4;box-shadow:0 2px 8px -2px rgba(66,133,244,.35);}

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:360px;
  color:var(--ink-soft);
  font-size:12px;
  margin:16px 0;
}
.divider::before,.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.btn-ghost{
  font-family:'Inter',sans-serif;
  font-weight:600;
  font-size:13px;
  background:transparent;
  border:1.5px solid var(--line);
  color:var(--ink-soft);
  padding:8px 16px;
  border-radius:999px;
  cursor:pointer;
}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand);}

.csv-download{
  display:inline-block;
  margin-bottom:16px;
  text-decoration:none;
}

.error-text{
  color:#B3122B;
  font-size:13px;
  margin:0;
}

.admin-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.csv-example{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 14px;
  font-family:'Space Mono',monospace;
  font-size:12px;
  overflow-x:auto;
  margin:0 0 16px;
}

.file-drop{
  display:block;
  border:2px dashed var(--line);
  border-radius:12px;
  padding:18px;
  text-align:center;
  font-size:13px;
  color:var(--ink-soft);
  cursor:pointer;
  margin-bottom:8px;
}
.file-drop:hover{border-color:var(--brand);color:var(--brand);}
.file-drop input{display:none;}

.table-wrap{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:12px;
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
th,td{
  text-align:left;
  padding:9px 12px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
th{
  font-family:'Space Mono',monospace;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--ink-soft);
  background:var(--paper);
}
tr:last-child td{border-bottom:none;}

.row-bad{color:#B3122B;}
.row-cat{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:11px;
  font-family:'Space Mono',monospace;
  color:#fff;
}
.row-cat.pra{background:var(--pra);}
.row-cat.fungsi{background:var(--fungsi);}
.row-cat.tahap1{background:var(--tahap1);}
.row-cat.tahap2{background:var(--tahap2);}

.btn-del{
  background:transparent;
  border:1px solid var(--line);
  color:var(--ink-soft);
  border-radius:8px;
  padding:4px 10px;
  font-size:12px;
  cursor:pointer;
}
.btn-del:hover{border-color:#B3122B;color:#B3122B;}

.filter-row{margin-bottom:14px;}
.filter-row select{max-width:200px;}
