:root {
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-light: #eff6ff;
      --surface: #ffffff;
      --bg: #f8fafc;
      --text: #0f172a;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --radius-lg: 16px;
      --radius-md: 10px;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
    }
    header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 0.75rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: inherit;
    }
    .brand-icon {
      width: 36px;
      height: 36px;
      background: #ea580c;
      color: white;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.1rem;
      box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
    }
    .brand-title { font-weight: 800; font-size: 1.15rem; color: #0f172a; }
    .brand-badge {
      font-size: 0.75rem;
      background: #fff7ed;
      color: #ea580c;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 6px;
      border: 1px solid #fed7aa;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
    }
    .brand-badge:hover {
      background: #ffedd5;
      border-color: #fdba74;
    }
    .nav-links { display: flex; align-items: center; gap: 0.85rem; }
    .nav-btn {
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.88rem;
      font-weight: 600;
      padding: 0.45rem 0.85rem;
      border-radius: 6px;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .nav-btn:hover { color: #ea580c; background: #fff7ed; }
    .nav-btn.active { color: #ea580c; font-weight: 700; }
    .nav-btn.primary {
      background: #ea580c;
      color: white;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
    }
    .nav-btn.primary:hover { background: #c2410c; color: white; }

    .hero-sec {
      max-width: 1120px;
      margin: 2.5rem auto 1.5rem auto;
      padding: 0 1.25rem;
      text-align: center;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      font-weight: 600;
      color: #475569;
      background: #f8fafc;
      padding: 3px 10px;
      border-radius: 20px;
      margin-bottom: 0.85rem;
      border: 1px solid rgba(0, 0, 0, 0.08);
    }
    .hero-title {
      font-size: 2.4rem;
      font-weight: 800;
      letter-spacing: -0.025em;
      color: #0f172a;
      line-height: 1.25;
      margin-bottom: 0.75rem;
    }
    .hero-sub {
      font-size: 1.05rem;
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto;
    }

    .app-box {
      max-width: 1120px;
      margin: 1.5rem auto 3rem auto;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0 1.25rem;
    }
    /* Multi-Tool Suite Tabs */
    .suite-tabs-wrap {
      margin-bottom: 2rem;
      display: flex;
      justify-content: center;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      padding-bottom: 0.25rem;
    }
    .suite-tabs-nav {
      display: inline-flex;
      align-items: center;
      background: transparent;
      padding: 0;
      margin-bottom: -1px;
      gap: 2.2rem;
      border: none;
      box-shadow: none;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .suite-tab-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.55rem 0.6rem;
      font-size: 0.92rem;
      font-weight: 500;
      color: #64748b;
      text-decoration: none;
      transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      border: none;
      border-bottom: 2px solid transparent;
      background: transparent;
      user-select: none;
    }
    .suite-tab-item svg {
      opacity: 0.65;
      transition: opacity 0.15s ease;
      color: currentColor;
    }
    .suite-tab-item:hover {
      color: #0f172a;
      background: transparent;
      border-color: rgba(0, 0, 0, 0.18);
    }
    .suite-tab-item:hover svg {
      opacity: 0.9;
    }
    .suite-tab-item.active {
      background: transparent;
      color: #0f172a;
      font-weight: 600;
      border: none;
      border-bottom: 2px solid #0f172a;
      box-shadow: none;
      border-radius: 0;
    }
    /* Minimalist Dropzone (Parity with Crop) */
    .dropzone {
      border: 1.5px dashed #cbd5e1;
      border-radius: 18px;
      padding: 3rem 1.5rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      background: #ffffff;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    }
    .dropzone:hover,
    .dropzone.dragover {
      border-color: #0f172a;
      background: #fafafa;
    }
    .dropzone-icon-badge {
      width: 52px;
      height: 52px;
      margin: 0 auto 1.1rem;
      background: #f8fafc;
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #475569;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }
    .dropzone:hover .dropzone-icon-badge {
      transform: translateY(-2px);
      color: #0f172a;
      border-color: rgba(0, 0, 0, 0.12);
    }
    .dropzone-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 1.2rem;
      letter-spacing: -0.01em;
    }
    .dropzone-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #ffffff;
      color: #0f172a;
      border: 1px solid rgba(0, 0, 0, 0.12);
      padding: 0.7rem 1.6rem;
      border-radius: 10px;
      font-size: 0.92rem;
      font-weight: 600;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      cursor: pointer;
      transition: all 0.15s ease;
      margin-bottom: 1rem;
    }
    .dropzone-cta-btn:hover {
      border-color: #0f172a;
      background: #f8fafc;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .dropzone-hints {
      display: flex;
      justify-content: center;
      gap: 0.6rem;
      flex-wrap: wrap;
    }
    .dropzone-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.76rem;
      color: #64748b;
      background: transparent;
      padding: 0;
      border: none;
      font-weight: 500;
    }

    /* Workspace & Studio Layout */
    .workspace-wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      margin: 0 auto;
    }
    .workspace-wrap.is-hidden,
    .quality-control-card.is-hidden,
    .btn-action-group.is-hidden {
      display: none !important;
    }

    /* 1. Live Preview Section */
    .preview-section {
      background: #ffffff;
      border: 1px solid var(--border, #e2e8f0);
      border-radius: 16px;
      padding: 1.25rem;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
      width: 100%;
      box-sizing: border-box;
    }

    .preview-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .mode-tab-group {
      display: inline-flex;
      background: #f1f5f9;
      padding: 3px;
      border-radius: 8px;
      gap: 2px;
    }

    .mode-tab-btn {
      border: none;
      background: transparent;
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 600;
      color: #64748b;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .mode-tab-btn:hover {
      color: #0f172a;
    }

    .mode-tab-btn.active {
      background: #ffffff;
      color: #0f172a;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
      font-weight: 700;
    }

    .preview-tool-btn {
      border: 1px solid #e2e8f0;
      background: #ffffff;
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .preview-tool-btn:hover {
      background: #f8fafc;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    /* Comparison Viewport Stage */
    .compare-container {
      position: relative;
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      border-radius: 12px;
      overflow: hidden;
      background: #0f172a;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      user-select: none;
      touch-action: none;
      cursor: ew-resize;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 280px;
      max-height: 560px;
      box-sizing: border-box;
    }

    .compare-img {
      max-width: 100%;
      max-height: 560px;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
      margin: 0 auto;
      user-select: none;
      pointer-events: none;
    }

    .compare-overlay {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      pointer-events: none;
      display: flex;
      justify-content: center;
      align-items: center;
      will-change: clip-path;
    }

    .compare-slider {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      background: #ffffff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      cursor: ew-resize;
      z-index: 10;
      transform: translateX(-50%);
      pointer-events: none;
    }

    .slider-handle {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 36px;
      height: 36px;
      background: #ffffff;
      color: #0f172a;
      border-radius: 50%;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
      border: 1.5px solid rgba(0, 0, 0, 0.08);
    }

    .comp-badge {
      position: absolute;
      bottom: 12px;
      padding: 5px 12px;
      background: rgba(15, 23, 42, 0.82);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #ffffff;
      font-size: 0.78rem;
      font-weight: 600;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      z-index: 9;
      pointer-events: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .badge-left { left: 12px; }
    .badge-right { right: 12px; }

    .badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }
    .dot-orig { background: #94a3b8; }
    .dot-comp { background: #22c55e; }

    /* Side by Side Grid */
    .side-by-side-grid {
      display: none;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 0.5rem;
      width: 100%;
      box-sizing: border-box;
    }

    .side-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .side-card-header {
      padding: 8px 14px;
      background: #ffffff;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.84rem;
    }

    .side-card-body {
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0f172a;
      min-height: 220px;
      max-height: 520px;
    }

    .side-card-body img {
      max-width: 100%;
      max-height: 500px;
      object-fit: contain;
      display: block;
    }

    .slider-hint {
      text-align: center;
      font-size: 0.8rem;
      color: #64748b;
      margin-top: 0.75rem;
      font-weight: 500;
    }

    /* 2. Quality Control Card */
    .quality-control-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 1.25rem 1.5rem;
      margin-top: 1.25rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
      width: 100%;
      box-sizing: border-box;
    }

    .quality-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.85rem;
    }

    .quality-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: #0f172a;
    }

    .quality-badge {
      font-size: 0.78rem;
      font-weight: 600;
      color: #2563eb;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      padding: 3px 10px;
      border-radius: 12px;
    }

    .level-slider-wrap {
      width: 100%;
      margin: 0.5rem 0;
    }

    .level-slider-track {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .level-slider-track input[type="range"] {
      flex: 1;
      height: 6px;
      border-radius: 4px;
      background: #e2e8f0;
      accent-color: #0f172a;
      cursor: pointer;
    }

    .level-pct-display {
      min-width: 48px;
      text-align: right;
      font-size: 1rem;
      font-weight: 800;
      color: #0f172a;
    }

    .level-chips-row {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 8px !important;
      width: 100% !important;
      margin-top: 0.75rem !important;
    }

    .level-chip {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      text-align: center !important;
      padding: 0.5rem 0 !important;
      font-size: 0.88rem !important;
      font-weight: 700 !important;
      border: 1px solid #e2e8f0;
      background: #ffffff;
      border-radius: 8px !important;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .level-chip:hover {
      background: #f8fafc;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    .level-chip.active {
      background: #0f172a !important;
      color: #ffffff !important;
      border-color: #0f172a !important;
    }

    .format-options-row {
      display: flex;
      align-items: center;
      margin-top: 0.85rem;
      padding-top: 0.85rem;
      border-top: 1px solid #f1f5f9;
      font-size: 0.85rem;
      color: #64748b;
      gap: 12px;
    }

    /* 3. Action Buttons */
    .btn-action-group {
      display: flex;
      gap: 12px;
      margin-top: 1.25rem;
      width: 100%;
      box-sizing: border-box;
    }

    .btn-action-group .btn-lg {
      flex: 1;
      min-height: 48px;
      padding: 0.75rem 1.5rem;
      border-radius: 12px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
      box-sizing: border-box;
    }

    .btn-action-group .btn-outline {
      background: #ffffff;
      color: #0f172a;
      border: 1px solid rgba(0, 0, 0, 0.15);
    }

    .btn-action-group .btn-outline:hover {
      background: #f8fafc;
      border-color: #0f172a;
    }

    .btn-action-group .btn-download {
      background: #0f172a;
      color: #ffffff;
      border: none;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    }

    .btn-action-group .btn-download:hover {
      background: #1e293b;
    }

    @media (max-width: 768px) {
      .suite-tabs-wrap {
        width: 100%;
        margin-bottom: 1.25rem;
        border-bottom: none;
        padding: 0;
        justify-content: stretch;
      }
      .suite-tabs-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
      }
      .suite-tab-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #475569;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
        box-sizing: border-box;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
      }
      .suite-tab-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .suite-tab-item svg {
        flex-shrink: 0;
        opacity: 0.7;
        color: currentColor;
      }
      .suite-tab-item:hover,
      .suite-tab-item:focus {
        color: #0f172a;
        border-color: rgba(0, 0, 0, 0.2);
        text-decoration: none;
      }
      .suite-tab-item.active {
        color: #0f172a;
        font-weight: 700;
        background: #f8fafc;
        border: 1.5px solid #0f172a;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
      }
      .suite-tab-item.active svg {
        color: #0f172a;
        opacity: 1;
      }

      .dropzone {
        padding: 2.6rem 1.25rem;
        border-radius: 16px;
      }
      .dropzone-icon-badge {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
        border-radius: 12px;
      }
      .dropzone-title {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
      }
      .dropzone-cta-btn {
        padding: 0.55rem 1.35rem;
        font-size: 0.88rem;
        border-radius: 8px;
        margin-bottom: 0.75rem;
      }
      .dropzone-hints {
        gap: 12px;
      }

      /* Minimalist Hero on Mobile matching PC */
      .hero-sec {
        margin: 1.5rem auto 1rem auto;
        padding: 0 1rem;
        text-align: center;
      }
      .hero-title {
        font-size: 1.45rem;
        line-height: 1.3;
        margin-bottom: 0.35rem;
        letter-spacing: -0.02em;
      }
      .hero-sub {
        font-size: 0.88rem;
        line-height: 1.55;
        max-width: 92%;
        margin: 0 auto;
        color: #64748b;
      }
      .hero-badge {
        font-size: 0.74rem;
        padding: 2px 8px;
        margin-bottom: 0.5rem;
      }

      /* Minimalist Guide Area Below Workspace on Mobile matching PC */
      /* SEO Hub styles managed exclusively in shared/seo-hub.css */
