:root{
  --bg:#0b1b16;
  --overlay: rgba(11,27,22,0.75);
  --card: rgba(255,255,255,0.08);
  --card2: rgba(255,255,255,0.06);
  --text:#e9fff2;
  --muted: rgba(233,255,242,0.72);
  --border: rgba(233,255,242,0.14);
  --accent:#0fb56d;
  --warn:#f6c177;
  --bad:#ef4444;
  --ok:#22c55e;
  --radius: 18px;
}

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

.bg{
  position:fixed; inset:0;
  background-image:url("/static/img/startup.jpg");
  background-size:cover;
  background-position:center;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.05);
  z-index:-3;
}

.overlay{
  position:fixed; inset:0;
  background: var(--overlay);
  z-index:-2;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 50px;
}

.top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.dot{
  width:14px; height:14px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15,181,109,0.15);
}

.title{
  font-size:18px;
  font-weight:750;
  letter-spacing:0.2px;
}
.subtitle{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
}

.controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  width: 62%;
}

.control{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 180px;
}
.control.grow{ min-width: 340px; flex:1; }

label{
  font-size:12px;
  color: var(--muted);
}

select, input{
  background: rgba(0,0,0,0.25);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
  transition: border 160ms ease, transform 160ms ease;
}
select:focus, input:focus{
  border-color: rgba(15,181,109,0.65);
}

.row{ display:flex; gap:8px; }
.btn{
  border: 1px solid rgba(15,181,109,0.35);
  background: rgba(15,181,109,0.18);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform 120ms ease, background 160ms ease, border 160ms ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); background: rgba(15,181,109,0.24); }
.btn:active{ transform: translateY(0px); }

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.card-head{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}

.h1{
  font-size: 22px;
  font-weight: 780;
  margin:0;
}
.meta{
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.meta.strong{ color: var(--text); font-weight:700; }
.meta.tiny{ font-size:12px; }

.progressBox{
  min-width: 320px;
}
.progressTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.progressBar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.progressFill{
  height:100%;
  width:0%;
  background: rgba(15,181,109,0.85);
  border-radius: 999px;
  transition: width 380ms ease;
}

.phases{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.phase{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  animation: rise 260ms ease both;
}
@keyframes rise{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
.phaseTitle{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 10px;
}
.phaseTitle .name{
  font-weight: 760;
  font-size: 15px;
}
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.events{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.event{
  display:grid;
  grid-template-columns: 34px 1fr 200px;
  gap: 10px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  transition: transform 120ms ease, border 160ms ease, background 160ms ease;
}
.event:hover{
  transform: translateY(-1px);
  border-color: rgba(15,181,109,0.20);
  background: rgba(255,255,255,0.06);
}

.chk{
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor:pointer;
}

.eventMain{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.eventText{ font-weight:650; font-size: 13px; }
.eventTool{ font-size: 12px; color: var(--muted); }

.eventRight{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
}
.state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  cursor:pointer;
  user-select:none;
  transition: background 160ms ease, border 160ms ease;
}
.state:hover{
  border-color: rgba(15,181,109,0.30);
}
.stateDot{
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(233,255,242,0.55);
}

.note{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  outline:none;
}
.note:focus{
  border-color: rgba(15,181,109,0.45);
}

.foot{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
code{
  color: rgba(233,255,242,0.92);
  background: rgba(0,0,0,0.18);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 920px){
  .controls{ width:100%; justify-content:flex-start; }
  .event{ grid-template-columns: 34px 1fr; }
  .eventRight{ align-items:flex-start; }
  .progressBox{ min-width: 260px; }
}
