/* GIF editor dashboard. Page chrome only. Does not restyle the site header. */

body.is-fullscreen .fs-workspace.gdash-fs {
  display: block;
  min-height: 0;
  border: 0;
  background: #f4f7fc;
  padding: 14px 20px 32px;
}

body:has(.gdash-fs) .fs-chrome { display: none; }

.gdash-app {
  --gd-ink: #172554;
  --gd-body: #3d4d6a;
  --gd-muted: #64748b;
  --gd-card: #fff;
  --gd-line: #e4ebf5;
  --gd-soft: #f3f6fb;
  --gd-blue: #2f6fed;
  --gd-blue-soft: #e8f0ff;
  --gd-blue-deep: #1d4ed8;
  position: relative;
  box-sizing: border-box;
  width: min(1360px, 100%);
  margin: 0 auto;
  color: var(--gd-body);
  font-size: 15px;
  line-height: 1.45;
}

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

.gdash-app p,
.gdash-app h1,
.gdash-app h2,
.gdash-app ul,
.gdash-app ol,
.gdash-app dl,
.gdash-app dd,
.gdash-app dt { margin: 0; text-align: left; }

.gdash-app ul,
.gdash-app ol,
.gdash-app li { padding: 0; list-style: none; }

.article .gdash-app li::before,
.thecontent .gdash-app li::before { content: none; }

.gdash-app button,
.gdash-app input,
.gdash-app select { font: inherit; color: inherit; }

.gdash-app svg { display: block; max-width: none; flex: none; }

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

.gdash-sr,
.gdash-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gdash-file { opacity: 0; pointer-events: none; }

.gdash-crumbs { margin: 0 0 14px; }

.gdash-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  color: var(--gd-muted);
  font-size: 0.84rem;
}

.gdash-crumbs li { display: inline-flex; align-items: center; }

.article .gdash-app .gdash-crumbs li + li::before,
.gdash-app .gdash-crumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: #94a3b8;
  font-weight: 600;
}

.gdash-crumbs a {
  display: inline-flex;
  align-items: center;
  color: var(--gd-muted);
  text-decoration: none;
}

.gdash-crumbs a:hover { color: var(--gd-blue); }

.gdash-crumbs [aria-current="page"] {
  color: var(--gd-ink);
  font-weight: 700;
}

.gdash-crumbs .gdash-home svg { width: 16px; height: 16px; }

.gdash-hero {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 16px;
}

.gdash-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.gdash-hero-ico,
.gdash-perk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--gd-blue-soft);
  color: var(--gd-blue);
}

