:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f3ef;
  --code: #fbfaf8;
  --line: rgba(0, 0, 0, .12);
  --text: #111827;
  --sub: #856259;
  --muted: #667085;
  --primary: #fa9403;
  --primary-strong: #cf6d00;
  --ok: #16a34a;
}

html[data-theme="dark"] {
  --bg: #000000;
  --surface: #090909;
  --surface-soft: #141414;
  --code: #151515;
  --line: rgba(255, 255, 255, .16);
  --text: #e5e7eb;
  --sub: #d9b8a0;
  --muted: #9ca3af;
  --primary: #fa9403;
  --primary-strong: #ffb24a;
  --ok: #4ade80;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.dt-topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.dt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dt-logo {
  display: block;
}

.dt-title {
  color: var(--sub);
  font-weight: 700;
}

.dt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

button,
.dt-secondary-btn,
input,
textarea {
  font: inherit;
}

button,
.dt-secondary-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.dt-secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dt-main {
  width: 100%;
  margin: 18px 0;
  padding: 0 14px 40px;
}

.wb-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: start;
}

.wb-stage,
.wb-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.wb-stage {
  padding: 14px;
}

.wb-panel {
  padding: 14px;
}

.dt-logotop {
  width: 500px;
  max-width: 100%;
  height: auto;
  display: block;
}

.wb-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 72%, white), var(--surface));
  border: 1px solid var(--line);
}

.wb-hero h1,
.wb-panel h1,
.wb-panel h2,
.wb-card-head h2 {
  margin: 0 0 8px;
  color: var(--sub);
  font-weight: 600;
}

.wb-panel h2 {
  margin-top: 16px;
}

.wb-hero p,
.wb-card-head p,
.wb-panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wb-badge {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(250, 148, 3, .12);
  font-weight: 800;
  white-space: nowrap;
}

.wb-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}

.wb-card + .wb-card {
  margin-top: 14px;
}

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

.wb-summary-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.wb-summary-item .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wb-summary-item .value {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}

label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--code);
}

textarea {
  resize: vertical;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wb-inline-actions,
.wb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wb-meta {
  margin-top: 12px;
}

.wb-meta ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.wb-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--ok);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .wb-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dt-topbar,
  .wb-hero {
    display: block;
  }

  .dt-actions {
    margin-top: 12px;
  }

  .wb-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .wb-summary-grid {
    grid-template-columns: 1fr;
  }
}
