:root{
  --bg:#f4f8f6;
  --card:#ffffff;
  --text:#17352d;
  --muted:#6c7f78;
  --line:#dbe7e2;
  --green:#176b52;
  --green-dark:#10523f;
  --green-soft:#eaf5f0;
  --blue:#315f78;
  --danger:#9d3030;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(135deg,#f7faf9 0%,#edf5f2 100%);
  color:var(--text);
  font-family:Inter,Segoe UI,Arial,sans-serif;
}
.page{
  width:min(1080px,calc(100% - 40px));
  margin:48px auto;
}
.brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}
.brand{
  font-size:24px;
  font-weight:900;
  letter-spacing:.02em;
}
.badge{
  padding:7px 12px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green);
  font-size:12px;
  font-weight:700;
}
.card{
  display:grid;
  grid-template-columns:360px 1fr;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(28,70,55,.10);
}
.sidebar{
  padding:38px 34px;
  background:linear-gradient(160deg,#133f35,#176b52);
  color:white;
}
.sidebar h1{
  margin:0 0 16px;
  font-size:32px;
  line-height:1.15;
}
.sidebar p{
  margin:0;
  color:#d8ebe4;
  line-height:1.6;
}
.steps{
  margin-top:34px;
  display:grid;
  gap:15px;
}
.step{
  display:flex;
  align-items:center;
  gap:12px;
  color:#bad8cc;
  font-size:14px;
}
.step span{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  font-weight:700;
}
.step.active{color:white;font-weight:700}
.step.active span{
  background:white;
  color:var(--green);
  border-color:white;
}
.content{
  padding:42px 46px;
}
.content h2{
  margin:0 0 8px;
  font-size:25px;
}
.lead{
  color:var(--muted);
  margin:0 0 30px;
  line-height:1.55;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.field.full{grid-column:1/-1}
label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:7px;
}
input,select{
  width:100%;
  height:46px;
  padding:0 13px;
  border:1px solid #cddbd5;
  border-radius:9px;
  background:white;
  color:var(--text);
  font:inherit;
  transition:.15s;
}
input:focus,select:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(23,107,82,.10);
}
.help{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.notice{
  grid-column:1/-1;
  display:flex;
  gap:10px;
  padding:13px 15px;
  background:var(--green-soft);
  border-radius:9px;
  color:#365e50;
  font-size:13px;
  line-height:1.45;
}
.error{
  margin-bottom:22px;
  padding:12px 14px;
  border-radius:8px;
  background:#fff0f0;
  color:var(--danger);
  border:1px solid #f1cccc;
}
.actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
}
button{
  border:0;
  border-radius:9px;
  padding:13px 24px;
  background:var(--green);
  color:white;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
button:hover{background:var(--green-dark)}
.summary{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  margin-top:24px;
}
.summary-row{
  display:grid;
  grid-template-columns:190px 1fr;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.summary-row:last-child{border-bottom:0}
.summary-row strong{font-size:13px}
.summary-row span{color:#51685f}
.footer-note{
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
}
.back{
  display:inline-block;
  margin-top:22px;
  color:var(--green);
  font-weight:700;
  text-decoration:none;
}
@media(max-width:800px){
  .card{grid-template-columns:1fr}
  .sidebar{padding:28px}
  .content{padding:30px 24px}
  .form-grid{grid-template-columns:1fr}
  .field.full,.notice,.actions{grid-column:auto}
}

.primary-link{
  display:inline-block;
  border-radius:9px;
  padding:13px 20px;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.primary-link:hover{background:var(--green-dark)}

.plan-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
  margin:22px 0;
  background:#fbfdfc;
}
.plan-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:7px;
}
.plan-copy{
  color:var(--muted);
  line-height:1.5;
}
.plan-features{
  margin:20px 0 0;
  padding-left:20px;
  color:#456158;
  line-height:1.8;
}
.actions{
  gap:12px;
  align-items:center;
}

.cloud-command{
  margin:22px 0;
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
  background:#10251f;
}
.command-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 14px;
  background:#eaf2ef;
  color:var(--text);
  font-size:13px;
}
.cloud-command pre{
  margin:0;
  padding:18px;
  overflow:auto;
  color:#e4f2ec;
  font:12px/1.55 Consolas,monospace;
  white-space:pre;
}
.copy-button{
  padding:7px 12px;
  font-size:12px;
}
.success-box{
  margin:18px 0;
  padding:14px;
  border-radius:9px;
  background:#e7f6ef;
  border:1px solid #b7dece;
  color:#176b52;
  font-weight:700;
}

/* =========================================================
   Connect Google Cloud — production command-panel layout
   ========================================================= */

.connect-gcp-card,
.card {
  width: min(1440px, calc(100vw - 48px));
  max-width: 1440px;
}

.content {
  min-width: 0;
}

.cloud-command {
  width: 100%;
  min-width: 0;
  margin: 24px 0;
  border: 1px solid rgba(17, 74, 62, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: #082d26;
  box-sizing: border-box;
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  background: #eaf4f0;
  color: #123f35;
  border-bottom: 1px solid rgba(17, 74, 62, 0.16);
}

.copy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #17634f;
  border-radius: 8px;
  background: #ffffff;
  color: #124b3e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.copy-button:hover {
  background: #124b3e;
  color: #ffffff;
}

.copy-button.copied {
  background: #124b3e;
  border-color: #124b3e;
  color: #ffffff;
}

.copy-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#gcp-command {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 560px;
  margin: 0;
  padding: 18px 20px 22px;
  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: auto;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;

  background: #082d26;
  color: #f3fbf8;

  font-family:
    "Cascadia Code",
    "Cascadia Mono",
    Consolas,
    "Courier New",
    monospace;

  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
}

#gcp-command::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#gcp-command::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 10px;
}

#gcp-command::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .card {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  #gcp-command {
    max-height: 460px;
    font-size: 12px;
    padding: 16px;
  }

  .command-header {
    align-items: flex-start;
  }
}
