@font-face {
  font-family: "Proxima Nova";
  src: url("./assets/fonts/proximanova_light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("./assets/fonts/proximanova_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("./assets/fonts/proximanova_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="light"] {
  --wbs-blue: #004e9e;
  --wbs-blue-dark: #003875;
  --bg: #f4f4f5;
  --panel: #ffffff;
  --panel-alt: #f4f4f5;
  --preview-bg: #e4e4e7;
  --border: #e4e4e7;
  --input-border: #e4e4e7;
  --ring: #a1a1aa;
  --text: #09090b;
  --muted: #71717a;
  --primary: #18181b;
  --primary-fg: #fafafa;
  --secondary: #f4f4f5;
  --secondary-fg: #18181b;
  --accent: #f4f4f5;
  --destructive: #ef4444;
  --destructive-fg: #fafafa;
  --warn-bg: #fef3c7;
  --warn-border: #d97706;
  --warn-text: #92400e;
  --radius: 8px;
}

[data-theme="dark"] {
  --wbs-blue: #004e9e;
  --wbs-blue-dark: #003875;
  --bg: #09090b;
  --panel: #09090b;
  --panel-alt: #18181b;
  --preview-bg: #040405;
  --border: #27272a;
  --input-border: #27272a;
  --ring: #d4d4d8;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #fafafa;
  --primary-fg: #18181b;
  --secondary: #27272a;
  --secondary-fg: #fafafa;
  --accent: #27272a;
  --destructive: #dc2626;
  --destructive-fg: #fafafa;
  --warn-bg: #451a03;
  --warn-border: #d97706;
  --warn-text: #fde68a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Proxima Nova", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--wbs-blue);
  color: #ffffff;
  border-bottom: 1px solid var(--wbs-blue-dark);
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-app-logo {
  height: 40px;
  width: 40px;
  display: block;
  flex-shrink: 0;
}

.topbar-logo-divider {
  display: block;
  width: 2px;
  height: 40px;
  background: #ffffff;
  flex-shrink: 0;
}

.topbar-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.topbar-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.topbar-title span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ui-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.ui-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ui-btn-brand {
  background: var(--wbs-blue);
  color: #ffffff;
}

.ui-btn-brand:hover:not(:disabled) {
  background: var(--wbs-blue-dark);
}

.ui-btn-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
}

.ui-btn-secondary:hover:not(:disabled) {
  opacity: 0.88;
}

.ui-btn-outline {
  background: var(--panel);
  color: var(--text);
  border-color: var(--input-border);
}

.ui-btn-outline:hover:not(:disabled) {
  background: var(--accent);
}

.ui-btn-outline-danger {
  background: var(--panel);
  color: var(--destructive);
  border-color: var(--input-border);
}

.ui-btn-outline-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

.ui-btn-ghost {
  background: transparent;
  color: var(--text);
}

.ui-btn-ghost:hover:not(:disabled) {
  background: var(--accent);
}

.ui-btn-destructive {
  background: var(--destructive);
  color: var(--destructive-fg);
}

.ui-btn-destructive:hover:not(:disabled) {
  opacity: 0.9;
}

.ui-btn-icon-ghost {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.ui-btn-icon-ghost:hover:not(:disabled) {
  background: var(--accent);
  color: var(--text);
}

.ui-btn-danger-icon:hover:not(:disabled) {
  color: var(--destructive);
  background: rgba(239, 68, 68, 0.1);
}

.ui-btn-header-primary {
  background: #ffffff;
  color: var(--wbs-blue);
  font-weight: 600;
}

.ui-btn-header-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.ui-btn-header-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.ui-btn-header-secondary:hover:not(:disabled) {
  background: var(--wbs-blue-dark);
}

.ui-btn-header-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
}

.ui-btn-header-icon:hover:not(:disabled) {
  background: var(--wbs-blue-dark);
}

.tabs-bar {
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}

.ui-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--muted-surface, var(--panel-alt));
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
}

.ui-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ui-tab:hover {
  color: var(--text);
}

.ui-tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--editor-width, 50%) 6px minmax(0, 1fr);
  overflow: hidden;
}

.workspace-splitter {
  position: relative;
  width: 6px;
  cursor: col-resize;
  background: var(--border);
  transition: background-color 0.15s ease;
  touch-action: none;
  user-select: none;
}

.workspace-splitter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 36px;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.45;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.workspace-splitter:hover,
.workspace-splitter.dragging,
.workspace-splitter:focus-visible {
  background: var(--wbs-blue);
  outline: none;
}

.workspace-splitter:hover::after,
.workspace-splitter.dragging::after,
.workspace-splitter:focus-visible::after {
  background: #ffffff;
  opacity: 0.95;
}

body.is-resizing-workspace {
  cursor: col-resize;
  user-select: none;
}

@media (max-width: 960px) {
  body {
    height: auto;
    overflow: auto;
  }
  .workspace {
    grid-template-columns: 1fr;
    flex: none;
    overflow: visible;
  }
  .workspace-splitter {
    display: none;
  }
  .preview-pane {
    height: 75vh;
  }
}

