/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: 'JetBrains Mono', monospace; }

.brand-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white; border: none; padding: 11px 22px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(59, 130, 246, 0.18);
  text-decoration: none;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: white; color: #0f172a;
  border: 1px solid #e2e8f0; padding: 11px 22px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
}
.btn-secondary:hover:not(:disabled) {
  border-color: #cbd5e1; background: #f8fafc;
}
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white; border: none; padding: 11px 22px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(16, 185, 129, 0.2);
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-success:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ========== LOGO ========== */
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.logo-mark-sm { width: 28px; height: 28px; border-radius: 8px; }

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  color: #0f172a;
}
.brand-text {
  display: flex; align-items: baseline; gap: 0;
}
.brand-tld {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.85em;
  margin-left: 1px;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: #0f172a; background: #f1f5f9; }

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: none; border: none;
  padding: 5px 10px;
  font-size: 12px; font-weight: 600;
  color: #64748b; border-radius: 6px;
  transition: all 0.15s;
  font-family: inherit;
}
.lang-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.lang-btn:hover:not(.active) { color: #0f172a; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
  font-size: 13px; font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: #0f172a;
}
.hero-title span { display: block; }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: #475569;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #64748b;
  font-weight: 500;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 24px;
}
.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #0f172a;
}
.section-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ========== USE CASE CARDS ========== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.usecase-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}
.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.usecase-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.usecase-card h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}
.usecase-card p {
  font-size: 14px; color: #64748b;
  margin: 0; line-height: 1.55;
}

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.2s;
}
.step-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.step-card h3 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 10px;
  color: #0f172a;
}
.step-card p {
  font-size: 15px; color: #475569;
  margin: 0; line-height: 1.6;
}

/* ========== APP SECTION ========== */
.app-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ========== PRIVACY SECTION ========== */
.privacy-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.privacy-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.privacy-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.privacy-content h2 {
  font-size: 28px; font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.privacy-content > p {
  font-size: 16px; color: #475569;
  line-height: 1.6;
  margin: 0 0 28px;
}
.privacy-points {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.privacy-point {
  display: flex; gap: 14px;
  align-items: flex-start;
}
.privacy-point svg { flex-shrink: 0; margin-top: 2px; }
.privacy-point strong {
  display: block;
  font-size: 15px; font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}
.privacy-point p {
  font-size: 14px; color: #64748b;
  margin: 0; line-height: 1.55;
}

@media (max-width: 720px) {
  .privacy-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  transition: all 0.15s;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-item[open] { border-color: rgba(59, 130, 246, 0.3); }
.faq-item summary {
  padding: 18px 22px;
  font-size: 15px; font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: #3b82f6;
  font-size: 22px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 14px; color: #475569;
  line-height: 1.65;
}
.faq-item a { color: #3b82f6; text-decoration: underline; }

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 60px 24px 100px;
}
.cta-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 64px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-card p {
  font-size: 16px; color: #cbd5e1;
  margin: 0 0 28px;
}

/* ========== FOOTER ========== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 10px;
  color: white;
  font-weight: 700; font-size: 18px;
  margin-bottom: 12px;
}
.footer-brand-row .brand-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ========== APP COMPONENT STYLES ========== */
/* (Imported into the app-root; mimics the v0.7 React design exactly) */

#app-root {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 600px;
}
.app-sidebar {
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.app-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 24px;
}
.app-sidebar-brand .brand-label {
  font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1;
}

.app-nav-heading {
  font-size: 11px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 12px; margin-bottom: 6px;
}
.app-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
  font-size: 14px; font-weight: 500; color: #475569;
}
.app-nav-item:hover { background: #f1f5f9; color: #0f172a; }
.app-nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: #2563eb;
}
.app-nav-item.disabled { opacity: 0.5; cursor: not-allowed; }
.app-nav-badge {
  margin-left: auto; font-size: 10px;
  background: #f1f5f9; color: #64748b;
  padding: 2px 7px; border-radius: 100px;
}

.app-privacy-widget {
  margin-top: auto; padding: 12px;
}
.app-privacy-widget-inner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 14px;
}
.app-privacy-widget-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: #1e40af;
  margin-bottom: 8px;
}
.app-privacy-widget-text {
  font-size: 11px; color: #475569; line-height: 1.5;
}

.app-main {
  padding: 28px 36px 48px;
}

.app-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.app-header h1 {
  font-size: 28px; font-weight: 700; margin: 0;
  letter-spacing: -0.02em;
}
.app-header p {
  color: #64748b; font-size: 15px; margin: 6px 0 0;
  font-weight: 400;
}

.privacy-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46; font-size: 12px; font-weight: 600;
}

/* === Drop zone === */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px; padding: 80px 40px;
  text-align: center; background: white;
  transition: all 0.2s; cursor: pointer;
}
.dropzone:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
}
.dropzone-icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #3b82f6;
}
.dropzone-title {
  font-size: 18px; font-weight: 600; color: #0f172a; margin-bottom: 6px;
}
.dropzone-sub { font-size: 14px; color: #64748b; }
.dropzone-note { font-size: 12px; color: #94a3b8; margin-top: 16px; }

/* === Cards === */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.section-label {
  font-size: 12px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 14px; display: flex; align-items: center;
}

.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white; font-size: 11px; font-weight: 700;
  margin-right: 8px;
}

.toggle-pill {
  padding: 8px 14px; cursor: pointer;
  border: 1px solid #e2e8f0; background: white;
  border-radius: 10px; font-size: 13px; font-weight: 500;
  color: #475569; transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.toggle-pill.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white; border-color: transparent;
}
.toggle-pill:hover:not(.active) { border-color: #cbd5e1; background: #f8fafc; }

.input-field {
  background: white; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 14px;
  width: 100%; font-size: 14px; color: #0f172a;
  outline: none; transition: all 0.15s; font-family: inherit;
}
.input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.input-field::placeholder { color: #94a3b8; }

.icon-btn {
  background: white; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 7px 11px;
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #0f172a;
  font-family: inherit;
}
.icon-btn:hover:not(:disabled) { border-color: #3b82f6; color: #3b82f6; }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.mask-canvas {
  cursor: crosshair; display: block; max-width: 100%;
  border-radius: 10px;
}
.crop-canvas { cursor: move; }

.mask-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 13px; color: #475569;
}

.profile-card-btn {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: white; border: 1px solid #e2e8f0;
  border-radius: 10px; cursor: pointer; text-align: left;
  font-family: inherit; transition: all 0.15s; width: 100%;
}
.profile-card-btn:hover { border-color: #cbd5e1; }
.profile-card-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}
.profile-icon-wrap {
  width: 28px; height: 28px; border-radius: 7px;
  background: #f1f5f9; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-card-btn.active .profile-icon-wrap {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
}
.profile-card-body { flex: 1; min-width: 0; }
.profile-card-title {
  font-size: 13px; font-weight: 600; color: #0f172a;
}
.profile-card-btn.active .profile-card-title { color: #1e40af; }
.profile-card-desc {
  font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.4;
}

.disclaimer-box {
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 11px; color: #854d0e;
  line-height: 1.5;
  display: flex; gap: 8px;
}

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.loading-box {
  background: white; padding: 32px 48px;
  border-radius: 16px; display: flex;
  flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.info-banner {
  padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #1e40af; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}

.error-banner {
  padding: 14px 18px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #b91c1c; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}

.canvas-container {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.app-grid-main {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px;
}

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-grid-main { grid-template-columns: 1fr; }
  .app-main { padding: 20px; }
}

.icon-btn-close {
  background: none; border: none; cursor: pointer;
  color: inherit; display: flex; padding: 4px;
}
