/* Choose Life CMS — enterprise layout (Zoho-inspired) */

:root {
  --zg-brand: #7c1fa0;
  --zg-brand-hover: #661a85;
  --zg-brand-soft: #f3e8f8;
  --zg-sidebar: #1a2332;
  --zg-sidebar-hover: #243044;
  --zg-sidebar-active: #2d3d56;
  --zg-sidebar-text: #e8edf4;
  --zg-sidebar-muted: #8b9cb3;
  --zg-bg: #eef1f6;
  --zg-surface: #ffffff;
  --zg-border: #d8dee8;
  --zg-border-light: #e8ecf2;
  --zg-text: #1a2332;
  --zg-muted: #5f6d82;
  --zg-success: #0d7a3e;
  --zg-success-bg: #e8f5ee;
  --zg-warn: #b45309;
  --zg-warn-bg: #fff7ed;
  --zg-danger: #c41e3a;
  --zg-danger-bg: #fef2f4;
  --zg-radius: 8px;
  --zg-radius-lg: 12px;
  --zg-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
  --zg-shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);
  --zg-sidebar-w: 260px;
  --zg-topbar-h: 56px;
  --zg-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zg-mono: ui-monospace, "Cascadia Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body.zg-app {
  font-family: var(--zg-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--zg-text);
  background: var(--zg-bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Auth ── */
.zg-auth {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a2332 0%, #2a1540 50%, #1a2332 100%);
  padding: 24px;
}

.zg-auth[hidden] {
  display: none !important;
}

.zg-auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  background: var(--zg-surface);
  border-radius: var(--zg-radius-lg);
  box-shadow: var(--zg-shadow-md);
}

.zg-auth-logo {
  display: block;
  margin: 0 auto 20px;
}

.zg-auth-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.zg-auth-sub,
.zg-auth-foot {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--zg-muted);
  text-align: center;
}

.zg-auth-foot {
  margin: 16px 0 0;
  font-size: 0.75rem;
}

.zg-auth-error {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--zg-danger);
}

.zg-auth-error[hidden] {
  display: none;
}

.zg-auth-card .zg-label {
  margin-top: 14px;
  text-align: center;
}

.zg-auth-card .zg-input {
  display: block;
  width: 100%;
  height: 44px;
  text-align: center;
}

.zg-auth-card .zg-btn--block {
  height: 44px;
  margin-top: 18px;
}

/* ── App shell ── */
.zg-app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.zg-app-shell[hidden] {
  display: none !important;
}

/* ── Sidebar ── */
.zg-sidebar {
  width: var(--zg-sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: var(--zg-sidebar);
  color: var(--zg-sidebar-text);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.zg-sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zg-sidebar-brand img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.zg-sidebar-product {
  display: block;
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zg-sidebar-muted);
}

.zg-sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 8px;
  padding: 0 10px;
  height: 36px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--zg-radius);
}

.zg-sidebar-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--zg-sidebar-text);
  font: inherit;
  font-size: 0.8125rem;
  outline: none;
}

.zg-sidebar-search input::placeholder {
  color: var(--zg-sidebar-muted);
}

.zg-sidebar-search .zg-icon {
  color: var(--zg-sidebar-muted);
  flex-shrink: 0;
}

.zg-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 16px;
}

.zg-nav-group {
  margin-top: 12px;
}

.zg-nav-group:first-child {
  margin-top: 4px;
}

.zg-nav-group-title {
  padding: 8px 10px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zg-sidebar-muted);
}

.zg-nav-group.zg-nav-empty {
  display: none;
}

.zg-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 2px;
  border: none;
  border-radius: var(--zg-radius);
  background: transparent;
  color: var(--zg-sidebar-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.zg-nav-item:hover {
  background: var(--zg-sidebar-hover);
}

.zg-nav-item.is-active {
  background: var(--zg-sidebar-active);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--zg-brand);
}

.zg-nav-item.zg-nav-hidden {
  display: none;
}

.zg-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #d5deea;
  flex-shrink: 0;
}

.zg-nav-icon .zg-mark,
.zg-overview-icon .zg-mark,
.audio-drop-icon .zg-mark {
  display: block;
  width: 16px;
  height: 16px;
}

.zg-nav-item.is-active .zg-nav-icon {
  background: rgba(124, 31, 160, 0.45);
  color: #fff;
}

.zg-sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  color: var(--zg-sidebar-muted);
  line-height: 1.45;
}

.zg-sidebar-stat {
  font-weight: 600;
  color: var(--zg-sidebar-text);
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.zg-sidebar-backdrop {
  display: none;
}

/* ── Main column ── */
.zg-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--zg-bg);
}

.zg-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--zg-topbar-h);
  padding: 0 20px;
  background: var(--zg-surface);
  border-bottom: 1px solid var(--zg-border);
  flex-shrink: 0;
}

.zg-topbar-menu {
  display: none;
}

.zg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  min-width: 0;
}

.zg-breadcrumb-root {
  color: var(--zg-muted);
  font-weight: 500;
}

.zg-breadcrumb-sep {
  color: var(--zg-border);
}

