  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f7; color: #1d1d1f; }

  /* 헤더 */
  .header { background: #3C3489; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
  .header h1 { font-size: 17px; font-weight: 600; }
  .header-right { display: flex; gap: 8px; align-items: center; }
  .btn-add { background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; }
  .btn-add:hover { background: rgba(255,255,255,0.3); }
  .btn-guide { background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; }
  .btn-guide:hover { background: rgba(255,255,255,0.15); }

  /* 요약 */
  .sticky-top { position: sticky; top: 0; z-index: 100; background: #f5f5f7; }
  .summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 12px; overflow: hidden; }
  .stat { background: #fff; border-radius: 8px; padding: 6px 4px; text-align: center; cursor: pointer; }
  .stat:active { background: #eeedfe; }
  .stat.active-filter { background: #3C3489; }
  .stat.active-filter .stat-val { color: #fff !important; }
  .stat.active-filter .stat-label { color: rgba(255,255,255,0.8); }
  .stat-val { font-size: 18px; font-weight: 600; }
  .stat-label { font-size: 10px; color: #888; margin-top: 1px; }
  .stat-val.green { color: #2d7a2d; }
  .stat-val.orange { color: #c05c00; }
  .stat-val.purple { color: #3C3489; }

  /* 필터 고정 */
  .sticky-bar { position: sticky; top: 0; z-index: 90; background: #f5f5f7; }
  .filters { padding: 10px 12px; display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .pill { font-size: 12px; padding: 5px 11px; border-radius: 20px; border: 1px solid #ddd; background: #fff; cursor: pointer; white-space: nowrap; }
  .pill.active { background: #3C3489; color: #fff; border-color: #3C3489; }

  /* 카드 그리드 */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; padding: 0 12px 20px; }
  .card { background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; border: 1.5px solid transparent; transition: border-color 0.15s, box-shadow 0.15s; }
  .card:hover { border-color: #3C3489; box-shadow: 0 2px 8px rgba(60,52,137,0.1); }
  .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
  .card-name { font-size: 14px; font-weight: 600; }
  .badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
  .badge.op { background: #e6f4e6; color: #2d7a2d; }
  .badge.dev { background: #fff3e0; color: #c05c00; }
  .badge.stop { background: #fdecea; color: #a33; }
  .cat-tag { font-size: 11px; color: #999; margin-bottom: 5px; }
  .card-desc { font-size: 12px; color: #555; line-height: 1.4; margin-top: 2px; }
  .card-next { font-size: 11px; color: #1a6bb5; background: #e8f1fb; border-radius: 5px; padding: 3px 7px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0f0f0; padding-top: 7px; margin-top: 2px; }
  .req-pills { display: flex; gap: 3px; flex-wrap: wrap; }
  .req-pill { font-size: 10px; padding: 1px 5px; border-radius: 8px; }
  .req-pill.confirm { background: #e6f4e6; color: #2d7a2d; }
  .req-pill.pending { background: #fff3e0; color: #c05c00; }
  .req-pill.done { background: #f0f0f0; color: #666; }
  .card-ver { font-size: 11px; color: #aaa; }

  /* 모달 오버레이 */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: flex-end; justify-content: center; }
  body.modal-open { overflow: hidden; position: fixed; width: 100%; }
  .modal-overlay.open { display: flex; }
  .modal { background: #fff; border-radius: 0; width: 100%; height: 100vh; max-height: 100vh; max-width: 100%; display: flex; flex-direction: column; }
  .modal-header { padding: 16px 16px 4px; display: flex; justify-content: space-between; align-items: flex-start; }
  .modal-title-wrap { flex: 1; }
  .modal-title { font-size: 19px; font-weight: 700; }
  .modal-meta { font-size: 12px; color: #888; margin-top: 3px; }
  .modal-close { background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer; padding: 0 0 0 12px; }
  .modal-tabs { display: flex; border-bottom: 1px solid #eee; margin: 8px 0 0; padding: 0; gap: 0; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .mtab { font-size: 15px; font-weight: 600; padding: 10px 4px; cursor: pointer; color: #aaa; border-bottom: 2px solid transparent; white-space: nowrap; flex: 1; text-align: center; }
  .mtab.active { color: #3C3489; border-bottom-color: #3C3489; font-weight: 700; }
  .modal-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
  .tab-swipe-container { flex: 1; overflow: hidden; position: relative; width: 100%; }
  .tab-slider { display: flex; height: 100%; transition: transform 0.15s cubic-bezier(0.25,0.46,0.45,0.94); will-change: transform; }
  .tab-pane { min-width: 100%; width: 100%; height: 100%; overflow-y: auto; padding: 16px 12px 20px; flex-shrink: 0; box-sizing: border-box; }

  /* 기본정보 탭 */
  .info-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
  .info-label { font-size: 12px; color: #888; width: 60px; flex-shrink: 0; padding-top: 1px; }
  .info-val { font-size: 13px; color: #1d1d1f; flex: 1; }
  .info-val a { color: #1a6bb5; text-decoration: none; }
  .func-list { list-style: none; padding: 0; margin: 4px 0; }
  .func-list li { font-size: 13px; color: #444; padding: 3px 0; display: flex; gap: 6px; align-items: flex-start; }
  .func-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #3C3489; margin-top: 6px; flex-shrink: 0; }
  .section-title { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 6px; }
  .ver-item { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f5f5f5; }
  .ver-tag { font-size: 11px; font-weight: 600; background: #eeedfe; color: #3C3489; border-radius: 8px; padding: 2px 8px; }
  .ver-memo { font-size: 12px; color: #555; flex: 1; }
  .ver-date { font-size: 11px; color: #aaa; }
  .btn-add-ver { font-size: 12px; color: #3C3489; background: none; border: 1px solid #3C3489; border-radius: 8px; padding: 5px 12px; cursor: pointer; margin-top: 8px; }

  /* 요구사항 탭 */
  .req-input-wrap { margin-bottom: 12px; }
  .req-textarea { width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 10px; font-size: 13px; resize: none; height: 80px; font-family: inherit; }
  .req-textarea:focus { outline: none; border-color: #3C3489; }
  .btn-ai { background: #3C3489; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; width: 100%; }
  .btn-ai:hover { background: #2e2870; }
  .btn-ai:disabled { background: #aaa; cursor: not-allowed; }
  .req-section { margin-bottom: 14px; }
  .req-section-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
  .req-item { background: #f8f8f8; border-radius: 8px; padding: 8px 10px; margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
  .req-item-text { font-size: 13px; flex: 1; color: #333; }
  .req-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .req-btn { font-size: 11px; padding: 2px 7px; border-radius: 6px; border: none; cursor: pointer; }
  .req-btn.confirm { background: #e6f4e6; color: #2d7a2d; }
  .req-btn.done { background: #f0f0f0; color: #666; }
  .req-btn.del { background: #fdecea; color: #a33; }

  /* 프롬프트 탭 */
  .prompt-output { background: #f8f8f8; border-radius: 10px; padding: 12px; font-size: 12px; color: #333; line-height: 1.7; white-space: pre-wrap; min-height: 120px; margin-bottom: 10px; }
  .btn-copy { background: #fff; border: 1px solid #3C3489; color: #3C3489; border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
  .btn-copy:hover { background: #eeedfe; }
  .complete-textarea { width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 10px; font-size: 13px; resize: none; height: 70px; font-family: inherit; margin-bottom: 8px; }
  .complete-textarea:focus { outline: none; border-color: #3C3489; }

  /* 도움말 탭 */
  .help-content { font-size: 13px; color: #333; line-height: 1.8; white-space: pre-wrap; }
  .btn-regen { background: none; border: 1px solid #ddd; color: #555; border-radius: 8px; padding: 6px 14px; font-size: 12px; cursor: pointer; margin-top: 10px; }

  /* 앱 추가/편집 모달 */
  .edit-overlay { display: none; position: fixed; inset: 0; background: #ffffff; z-index: 300; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 20px 12px; box-sizing: border-box; }
  .edit-overlay.open { display: flex; }
  .edit.modal { background: #fff; border-radius: 0; width: 100%; height: 100vh; max-height: 100vh; max-width: 100%; display: flex; flex-direction: column; }
  .edit-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg,#1e3a2f 0%,#2d5a44 100%); border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
  .edit-title { font-size: 16px; font-weight: 600; color: #fff; }
  .modal-close { background: none; border: none; font-size: 20px; color: rgba(255,255,255,0.7); cursor: pointer; }
  .edit-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
  .form-group { padding: 12px 0; border-bottom: 0.5px solid #ddd; }
  .form-label { font-size: 11px; font-weight: 600; color: #1e3a2f; letter-spacing: 0.05em; margin-bottom: 6px; display: block; }
  .form-input { width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; background: #fff; color: #222; }
  .form-input:focus { outline: none; border-color: #1e3a2f; box-shadow: 0 0 0 2px rgba(30,58,47,0.1); }
  .form-select { width: 100%; box-sizing: border-box; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); padding: 7px 10px; font-size: 13px; background: var(--color-background-primary); color: var(--color-text-primary); }
  .form-textarea { width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 10px; padding: 12px 14px; font-size: 14px; resize: none; height: 80px; font-family: inherit; background: #fff; color: #222; }
  .form-textarea:focus, .form-select:focus { outline: none; border-color: #1e3a2f; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-save { background: #3C3489; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 15px; cursor: pointer; width: 100%; margin-top: 10px; font-weight: 500; }
  .btn-save:hover { background: #2e2870; }
  .btn-del-app { background: #fdecea; color: #a33; border: none; border-radius: 10px; padding: 11px; font-size: 14px; cursor: pointer; width: 100%; margin-top: 6px; }

  /* AI 로딩 */
  .ai-loading { display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; padding: 10px 0; }
  .spinner { width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: #3C3489; border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .empty { text-align: center; color: #aaa; font-size: 14px; padding: 40px 0; }
  /* 운영가이드 */
  .guide-section { margin-bottom: 20px; }
  .guide-section-title { font-size: 13px; font-weight: 600; color: #3C3489; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 6px; }
  .guide-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
  .guide-item:last-child { border-bottom: none; }
  .guide-item-left { flex: 1; }
  .guide-item-name { font-size: 13px; font-weight: 500; color: #1d1d1f; margin-bottom: 2px; }
  .guide-item-desc { font-size: 12px; color: #666; line-height: 1.5; }
  .guide-badge { font-size: 10px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
  .guide-badge.free { background: #e6f4e6; color: #2d7a2d; }
  .guide-badge.paid { background: #fdecea; color: #a33; }
  .guide-badge.freemium { background: #fff3e0; color: #c05c00; }
  .ops-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
  .ops-step-num { width: 22px; height: 22px; border-radius: 50%; background: #EEEDFE; color: #3C3489; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
  .ops-step-text { font-size: 13px; color: #333; line-height: 1.6; flex: 1; }
  .ops-step-text strong { color: #1d1d1f; }
  .ops-tip { background: #EEEDFE; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
  .ops-tip-title { font-size: 11px; font-weight: 600; color: #3C3489; margin-bottom: 2px; }
  .ops-tip-desc { font-size: 11px; color: #534AB7; line-height: 1.5; }
  .ops-warn { background: #fff3e0; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
  .ops-warn-title { font-size: 11px; font-weight: 600; color: #c05c00; margin-bottom: 2px; }
  .ops-warn-desc { font-size: 11px; color: #854F0B; line-height: 1.5; }
  .infra-row { background: #f8f8f8; border-radius: 8px; padding: 8px 10px; margin-bottom: 5px; }
  .infra-row-name { font-size: 12px; font-weight: 500; color: #1d1d1f; }
  .infra-row-desc { font-size: 11px; color: #666; margin-top: 1px; }
