:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#18212f;
  --muted:#637089;
  --line:#dfe5ef;
  --primary:#1b66ff;
  --primary-strong:#0f4fd6;
  --danger:#c53929;
  --ok:#18794e;
  --radius:18px;
  --shadow:0 10px 30px rgba(16,24,40,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font:16px/1.45 "Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{color:inherit}
.screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.shell{
  width:min(960px,100%);
  margin:0 auto;
  padding:32px 20px 48px;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.auth-card,
.callback-card{
  width:min(560px,100%);
  padding:28px;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}
.panel-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.stack{
  display:grid;
  gap:12px;
}
.projects{
  display:grid;
  gap:14px;
}
.project-card{
  padding:18px;
}
.project-card h3{
  margin:0 0 6px;
  font-size:18px;
}
.project-card p{
  margin:0;
  color:var(--muted);
}
.meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}
.button{
  appearance:none;
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font:600 15px/1.1 inherit;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.button.primary{
  background:var(--primary);
  color:#fff;
}
.button.primary:hover{background:var(--primary-strong)}
.button.light{
  background:#eef3ff;
  color:var(--text);
}
.button:disabled{
  opacity:.6;
  cursor:not-allowed;
}
.eyebrow{
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
h1,h2{
  margin:0 0 8px;
  line-height:1.1;
}
.muted{
  color:var(--muted);
}
.status{
  margin:8px 0 0;
  color:var(--muted);
}
.status.error{color:var(--danger)}
.status.success{color:var(--ok)}
.empty{
  padding:22px;
  border:1px dashed var(--line);
  border-radius:16px;
  color:var(--muted);
  background:#fbfcff;
}
.placeholder{
  padding:28px;
}
.wizard-shell{
  width:min(960px,100%);
  margin:0 auto;
  padding:32px 20px 48px;
}
.stepper{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:20px;
}
.step{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:14px;
  text-align:center;
}
.step.current{
  border-color:var(--primary);
  background:#eef4ff;
  color:var(--primary-strong);
  font-weight:700;
}
.step.done{
  border-color:#cfe7d6;
  background:#f3fbf6;
  color:var(--ok);
  font-weight:700;
}
.choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.choice-card{
  position:relative;
  display:block;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  cursor:pointer;
}
.choice-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.choice-card strong{
  display:block;
  margin-bottom:8px;
  font-size:17px;
}
.choice-card small{
  display:block;
  color:var(--muted);
  line-height:1.4;
}
.choice-card em{
  display:block;
  margin-top:10px;
  color:var(--text);
  font-style:normal;
  font-weight:600;
}
.choice-card.is-selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(27,102,255,.12);
}
.form-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  text-decoration:none;
  margin-bottom:18px;
}
.summary-box{
  padding:18px;
}
.summary-kv{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:10px;
  margin:10px 0;
}
@media (max-width:820px){
  .choice-grid{grid-template-columns:1fr;}
  .stepper{grid-template-columns:1fr;}
  .summary-kv{grid-template-columns:1fr;}
}
.form-card{
  padding:24px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.field{
  display:grid;
  gap:8px;
}
.field.full{
  grid-column:1 / -1;
}
.field label,
.field > span{
  font-weight:600;
}
.field input,
.field textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.field textarea{
  min-height:110px;
  resize:vertical;
}
.field small{
  color:var(--muted);
  line-height:1.35;
}
.required{
  color:var(--danger);
}
.top-note{
  margin-bottom:18px;
}
@media (max-width:820px){
  .form-grid{
    grid-template-columns:1fr;
  }
}
.field select{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.review-grid{
  display:grid;
  gap:16px;
  min-width:0;
}
.review-section{
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfcff;
}
.review-section h2{
  margin:0 0 12px;
  font-size:18px;
}
.review-row{
  display:grid;
  grid-template-columns:190px minmax(0, 1fr);
  align-items:start;
  gap:10px;
  min-width:0;
  padding:8px 0;
  border-bottom:1px dashed var(--line);
}
.review-row:last-child{
  border-bottom:0;
}
.review-row strong{
  color:var(--text);
}
.review-row span{
  min-width:0;
}
.field input[readonly]{
  background:#f6f8fc;
  color:var(--muted);
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--primary-strong);
  font-weight:700;
}
.created-card{
  padding:28px;
}
.created-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.success-box{
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid #cfe7d6;
  border-radius:16px;
  background:#f3fbf6;
}
.success-box h2{
  margin:0 0 6px;
  font-size:20px;
  color:var(--ok);
}
.success-box p{
  margin:0;
  color:var(--text);
}
.prewrap{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (max-width:820px){
  .review-row{
    grid-template-columns:1fr;
  }
}
.choice-card p{
  margin:0 0 8px;
  color:var(--muted);
  line-height:1.45;
}
.choice-card ul{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.choice-card li{
  margin:4px 0;
}
.section-box{
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfcff;
}
.section-box h2{
  margin:0 0 8px;
  font-size:18px;
}
.section-box p{
  margin:0;
  color:var(--muted);
}
.summary-edit-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