.zg-breadcrumb-group {
  color: var(--zg-muted);
}

.zg-breadcrumb-current {
  font-weight: 600;
  color: var(--zg-text);
}

.zg-topbar-spacer {
  flex: 1;
}

.zg-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--zg-success-bg);
  color: var(--zg-success);
}

.zg-badge[data-state="dirty"] {
  background: var(--zg-warn-bg);
  color: var(--zg-warn);
}

.zg-badge[data-state="error"] {
  background: var(--zg-danger-bg);
  color: var(--zg-danger);
}

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

.zg-label-inline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zg-muted);
  margin-right: -4px;
}

/* ── Buttons & inputs ── */
.zg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  background: var(--zg-surface);
  color: var(--zg-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.zg-btn:hover {
  background: #f8f9fb;
  border-color: #c5cdd8;
}

.zg-btn--primary {
  background: var(--zg-brand);
  border-color: var(--zg-brand);
  color: #fff;
}

.zg-btn--primary:hover {
  background: var(--zg-brand-hover);
  border-color: var(--zg-brand-hover);
}

.zg-btn--secondary {
  background: #f4f6f9;
}

.zg-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.zg-btn--ghost:hover {
  background: #f0f2f6;
}

.zg-btn--sm {
  height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.zg-btn--block {
  width: 100%;
  margin-top: 6px;
}

.zg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  background: var(--zg-surface);
  color: var(--zg-text);
  cursor: pointer;
}

.zg-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  background: var(--zg-surface);
  font: inherit;
  font-size: 0.8125rem;
  color: var(--zg-text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.zg-input:focus {
  border-color: var(--zg-brand);
  box-shadow: 0 0 0 3px var(--zg-brand-soft);
}

.zg-input--sm {
  height: 32px;
  font-size: 0.75rem;
}

.zg-input--token {
  width: 120px;
}

.zg-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zg-muted);
}

.zg-file-label {
  cursor: pointer;
}

/* Dropdown */
.zg-dropdown {
  position: relative;
}

.zg-dropdown > summary {
  list-style: none;
}

.zg-dropdown > summary::-webkit-details-marker {
  display: none;
}

.zg-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: min(320px, 90vw);
  padding: 14px;
  background: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-lg);
  box-shadow: var(--zg-shadow-md);
}

.zg-dropdown-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.zg-dropdown-row .zg-btn {
  flex: 1;
}

/* ── Workspace ── */
.zg-workspace {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 48px;
}

.zg-page-header {
  margin-bottom: 20px;
}

.zg-page-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.zg-page-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--zg-muted);
  max-width: 56ch;
}

/* Toast */
.zg-toast {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--zg-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--zg-border);
  background: #f4f6f9;
  color: var(--zg-text);
}

.zg-toast[hidden] {
  display: none !important;
}

.zg-toast.is-ok {
  background: var(--zg-success-bg);
  border-color: #b8e6cc;
  color: var(--zg-success);
}

.zg-toast.is-err {
  background: var(--zg-danger-bg);
  border-color: #f5c6ce;
  color: var(--zg-danger);
}

/* ── Panels ── */
.zg-panels {
  position: relative;
}

.zg-panel {
  display: none;
}

.zg-panel.is-active {
  display: block;
  animation: zgFade 0.2s ease;
}

@keyframes zgFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zg-card {
  background: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-lg);
  box-shadow: var(--zg-shadow);
  padding: 24px 28px;
}

.zg-card + .zg-card {
  margin-top: 16px;
}

.zg-editor-layout .zg-card {
  margin-bottom: 0;
}

.zg-preview-missing {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--zg-radius);
  background: var(--zg-warn-bg);
  border: 1px solid #fed7aa;
  color: var(--zg-warn);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.zg-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.zg-card-desc {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: var(--zg-muted);
}

/* Overview grid */
.zg-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.zg-overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-lg);
  background: var(--zg-surface);
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  font: inherit;
  color: inherit;
}

.zg-overview-card:hover {
  border-color: var(--zg-brand);
  box-shadow: var(--zg-shadow-md);
}

.zg-overview-card strong {
  font-size: 0.875rem;
}

.zg-overview-card span {
  font-size: 0.75rem;
  color: var(--zg-muted);
}

.zg-overview-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--zg-brand-soft);
  color: var(--zg-brand);
}

.zg-overview-icon .zg-mark {
  width: 18px;
  height: 18px;
}

/* Form grid */
.zg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zg-text);
}

.field .hint {
  font-size: 0.75rem;
  color: var(--zg-muted);
  line-height: 1.4;
  order: 3;
  margin-top: -2px;
}

.field input[type="text"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  font: inherit;
  font-size: 0.8125rem;
  color: var(--zg-text);
  background: #fafbfc;
  resize: vertical;
  min-height: 40px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.field textarea {
  min-height: 88px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--zg-brand);
  box-shadow: 0 0 0 3px var(--zg-brand-soft);
  background: #fff;
}

.field--full {
  grid-column: 1 / -1;
}

.field-audio-module {
  grid-column: 1 / -1;
}

