
:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.40);
  --accent: #7c3aed;
  --accent2:#22c55e;
  --danger:#ef4444;
  --radius: 18px;
}
@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f7fb;
    --card: rgba(17,24,39,.04);
    --card2: rgba(17,24,39,.06);
    --text: rgba(17,24,39,.92);
    --muted: rgba(17,24,39,.62);
    --border: rgba(17,24,39,.12);
    --shadow: 0 18px 55px rgba(17,24,39,.10);
  }
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124,58,237,.30), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(34,197,94,.22), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.35;
}

.wrap{
  max-width: 1100px;
  margin: 28px auto 90px;
  padding: 0 16px;
}

.topbar{
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
  margin-bottom: 14px;
  flex-wrap:wrap;
}
.title{ display:flex; flex-direction:column; gap:6px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}
.badge b{ color: var(--text); font-weight: 650; }
h1{
  margin:0;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}
.sub{ margin:0; color: var(--muted); font-size: 14px; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.btn{
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ background: var(--card2); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border-color: rgba(124,58,237,.55);
  background: linear-gradient(180deg, rgba(124,58,237,.28), rgba(124,58,237,.18));
}
.btn.success{
  border-color: rgba(34,197,94,.55);
  background: linear-gradient(180deg, rgba(34,197,94,.22), rgba(34,197,94,.14));
}
.btn.danger{
  border-color: rgba(239,68,68,.55);
  background: linear-gradient(180deg, rgba(239,68,68,.18), rgba(239,68,68,.10));
}

.card{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.progress{
  display:flex; gap:10px; padding: 14px 16px;
  background: linear-gradient(90deg, rgba(124,58,237,.16), rgba(34,197,94,.10));
  border-bottom: 1px solid var(--border);
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.progress .left{
  display:flex; align-items:center; gap:10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap:wrap;
}
.dots{ display:flex; gap:8px; align-items:center; }
.dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border:1px solid var(--border);
}
.dot.active{ background: var(--accent); border-color: rgba(124,58,237,.6); }
.dot.done{ background: var(--accent2); border-color: rgba(34,197,94,.6); }

form{ padding: 16px; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.field{
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.field label{
  display:flex; justify-content:space-between; gap:12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req{ color: rgba(239,68,68,.9); font-weight: 700; }
input[type="text"], input[type="email"], input[type="number"], select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.10);
  color: var(--text);
  outline:none;
  font-size: 15px;
}
@media (prefers-color-scheme: light){
  input[type="text"], input[type="email"], input[type="number"], select{ background: rgba(255,255,255,.65); }
}
input:focus, select:focus{
  border-color: rgba(124,58,237,.7);
  box-shadow: 0 0 0 3px rgba(124,58,237,.16);
}

.section{
  grid-column: span 12;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.section summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.section summary::-webkit-details-marker{ display:none; }
.section h2{ margin:0; font-size: 16px; letter-spacing: -.01em; }
.section .hint{ color: var(--muted); font-size: 13px; margin:0; }
.section .content{ padding: 14px; }

.tableHead{
  display:grid;
  grid-template-columns: 1.4fr .6fr .6fr .6fr;
  gap:10px;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 2px 10px;
}

.row{
  display:grid;
  grid-template-columns: 1.4fr .6fr .6fr .6fr;
  gap:10px;
  align-items:end;
}
.row .mini label{ margin-bottom:6px; }
.net{
  font-weight: 800;
  text-align:right;
  padding-bottom: 10px;
  color: rgba(34,197,94,.92);
  font-variant-numeric: tabular-nums;
}

.divider{ height:1px; background: var(--border); margin: 12px 0; }

.scoreRow{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.14);
}
.scoreRow:last-child{ border-bottom:none; }
.scoreRow b{ display:block; margin-bottom:8px; }
.scoreGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill{
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  font-weight: 650;
  color: var(--text);
  font-size: 12px;
}

.footerBar{
  position: fixed;
  left: 0; right:0; bottom: 0;
  background: rgba(10,15,28,.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  z-index: 20;
}
@media (prefers-color-scheme: light){
  .footerBar{ background: rgba(255,255,255,.82); }
}
.footerInner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 0 6px;
  flex-wrap:wrap;
}
.status{
  color: var(--muted);
  font-size: 13px;
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}

/* responsive */
@media (min-width: 760px){
  .field.half{ grid-column: span 6; }
  .field.third{ grid-column: span 4; }
}
@media (max-width: 520px){
  .row, .tableHead{ grid-template-columns: 1fr 1fr; }
  .net{ grid-column: span 2; text-align:left; padding: 6px 0 0; }
  .scoreRow{ grid-template-columns: 1fr; }
}