.gdash-hero-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.gdash-hero-ico.is-crop { background: #ffe8ea; color: #e11d48; }
.gdash-hero-ico.is-speed { background: #e8f0ff; color: #2f6fed; }
.gdash-hero-ico.is-reverse { background: #f3edff; color: #7c3aed; }
.gdash-hero-ico.is-frames { background: #e7f8ee; color: #15803d; }
.gdash-hero-ico.is-video { background: #e8f0ff; color: #2f6fed; }

.gdash-hero-ico svg { width: 28px; height: 28px; }

.article .gdash-app h1.gdash-title,
.gdash-app h1.gdash-title {
  margin: 0 !important;
  color: var(--gd-ink);
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
}

.gdash-lede {
  margin-top: 6px !important;
  color: #5b6b88;
  font-size: 0.98rem;
}

.gdash-app .gdash-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 0 0 0 auto;
  padding: 0;
}

.gdash-perks li { display: flex; align-items: center; gap: 10px; }
.gdash-perk-ico { width: 46px; height: 46px; border-radius: 50%; }
.gdash-perk-ico svg { width: 20px; height: 20px; }
.gdash-perks strong,
.gdash-perks span span { display: block; }
.gdash-perks strong { color: var(--gd-ink); font-size: 0.95rem; line-height: 1.2; }
.gdash-perks span span { color: var(--gd-muted); font-size: 0.78rem; font-weight: 500; }

.gdash-grid {
  display: grid;
  grid-template-columns: minmax(248px, 290px) minmax(0, 1fr) minmax(228px, 270px);
  gap: 16px;
  align-items: start;
}

.gdash-card {
  background: var(--gd-card);
  border: 1px solid var(--gd-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(23, 37, 84, 0.045);
  min-width: 0;
}

.gdash-options,
.gdash-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gdash-options { gap: 12px; }

.gdash-block { display: flex; flex-direction: column; gap: 8px; }
.gdash-block + .gdash-block { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--gd-line); }

.article .gdash-app h2.gdash-step,
.gdash-app h2.gdash-step,
.article .gdash-app h2.gdash-card-title,
.gdash-app h2.gdash-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--gd-ink);
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.gdash-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gd-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.gdash-hint {
  color: var(--gd-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.gdash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--gd-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.gdash-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gdash-app .gdash-field input,
.gdash-app .gdash-field select,
.gdash-app .gdash-field textarea {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d5deec;
  border-radius: 10px;
  background: #fff;
  color: var(--gd-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.gdash-app .gdash-field textarea { height: auto; min-height: 42px; padding: 10px 12px; font-weight: 600; }

.gdash-app .gdash-field input:focus,
.gdash-app .gdash-field select:focus,
.gdash-app .gdash-field textarea:focus {
  outline: 2px solid rgba(47, 111, 237, 0.35);
  border-color: var(--gd-blue);
}

.gdash-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gd-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.gdash-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gd-blue); }

.gdash-presets { display: flex; flex-direction: column; gap: 8px; }

.gdash-app button.gdash-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  background: #fff;
  color: var(--gd-ink);
  text-align: left;
  cursor: pointer;
}

.gdash-app button.gdash-preset strong { font-size: 0.9rem; }
.gdash-app button.gdash-preset span { color: var(--gd-muted); font-size: 0.78rem; font-weight: 600; }

.gdash-app button.gdash-preset.is-selected,
.gdash-app button.gdash-preset[aria-pressed="true"] {
  border-color: var(--gd-blue);
  background: var(--gd-blue-soft);
}

.gdash-app .mstudio-status {
  min-height: 0;
  color: var(--gd-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.gdash-app .mstudio-status:empty { display: none; }
.gdash-app .mstudio-status.is-error { color: #b91c1c; }
.gdash-app .mstudio-status.is-ok { color: #15803d; }
.gdash-app .mstudio-status.is-loading { color: var(--gd-blue); }

.gdash-progress { margin-top: 4px; }

.gdash-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eefb;
}

.gdash-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gd-blue);
}

.gdash-app button.gdash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--gd-soft);
  color: var(--gd-ink);
  font-weight: 800;
  cursor: pointer;
}

.gdash-app button.gdash-btn svg { width: 18px; height: 18px; }

.gdash-app button.gdash-btn-primary {
  background: var(--gd-blue);
  color: #fff;
}

.gdash-app button.gdash-btn-primary:hover:not(:disabled) { background: var(--gd-blue-deep); }

.gdash-app button.gdash-btn-line {
  border-color: #d5deec;
  background: #fff;
}

.gdash-app button.gdash-btn-line:hover:not(:disabled) { border-color: var(--gd-blue); color: var(--gd-blue); }

.gdash-app button.gdash-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gdash-app button.gdash-btn-block { width: 100%; }

.gdash-app button.gdash-btn-lg { min-height: 52px; font-size: 1.02rem; }

.gdash-actions { display: flex; flex-direction: column; gap: 8px; }

.gdash-stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.gdash-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 320px;
  cursor: pointer;
  padding: 28px 18px;
  border: 1.5px dashed #b9cff8;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(23, 37, 84, 0.045);
}

.gdash-drop.is-dragover,
.gdash-drop.is-drag { border-color: var(--gd-blue); background: var(--gd-blue-soft); }

.gdash-drop-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gd-blue-soft);
  color: var(--gd-blue);
}

.gdash-drop-ico svg { width: 28px; height: 28px; }

.article .gdash-app .gdash-drop h2,
.gdash-app .gdash-drop h2 {
  margin: 4px 0 0 !important;
  color: var(--gd-ink);
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  border: 0 !important;
}

.gdash-drop p { color: var(--gd-muted); font-size: 0.88rem; }

.gdash-drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

.gdash-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gdash-timeline { grid-column: 1 / -1; }

