    :root {
      --color-bg: #faf8f5;
      --color-surface: #ffffff;
      --color-primary: #5d4e6d;
      --color-secondary: #f4a5ae;
      --color-accent: #b8d4e8;
      --color-text: #3a3a3a;
      --color-muted: #a8a8a8;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--color-bg);
      color: var(--color-text);
      overflow-x: hidden;
    }

    .app {
      display: grid;
      grid-template-columns: 340px 1fr;
      min-height: 100vh;
    }

    /* Sidebar */
    .sidebar {
      background: #ffffff;
      border-right: 1px solid rgba(0, 0, 0, 0.08);
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .sidebar-header {
      flex-shrink: 0;
      padding: 24px 24px 16px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .palette-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-buttons {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .settings-icon-toggle {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: #fff;
      color: var(--color-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }

    .settings-icon-toggle:hover {
      background: var(--color-secondary);
      color: #fff;
      border-color: var(--color-secondary);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .settings-icon-toggle.active {
      background: var(--color-secondary);
      color: #fff;
      border-color: var(--color-secondary);
    }

    .sidebar-body {
      flex: 1;
      overflow-y: auto;
      padding: 5px 24px 24px;
    }

    .section-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #999;
      margin-bottom: 12px;
      margin-top: 24px;
    }

    .input-area {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 16px;
      border: 1px solid #e9ecef;
      transition: all 0.3s ease;
    }

    .input-area:focus-within {
      border-color: var(--color-secondary);
    }

    textarea {
      width: 100%;
      min-height: 70px;
      border: none;
      background: transparent;
      padding: 4px;
      font-family: 'Inter', sans-serif;
      font-size: 0.875rem;
      resize: vertical;
      outline: none;
      color: #333;
    }

    textarea::placeholder {
      color: #999;
    }

    .btn {
      border-radius: 8px;
      border: none;
      padding: 10px 18px;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--color-secondary);
      color: #fff;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn:hover {
      background: var(--color-primary);
    }

    .btn:active {
      transform: scale(0.98);
    }

    .btn.small {
      padding: 8px 14px;
      font-size: 0.8rem;
    }

    .palette-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-right: 4px;
    }

    .palette-card {
      border-radius: 12px;
      border: 2px solid #e9ecef;
      padding: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      background: #fff;
    }

    .palette-card:hover {
      border-color: var(--color-secondary);
      transform: translateY(-2px);
    }

    .palette-card.active {
      border-color: var(--color-secondary);
      background: rgba(244, 165, 174, 0.05);
    }

    .color-edit-label {
      flex: 1;
      font-size: 0.95rem;
      font-weight: 600;
      color: #333;
    }

    /* Floating Palette Editor (fixed position over sidebar) */
    .palette-editor-floating {
      display: none;
      position: fixed;
      top: 70px;
      left: 0px;
      width: 340px;
      background: #fff;
      z-index: 1000;
      padding: 16px 24px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      max-height: calc(100vh - 100px);
      overflow-y: auto;
    }

    .palette-editor-floating.active {
      display: block;
    }

    .palette-editor-floating .palette-detail-title {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #999;
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .copy-css-btn {
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
    }

    .copy-css-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--color-primary);
    }

    .copy-css-btn.copied {
      color: #28a745;
    }

    .palette-editor-floating .color-edit-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .palette-editor-floating .color-edit-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
      cursor: pointer;
      position: relative;
      transition: border-color 0.2s ease;
    }

    .palette-editor-floating .color-edit-item:hover {
      border-color: var(--color-secondary);
    }

    .palette-editor-floating .color-edit-item input[type="color"] {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .palette-editor-floating .color-edit-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid rgba(0, 0, 0, 0.1);
      flex-shrink: 0;
      pointer-events: none;
    }

    .palette-editor-floating .color-edit-label {
      flex: 1;
      font-size: 0.8rem;
      font-weight: 600;
      color: #333;
      pointer-events: none;
    }

    /* Floating AI Prompt Panel */
    .prompt-panel-floating {
      display: none;
      position: fixed;
      top: 70px;
      left: 0px;
      width: 340px;
      background: #fff;
      z-index: 1000;
      padding: 16px 24px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      max-height: calc(100vh - 100px);
      overflow-y: auto;
    }

    .prompt-panel-floating.active {
      display: block;
    }

    .prompt-panel-header {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #999;
      margin-bottom: 16px;
    }

    .step-label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }

    .step-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: var(--color-secondary);
      font-size: 0.65rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border: 1.5px solid var(--color-secondary);
    }

    .step-text {
      font-size: 0.8rem;
      font-weight: 600;
      color: #333;
    }

    .prompt-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: #333;
      display: block;
      margin-bottom: 8px;
    }

    .prompt-input-section {
      margin-bottom: 16px;
    }

    .prompt-input-section .input-area {
      margin-bottom: 12px;
    }

    .btn-row {
      display: flex;
      gap: 8px;
    }

    .btn-row .btn {
      flex: 1;
    }

    .btn-google {
      background: #fff;
      color: #4285f4;
      border: 1px solid #4285f4;
    }

    .btn-google:hover {
      background: #4285f4;
      color: #fff;
    }

    .prompt-output-section {
      margin-bottom: 16px;
    }

    .prompt-output-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .prompt-output-header .prompt-label {
      margin-bottom: 0;
    }

    .copy-prompt-btn {
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      display: none;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
    }

    .copy-prompt-btn.visible {
      display: flex;
    }

    .copy-prompt-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--color-primary);
    }

    .copy-prompt-btn.copied {
      color: #28a745;
    }

    .prompt-output-area {
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 8px;
      padding: 12px;
      font-size: 0.8rem;
      line-height: 1.5;
      color: #333;
      max-height: 150px;
      overflow-y: auto;
      white-space: pre-wrap;
      word-break: break-word;
      position: relative;
    }

    .prompt-warning {
      display: none;
      background: #fff3cd;
      border: 1px solid #ffc107;
      border-radius: 6px;
      padding: 8px 12px;
      margin-bottom: 10px;
      font-size: 0.75rem;
      color: #856404;
      line-height: 1.4;
    }

    .prompt-warning i {
      margin-right: 6px;
      color: #e6a000;
    }

    .prompt-divider {
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
      margin: 20px 0;
    }

    .palette-count-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .palette-count-row .prompt-label {
      margin-bottom: 0;
    }

    .palette-count-select {
      padding: 6px 12px;
      border: 1px solid #e9ecef;
      border-radius: 6px;
      background: #fff;
      font-size: 0.85rem;
      font-family: 'Inter', sans-serif;
      color: #333;
      cursor: pointer;
    }

    .palette-count-select:focus {
      outline: none;
      border-color: var(--color-secondary);
    }

    .json-input-section .input-area {
      margin-bottom: 12px;
    }

    /* History dropdown styles */
    .history-toggle {
      display: none;
    }

    .history-toggle.visible {
      display: flex;
    }

    .history-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 1001;
      max-height: 300px;
      overflow-y: auto;
    }

    .history-dropdown.active {
      display: block;
    }

    .history-item {
      padding: 12px 16px;
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
      transition: background 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .history-item-content {
      flex: 1;
      min-width: 0;
    }

    .history-item-delete {
      display: none;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border: none;
      background: transparent;
      color: #999;
      cursor: pointer;
      border-radius: 4px;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .history-item:hover .history-item-delete {
      display: flex;
    }

    .history-item-delete:hover {
      background: #fee2e2;
      color: #dc2626;
    }

    .history-item:last-child {
      border-bottom: none;
    }

    .history-item:hover {
      background: #f8f9fa;
    }

    .history-item.active {
      background: #e3f2fd;
    }

    .history-item-title {
      font-size: 0.85rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 4px;
    }

    .history-item-meta {
      font-size: 0.7rem;
      color: #999;
    }

    .history-item-preset {
      color: var(--color-secondary);
    }

    .sidebar-header {
      position: relative;
    }

    /* Make sidebar-body relative for absolute positioning */
    .sidebar-body {
      position: relative;
    }

    .swatch-row {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
    }

    .swatch {
      height: 28px;
      border-radius: 6px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      transition: transform 0.2s ease;
      position: relative;
    }

    .palette-edit-mode .swatch {
      cursor: pointer;
    }

    .palette-edit-mode .swatch:hover {
      transform: scale(1.1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .swatch input[type="color"] {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    /* Main Content */
    .main-content {
      background: var(--color-bg);
      overflow-y: auto;
      padding: 0;
    }

    .content-section {
      padding: 60px 50px;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .content-section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      .content-section {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    /* Hero */
    .hero {
      background: var(--color-surface);
      border-radius: 24px;
      padding: 70px 60px;
      text-align: center;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .hero-badge {
      display: inline-block;
      background: var(--color-secondary);
      color: #fff;
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 24px;
    }

    .hero-title {
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 1.2;
      color: var(--color-primary);
      margin-bottom: 24px;
    }

    .hero-description {
      font-size: 1.25rem;
      color: var(--color-text);
      opacity: 0.8;
      max-width: 700px;
      margin: 0 auto 40px;
      line-height: 1.7;
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 50px;
    }

    .stat-item {
      text-align: center;
      padding: 24px;
      background: var(--color-bg);
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      transition: all 0.3s ease;
    }

    .stat-item:hover {
      transform: translateY(-5px);
      border-color: var(--color-secondary);
    }

    .stat-number {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--color-secondary);
      display: block;
      margin-bottom: 8px;
    }

    .stat-label {
      font-size: 0.9rem;
      color: var(--color-muted);
      font-weight: 500;
    }

    /* Section Title Variations */
    .section-header {
      margin-bottom: 40px;
    }

    /* Hero section - center aligned */
    .section-header.center {
      text-align: center;
    }

    .section-header.center .section-subtitle {
      margin: 0 auto;
    }

    /* Psychology section - center aligned */
    .section-header.psychology {
      text-align: center;
    }

    .section-header.psychology .section-subtitle {
      margin: 0 auto;
    }

    /* Theory section - left aligned, smaller font */
    .section-header.theory .section-title {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
    }

    /* Component section - left aligned, smaller font */
    .section-header.components .section-title {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
    }

    /* Psychology section - left aligned with underline */
    .section-header.underline .section-title {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 3px solid var(--color-secondary);
      display: inline-block;
    }

    /* Theory section - center with background */
    .section-header.background {
      text-align: center;
      background: var(--color-surface);
      padding: 40px;
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .section-header.background .section-title {
      font-size: 2.8rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
    }

    .section-header.background .section-subtitle {
      margin: 0 auto;
    }

    /* Component section - left aligned, larger */
    .section-header.large .section-title {
      font-size: 3rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 16px;
    }

    .section-subtitle {
      font-size: 1.15rem;
      color: var(--color-muted);
      line-height: 1.6;
      max-width: 800px;
    }

    /* Psychology Cards */
    .psychology-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 40px;
    }

    .psychology-card {
      background: var(--color-surface);
      border-radius: 20px;
      padding: 40px 32px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      transition: all 0.3s ease;
    }

    .psychology-card:hover {
      transform: translateY(-8px);
      border-color: var(--color-secondary);
    }

    .psychology-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .psychology-icon {
      width: 56px;
      height: 56px;
      background: var(--color-secondary);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: #fff;
      flex-shrink: 0;
    }

    .psychology-title {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--color-primary);
      margin: 0;
    }

    .psychology-description {
      font-size: 0.95rem;
      color: var(--color-text);
      line-height: 1.7;
      margin-bottom: 24px;
      opacity: 0.85;
      min-height: 120px;
    }

    .psychology-list {
      list-style: none;
    }

    .psychology-list li {
      padding: 10px 0;
      color: var(--color-text);
      font-size: 0.9rem;
      line-height: 1.6;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .psychology-list li:last-child {
      border-bottom: none;
    }

    .psychology-list li i {
      color: var(--color-secondary);
      margin-right: 10px;
      width: 16px;
    }

    /* Theory Timeline */
    .theory-timeline {
      margin-top: 40px;
    }

    .theory-item {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 40px;
      padding: 40px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .theory-item:last-child {
      border-bottom: none;
    }

    .theory-left {
      text-align: right;
    }

    .theory-color-name {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 4px;
    }

    .theory-color-name-en {
      font-size: 0.85rem;
      color: var(--color-muted);
      margin-bottom: 12px;
      display: block;
    }

    .theory-color-display {
      width: 100%;
      padding: 16px;
      border-radius: 12px;
      margin: 12px 0;
      border: 2px solid rgba(0, 0, 0, 0.1);
      background: var(--color-surface);
    }

    .theory-color-circles {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .theory-color-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid rgba(0, 0, 0, 0.15);
      cursor: pointer;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .theory-color-circle:hover {
      transform: scale(1.15);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .theory-color-codes {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .theory-color-code-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .theory-color-label {
      font-size: 0.75rem;
      color: var(--color-muted);
      min-width: 80px;
      font-weight: 600;
    }

    .theory-color-code {
      font-size: 0.8rem;
      font-family: 'Monaco', 'Courier New', monospace;
      color: var(--color-text);
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.03);
      transition: all 0.3s ease;
      font-weight: 600;
    }

    .theory-color-code:hover {
      background: var(--color-secondary);
      color: #fff;
    }

    .theory-usage-rate {
      display: inline-block;
      background: var(--color-accent);
      color: var(--color-primary);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .theory-right {
      padding-left: 40px;
      border-left: 3px solid var(--color-secondary);
    }

    .theory-header-inline {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .theory-icon-inline {
      width: 40px;
      height: 40px;
      background: var(--color-secondary);
      color: #fff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .theory-description {
      font-size: 1.05rem;
      color: var(--color-text);
      line-height: 1.8;
      margin-bottom: 20px;
    }

    .theory-details-list {
      list-style: none;
      margin-top: 20px;
    }

    .theory-details-list li {
      padding: 12px 0;
      color: var(--color-text);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .theory-details-list li i {
      color: var(--color-secondary);
      margin-right: 10px;
      width: 18px;
    }

    /* Component Grid */
    .component-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 40px;
    }

    .component-card {
      background: transparent;
      border-radius: 0;
      padding: 28px 24px;
      border: none;
      border-left: 4px solid var(--color-secondary);
      transition: all 0.3s ease;
    }

    .component-card:hover {
      transform: translateX(4px);
      border-left-color: var(--color-primary);
    }

    .component-badge {
      display: inline-block;
      background: var(--color-secondary);
      color: #fff;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .component-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 12px;
    }

    .component-text {
      font-size: 0.9rem;
      color: var(--color-text);
      line-height: 1.6;
      opacity: 0.8;
      margin-bottom: 20px;
    }

    .component-demo {
      padding: 20px;
      background: var(--color-surface);
      border-radius: 12px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      margin-top: auto;
    }

    /* Buttons Demo */
    .button-group {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .demo-button {
      padding: 12px 24px;
      border-radius: 8px;
      border: none;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .demo-button.primary {
      background: var(--color-secondary);
      color: #fff;
    }

    .demo-button.primary:hover {
      background: var(--color-primary);
    }

    .demo-button.secondary {
      background: transparent;
      border: 2px solid var(--color-primary);
      color: var(--color-primary);
    }

    .demo-button.secondary:hover {
      background: var(--color-primary);
      color: #fff;
    }

    .demo-button.accent {
      background: var(--color-accent);
      color: var(--color-primary);
    }

    /* Form Demo */
    .demo-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .demo-input {
      padding: 12px 16px;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .demo-input:focus {
      outline: none;
      border-color: var(--color-secondary);
    }

    /* Card Demo */
    .demo-card {
      background: var(--color-surface);
      padding: 20px;
      border-radius: 12px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .demo-card-icon {
      width: 48px;
      height: 48px;
      background: var(--color-accent);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-primary);
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .demo-card-content {
      flex: 1;
    }

    .demo-card-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 8px;
    }

    .demo-card-text {
      font-size: 0.875rem;
      color: var(--color-text);
      opacity: 0.8;
      line-height: 1.5;
    }

    /* Alert Demo */
    .demo-alert {
      padding: 16px 20px;
      border-radius: 10px;
      border: 2px solid var(--color-secondary);
      background: rgba(244, 165, 174, 0.1);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .demo-alert i {
      color: var(--color-secondary);
      font-size: 1.2rem;
    }

    .demo-alert-text {
      font-size: 0.9rem;
      color: var(--color-text);
      font-weight: 500;
    }

    /* Dialog Demo */
    .demo-dialog {
      background: var(--color-surface);
      border-radius: 16px;
      border: 2px solid rgba(0, 0, 0, 0.08);
      padding: 28px;
      max-width: 100%;
    }

    .demo-dialog-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .demo-dialog-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-primary);
    }

    .demo-dialog-close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: none;
      background: var(--color-bg);
      color: var(--color-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .demo-dialog-close:hover {
      background: var(--color-secondary);
      color: #fff;
    }

    .demo-dialog-body {
      font-size: 0.9rem;
      color: var(--color-text);
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .demo-dialog-actions {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    /* Footer */
    .footer {
      background: var(--color-primary);
      color: rgba(255, 255, 255, 0.9);
      padding: 50px 50px 30px;
      margin-top: 80px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 50px;
      margin-bottom: 40px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .footer-logo {
      width: 50px;
      height: 50px;
      background: var(--color-surface);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--color-primary);
    }

    .footer-brand-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: #fff;
    }

    .footer-description {
      font-size: 0.9rem;
      line-height: 1.7;
      opacity: 0.8;
      margin-bottom: 24px;
    }

    .footer-section-title {
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 16px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 10px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .footer-links a:hover {
      color: #fff;
      padding-left: 4px;
    }

    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .social-link:hover {
      background: var(--color-secondary);
      transform: translateY(-3px);
    }

    .footer-bottom {
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
      font-size: 0.85rem;
      opacity: 0.7;
    }

    .footer-bottom a {
      color: #fff;
      text-decoration: none;
      font-weight: 600;
    }

    @media (max-width: 1200px) {
      .app {
        grid-template-columns: 300px 1fr;
      }

      .content-section {
        padding: 50px 40px;
      }

      .psychology-grid,
      .component-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 968px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      }

      .hero-title {
        font-size: 2.5rem;
      }

      .hero-stats,
      .psychology-grid,
      .component-grid {
        grid-template-columns: 1fr;
      }

      .theory-item {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .theory-left {
        text-align: left;
      }

      .theory-right {
        padding-left: 20px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }
    }

    /* ===== New UI Preview Sections ===== */

    /* Common Section Styles */
    .preview-section {
      padding: 80px 40px;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }

    .preview-section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .section-heading {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--color-text);
      margin-bottom: 60px;
      text-align: center;
    }

    /* ===== Hero Section ===== */
    .hero-section {
      min-height: 100vh;
      display: flex;
      align-items: center;
      background: var(--color-surface);
      padding: 60px 40px;
      position: relative;
    }

    .hero-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    .hero-left {
      z-index: 2;
    }

    .hero-badge {
      display: inline-block;
      padding: 8px 20px;
      background: var(--color-accent);
      color: var(--color-primary);
      border-radius: 20px;
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 24px;
    }

    .hero-title {
      font-size: 3.5rem;
      font-weight: 900;
      color: var(--color-text);
      line-height: 1.2;
      margin-bottom: 24px;
    }

    .hero-description {
      font-size: 1.125rem;
      color: var(--color-muted);
      line-height: 1.7;
      margin-bottom: 32px;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .hero-btn {
      padding: 16px 32px;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .hero-btn-primary {
      background: var(--color-secondary);
      color: #fff;
    }

    .hero-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .hero-btn-secondary {
      background: transparent;
      color: var(--color-text);
      border: 2px solid var(--color-text);
    }

    .hero-btn-secondary:hover {
      background: var(--color-text);
      color: #fff;
    }

    /* Browser Mockup Styles */
    .browser-mockup {
      width: 100%;
      height: 520px;
      background: var(--color-surface);
      border-radius: 12px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(0, 0, 0, 0.08);
      display: flex;
      flex-direction: column;
      font-family: 'Inter', sans-serif;
    }

    .browser-header {
      height: 36px;
      background: #f0f2f5;
      display: flex;
      align-items: center;
      padding: 0 16px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      gap: 16px;
    }

    .browser-dots {
      display: flex;
      gap: 6px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .dot-red {
      background: #FF5F56;
    }

    .dot-yellow {
      background: #FFBD2E;
    }

    .dot-green {
      background: #27C93F;
    }

    .browser-address-bar {
      flex: 1;
      height: 24px;
      background: var(--color-surface);
      border-radius: 4px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
    }

    .address-line {
      display: block;
      width: 80px;
      height: 8px;
      background: var(--color-muted);
      border-radius: 4px;
      opacity: 0.5;
    }

    .browser-actions {
      color: #888;
      font-size: 12px;
    }

    .browser-body {
      flex: 1;
      background: var(--color-surface);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Mockup Hero Headline */
    .mockup-headline-area {
      padding: 24px;
      background: var(--color-surface);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .headline-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .headline-line {
      border-radius: 6px;
    }

    .headline-accent {
      width: 85%;
      height: 14px;
      background: var(--color-secondary);
    }

    .headline-title {
      width: 65%;
      height: 14px;
      background: var(--color-text);
    }

    .headline-visual {
      display: flex;
      gap: 12px;
    }

    .image-placeholder {
      width: 80px;
      height: 60px;
      background: var(--color-bg);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-muted);
      font-size: 18px;
    }

    /* Mockup Navigation */
    .mockup-nav {
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      background: var(--color-primary);
    }

    .mockup-nav-logo {
      width: 28px;
      height: 28px;
      background: var(--color-secondary);
      border-radius: 4px;
    }

    .mockup-nav-lines {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .nav-line {
      display: block;
      width: 40px;
      height: 8px;
      background: var(--color-surface);
      border-radius: 4px;
      opacity: 0.6;
    }

    /* Mockup Main Area */
    .mockup-main-area {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      padding: 16px 24px;
      background: var(--color-bg);
      flex: 1;
    }

    /* Left Content - Text Mockup */
    .mockup-left-content {
      background: var(--color-surface);
      border-radius: 8px;
      padding: 16px 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .mockup-text-lines {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .text-line {
      height: 8px;
      background: var(--color-muted);
      border-radius: 4px;
      opacity: 0.4;
    }

    .text-line-xl {
      width: 100%;
    }

    .text-line-lg {
      width: 85%;
    }

    .text-line-md {
      width: 70%;
    }

    .text-line-sm {
      width: 50%;
    }

    .text-line-spacer {
      height: 8px;
    }

    /* Right Content - Form Mockup */
    .mockup-right-form {
      display: flex;
      align-items: flex-start;
    }

    .mockup-form-card {
      background: var(--color-surface);
      border-radius: 8px;
      padding: 16px;
      width: 100%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .form-line-title {
      height: 10px;
      width: 50%;
      background: var(--color-text);
      border-radius: 5px;
    }

    .form-line-subtitle {
      height: 6px;
      width: 70%;
      background: var(--color-muted);
      border-radius: 3px;
      opacity: 0.5;
      margin-bottom: 8px;
    }

    .form-field-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .form-label-mock {
      height: 5px;
      width: 30%;
      background: var(--color-text);
      border-radius: 3px;
      opacity: 0.7;
    }

    .form-input-mock {
      height: 22px;
      background: var(--color-bg);
      border: 1px solid var(--color-muted);
      border-radius: 4px;
      opacity: 0.5;
    }

    .form-textarea-mock {
      height: 36px;
    }

    .form-btn-mock {
      height: 24px;
      width: 45%;
      background: var(--color-secondary);
      border-radius: 4px;
      margin-top: 2px;
    }

    /* Mockup Features */
    .mockup-features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding: 16px 24px 20px;
      background: var(--color-bg);
    }

    .mockup-feature-card {
      text-align: center;
      padding: 14px 10px;
      background: var(--color-surface);
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.05);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .feature-icon {
      width: 32px;
      height: 32px;
      background: var(--color-accent);
      border-radius: 50%;
      margin: 0 auto 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-primary);
      font-size: 12px;
    }

    .feature-lines {
      display: flex;
      flex-direction: column;
      gap: 5px;
      align-items: center;
    }

    .feature-line {
      height: 5px;
      background: var(--color-muted);
      border-radius: 3px;
      opacity: 0.4;
    }

    .feature-line-lg {
      width: 80%;
    }

    .feature-line-md {
      width: 60%;
    }

    .feature-line-sm {
      width: 40%;
    }

    /* ===== Mobile Mockup Section ===== */
    .mobile-section {
      background: var(--color-surface);
    }

    .mobile-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
      max-width: 1000px;
      margin: 0 auto;
      justify-items: center;
    }

    .mobile-mockup {
      display: flex;
      justify-content: center;
    }

    .mobile-frame {
      width: 260px;
      height: 520px;
      background: var(--color-surface);
      border-radius: 36px;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .mobile-frame-accent {
      background: var(--color-primary);
    }

    .mobile-frame-accent .mobile-status-bar,
    .mobile-frame-accent .mobile-brand-header,
    .mobile-frame-accent .mobile-tab-bar {
      background: var(--color-primary);
    }

    .mobile-frame-accent .status-time,
    .mobile-frame-accent .status-icons,
    .mobile-frame-accent .mobile-brand-header {
      color: rgba(255, 255, 255, 0.8);
    }

    .mobile-frame-accent .mobile-tab-bar {
      border-top-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-frame-accent .tab-item {
      color: rgba(255, 255, 255, 0.5);
    }

    .mobile-frame-accent .tab-item.active {
      background: var(--color-surface);
      color: var(--color-primary);
    }

    .mobile-frame-accent .brand-name {
      color: rgba(255, 255, 255, 0.7);
    }

    .mobile-frame-accent .brand-logo {
      background: var(--color-surface);
    }

    .mobile-frame-accent .brand-cta-button {
      background: var(--color-secondary);
    }

    /* ステータスバー */
    .mobile-status-bar {
      padding: 12px 20px 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--color-surface);
    }

    .status-time {
      font-size: 14px;
      font-weight: 600;
      color: var(--color-text);
    }

    .status-icons {
      display: flex;
      gap: 6px;
      font-size: 12px;
      color: var(--color-text);
    }

    /* アプリヘッダー */
    .mobile-app-header {
      padding: 8px 20px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--color-surface);
    }

    .app-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--color-text);
    }

    .app-header-icons {
      display: flex;
      gap: 16px;
      color: var(--color-text);
      font-size: 16px;
    }

    /* Mobile Content */
    .mobile-content {
      flex: 1;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* タブバー */
    .mobile-tab-bar {
      padding: 12px 24px 20px;
      display: flex;
      justify-content: space-around;
      background: var(--color-surface);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .tab-item {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      color: var(--color-muted);
      font-size: 16px;
      transition: all 0.3s ease;
    }

    .tab-item.active {
      background: var(--color-primary);
      color: #fff;
    }

    /* ===== ECアプリ画面 ===== */
    .ec-content {
      gap: 16px;
    }

    .ec-categories {
      display: flex;
      gap: 8px;
    }

    .category-chip {
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      background: rgba(0, 0, 0, 0.05);
      color: var(--color-muted);
    }

    .category-chip.active {
      background: var(--color-primary);
      color: #fff;
    }

    .ec-products {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      flex: 1;
    }

    .product-card {
      background: var(--color-bg);
      border-radius: 16px;
      padding: 12px;
      display: flex;
      flex-direction: column;
    }

    .product-image {
      height: 80px;
      background: var(--color-accent);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      color: var(--color-primary);
      margin-bottom: 10px;
    }

    .product-info {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .product-name {
      height: 8px;
      width: 80%;
      background: var(--color-text);
      border-radius: 4px;
      opacity: 0.7;
    }

    .product-price {
      height: 8px;
      width: 50%;
      background: var(--color-secondary);
      border-radius: 4px;
    }

    /* ===== ブランド画面（中央） ===== */
    .mobile-brand-header {
      padding: 8px 20px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--color-muted);
      font-size: 18px;
    }

    .brand-content {
      align-items: center;
      justify-content: center;
      gap: 40px;
      padding-bottom: 40px;
    }

    .brand-logo-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .brand-logo {
      width: 100px;
      height: 100px;
      background: var(--color-accent);
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
      color: var(--color-primary);
    }

    .brand-name {
      font-size: 18px;
      font-weight: 600;
      color: var(--color-muted);
      letter-spacing: 4px;
    }

    .brand-cta-button {
      width: 80%;
      padding: 16px;
      background: var(--color-primary);
      color: #fff;
      border: none;
      border-radius: 30px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
    }

    /* ===== Settings Screen ===== */
    .settings-header {
      justify-content: flex-start;
      gap: 16px;
    }

    .settings-header i {
      color: var(--color-text);
      font-size: 16px;
    }

    .header-spacer {
      flex: 1;
    }

    .settings-content {
      gap: 20px;
      padding-top: 12px;
    }

    .settings-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .settings-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .settings-label {
      font-size: 12px;
      color: var(--color-muted);
      font-weight: 500;
    }

    .settings-action {
      font-size: 12px;
      color: var(--color-secondary);
      font-weight: 600;
    }

    .settings-input {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: var(--color-surface);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 12px;
      font-size: 14px;
      color: var(--color-text);
    }

    .settings-input i {
      color: var(--color-muted);
      font-size: 14px;
    }

    .settings-input span {
      flex: 1;
    }

    .input-end-icon {
      margin-left: auto;
    }

    .settings-save-button {
      width: 100%;
      padding: 16px;
      background: var(--color-secondary);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 12px;
    }

    /* ===== Color Palette Detail Section ===== */
    .palette-detail-section {
      background: var(--color-bg);
    }

    .palette-detail-container {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 60px;
      align-items: start;
    }

    /* Left: Circle Visual */
    .palette-visual {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
      position: sticky;
      top: 40px;
    }

    .donut-chart {
      position: relative;
      width: 340px;
      height: 340px;
    }

    .donut-svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }

    .donut-segment {
      fill: transparent;
      stroke-width: 36;
      transition: all 0.5s ease;
    }

    .donut-outline {
      fill: transparent;
      stroke: rgba(0, 0, 0, 0.06);
      stroke-width: 36.5;
    }

    .donut-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
    }

    .donut-label {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--color-text);
    }

    /* Palette Bar */
    .palette-bar {
      width: 100%;
      height: 32px;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .bar-segment {
      height: 100%;
      transition: all 0.5s ease;
    }

    #bar-primary {
      background: var(--color-primary);
    }

    #bar-secondary {
      background: var(--color-secondary);
    }

    #bar-accent {
      background: var(--color-accent);
    }

    #bar-background {
      background: var(--color-bg);
    }

    #bar-surface {
      background: var(--color-surface);
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    }

    /* Right: Color List */
    .palette-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .color-list-item {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 20px 24px;
      background: var(--color-surface);
      border-radius: 16px;
      transition: all 0.3s ease;
      position: relative;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .color-list-item:hover {
      transform: translateX(8px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .color-dot {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    #dot-primary {
      background: var(--color-primary);
    }

    #dot-secondary {
      background: var(--color-secondary);
    }

    #dot-accent {
      background: var(--color-accent);
    }

    #dot-background {
      background: var(--color-bg);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    #dot-surface {
      background: var(--color-surface);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .color-details {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .color-name {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-text);
    }

    .color_desc {
      font-size: 0.85rem;
      color: var(--color-muted);
    }

    .color-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--color-primary);
      background: var(--color-accent);
      padding: 2px 8px;
      border-radius: 10px;
      margin-top: 4px;
      width: fit-content;
    }

    .color-hex-btn {
      padding: 8px 16px;
      border-radius: 8px;
      background: var(--color-surface);
      border: 1px solid rgba(0, 0, 0, 0.08);
      color: var(--color-text);
      font-family: 'Monaco', 'Courier New', monospace;
      font-size: 0.9rem;
      font-weight: 600;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .color-list-item:hover .color-hex-btn {
      background: var(--color-secondary);
      color: #fff;
      border-color: var(--color-secondary);
    }

    .color-list-item.copied .color-hex-btn {
      background: var(--color-primary);
      color: #fff;
      border-color: var(--color-primary);
    }

    @media (max-width: 900px) {
      .palette-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .palette-visual {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
      }

      .donut-chart {
        width: 220px;
        height: 220px;
      }

      .palette-bar {
        width: 220px;
        height: 28px;
      }
    }

    @media (max-width: 600px) {
      .color-list-item {
        flex-wrap: wrap;
      }

      .color-hex-btn {
        margin-left: auto;
      }

      .color-list-item {
        padding: 16px;
      }
    }

    /* ===== Admin Dashboard Section ===== */
    .dashboard-section {
      background: var(--color-bg);
    }

    .dashboard-container {
      display: grid;
      grid-template-columns: 250px 1fr;
      gap: 40px;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
      min-height: 600px;
      overflow: hidden;
    }

    .dashboard-sidebar {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 24px;
    }

    .sidebar-logo {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 32px;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .nav-item {
      padding: 12px 16px;
      border-radius: 8px;
      color: var(--color-text);
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-item:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .nav-active {
      background: var(--color-primary);
      color: #fff;
    }

    .dashboard-main {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    /* 統計カード */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 24px;
    }

    .stat-card {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .stat-icon {
      width: 48px;
      height: 48px;
      background: var(--color-primary);
      color: #fff;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .stat-value {
      font-size: 2rem;
      font-weight: 800;
      color: var(--color-text);
    }

    .stat-label {
      font-size: 0.875rem;
      color: var(--color-muted);
    }

    /* コンポーネントグループ */
    .component-group {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 24px;
    }

    .component-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 16px;
    }

    /* ボタン */
    .button-group {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .dash-btn {
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dash-btn-primary {
      background: var(--color-primary);
      color: #fff;
    }

    .dash-btn-secondary {
      background: var(--color-secondary);
      color: #fff;
    }

    .dash-btn-outline {
      background: transparent;
      border: 2px solid var(--color-primary);
      color: var(--color-primary);
    }

    .dash-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Form */
    .form-demo {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .dash-input,
    .dash-select {
      padding: 12px 16px;
      border: 2px solid rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .dash-input:focus,
    .dash-select:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    .dash-checkbox {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    /* テーブル */
    .dash-table {
      width: 100%;
      border-collapse: collapse;
    }

    .dash-table th {
      text-align: left;
      padding: 12px;
      background: rgba(0, 0, 0, 0.05);
      font-weight: 600;
      color: var(--color-text);
    }

    .dash-table td {
      padding: 12px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      color: var(--color-text);
    }

    .badge {
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 0.875rem;
      font-weight: 600;
    }

    .badge-success {
      background: #7EC845;
      color: #fff;
    }

    .badge-warning {
      background: #F4B942;
      color: #fff;
    }

    .badge-error {
      background: #F26430;
      color: #fff;
    }

    /* アラート */
    .dash-alert {
      padding: 16px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .dash-alert-info {
      background: var(--color-accent);
      color: var(--color-primary);
    }

    .dash-alert-success {
      background: rgba(126, 200, 69, 0.15);
      color: #4a7c23;
      border-left: 4px solid #7EC845;
    }

    .dash-alert-warning {
      background: rgba(244, 185, 66, 0.15);
      color: #9a6e0a;
      border-left: 4px solid #F4B942;
    }

    .dash-alert-error {
      background: rgba(242, 100, 48, 0.15);
      color: #a83a12;
      border-left: 4px solid #F26430;
    }

    .alerts-demo {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* トップナビゲーションバー */
    .admin-topnav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--color-surface);
      padding: 12px 24px;
      border-radius: 12px;
      margin-bottom: 24px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .pagination-separated {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* タブ＋ページネーション横並びカード */
    .tabs-pagination-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    @media (max-width: 900px) {
      .tabs-pagination-cards {
        grid-template-columns: 1fr;
      }
    }

    .topnav-left {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    .topnav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--color-primary);
    }

    .topnav-logo i {
      font-size: 1.5rem;
    }

    .topnav-menu {
      display: flex;
      gap: 8px;
    }

    .topnav-link {
      padding: 8px 16px;
      border-radius: 8px;
      text-decoration: none;
      color: var(--color-muted);
      font-weight: 500;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .topnav-link:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--color-text);
    }

    .topnav-link.active {
      background: var(--color-primary);
      color: #fff;
    }

    .topnav-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .topnav-icon-btn {
      position: relative;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--color-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--color-muted);
      transition: all 0.3s ease;
    }

    .topnav-icon-btn:hover {
      background: var(--color-accent);
      color: var(--color-primary);
    }

    .notification-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      min-width: 18px;
      height: 18px;
      background: var(--color-secondary);
      color: #fff;
      border-radius: 9px;
      font-size: 0.7rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 5px;
    }

    .notification-badge.secondary {
      background: var(--color-primary);
    }

    .topnav-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--color-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      cursor: pointer;
    }

    /* タブ */
    .dash-tabs {
      display: flex;
      border-bottom: 2px solid rgba(0, 0, 0, 0.1);
      gap: 4px;
    }

    .dash-tab {
      padding: 12px 24px;
      font-weight: 600;
      color: var(--color-muted);
      cursor: pointer;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      transition: all 0.3s ease;
    }

    .dash-tab:hover {
      color: var(--color-text);
    }

    .dash-tab.active {
      color: var(--color-primary);
      border-bottom-color: var(--color-secondary);
    }

    .dash-tab-content {
      padding: 20px 0;
      color: var(--color-text);
      line-height: 1.6;
    }

    /* Form Side by Side */
    .form-demo-horizontal {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .dash-textarea {
      padding: 12px 16px;
      border: 2px solid rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      font-size: 1rem;
      font-family: 'Inter', sans-serif;
      min-height: 100px;
      resize: vertical;
      transition: all 0.3s ease;
    }

    .dash-textarea:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 8px;
    }

    /* ボタンバリエーション */
    .dash-btn-accent {
      background: var(--color-accent);
      color: var(--color-primary);
    }

    .dash-btn-success {
      background: #7EC845;
      color: #fff;
    }

    .dash-btn-warning {
      background: #F4B942;
      color: #fff;
    }

    .dash-btn.full-width {
      width: 100%;
      justify-content: center;
    }

    /* チェックボックス・ラジオボタン */
    .checkbox-radio-demo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }

    .demo-column {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .demo-subtitle {
      font-size: 1rem;
      font-weight: 600;
      color: var(--color-text);
      margin-bottom: 8px;
    }

    /* カスタムチェックボックス */
    .custom-checkbox {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      font-size: 0.95rem;
      color: var(--color-text);
      padding: 8px 0;
    }

    .custom-checkbox input {
      display: none;
    }

    .custom-checkbox .checkmark {
      width: 22px;
      height: 22px;
      border: 2px solid rgba(0, 0, 0, 0.2);
      border-radius: 6px;
      position: relative;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .custom-checkbox .checkmark::after {
      content: '';
      position: absolute;
      display: none;
      left: 6px;
      top: 2px;
      width: 6px;
      height: 11px;
      border: solid #fff;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    .custom-checkbox input:checked+.checkmark::after {
      display: block;
    }

    .custom-checkbox.primary input:checked+.checkmark {
      background: var(--color-primary);
      border-color: var(--color-primary);
    }

    .custom-checkbox.secondary input:checked+.checkmark {
      background: var(--color-secondary);
      border-color: var(--color-secondary);
    }

    .custom-checkbox.accent .checkmark {
      border-color: var(--color-accent);
    }

    .custom-checkbox.accent input:checked+.checkmark {
      background: var(--color-accent);
      border-color: var(--color-accent);
    }

    .custom-checkbox.accent input:checked+.checkmark::after {
      border-color: var(--color-primary);
    }

    .custom-checkbox.success input:checked+.checkmark {
      background: #7EC845;
      border-color: #7EC845;
    }

    /* カスタムラジオボタン */
    .custom-radio {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      font-size: 0.95rem;
      color: var(--color-text);
      padding: 8px 0;
    }

    .custom-radio input {
      display: none;
    }

    .custom-radio .radiomark {
      width: 22px;
      height: 22px;
      border: 2px solid rgba(0, 0, 0, 0.2);
      border-radius: 50%;
      position: relative;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .custom-radio .radiomark::after {
      content: '';
      position: absolute;
      display: none;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #fff;
    }

    .custom-radio input:checked+.radiomark::after {
      display: block;
    }

    .custom-radio.primary input:checked+.radiomark {
      background: var(--color-primary);
      border-color: var(--color-primary);
    }

    .custom-radio.secondary .radiomark {
      border-color: var(--color-secondary);
    }

    .custom-radio.secondary input:checked+.radiomark {
      background: var(--color-secondary);
      border-color: var(--color-secondary);
    }

    .custom-radio.accent .radiomark {
      border-color: var(--color-accent);
    }

    .custom-radio.accent input:checked+.radiomark {
      background: var(--color-accent);
      border-color: var(--color-accent);
    }

    .custom-radio.accent input:checked+.radiomark::after {
      background: var(--color-primary);
    }

    .custom-radio.warning input:checked+.radiomark {
      background: #F4B942;
      border-color: #F4B942;
    }

    /* ページネーション */
    .pagination-demo {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .pagination {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .page-link {
      padding: 10px 14px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .page-ellipsis {
      padding: 10px 8px;
      color: var(--color-muted);
    }

    /* プライマリスタイル */
    .pagination.primary-style .page-link {
      background: var(--color-surface);
      color: var(--color-text);
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .pagination.primary-style .page-link:hover {
      background: var(--color-bg);
      border-color: var(--color-primary);
    }

    .pagination.primary-style .page-link.active {
      background: var(--color-primary);
      color: #fff;
      border-color: var(--color-primary);
    }

    /* セカンダリスタイル */
    .pagination.secondary-style .page-link {
      background: transparent;
      color: var(--color-muted);
    }

    .pagination.secondary-style .page-link:hover {
      color: var(--color-secondary);
    }

    .pagination.secondary-style .page-link.active {
      background: var(--color-secondary);
      color: #fff;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    /* アクセントスタイル */
    .pagination.accent-style .page-link {
      background: var(--color-bg);
      color: var(--color-text);
      border-radius: 20px;
    }

    .pagination.accent-style .page-link:hover {
      background: var(--color-accent);
      color: var(--color-primary);
    }

    .pagination.accent-style .page-link.active {
      background: var(--color-accent);
      color: var(--color-primary);
      font-weight: 700;
    }

    /* ナビバーラッパー（幅を合わせる） */
    .admin-topnav-wrapper {
      margin-bottom: 24px;
    }

    .admin-topnav-wrapper .admin-topnav {
      margin-bottom: 0;
    }

    /* ダッシュボードインナー */
    .dashboard-inner {
      display: grid;
      grid-template-columns: 250px 1fr;
      gap: 40px;
    }

    /* タブ＋ページネーション横並び */
    .tabs-pagination-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .dash-tabs {
      border-bottom: none;
    }

    .pagination-inline {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    /* Form + Checkbox Side by Side */
    .form-checkbox-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .form-section-compact {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 20px;
    }

    .form-demo-compact {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .dash-textarea-sm {
      padding: 10px 14px;
      border: 2px solid rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      font-size: 0.9rem;
      font-family: 'Inter', sans-serif;
      min-height: 60px;
      resize: vertical;
      transition: all 0.3s ease;
    }

    .dash-textarea-sm:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    .checkbox-radio-section-compact {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 20px;
    }

    .checkbox-radio-compact {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .check-group,
    .radio-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* ボタン＋引用横並び */
    .buttons-quote-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: start;
    }

    .buttons-section {
      margin-bottom: 0;
    }

    .quote-section {
      background: var(--color-surface);
      border-radius: 12px;
      padding: 24px;
    }

    .dash-blockquote {
      margin: 0;
      padding-left: 20px;
      border-left: 4px solid var(--color-secondary);
    }

    .dash-blockquote p {
      font-size: 1rem;
      font-style: italic;
      color: var(--color-text);
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .dash-blockquote cite {
      font-size: 0.875rem;
      color: var(--color-muted);
      font-style: normal;
    }

    @media (max-width: 1000px) {
      .dashboard-inner {
        grid-template-columns: 1fr;
      }

      .form-checkbox-row,
      .buttons-quote-row {
        grid-template-columns: 1fr;
      }

      .tabs-pagination-row {
        flex-direction: column;
        align-items: flex-start;
      }

      .pagination-inline {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* カード */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .dash-card {
      background: var(--color-bg);
      border-radius: 12px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .card-icon {
      width: 48px;
      height: 48px;
      background: var(--color-secondary);
      color: #fff;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .card-title {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--color-text);
    }

    .card-text {
      font-size: 0.875rem;
      color: var(--color-muted);
      line-height: 1.6;
    }

    /* ===== フッター ===== */
    .preview-footer {
      background: var(--color-primary);
      color: #fff;
      padding: 60px 40px 30px;
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 50px;
      margin-bottom: 40px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .footer-logo {
      width: 50px;
      height: 50px;
      background: var(--color-surface);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--color-primary);
    }

    .footer-brand-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: #fff;
    }

    .footer-description {
      font-size: 0.9rem;
      line-height: 1.7;
      opacity: 0.8;
      margin-bottom: 24px;
      color: rgba(255, 255, 255, 0.9);
    }

    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .social-link:hover {
      background: var(--color-secondary);
      transform: translateY(-3px);
    }

    .footer-heading {
      font-size: 1.125rem;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .footer-links {
      list-style: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: #fff;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
    }

    .footer-lang-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-lang-link:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.4);
      transform: translateY(-2px);
    }

    .footer-lang-link i {
      font-size: 1rem;
    }

    /* レスポンシブ */
    @media (max-width: 768px) {
      .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .hero-right {
        height: 400px;
      }

      .hero-title {
        font-size: 2.5rem;
      }

      .dashboard-container {
        grid-template-columns: 1fr;
      }

      .mobile-grid {
        grid-template-columns: 1fr;
      }
    }
  </style>
    <style>
      /* New Sidebar Styles */
      .palette-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .palette-header .section-label {
        margin: 0;
        line-height: 32px;
      }

      .header-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
      }



      .settings-icon-toggle {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #fff;
        color: var(--color-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 0.9rem;
      }

      .settings-icon-toggle:hover {
        background: var(--color-secondary);
        color: #fff;
        border-color: var(--color-secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }

      .settings-icon-toggle.active {
        background: var(--color-secondary);
        color: #fff;
        border-color: var(--color-secondary);
      }

      .settings-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
        opacity: 0;
        border-radius: 12px;
        background: #f8f9fa;
        margin-bottom: 0;
      }

      .settings-panel.open {
        max-height: 800px;
        /* Arbitrary large height */
        opacity: 1;
        margin-bottom: 24px;
        border: 1px solid rgba(0, 0, 0, 0.05);
      }

      .settings-content {
        padding: 20px;
      }

      .color-pickers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
      }

      .color-picker-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
      }

      .color-picker-item:hover {
        border-color: var(--color-secondary);
      }

      .color-input-wrapper {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
      }

      .color-input {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        padding: 0;
        margin: 0;
        border: none;
        cursor: pointer;
        appearance: none;
        background: none;
      }

      .color-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .divider {
        height: 1px;
        background: rgba(0, 0, 0, 0.06);
        margin: 20px 0;
      }

      .mt-large {
        margin-top: 24px;
      }

      .full-width {
        width: 100%;
        justify-content: center;
      }

      /* Adjust existing styles */
      .input-area {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
      }

      .input-area:focus-within {
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(244, 165, 174, 0.1);
      }

    /* Responsive Design */
    @media (max-width: 768px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: relative;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      }

      .sidebar-header {
        padding: 16px;
      }

      .sidebar-body {
        padding: 5px 16px 16px;
        max-height: calc(50vh - 80px);
      }

      .palette-header {
        flex-direction: row;
        gap: 8px;
      }

      .section-label {
        font-size: 0.65rem;
        margin-top: 0;
        margin-bottom: 0;
      }

      .settings-icon-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
      }

      .palette-editor-floating,
      .prompt-panel-floating {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        max-height: 70vh;
      }

      .hero-section .hero-container {
        padding: 24px 16px;
      }

      .preview-container {
        padding: 24px 16px;
      }

      /* Dashboard responsive */
      .dashboard-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 16px;
      }

      .dashboard-sidebar {
        padding: 16px;
      }

      .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .admin-topnav {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
      }

      .topnav-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .topnav-menu {
        flex-wrap: wrap;
        gap: 8px;
      }

      .topnav-right {
        width: 100%;
        justify-content: flex-end;
      }

      .form-checkbox-row {
        flex-direction: column;
        gap: 20px;
      }

      .dashboard-sidebar {
        display: none;
      }

      .stats-grid {
        grid-template-columns: 1fr;
      }

      .topnav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    @media (max-width: 480px) {
      .sidebar {
        max-height: 40vh;
      }

      .sidebar-body {
        max-height: calc(40vh - 70px);
      }

      .palette-header {
        flex-wrap: wrap;
      }

      .section-label {
        font-size: 0.6rem;
      }

      .settings-icon-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
      }

      .header-buttons {
        gap: 6px;
      }

      .palette-card {
        padding: 8px;
      }

      .palette-editor-floating,
      .prompt-panel-floating {
        width: calc(100% - 16px);
        left: 8px;
        right: 8px;
        max-height: 75vh;
      }

      /* Dashboard ultra-compact for small phones */
      .dashboard-container {
        padding: 0 8px;
        gap: 16px;
      }

      .admin-topnav {
        padding: 8px 12px;
      }

      .topnav-logo {
        font-size: 1rem;
      }

      .topnav-logo i {
        font-size: 1.2rem;
      }

      .topnav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
      }

      .topnav-icon-btn {
        width: 36px;
        height: 36px;
      }

      .stat-card {
        padding: 16px;
      }

      .component-title {
        font-size: 0.95rem;
      }
    }

