* {
  box-sizing: border-box;
}

body.freecreat-tool-page {
  margin: 0;
  min-height: 100vh;
  color: #172033;
  background: #f6f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.freecreat-tools-hub,
.freecreat-tool-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.tools-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
}

.tools-logo {
  color: #2563eb;
  font-size: 28px;
  font-weight: 950;
  text-decoration: none;
}

.tools-nav,
.tools-home-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tools-nav a,
.tools-home-link {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.tools-hub-hero {
  padding: 52px 0 26px;
}

.tools-eyebrow {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tools-hub-hero h1,
.tool-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: 44px;
  line-height: 1.05;
}

.tools-hub-hero p,
.tool-copy p {
  max-width: 760px;
  color: #5b6b84;
  font-size: 16px;
  line-height: 1.65;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card,
.tool-viewer-panel,
.tool-vip-panel,
.tool-seo-content {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.tool-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.tool-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.tool-card strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}

.tool-card em {
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding-top: 28px;
}

.tool-copy {
  padding: 18px 0;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tool-upload-btn,
.tool-secondary-btn,
.tool-vip-btn,
.tool-toolbar button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.tool-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
}

.tool-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tool-secondary-btn,
.tool-toolbar button {
  min-height: 42px;
  padding: 0 14px;
  color: #1e293b;
  background: #eef4ff;
}

.tool-privacy-note,
.tool-status {
  color: #64748b;
  font-size: 13px;
}

.tool-viewer-panel {
  overflow: hidden;
}

.tool-viewer-canvas {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px;
}

.tool-viewer-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tool-empty-state {
  display: grid;
  gap: 8px;
  padding: 28px;
  color: #475569;
  text-align: center;
}

.tool-empty-state strong {
  color: #172033;
  font-size: 22px;
}

.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.tool-status {
  margin: 0;
  padding: 0 14px 14px;
}

.tool-vip-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.tool-vip-panel[hidden] {
  display: none;
}

.tool-vip-panel strong {
  color: #0f172a;
  font-size: 20px;
}

.tool-vip-panel p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.45;
}

.tool-vip-btn {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #fff;
  background: #16a34a;
  text-decoration: none;
}

.tool-seo-content {
  margin-top: 18px;
  padding: 24px;
}

.tool-seo-content h2 {
  margin: 0 0 12px;
  color: #0f172a;
}

.tool-seo-content li {
  margin: 8px 0;
  color: #475569;
}

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-tools a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .tools-grid,
  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .tool-viewer-canvas {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .freecreat-tools-hub,
  .freecreat-tool-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .tools-hub-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-hub-hero h1,
  .tool-copy h1 {
    font-size: 34px;
  }

  .tool-viewer-canvas {
    min-height: 360px;
  }

  .tool-vip-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-vip-btn {
    text-align: center;
  }
}


/* 20260731-sidebar1: align tools pages with the Freecreat V2 app shell. */
.freecreat-v2-preview.freecreat-tool-page {
  min-height: 100vh;
  background: #eef4f8;
}

.freecreat-v2-preview .freecreat-tools-app .main {
  min-width: 0;
}

.freecreat-v2-preview .tools-main-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.freecreat-v2-preview .freecreat-tools-hub,
.freecreat-v2-preview .freecreat-tool-shell {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

.freecreat-v2-preview .tools-hub-hero,
.freecreat-v2-preview .tool-workspace,
.freecreat-v2-preview .tool-vip-panel,
.freecreat-v2-preview .tool-seo-content,
.freecreat-v2-preview .tools-grid {
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(31, 45, 61, .08);
}

.freecreat-v2-preview .tools-hub-hero {
  margin-bottom: 16px;
}

.freecreat-v2-preview .tools-grid {
  padding: 16px;
}

.freecreat-v2-preview .tool-workspace {
  overflow: hidden;
}

.freecreat-v2-preview .tool-seo-content {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .freecreat-v2-preview .tools-main-section {
    padding: 0;
  }
}


/* 20260731-shellfix1: use the production Freecreat shell grid instead of an app wrapper. */
.freecreat-v2-preview .freecreat-tools-app {
  display: grid !important;
  grid-template-columns: 224px minmax(0, 1fr) !important;
  gap: 18px !important;
  min-height: 100vh !important;
  padding: 12px !important;
}

.freecreat-v2-preview .freecreat-tools-app .sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.freecreat-v2-preview .freecreat-tools-app .main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.freecreat-v2-preview .freecreat-tools-app .topbar {
  position: sticky !important;
  top: 14px !important;
  z-index: 20 !important;
}

.freecreat-v2-preview .freecreat-tools-app .tools-main-section {
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  .freecreat-v2-preview .freecreat-tools-app {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
  }

  .freecreat-v2-preview .freecreat-tools-app .sidebar,
  .freecreat-v2-preview .freecreat-tools-app .main {
    grid-column: 1 !important;
  }
}


/* 20260731-uipolish1: refine the inline 3D tool workspace while keeping the current layout. */
.freecreat-v2-preview .freecreat-tool-shell .tool-workspace {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  min-height: 680px !important;
  padding: 28px !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  border-radius: 24px !important;
  background: linear-gradient(110deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 34%, rgba(247,250,255,.84) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 22px 58px rgba(15,23,42,.075) !important;
  overflow: hidden !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-copy { display: flex !important; flex-direction: column !important; justify-content: center !important; min-width: 0 !important; padding: 8px 0 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tools-eyebrow { display: inline-flex !important; align-items: center !important; width: fit-content !important; margin-bottom: 13px !important; padding: 7px 11px !important; border: 1px solid rgba(49,92,255,.14) !important; border-radius: 999px !important; background: rgba(239,246,255,.78) !important; color: #315cff !important; font-size: 12px !important; line-height: 1 !important; letter-spacing: .02em !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-copy h1 { max-width: 330px !important; color: #0f172a !important; font-size: clamp(42px, 3.8vw, 58px) !important; line-height: .98 !important; font-weight: 950 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-copy > p:not(.tools-eyebrow):not(.tool-privacy-note) { max-width: 340px !important; margin: 18px 0 0 !important; color: #53627a !important; font-size: 17px !important; line-height: 1.55 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) !important; gap: 10px !important; max-width: 345px !important; margin-top: 26px !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-upload-btn,
.freecreat-v2-preview .freecreat-tool-shell .tool-secondary-btn { min-height: 48px !important; border-radius: 14px !important; font-size: 16px !important; line-height: 1 !important; transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-upload-btn { background: linear-gradient(135deg, #2563eb, #06b6d4) !important; box-shadow: 0 18px 36px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.28) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-upload-btn:hover,
.freecreat-v2-preview .freecreat-tool-shell .tool-secondary-btn:hover,
.freecreat-v2-preview .freecreat-tool-shell .tool-toolbar button:hover { transform: translateY(-1px) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-secondary-btn { border: 1px solid rgba(226,232,240,.92) !important; background: rgba(241,246,255,.88) !important; color: #172033 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(15,23,42,.045) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-secondary-btn[data-tool-vip-action="record"] { grid-column: 1 / -1 !important; width: min(142px, 100%) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-privacy-note { max-width: 345px !important; margin-top: 22px !important; padding: 13px 14px !important; border: 1px solid rgba(148,163,184,.18) !important; border-radius: 16px !important; background: rgba(248,250,252,.74) !important; color: #64748b !important; font-size: 14px !important; line-height: 1.45 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-panel { display: flex !important; flex-direction: column !important; min-width: 0 !important; overflow: hidden !important; border: 1px solid rgba(203,213,225,.72) !important; border-radius: 16px !important; background: rgba(255,255,255,.82) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 18px 44px rgba(15,23,42,.06) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important; min-height: 62px !important; padding: 13px 16px !important; border-bottom: 1px solid rgba(226,232,240,.86) !important; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.78)) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header strong,
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header span,
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header em { display: block !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header strong { color: #0f172a !important; font-size: 17px !important; font-weight: 950 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header span,
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-header em { color: #64748b !important; font-size: 12px !important; font-style: normal !important; font-weight: 750 !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-canvas { flex: 1 1 auto !important; min-height: 530px !important; background: radial-gradient(circle at 50% 30%, rgba(59,130,246,.07), transparent 34%), linear-gradient(90deg, rgba(148,163,184,.13) 1px, transparent 1px), linear-gradient(rgba(148,163,184,.13) 1px, transparent 1px), #f8fafc !important; background-size: auto, 28px 28px, 28px 28px, auto !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-toolbar { gap: 9px !important; padding: 12px 14px !important; border-top: 1px solid rgba(226,232,240,.82) !important; background: rgba(255,255,255,.86) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-toolbar button { min-height: 42px !important; padding: 0 16px !important; border: 1px solid rgba(226,232,240,.88) !important; border-radius: 13px !important; background: rgba(239,246,255,.9) !important; color: #172033 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 18px rgba(15,23,42,.04) !important; font-size: 15px !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-status-row { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important; padding: 0 16px 14px !important; background: rgba(255,255,255,.86) !important; }
.freecreat-v2-preview .freecreat-tool-shell .tool-status-row span,
.freecreat-v2-preview .freecreat-tool-shell .tool-status { margin: 0 !important; padding: 0 !important; color: #64748b !important; font-size: 13px !important; line-height: 1.35 !important; }
@media (max-width: 1180px) {
  .freecreat-v2-preview .freecreat-tool-shell .tool-workspace { grid-template-columns: 1fr !important; min-height: auto !important; }
  .freecreat-v2-preview .freecreat-tool-shell .tool-copy,
  .freecreat-v2-preview .freecreat-tool-shell .tool-copy h1,
  .freecreat-v2-preview .freecreat-tool-shell .tool-copy > p:not(.tools-eyebrow):not(.tool-privacy-note),
  .freecreat-v2-preview .freecreat-tool-shell .tool-actions,
  .freecreat-v2-preview .freecreat-tool-shell .tool-privacy-note { max-width: none !important; }
}


/* 20260731-animprogress1: animated models and local loading progress. */
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-panel {
  position: relative !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 8 !important;
  width: min(360px, calc(100% - 48px)) !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress[hidden] {
  display: none !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px 12px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.92) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.96) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card span,
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card strong {
  color: #172033 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card strong {
  color: #315cff !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card i {
  grid-column: 1 / -1 !important;
  display: block !important;
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(226,232,240,.9) !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-loading-progress-card b {
  display: block !important;
  width: 0%;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #315cff, #06b6d4) !important;
  box-shadow: 0 0 18px rgba(49,92,255,.34) !important;
  transition: width .18s ease !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-animation-toggle {
  background: linear-gradient(135deg, rgba(236,253,245,.96), rgba(239,246,255,.92)) !important;
  color: #047857 !important;
}


/* 20260731-quickbar1: detail-style quick tools and local marker annotations. */
.freecreat-v2-preview .freecreat-tool-shell .tool-preview-quickbar {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 7 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px !important;
  border: 1px solid rgba(255,255,255,.86) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 16px 38px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.94) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-preview-quickbar button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 62px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(226,232,240,.88) !important;
  border-radius: 13px !important;
  background: rgba(248,250,252,.92) !important;
  color: #172033 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-preview-quickbar button:hover,
.freecreat-v2-preview .freecreat-tool-shell .tool-preview-quickbar button.is-active {
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #111827, #315cff) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(49,92,255,.18), inset 0 1px 0 rgba(255,255,255,.24) !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-marker-layer {
  position: absolute !important;
  inset: 62px 0 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-preview-marker {
  position: absolute !important;
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: -15px 0 0 -15px !important;
  border: 2px solid rgba(255,255,255,.96) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(239,68,68,.28), 0 0 0 6px rgba(239,68,68,.12) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-viewer-canvas.is-marking {
  cursor: crosshair !important;
}
@media (max-width: 760px) {
  .freecreat-v2-preview .freecreat-tool-shell .tool-preview-quickbar {
    left: 12px !important;
    right: 12px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
}


/* 20260731-seo-innerlinks1: SEO-friendly related tool links inside tool pages. */
.freecreat-v2-preview .freecreat-tool-shell .tool-related-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(226,232,240,.88) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 16px 36px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.94) !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-related-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(203,213,225,.88) !important;
  border-radius: 999px !important;
  background: rgba(248,250,252,.96) !important;
  color: #315cff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.freecreat-v2-preview .freecreat-tool-shell .tool-related-links a:hover {
  background: #315cff !important;
  color: #fff !important;
}
