/* ============================================================
   Bread AI — B2B SaaS Light Theme Design System
   Palette from AI sales_planning_core_v5.pdf (Page 8)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== 공식 Bread AI 팔레트 (라이트 테마) ===== */

  /* Backgrounds */
  --bg-primary: #F9FAFB;        /* Soft White — 메인 배경 */
  --bg-secondary: #FFFFFF;       /* 순백 — 카드/서피스 */
  --bg-tertiary: #F3F4F6;       /* 밝은 그레이 — 섹션 구분 */
  --surface: #FFFFFF;
  --surface-hover: #F3F4F6;

  /* Borders */
  --border: #E5E7EB;
  --border-hover: #D1D5DB;

  /* Text — 공식 팔레트 기반 */
  --text-primary: #111827;       /* Deep Navy Black — 타이틀, 중요 텍스트 */
  --text-secondary: #374151;     /* Charcoal Grey — 본문 */
  --text-muted: #9CA3AF;         /* Slate Grey — 설명, 보조 */
  --text-tertiary: #6B7280;      /* 중간 그레이 */

  /* Accents — 공식 팔레트 */
  --accent-primary: #D97706;     /* Burnt Orange — CTA, 강조 */
  --accent-primary-hover: #B45309;
  --accent-primary-bg: rgba(217, 119, 6, 0.08);
  --accent-primary-border: rgba(217, 119, 6, 0.25);
  --accent-secondary: #3B82F6;   /* Electric Blue — 링크, 기능 강조 */
  --accent-secondary-bg: rgba(59, 130, 246, 0.08);
  --accent-success: #059669;
  --accent-warning: #D97706;
  --accent-danger: #DC2626;

  /* Shadows — 라이트 테마용 미묘한 그림자 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);

  /* Typography */
  --font-display: 'Outfit', 'Calibri', sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Layout */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.15s ease;
  --max-width: 880px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* --- Layout --- */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --- Header Navigation --- */
.header-nav {
  display: flex;
  gap: 4px;
}

.nav-btn {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.nav-btn.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  font-weight: 600;
}

.nav-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-logout:hover {
  color: var(--accent-danger);
  background: rgba(220, 38, 38, 0.08);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* --- Animations --- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: slideInUp 0.3s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.08s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.16s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.24s; opacity: 0; }

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

.section-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* --- Card --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card::before {
  display: none;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

/* --- File Upload --- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-primary);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.upload-zone.has-file {
  border-style: solid;
  border-width: 1px;
  border-color: var(--accent-primary-border);
  border-left-width: 4px;
  border-left-color: var(--accent-primary);
  background: var(--accent-primary-bg);
  padding: 20px 24px;
  text-align: left;
}

.upload-icon {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.upload-filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.upload-error-text {
  color: var(--accent-danger);
}

/* --- Form Field --- */
.form-group {
  margin-bottom: 20px;
}

.form-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent-primary);
  border-radius: var(--radius);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-primary-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 12px 24px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: #FFFFFF;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-sm:hover:not(:disabled) {
  background: var(--accent-primary-hover);
}

.btn-sm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Token Preview --- */
.token-preview {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.token-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  transition: transform 0.2s ease;
}

.token-swatch:hover {
  transform: scale(1.2);
}

/* --- Research Results --- */
.research-section {
  margin-bottom: 20px;
}

