.tgdi-wrap{
  max-width:1200px;
  margin:34px auto;
  padding:0 16px 28px;
  color:#f2f2f2;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.tgdi-wrap *{box-sizing:border-box}
.tgdi-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 12px;
  border-radius:999px;
  background:linear-gradient(180deg,#C8A24A,#B8902E);
  color:#111;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.tgdi-head h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.08;
  color:#fff;
}
.tgdi-head p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:16px;
  line-height:1.65;
  max-width:980px;
}
.tgdi-panel,
.tgdi-notice{
  margin-top:18px;
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(54,54,54,.92),rgba(32,32,32,.94));
  box-shadow:0 18px 60px rgba(0,0,0,.28);
}
.tgdi-notice-ok{
  border-color:rgba(85,190,116,.28);
  background:rgba(58,151,89,.18);
}
.tgdi-notice-err{
  border-color:rgba(220,93,93,.28);
  background:rgba(176,65,65,.18);
}
.tgdi-panel h2{
  margin:0 0 8px;
  font-size:26px;
  color:#fff;
}
.tgdi-sub{
  margin:0 0 18px;
  color:rgba(255,255,255,.76);
  line-height:1.6;
}
.tgdi-info ol{
  margin:14px 0 0 18px;
  padding:0;
  display:grid;
  gap:10px;
  color:rgba(255,255,255,.86);
  line-height:1.6;
}
.tgdi-grid{
  display:grid;
  gap:16px;
}
.tgdi-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.tgdi-field{min-width:0}
.tgdi-field-wide{grid-column:1 / -1}
.tgdi-field label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  color:rgba(255,255,255,.92);
}
.tgdi-field input[type="text"],
.tgdi-field input[type="number"],
.tgdi-field input[type="file"],
.tgdi-field textarea,
.tgdi-field select{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.22);
  background:rgba(245,245,245,.94);
  color:#111;
  padding:11px 12px;
  outline:none;
  box-shadow:0 10px 22px rgba(0,0,0,.14);
  font-size:15px;
  line-height:1.35;
}
.tgdi-field textarea{min-height:140px;resize:vertical}
.tgdi-field input:focus,
.tgdi-field textarea:focus,
.tgdi-field select:focus{
  border-color:rgba(200,162,74,.95);
  box-shadow:0 0 0 4px rgba(200,162,74,.18),0 12px 26px rgba(0,0,0,.16);
}
.tgdi-help{
  margin-top:7px;
  color:rgba(255,255,255,.68);
  font-size:12px;
  line-height:1.5;
}
.tgdi-check{
  display:flex!important;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:800;
}
.tgdi-check input{accent-color:#C8A24A}
.tgdi-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.tgdi-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition:transform .14s ease,filter .14s ease;
}
.tgdi-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.tgdi-btn-gold{background:linear-gradient(180deg,#C8A24A,#B8902E);color:#111}
.tgdi-btn-ghost{background:rgba(255,255,255,.05)}
.tgdi-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.tgdi-stat{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.tgdi-stat strong{
  display:block;
  font-size:28px;
  line-height:1;
  color:#fff;
  margin-bottom:6px;
}
.tgdi-stat span{color:rgba(255,255,255,.72)}
.tgdi-list{display:grid;gap:14px}
.tgdi-item{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.tgdi-item summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
}
.tgdi-item summary::-webkit-details-marker{display:none}
.tgdi-item-summary{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
.tgdi-item-main strong{
  display:block;
  color:#fff;
  font-size:18px;
  line-height:1.3;
}
.tgdi-item-main span{
  display:block;
  margin-top:6px;
  color:rgba(255,255,255,.7);
  font-size:13px;
}
.tgdi-item-meta{display:flex;align-items:center;gap:10px}
.tgdi-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.tgdi-pill.is-active{background:linear-gradient(180deg,#C8A24A,#B8902E);color:#111}
.tgdi-pill.is-off{background:rgba(255,255,255,.1);color:#fff}
.tgdi-chevron{font-size:18px;color:rgba(255,255,255,.68)}
.tgdi-item-body{
  padding:0 18px 18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.tgdi-raw-box{
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.06);
}
.tgdi-raw-box strong{display:block;margin-bottom:8px}
.tgdi-raw-box pre{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  color:rgba(255,255,255,.82);
  font-size:12px;
  line-height:1.55;
}
.tgdi-remove-line{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:16px;
  color:#f1ca73;
  font-weight:800;
}
.tgdi-remove-line input{margin-top:4px;accent-color:#C8A24A}
.tgdi-progress[hidden]{display:none!important}
.tgdi-progress{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.tgdi-progress-bar{
  height:16px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  overflow:hidden;
}
.tgdi-progress-bar span{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#C8A24A,#B8902E);
  transition:width .2s ease;
}
.tgdi-progress.is-done .tgdi-progress-bar span{
  background:linear-gradient(90deg,#2cbf5f,#47d47c);
}
.tgdi-progress-text{
  margin-top:10px;
  color:rgba(255,255,255,.82);
  font-size:14px;
  font-weight:700;
}
.tgdi-publish-log{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.tgdi-log-line{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#fff;
}
.tgdi-log-line.is-error{
  border-color:rgba(220,93,93,.28);
  background:rgba(176,65,65,.18);
}
.tgdi-log-line.is-success{
  border-color:rgba(85,190,116,.28);
  background:rgba(58,151,89,.18);
}
@media (max-width:900px){
  .tgdi-grid-2,
  .tgdi-summary-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .tgdi-wrap{padding:0 12px 24px}
  .tgdi-head h1{font-size:28px}
  .tgdi-panel,
  .tgdi-notice{padding:18px}
  .tgdi-item summary,
  .tgdi-item-body{padding-left:14px;padding-right:14px}
  .tgdi-item-summary{align-items:flex-start}
}

.tgdi-stage-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:18px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  position:sticky;
  bottom:14px;
  backdrop-filter:blur(8px);
}
.tgdi-stage-status{
  font-weight:800;
  color:rgba(255,255,255,.78);
}
.tgdi-stage-status.is-saving{ color:#f5d487; }
.tgdi-stage-status.is-saved{ color:#9be2a9; }
.tgdi-stage-status.is-error{ color:#ffb0b0; }

.tgdi-list{ display:grid; gap:14px; }
.tgdi-item{
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  overflow:hidden;
  box-shadow:0 12px 24px rgba(0,0,0,.14);
}
.tgdi-item summary{
  list-style:none;
  cursor:pointer;
  padding:18px 20px;
}
.tgdi-item summary::-webkit-details-marker{ display:none; }
.tgdi-item[open]{ border-color:rgba(200,162,74,.35); box-shadow:0 18px 36px rgba(0,0,0,.2); }
.tgdi-item-summary{ display:flex; justify-content:space-between; align-items:center; gap:18px; }
.tgdi-item-main strong{ display:block; font-size:20px; color:#fff; margin-bottom:6px; }
.tgdi-item-main span{ color:rgba(255,255,255,.72); font-weight:700; }
.tgdi-item-meta{ display:flex; align-items:center; gap:10px; }
.tgdi-chevron{ color:#d7c090; font-size:20px; transition:transform .2s ease; }
.tgdi-item[open] .tgdi-chevron{ transform:rotate(180deg); }
.tgdi-item-body{ padding:0 20px 20px; border-top:1px solid rgba(255,255,255,.08); }
.tgdi-grid{ display:grid; gap:14px; }
.tgdi-grid-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.tgdi-field{ min-width:0; }
.tgdi-field-wide{ grid-column:1 / -1; }
.tgdi-field label{ display:block; margin:0 0 8px; font-size:13px; font-weight:900; color:rgba(255,255,255,.92); }
.tgdi-field input[type="text"],
.tgdi-field input[type="number"],
.tgdi-field textarea,
.tgdi-field select{
  width:100%; min-height:48px; border-radius:14px; border:1px solid rgba(0,0,0,.22); background:rgba(245,245,245,.92); color:#111; padding:11px 12px; font-size:15px;
}
.tgdi-field textarea{ min-height:120px; resize:vertical; }
.tgdi-check{ display:flex; align-items:center; gap:10px; min-height:48px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:#fff; font-weight:800; }
.tgdi-check input{ accent-color:#C8A24A; }
.tgdi-pill{ display:inline-flex; min-height:28px; align-items:center; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:900; }
.tgdi-pill.is-active{ background:linear-gradient(180deg,#C8A24A,#B8902E); color:#111; }
.tgdi-pill.is-off{ background:rgba(255,255,255,.08); color:#fff; }
.tgdi-raw-box{ margin-top:16px; padding:14px 16px; border-radius:16px; border:1px solid rgba(255,255,255,.1); background:rgba(0,0,0,.18); }
.tgdi-raw-box strong{ display:block; margin-bottom:8px; color:#f3d27c; }
.tgdi-raw-box pre{ margin:0; max-height:220px; overflow:auto; background:rgba(255,255,255,.05); border-radius:12px; padding:12px; color:rgba(255,255,255,.82); }
.tgdi-remove-line{ display:flex; align-items:center; gap:10px; margin-top:14px; color:#f5d487; font-weight:800; }
.tgdi-remove-line input{ accent-color:#C8A24A; }
.tgdi-publish-box{ position:sticky; bottom:14px; }
.tgdi-progress{ margin:14px 0; padding:14px 16px; border-radius:16px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); }
.tgdi-progress.is-done{ border-color:rgba(85,190,116,.35); }
.tgdi-progress-bar{ width:100%; height:12px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.08); }
.tgdi-progress-bar span{ display:block; height:100%; width:0; background:linear-gradient(180deg,#C8A24A,#B8902E); transition:width .2s ease; }
.tgdi-progress.is-done .tgdi-progress-bar span{ background:linear-gradient(180deg,#4caf72,#2e8e54); }
.tgdi-progress-text{ margin-top:8px; color:rgba(255,255,255,.8); font-weight:800; }
.tgdi-publish-log{ display:grid; gap:8px; margin:14px 0; }
.tgdi-log-line{ padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.04); color:#fff; font-weight:700; }
.tgdi-log-line.is-error{ background:rgba(176,65,65,.18); border:1px solid rgba(220,93,93,.28); }
.tgdi-log-line.is-success{ background:rgba(58,151,89,.18); border:1px solid rgba(85,190,116,.28); }
.tgdi-item.is-removing{ opacity:.5; }
@media (max-width:900px){
  .tgdi-grid-2{ grid-template-columns:1fr; }
  .tgdi-stage-toolbar,.tgdi-item-summary{ flex-direction:column; align-items:flex-start; }
  .tgdi-item-meta{ width:100%; justify-content:space-between; }
}

.tgdi-hero{overflow:hidden}
.tgdi-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px;align-items:center}
.tgdi-hero-copy h2{font-size:32px;margin-bottom:10px}
.tgdi-hero-copy p{margin:0 0 18px;color:rgba(255,255,255,.82);line-height:1.7;font-size:15px}
.tgdi-hero-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tgdi-hero-card{padding:16px;border-radius:18px;border:1px solid rgba(200,162,74,.18);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03))}
.tgdi-hero-card strong{display:block;color:#fff;font-size:16px;margin-bottom:6px}
.tgdi-hero-card span{display:block;color:rgba(255,255,255,.74);line-height:1.6;font-size:14px}
.tgdi-hero-media{position:relative}
.tgdi-hero-media:before{content:'';position:absolute;inset:-18px;background:radial-gradient(circle at center,rgba(200,162,74,.2),transparent 65%);filter:blur(16px)}
.tgdi-hero-media img{position:relative;display:block;width:100%;border-radius:22px;border:1px solid rgba(200,162,74,.22);box-shadow:0 24px 64px rgba(0,0,0,.32)}
.tgdi-stage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding:16px 18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.tgdi-stage-status{color:rgba(255,255,255,.78);font-weight:800}
.tgdi-stage-status.is-saving{color:#f1ca73}.tgdi-stage-status.is-saved{color:#98e0ae}.tgdi-stage-status.is-error{color:#ffb1b1}
.tgdi-item.is-removing{opacity:.55;border-color:rgba(220,93,93,.38)}
.tgdi-item.is-removing .tgdi-item-body{filter:saturate(.75)}
.tgdi-remove-line{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.tgdi-publish-log{display:grid;gap:10px;margin-top:14px}
.tgdi-log-line{padding:12px 14px;border-radius:14px;font-weight:700}
.tgdi-log-line.is-success{background:rgba(58,151,89,.18);border:1px solid rgba(85,190,116,.24);color:#e9ffef}
.tgdi-log-line.is-error{background:rgba(176,65,65,.18);border:1px solid rgba(220,93,93,.24);color:#fff2f2}
@media (max-width:980px){.tgdi-hero-grid{grid-template-columns:1fr}.tgdi-hero-cards{grid-template-columns:1fr}.tgdi-summary-grid{grid-template-columns:1fr}.tgdi-stage-toolbar{flex-direction:column;align-items:flex-start}}