/* Audio module */
.audio-module {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f8f9fb;
  border: 1px dashed var(--zg-border);
  border-radius: var(--zg-radius);
}

.audio-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 100px;
  padding: 16px;
  border: 2px dashed var(--zg-border);
  border-radius: var(--zg-radius);
  background: var(--zg-surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.audio-drop:hover,
.audio-drop.is-dragover {
  border-color: var(--zg-brand);
  background: var(--zg-brand-soft);
}

.audio-drop-icon {
  display: grid;
  place-items: center;
  color: var(--zg-brand);
}

.audio-drop-icon .zg-mark {
  width: 22px;
  height: 22px;
}

.audio-drop-text {
  font-size: 0.8125rem;
  font-weight: 500;
}

.audio-drop-meta {
  font-size: 0.6875rem;
  color: var(--zg-muted);
}

.audio-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.audio-url-input {
  font-family: var(--zg-mono);
  font-size: 0.75rem;
}

.audio-preview {
  width: 100%;
  height: 36px;
}

.audio-preview[hidden] {
  display: none;
}

.audio-upload-status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--zg-muted);
}

.audio-upload-status.is-ok {
  color: var(--zg-success);
}
.audio-upload-status.is-err {
  color: var(--zg-danger);
}
.audio-upload-status.is-busy {
  color: var(--zg-brand);
}

.emo-questions-editor {
  font-family: var(--zg-mono);
  font-size: 0.75rem;
  min-height: 160px !important;
}

/* Flow steps */
.steps-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--zg-border-light);
}

.steps-toolbar-search {
  flex: 1;
  min-width: 180px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  font: inherit;
  font-size: 0.8125rem;
}

.steps-toolbar button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  background: var(--zg-surface);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.steps-toolbar button:hover {
  background: #f4f6f9;
}

#stepsWrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.step {
  border: 1px solid var(--zg-border-light);
  border-radius: var(--zg-radius);
  background: #fafbfc;
  overflow: hidden;
}

details.step summary {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details.step summary::-webkit-details-marker {
  display: none;
}

details.step[open] summary {
  border-bottom: 1px solid var(--zg-border-light);
  background: var(--zg-surface);
}

details.step .zg-form-grid {
  padding: 16px;
}

/* Flow builder */
.flow-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--zg-border-light);
}

.flow-add-select {
  flex: 1;
  min-width: 200px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  font: inherit;
  font-size: 0.8125rem;
  background: #fff;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fafbfc;
  border: 1px solid var(--zg-border-light);
  border-radius: var(--zg-radius-lg);
  transition: box-shadow 0.15s, border-color 0.15s, opacity 0.15s;
}

.flow-row.is-dragging {
  opacity: 0.45;
  box-shadow: var(--zg-shadow-md);
}

.flow-row.is-drop-target {
  border-color: var(--zg-brand);
  box-shadow: 0 0 0 2px var(--zg-brand-soft);
}

.flow-row.is-disabled {
  opacity: 0.55;
}

.flow-row-handle {
  cursor: grab;
  color: var(--zg-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 2px;
  user-select: none;
}

.flow-row-main {
  flex: 1;
  min-width: 0;
}

.flow-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-row-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zg-brand);
  background: var(--zg-brand-soft);
  border-radius: 6px;
}

.flow-label-input {
  flex: 1;
  min-width: 140px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  font: inherit;
  font-size: 0.8125rem;
}

.flow-row-badge {
  font-size: 0.6875rem;
  font-family: var(--zg-mono);
  color: var(--zg-muted);
  background: #eef1f6;
  padding: 3px 8px;
  border-radius: 4px;
}

.flow-enabled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zg-muted);
  cursor: pointer;
}

.flow-branching {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-branch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-branch-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zg-muted);
  min-width: 140px;
}

.flow-branch-row select {
  flex: 1;
  min-width: 160px;
  height: 32px;
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius);
  font-size: 0.75rem;
}

.flow-content-details {
  margin-top: 12px;
  border-top: 1px dashed var(--zg-border);
  padding-top: 10px;
}

.flow-content-details summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zg-brand);
  user-select: none;
}

.flow-content-details .zg-form-grid {
  margin-top: 12px;
}

.flow-remove {
  flex-shrink: 0;
  min-width: 36px;
  padding: 0 8px;
  color: var(--zg-danger);
}

.zg-overview-card--featured {
  border-color: var(--zg-brand);
  background: linear-gradient(145deg, #fff 0%, var(--zg-brand-soft) 100%);
}

/* Responsive */
@media (max-width: 900px) {
  .zg-form-grid {
    grid-template-columns: 1fr;
  }

  .zg-input--token {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .zg-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--zg-shadow-md);
  }

  body.zg-sidebar-open .zg-sidebar {
    transform: translateX(0);
  }

  body.zg-sidebar-open .zg-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(26, 35, 50, 0.45);
  }

  .zg-topbar-menu {
    display: inline-flex;
  }

  .zg-topbar-actions {
    gap: 6px;
  }

  .zg-label-inline {
    display: none;
  }

  .zg-workspace {
    padding: 16px;
  }
}