.research-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.research-content {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.research-content:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

/* --- Research Warning Banner --- */
.research-warning-banner {
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.research-warning-item {
  color: var(--accent-warning);
  font-size: 0.85rem;
  line-height: 1.5;
}

.research-warning-item::before {
  content: "\26A0\FE0F ";
}

/* --- Progress --- */
.progress-container {
  margin: 32px 0;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* --- Download Card --- */
.download-card {
  text-align: center;
  padding: 40px 24px;
}

.download-icon {
  font-size: 48px;
  color: var(--accent-success);
  margin-bottom: 16px;
}

.download-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.download-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-actions .btn {
  margin-bottom: 12px;
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-accent {
  border-color: rgba(217, 119, 6, 0.25);
  border-top-color: var(--accent-primary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.status-badge.info {
  color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.status-badge.success {
  color: var(--accent-success);
  background: rgba(5, 150, 105, 0.08);
}

.status-badge.warn {
  color: var(--accent-warning);
  background: rgba(217, 119, 6, 0.08);
}

/* --- History --- */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.history-item:hover {
  background: var(--bg-tertiary);
}

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

.history-info {
  flex: 1;
}

.history-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- History Download Button --- */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: var(--accent-primary);
  background: var(--accent-primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--accent-primary-border);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-text {
  font-size: 15px;
  color: var(--text-muted);
}

.error-text {
  color: var(--accent-danger);
}

/* --- Option Row --- */
.option-row {
  display: flex;
  gap: 12px;
}

.option-row .form-group {
  flex: 1;
}

/* --- Inline Status Badges --- */
.status-badge-inline {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
}

.status-badge-inline.danger {
  color: var(--accent-danger);
  background: rgba(220, 38, 38, 0.08);
}

/* --- Style Pack Selection --- */
.style-pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-pack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.style-pack-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.style-pack-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.style-pack-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.style-pack-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Proposal Logic Preview (Step 3) --- */
.logic-section {
  margin-bottom: 20px;
}

.logic-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.logic-textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.logic-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

.logic-argument-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.logic-argument-card:hover {
  border-color: var(--border-hover);
}

.logic-argument-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logic-argument-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-primary);
  border-radius: 6px;
  flex-shrink: 0;
}

.logic-argument-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  outline: none;
  transition: border-color var(--transition);
}

.logic-argument-title:focus {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
}

.logic-argument-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.logic-argument-relevance {
  width: 100%;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  outline: none;
  transition: border-color var(--transition);
}

.logic-argument-relevance:focus {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
}

.logic-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

.logic-tag.source {
  color: var(--accent-secondary);
  background: var(--accent-secondary-bg);
}

.logic-slide-list-card {
  padding: 0;
  overflow: hidden;
}

.logic-slide-list {
  max-height: 500px;
  overflow-y: auto;
}

.logic-slide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.logic-slide-item:hover {
  background: var(--surface-hover);
}

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

.logic-slide-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.logic-slide-info {
  flex: 1;
  min-width: 0;
}

.logic-slide-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.logic-slide-detail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.logic-slide-newinfo {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.logic-slide-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}

.logic-slide-remove:hover {
  color: var(--accent-danger);
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
}

.logic-excluded-list {
  padding: 4px 0;
}

.logic-excluded-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.logic-excluded-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  flex-shrink: 0;
}

.logic-excluded-reason {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- My Page: Button Row --- */
.my-btn-row {
  margin-top: 12px;
}

/* --- Propose: Source Tabs --- */
.propose-source-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.propose-source-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--bg-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.propose-source-tab + .propose-source-tab {
  border-left: 1px solid var(--border);
}

.propose-source-tab.active {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.propose-source-tab:hover:not(.active) {
  color: var(--text-secondary);
}

/* --- Propose: Asset Picker --- */
.propose-asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.propose-asset-card {
  cursor: pointer;
  padding: 14px 16px;
}

.propose-asset-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.propose-asset-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.propose-asset-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.propose-asset-notes {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
}

/* --- My Page: Asset List --- */
.my-asset-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.my-asset-item:hover {
  border-color: var(--border-hover);
}

.my-asset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.my-asset-info {
  flex: 1;
  min-width: 0;
}

.my-asset-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-asset-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.my-asset-delete {
  background: none;
  border: none;
  color: var(--accent-danger);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.my-asset-delete:hover {
  opacity: 1;
}

.my-asset-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

.my-asset-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.my-ctx-section {
  margin-top: 12px;
}

.my-ctx-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.my-ctx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-ctx-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.my-ctx-checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.my-ctx-check-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.my-ctx-check-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.my-ctx-check-label input[type="checkbox"]:disabled {
  cursor: default;
}

.my-ctx-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* --- Step Indicator --- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 0.6;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border-hover);
  border-radius: 50%;
  flex-shrink: 0;
}

.step.active .step-num {
  color: #FFFFFF;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.step.completed .step-num {
  color: var(--accent-success);
  border-color: var(--accent-success);
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--text-primary);
  font-weight: 600;
}

.step-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* --- Login Page --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  margin-top: 4px;
}

.login-error {
  color: var(--accent-danger);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

#login-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--bg-primary);
}

/* ===== Admin Dashboard ===== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.2;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.admin-table tr:hover td {
  background: var(--surface-hover);
}

.admin-section {
  margin-bottom: 28px;
}

.admin-section-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }

  .header-nav {
    gap: 2px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .main-content {
    padding: 20px 16px 80px;
  }

  .step-label {
    display: none;
  }

  .step-line {
    width: 20px;
  }

  .option-row {
    flex-direction: column;
    gap: 0;
  }

  .card {
    padding: 16px;
  }

  .upload-zone {
    padding: 32px 16px;
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: 48px 32px 100px;
  }
}