.editor-pane {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-pane {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--preview-bg);
  padding: 8px 12px;
  gap: 6px;
}

.preview-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.preview-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.preview-mode-btn:hover {
  color: var(--text);
}

.preview-mode-btn.active {
  background: var(--wbs-blue);
  color: #ffffff;
}

.preview-status {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: var(--preview-stage-width, 100%);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.preview-stage.is-fit-width {
  width: 100%;
  padding-right: 12px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  justify-content: center;
}

.preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transition: opacity 0.14s ease;
}

.preview-stage.is-fit-width .preview-canvas {
  width: 100%;
  height: auto;
  max-height: none;
}

.alert-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  display: none;
}

.alert-warn.visible {
  display: block;
}

details.card {
  position: relative;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

details.card[open]:focus-within {
  z-index: 30;
}

details.card > summary {
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  background: var(--panel);
  border-radius: var(--radius);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.card[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--border);
  color: var(--wbs-blue);
}

[data-theme="dark"] details.card[open] > summary {
  color: #93c5fd;
}

details.card > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

details.card[open] > summary::after {
  content: "−";
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.ui-field.full {
  grid-column: 1 / -1;
}

.ui-label {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.25;
}

.ui-input,
.ui-select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ui-textarea {
  height: auto;
  min-height: 36px;
  padding: 7px 11px;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

.ui-input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.ui-input:focus,
.ui-select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(0, 78, 158, 0.18);
}

.ui-select:disabled,
.ui-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.ui-switch {
  appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--input-border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ui-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.ui-switch:checked {
  background: var(--wbs-blue);
}

.ui-switch:checked::after {
  transform: translateX(18px);
}

.ui-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.list-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.list-item .ui-field {
  flex: 1;
  min-width: 0;
}

.list-item-with-sub {
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-alt);
}

.list-item-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.list-item-fields .ui-field {
  width: 100%;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--panel-alt);
}

.logo-box img {
  max-height: 30px;
  max-width: 100px;
  background: var(--wbs-blue);
  padding: 4px 8px;
  border-radius: 6px;
  object-fit: contain;
}

.icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.topbar-menu-wrap,
.profile-wrap {
  position: relative;
}

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 215px;
  padding: 6px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.topbar-dropdown-item:hover,
.topbar-dropdown-item:focus-visible {
  background: rgba(0, 78, 158, 0.1);
  color: var(--wbs-blue);
  outline: none;
}

[data-theme="dark"] .topbar-dropdown-item:hover,
[data-theme="dark"] .topbar-dropdown-item:focus-visible {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

.topbar-dropdown-item.danger:hover,
.topbar-dropdown-item.danger:focus-visible {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}

.topbar-dropdown-item.danger {
  color: var(--destructive);
}

.topbar-dropdown-sep {
  height: 1px;
  margin: 5px 4px;
  background: var(--border);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 48px;
  padding: 6px 16px 6px 0;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease;
}

.profile-chip:hover,
.profile-chip:focus-visible {
  background: var(--wbs-blue-dark);
  outline: none;
}

.profile-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .profile-avatar {
  background: #27272a;
  color: #fafafa;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-meta {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .profile-meta {
    display: flex;
  }
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-job-title {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2px;
  opacity: 0.9;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu {
  width: 256px;
  margin-top: 2px;
  border-radius: 6px;
  padding: 4px;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.profile-menu-info {
  min-width: 0;
}

.profile-menu-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
}

.profile-menu-email {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-word;
}

.profile-menu-job-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-word;
}

.profile-logout-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.directory-status {
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.directory-status.ok {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--text);
}

.directory-status.error {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.autocomplete-field {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 220px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  padding: 4px;
}

.autocomplete-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item:focus-visible {
  background: var(--accent);
  outline: none;
}

.autocomplete-item-title {
  font-size: 13px;
  font-weight: 600;
}

.autocomplete-item-sub {
  font-size: 11px;
  color: var(--muted);
}

.preset-empty-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.32);
}

.preset-dialog-sm {
  width: min(420px, calc(100vw - 32px));
}

.preset-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.preset-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 42px);
}

.preset-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.preset-dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.preset-dialog-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.preset-dialog-close:hover {
  background: var(--panel-alt);
  color: var(--text);
}

.preset-dialog-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.preset-tasks-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-modal-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-task-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.preset-task-row .ui-field {
  flex: 1;
}

.preset-task-remove {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.preset-task-remove:hover:not(:disabled) {
  color: var(--destructive);
  border-color: var(--destructive);
}

.preset-task-remove:disabled {
  opacity: 0.4;
  cursor: default;
}

.preset-modal-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--destructive);
}

.preset-confirm-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.config-status-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.config-status-hint.error {
  color: var(--destructive);
}

.config-overwrite-warn {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.preset-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}

.hidden {
  display: none !important;
}
