:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b0e13; color: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, rgba(109,124,255,.13), transparent 35%), #0b0e13; }
button, input { font: inherit; }
button { border: 1px solid #303745; border-radius: 9px; background: #171c25; color: #f4f6fa; padding: .75rem 1rem; cursor: pointer; }
button:hover { border-color: #6571ff; }
button.primary { background: #eef0ff; color: #10131a; border-color: #eef0ff; }
input { width: 100%; border: 1px solid #303745; border-radius: 9px; background: #10141b; color: #f4f6fa; padding: .8rem; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 4rem); letter-spacing: -.055em; }
h2 { margin: 0 0 20px; font-size: 1.08rem; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; color: #929cff; }
.muted { color: #9098a8; }.small { font-size: .84rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.card,.panel { border: 1px solid #242a35; background: rgba(17,21,29,.88); border-radius: 14px; }
.card { padding: 18px; }.card span { display: block; font-size: .75rem; color: #848d9d; margin-bottom: 8px; }.card strong { font-size: 1.2rem; }
.two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }.panel { padding: 22px; }
label { display: block; margin-bottom: 16px; font-size: .8rem; color: #a7afbd; } label input { display: block; margin-top: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid #51472c; background: #1f1b11; color: #f3d67a; }.notice.error { border-color:#63333a; background:#251216; color:#ff9caa; }.hidden { display:none; }
.phase { display:grid; grid-template-columns:1fr auto; padding:10px 0; border-bottom:1px solid #242a35; }.phase:last-child { border-bottom:0; }
.details { margin:0; }.details>div { display:grid; grid-template-columns:1fr minmax(0,2fr); gap:12px; padding:10px 0; border-bottom:1px solid #242a35; }.details>div:last-child{border-bottom:0;} dt{color:#848d9d;} dd{margin:0;text-align:right;word-break:break-word;} a{color:#aab2ff;}
@media(max-width:850px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));}.two{grid-template-columns:1fr;}}
@media(max-width:520px){.top{align-items:flex-start;flex-direction:column;}.stats{grid-template-columns:1fr;}.shell{width:min(100% - 20px,1180px);padding-top:22px;}}


/* Embedded drawer mode */
body.embedded {
  min-height: 100%;
  background: transparent;
}
body.embedded .shell {
  width: 100%;
  margin: 0;
  padding: 16px 16px 34px;
}
body.embedded .top {
  margin-bottom: 14px;
  align-items: center;
}
body.embedded .top > div {
  display: none;
}
body.embedded .top #connect {
  width: 100%;
}
body.embedded .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
body.embedded .two {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
body.embedded .card,
body.embedded .panel {
  border-color: rgba(255,255,255,.09);
  background: rgba(13,17,24,.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.embedded .card {
  padding: 13px;
}
body.embedded .panel {
  padding: 16px;
}
body.embedded h2 {
  margin-bottom: 14px;
}
body.embedded input,
body.embedded button {
  border-color: rgba(255,255,255,.12);
}
body.embedded input {
  background: rgba(7,10,15,.62);
}
body.embedded button:not(.primary) {
  background: rgba(17,22,31,.7);
}
body.embedded .notice {
  margin-bottom: 10px;
}

@media(max-width:520px){
  body.embedded .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.embedded .shell { width:100%; padding:12px 12px 28px; }
}