.gdash-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.gdash-badge {
  flex: none;
  max-width: 58%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gd-soft);
  color: var(--gd-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.gdash-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
  padding: 12px;
  border-radius: 12px;
  background-color: #d5e3f4;
  background-image:
    linear-gradient(45deg, #e7f0fa 25%, transparent 25%),
    linear-gradient(-45deg, #e7f0fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7f0fa 75%),
    linear-gradient(-45deg, transparent 75%, #e7f0fa 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.gdash-media img,
.gdash-media canvas {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.gdash-empty {
  margin: 0;
  color: #5b6b88;
  font-size: 0.88rem;
  text-align: center;
}

.gdash-transport {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gdash-app button.gdash-play,
.gdash-app button.gdash-linkish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d5deec;
  border-radius: 999px;
  background: #fff;
  color: var(--gd-ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.gdash-app button.gdash-play:hover,
.gdash-app button.gdash-linkish:hover { border-color: var(--gd-blue); color: var(--gd-blue); }

.gdash-title-ico { display: inline-flex; color: var(--gd-blue); }
.gdash-title-ico svg { width: 18px; height: 18px; }

.gdash-app #gtool-strip,
.gdash-app .gdash-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.gdash-app button.gedit-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  width: 76px;
  padding: 4px 4px 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--gd-soft);
  cursor: pointer;
}

.gdash-app button.gedit-thumb canvas {
  width: 64px;
  height: 46px;
  border-radius: 6px;
  background: #d5e3f4;
}

.gdash-app button.gedit-thumb.is-selected {
  border-color: var(--gd-blue);
  background: var(--gd-blue-soft);
}

.gdash-app .gedit-thumb-idx {
  position: absolute;
  top: 6px;
  left: 7px;
  color: var(--gd-blue);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 3px #fff;
}

.gdash-app .gedit-thumb-meta {
  color: var(--gd-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.gdash-strip-note {
  margin-top: 4px !important;
  color: var(--gd-muted);
  font-size: 0.8rem;
}

.gdash-info { display: flex; flex-direction: column; gap: 4px; }

.gdash-info-ico { display: inline-flex; color: #94a3b8; }
.gdash-info-ico svg { width: 16px; height: 16px; }

.gdash-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gd-line);
}

.gdash-info div:first-of-type { padding-top: 8px; }
.gdash-info div:last-child { border-bottom: 0; padding-bottom: 0; }

.gdash-info dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gd-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.gdash-info dd {
  color: var(--gd-ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.gdash-tips { background: #fff8e6; border-color: #f3e2b0; }
.gdash-tips .gdash-title-ico { color: #d97706; }

.gdash-tips ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.gdash-tips li {
  display: flex;
  gap: 8px;
  color: var(--gd-body);
  font-size: 0.86rem;
}

.article .gdash-app .gdash-tips li::before,
.gdash-app .gdash-tips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eab308 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.6 8.4l1.1-1.1 1.7 1.7 4-4 1.1 1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.gdash-recents { grid-column: 1 / -1; }
.gdash-recents:not(:has(.itool-hist-host:not([hidden]))) { display: none; }

.gdash-app .itool-hist-host[hidden] { display: none !important; }

.gdash-app .itool-hist-card {
  padding: 14px 16px;
  border: 1px solid var(--gd-line);
  border-radius: 18px;
  background: #fff;
}

.gdash-app .itool-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gdash-app .itool-hist-label { color: var(--gd-ink); font-weight: 800; }
.gdash-app .itool-hist-hint { margin-left: 8px; color: var(--gd-muted); font-size: 0.8rem; }

.gdash-app .itool-hist-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--gd-muted);
  font-weight: 700;
  cursor: pointer;
}

.gdash-app .itool-hist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
}

.gdash-app .itool-hist-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.gdash-app .gif-hist-thumb,
.gdash-app .itool-hist-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gd-soft);
}

.gdash-app .gif-hist-thumb img,
.gdash-app .itool-hist-thumb img { max-width: 100%; max-height: 92px; object-fit: contain; }

.gdash-app .gif-hist-chip {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 37, 84, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.gdash-app .itool-hist-name {
  display: block;
  overflow: hidden;
  color: var(--gd-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdash-app .itool-hist-sub { color: var(--gd-muted); font-size: 0.75rem; }

.gdash-app .itool-hist-actions { display: flex; gap: 6px; }

.gdash-app .itool-hist-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d5deec;
  border-radius: 8px;
  background: #fff;
  color: var(--gd-ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.gdash-app > .gtool-success {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #b7ebc9;
  border-radius: 14px;
  background: #f0fdf4;
  color: var(--gd-ink);
}

.gdash-app > .gtool-success[hidden] { display: none !important; }

.gdash-app .gtool-success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
}

.gdash-app .gtool-success-body { min-width: 0; }
.gdash-app .gtool-success-title { font-weight: 800; }
.gdash-app .gtool-success-msg { color: var(--gd-muted); font-size: 0.84rem; }

.gdash-app .gtool-success-dl {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--gd-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.gdash-app .gtool-success-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.gdash-app .gtool-next-label { color: var(--gd-muted); font-size: 0.8rem; font-weight: 700; }

.gdash-app .gtool-success-link {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--gd-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.gdash-app .gtool-toast {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 12px;
  background: #172554;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gdash-app .gtool-toast.is-visible { opacity: 1; transform: translateX(-50%); }

.gdash-video,
.gdash-app #vgif-video,
.gdash-app #vgif-result-img {
  display: block;
  width: 100%;
  height: 240px;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
  border-radius: 12px;
}

.gdash-app.has-media #vgif-drop { display: none; }
.gdash-app:not(.has-media) #vgif-editor { display: none; }

.gdash-time {
  color: var(--gd-muted);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gdash-app #vgif-hint {
  margin: 0;
  color: var(--gd-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.gdash-app #vgif-hint:empty { display: none; }

.gdash-app #vgif-progress { margin-top: 8px; }

.gdash-app #vgif-progress-text {
  margin: 6px 0 0;
  color: var(--gd-muted);
  font-size: 0.8rem;
}

.gdash-app button.vgif-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: none;
  width: 84px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--gd-soft);
  cursor: pointer;
}

.gdash-app button.vgif-thumb img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #0f172a;
}

.gdash-app .vgif-thumb-idx {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.gdash-app .vgif-thumb-meta {
  display: block;
  margin-top: 4px;
  color: var(--gd-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.gdash-app button.vgif-thumb.is-selected {
  border-color: var(--gd-blue);
  background: var(--gd-blue-soft);
}

.gdash-app button.vgif-thumb.is-out { opacity: 0.4; }

.gdash-range-row { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1180px) {
  .gdash-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .gdash-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .gdash-tips { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  body.is-fullscreen .fs-workspace.gdash-fs { padding: 12px; }
  .gdash-hero { flex-direction: column; align-items: flex-start; }
  .gdash-app .gdash-perks { display: none; }
  .article .gdash-app h1.gdash-title,
  .gdash-app h1.gdash-title { font-size: 1.45rem !important; }
  .gdash-grid,
  .gdash-side,
  .gdash-previews { grid-template-columns: 1fr; }
  .gdash-drop { min-height: 240px; }
  .gdash-media { min-height: 180px; }
  .gdash-badge { max-width: 100%; }
}

html[data-theme="dark"] body.is-fullscreen .fs-workspace.gdash-fs,
html.dark body.is-fullscreen .fs-workspace.gdash-fs { background: transparent; }

html[data-theme="dark"] .gdash-app,
html.dark .gdash-app {
  --gd-ink: var(--dica-ink, #e8eaf0);
  --gd-body: var(--dica-body, #c5cad6);
  --gd-muted: var(--dica-muted, #9aa3b5);
  --gd-card: var(--dica-surface, #171b22);
  --gd-line: var(--dica-border, #2c3444);
  --gd-soft: #12161d;
  --gd-blue-soft: rgba(47, 111, 237, 0.18);
}

html[data-theme="dark"] .gdash-lede,
html.dark .gdash-lede { color: var(--gd-muted); }

html[data-theme="dark"] .gdash-app .gdash-field input,
html[data-theme="dark"] .gdash-app .gdash-field select,
html[data-theme="dark"] .gdash-app .gdash-field textarea,
html.dark .gdash-app .gdash-field input,
html.dark .gdash-app .gdash-field select,
html.dark .gdash-app .gdash-field textarea,
html[data-theme="dark"] .gdash-app button.gdash-btn-line,
html.dark .gdash-app button.gdash-btn-line,
html[data-theme="dark"] .gdash-app button.gdash-preset,
html.dark .gdash-app button.gdash-preset,
html[data-theme="dark"] .gdash-app button.gdash-play,
html.dark .gdash-app button.gdash-play,
html[data-theme="dark"] .gdash-app button.gdash-linkish,
html.dark .gdash-app button.gdash-linkish,
html[data-theme="dark"] .gdash-drop,
html.dark .gdash-drop,
html[data-theme="dark"] .gdash-app .itool-hist-card,
html.dark .gdash-app .itool-hist-card,
html[data-theme="dark"] .gdash-app .itool-hist-btn,
html.dark .gdash-app .itool-hist-btn {
  background-color: var(--gd-card);
  color: var(--gd-ink);
  border-color: var(--gd-line);
}

html[data-theme="dark"] .gdash-app button.gdash-btn-primary,
html.dark .gdash-app button.gdash-btn-primary,
html[data-theme="dark"] .gdash-step-n,
html.dark .gdash-step-n,
html[data-theme="dark"] .gdash-app .gtool-success-dl,
html.dark .gdash-app .gtool-success-dl { color: #fff; }

html[data-theme="dark"] .gdash-media,
html.dark .gdash-media { background-color: #1c2838; }

html[data-theme="dark"] .gdash-tips,
html.dark .gdash-tips {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.28);
}

html[data-theme="dark"] .gdash-app > .gtool-success,
html.dark .gdash-app > .gtool-success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
}
