/* TCW Creative Studio operator guidance */

.tcw-operator-buttons{
  position:fixed;
  top:14px;
  left:14px;
  z-index:90000;
  display:flex;
  gap:7px;
}

.tcw-operator-buttons button{
  min-height:36px;
  margin:0;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(13,16,32,.94);
  color:#f2f5ff;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  font-family:'Fredoka',Arial,sans-serif;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  backdrop-filter:blur(14px);
}

.tcw-operator-buttons button:first-child{
  color:#07101a;
  border:0;
  background:linear-gradient(135deg,#14d9ff,#d622ff);
}

.tcw-operator-overlay{
  position:fixed;
  inset:0;
  z-index:200000;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(3,5,14,.78);
  backdrop-filter:blur(12px);
}

.tcw-operator-overlay.is-open{
  display:grid;
}

.tcw-operator-dialog{
  width:min(900px,96vw);
  max-height:92dvh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.1);
  border-radius:20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(214,34,255,.12),
      transparent 35%
    ),
    linear-gradient(
      160deg,
      #11162c,
      #0b0e1d
    );
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  color:#e9edfa;
}

.tcw-operator-header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(12,15,31,.96);
  backdrop-filter:blur(16px);
}

.tcw-operator-kicker{
  margin-bottom:5px;
  color:#72e8c7;
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.tcw-operator-title{
  margin:0;
  color:#fff;
  font-size:25px;
  line-height:1.1;
}

.tcw-operator-subtitle{
  max-width:620px;
  margin:8px 0 0;
  color:#aeb7d3;
  font-size:13px;
  line-height:1.5;
}

.tcw-operator-close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  margin:0;
  padding:0;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#202640;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.tcw-operator-content{
  padding:22px 24px 28px;
}

.tcw-operator-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:22px;
}

.tcw-operator-progress div{
  min-height:8px;
  border-radius:99px;
  background:#272d49;
}

.tcw-operator-progress div.is-active{
  background:linear-gradient(90deg,#14d9ff,#d622ff);
}

.tcw-operator-screen{
  display:none;
}

.tcw-operator-screen.is-active{
  display:block;
}

.tcw-operator-screen h3{
  margin:0 0 8px;
  color:#fff;
  font-size:19px;
}

.tcw-operator-screen > p{
  margin:0 0 18px;
  color:#aeb7d3;
  font-size:13px;
  line-height:1.55;
}

.tcw-operator-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.tcw-operator-card{
  padding:15px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(24,29,52,.72);
}

.tcw-operator-card strong{
  display:block;
  margin-bottom:5px;
  color:#fff;
  font-size:13px;
}

.tcw-operator-card p{
  margin:0;
  color:#9fa9c6;
  font-size:11px;
  line-height:1.45;
}

.tcw-operator-checklist{
  display:grid;
  gap:9px;
}

.tcw-operator-check{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(23,28,49,.72);
}

.tcw-operator-check-number{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#29304e;
  color:#9eeeff;
  font-size:11px;
  font-weight:700;
}

.tcw-operator-check strong{
  display:block;
  margin-bottom:3px;
  color:#fff;
  font-size:12px;
}

.tcw-operator-check span{
  display:block;
  color:#9ea8c5;
  font-size:11px;
  line-height:1.45;
}

.tcw-operator-warning{
  margin:16px 0;
  padding:13px 14px;
  border:1px solid rgba(255,193,92,.24);
  border-radius:12px;
  background:rgba(255,193,92,.075);
  color:#ffd697;
  font-size:11px;
  line-height:1.45;
}

.tcw-operator-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.tcw-operator-actions-group{
  display:flex;
  gap:8px;
}

.tcw-operator-actions button,
.tcw-operator-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin:0;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#202640;
  color:#eff2ff;
  font-family:'Fredoka',Arial,sans-serif;
  font-size:11px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}

.tcw-operator-actions .primary{
  color:#07101a;
  border:0;
  background:linear-gradient(135deg,#14d9ff,#d622ff);
}

.tcw-help-sections{
  display:grid;
  gap:10px;
}

.tcw-help-section{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
  background:rgba(22,27,48,.66);
}

.tcw-help-section button{
  width:100%;
  min-height:48px;
  margin:0;
  padding:0 14px;
  text-align:left;
  border:0;
  background:transparent;
  color:#f3f5ff;
  font-family:'Fredoka',Arial,sans-serif;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.tcw-help-body{
  display:none;
  padding:0 14px 14px;
  color:#a7b0ca;
  font-size:11px;
  line-height:1.55;
}

.tcw-help-section.is-open .tcw-help-body{
  display:block;
}

.tcw-help-body code{
  display:block;
  margin:8px 0;
  padding:9px 10px;
  overflow:auto;
  border-radius:8px;
  background:#080b16;
  color:#9eeeff;
  font-size:10px;
  white-space:pre-wrap;
}

@media (max-width:760px){
  .tcw-operator-buttons{
    top:8px;
    left:8px;
  }

  .tcw-operator-buttons button{
    min-height:34px;
    padding:0 9px;
    font-size:10px;
  }

  .tcw-operator-overlay{
    padding:0;
  }

  .tcw-operator-dialog{
    width:100vw;
    height:calc(
      100dvh - var(--tcw-mobile-nav-height,66px)
    );
    max-height:none;
    border:0;
    border-radius:0;
  }

  .tcw-operator-header{
    padding:18px 16px 14px;
  }

  .tcw-operator-title{
    font-size:21px;
  }

  .tcw-operator-content{
    padding:17px 15px 24px;
  }

  .tcw-operator-cards{
    grid-template-columns:1fr;
  }

  .tcw-operator-actions{
    flex-direction:column;
  }

  .tcw-operator-actions-group{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}