/*
Theme Name: Trellis 3D Studio
Theme URI: https://example.com/trellis
Author: Antigravity
Description: A modern, responsive 3D model generator studio theme built for the Trellis 2 Generator plugin. Includes non-blocking live GPU progress polling, client-side binary STL export for 3D printing, one-click concept examples, and an instant 3D library.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: trellis
*/

:root {
  --bg-dark: #070b14;
  --bg-panel: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #090e1a;
  --border-color: rgba(148, 163, 184, 0.18);
  --border-focus: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-secondary: #10b981;
  --accent-glow: rgba(99, 102, 241, 0.28);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body.trellis-theme {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.16) 0px, transparent 48%),
    radial-gradient(at 100% 10%, rgba(16, 185, 129, 0.12) 0px, transparent 48%),
    radial-gradient(at 50% 100%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.trellis-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.trellis-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.trellis-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.trellis-brand {
  display: inline-flex;
  align-items: center;
}

.trellis-brand a,
.trellis-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.trellis-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.trellis-brand .custom-logo {
  max-height: 2.75rem;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.trellis-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.trellis-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.trellis-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.trellis-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.trellis-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
}

.trellis-pill-link:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.trellis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.trellis-dot.inactive {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Main & Hero */
.trellis-main {
  flex: 1;
  padding: 2.75rem 0 4.5rem;
}

.trellis-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.75rem;
}

.trellis-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.trellis-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.trellis-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 65%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trellis-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

/* Two-Column Workspace Grid */
.trellis-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 4rem;
}

.trellis-studio-shell {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.trellis-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.trellis-panel-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.trellis-panel-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trellis-speed-hint {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Override & Enhance Plugin Styles (.trellis2-generator) */
.trellis-theme .trellis2-generator {
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text-main);
}

.trellis-theme .trellis2-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.trellis-theme .trellis2-form label:not(.trellis2-checkbox),
.trellis-theme .trellis2-model-upload label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.trellis-theme .trellis2-form label:first-child {
  grid-column: 1 / -1;
}

.trellis-theme .trellis2-form button[type="submit"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 3.1rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trellis-theme .trellis2-form input[type="file"],
.trellis-theme .trellis2-model-upload input[type="file"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1.5px dashed rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.trellis-theme .trellis2-form input[type="file"]:hover,
.trellis-theme .trellis2-model-upload input[type="file"]:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.trellis-theme .trellis2-form input[type="file"]::file-selector-button,
.trellis-theme .trellis2-model-upload input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}

.trellis-theme .trellis2-form select,
.trellis-theme .trellis2-form input[type="number"] {
  max-width: 100%;
  width: 100%;
  height: 2.75rem;
  padding: 0 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
}

.trellis-theme .trellis2-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  padding: 0 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.trellis-theme .trellis2-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent-primary);
}

/* Selected Image Thumbnail Preview */
.trellis-image-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
}

.trellis-preview-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  display: block;
}

.trellis-preview-img:not([src]),
.trellis-preview-img[src=""] {
  display: none !important;
}

.trellis-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.trellis-preview-name {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trellis-preview-clear {
  width: fit-content;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
}

.trellis-preview-clear:hover {
  color: #fff;
  border-color: var(--accent-primary);
}

/* Live Progress Bar & Elapsed Timer */
.trellis-progress-wrap {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
}

.trellis-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.trellis-progress-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.trellis-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}

.trellis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.trellis-progress-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.trellis-progress-steps .step.is-active {
  color: #fff;
  font-weight: 700;
}

.trellis-progress-steps .step.is-done {
  color: var(--success);
}

/* Buttons & Download GLB / STL Bar */
.trellis-theme .trellis2-form button[type="submit"],
.trellis-theme .trellis2-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s, filter 0.15s;
}

.trellis-download-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.trellis-download-actions .trellis2-download,
.trellis-stl-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.trellis-stl-btn {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22);
}

.trellis-download-actions small {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.85;
}

.trellis-theme .trellis2-form button[type="submit"]:hover:not(:disabled),
.trellis-theme .trellis2-download:hover,
.trellis-stl-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.trellis-theme .trellis2-status {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(9, 14, 26, 0.85);
  border-left: 3px solid var(--accent-primary);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.trellis-theme .trellis2-status:empty {
  display: none;
}

/* 3D Viewer Viewport */
.trellis-theme .trellis2-result {
  margin-top: 1.5rem;
}

.trellis-theme .trellis2-viewer-shell {
  position: relative;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 50% 35%, #1e293b 0%, #090d16 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trellis-theme .trellis2-result model-viewer {
  width: 100%;
  height: 31rem;
}

.trellis-theme .trellis2-gesture-hint {
  background: rgba(9, 14, 26, 0.82);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
}

.trellis-theme .trellis2-viewer-controls {
  background: rgba(9, 14, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  padding: 0.4rem;
}

.trellis-theme .trellis2-viewer-controls button {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.trellis-theme .trellis2-viewer-controls button:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Sidebar Sample Cards */
.trellis-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trellis-side-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.trellis-side-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.trellis-side-card > p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trellis-sample-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.trellis-sample-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.15s, background 0.18s;
}

.trellis-sample-item:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(3px);
}

.trellis-sample-item img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trellis-sample-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trellis-sample-text strong {
  font-size: 0.9rem;
}

.trellis-sample-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trellis-checklist {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trellis-checklist strong {
  color: var(--text-main);
}

/* Sections & Headings */
.trellis-section {
  margin-bottom: 4rem;
}

.trellis-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.trellis-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 0.25rem;
}

.trellis-section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.trellis-section-head p {
  margin: 0;
  max-width: 540px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Recent Generated Models Grid */
.trellis-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.15rem;
}

.trellis-recent-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.2s;
}

.trellis-recent-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.trellis-recent-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #818cf8;
}

.trellis-recent-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
}

.trellis-recent-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trellis-recent-info strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trellis-recent-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trellis-recent-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
}

.trellis-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.trellis-btn-load {
  flex: 1;
  background: var(--accent-primary);
  color: #fff;
}

.trellis-btn-load:hover {
  background: var(--accent-hover);
}

.trellis-btn-ghost {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-main);
}

.trellis-btn-ghost:hover {
  border-color: var(--accent-primary);
}

/* Industry Use Cases Grid */
.trellis-usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.trellis-usecase-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.trellis-usecase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
}

.trellis-usecase-visual {
  position: relative;
  height: 200px;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.trellis-usecase-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.trellis-usecase-card:hover .trellis-usecase-visual img {
  transform: scale(1.06);
}

.trellis-format-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #6ee7b7;
}

.trellis-usecase-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trellis-usecase-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.trellis-usecase-body p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.trellis-feature-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trellis-feature-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
}

/* 4-Step Pipeline Workflow Banner */
.trellis-workflow-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.trellis-workflow-step {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trellis-step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-secondary);
  letter-spacing: 0.06em;
}

.trellis-workflow-step h4 {
  margin: 0;
  font-size: 1rem;
}

.trellis-workflow-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.trellis-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .trellis-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .trellis-container {
    padding: 0 1rem;
  }
  .trellis-studio-shell {
    padding: 1.15rem;
  }
  .trellis-theme .trellis2-form {
    grid-template-columns: 1fr;
  }
  .trellis-theme .trellis2-result model-viewer {
    height: 23rem;
  }
  .trellis-nav-link {
    display: none;
  }
}
