:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1b1f2a;
  --muted:#5a6475;
  --line:#e5e8f0;
  --accent:#e64c0c;
  --accentDark:#c43f0a;
  --ok:#1f7a3a;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  padding:14px 16px;
  background:linear-gradient(90deg, #fff, #fff6f2);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{flex:1}
.title{font-size:20px;font-weight:800}
.subtitle{font-size:13px;color:var(--muted);margin-top:3px}
.back-btn{white-space:nowrap;text-decoration:none}

.container{
  max-width:980px;
  margin:18px auto;
  padding:0 16px 40px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  margin-bottom:16px;
  box-shadow: 0 6px 18px rgba(25,30,50,.06);
}

h2{margin:0 0 10px 0;font-size:16px}
.hint{margin:8px 0 12px;color:var(--muted);font-size:13px;line-height:1.35}
code{background:#f1f3f7;border:1px solid var(--line);padding:2px 6px;border-radius:6px}

label{display:block;font-weight:650;margin:12px 0 0}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid #cfd6e5;
  font-size:14px;
  outline:none;
  background:#fff;
}
input:focus, textarea:focus{border-color: #ffb79b; box-shadow: 0 0 0 3px rgba(230,76,12,.14);}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.grid3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
}

@media (max-width:860px){
  .grid2,.grid3{grid-template-columns:1fr}
}

.row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.filehint input{margin-top:8px}
.file-row{margin-top:4px}

.status{
  margin-top:12px;
  border:1px solid var(--line);
  border-left:6px solid var(--ok);
  background:#f3fbf6;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
}

.sep{
  border:none;
  border-top:1px solid var(--line);
  margin:18px 0;
}

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

.btn{
  background:var(--accent);
  border:none;
  color:white;
  padding:12px 14px;
  border-radius:12px;
  font-weight:750;
  cursor:pointer;
  font-size:14px;
}
.btn:hover{background:var(--accentDark)}
.btn.secondary{
  background:#eef1f7;
  color:#273047;
  border:1px solid var(--line);
}
.btn.secondary:hover{background:#e6eaf5}

.tableLike{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:10px}
.tHead,.tRow{
  display:grid;
  grid-template-columns: 2fr 1fr .8fr;
  gap:0;
}
.tHead{
  background:#f3f5fb;
  font-weight:800;
  font-size:13px;
}
.tHead > div, .tRow > div{
  padding:10px;
  border-bottom:1px solid var(--line);
}
.tRow > div{background:#fff}
.tBody .tRow:last-child > div{border-bottom:none}
.tRow input{margin-top:0;border-radius:10px}
.tCell-check{display:flex;align-items:center;justify-content:center}
.tCell-check input[type="checkbox"]{width:auto;margin:0;cursor:pointer}