/* Appearance Page CSS */
.ap-container { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.ap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ap-header-left h2 { font-size: 16px; font-weight: 700; color: #111827; display: inline-block; margin-right: 8px; }
.ap-breadcrumb { font-size: 11px; color: #6b7280; }
.ap-btn-outline { border: 1px solid #e5e7eb; background: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #374151; cursor: pointer; }
.ap-btn-primary { background: #3b82f6; border: none; padding: 8px 20px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; }
.ap-btn-primary:hover { background: #2563eb; }
.ap-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 1024px) { .ap-layout { grid-template-columns: 1fr; } }
.ap-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.ap-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; }
.ap-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.ap-card-body { padding: 24px; }
.ap-section-label { font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 14px; }
/* Theme mode buttons */
.ap-theme-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ap-theme-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.ap-theme-preview { width: 90px; height: 60px; border-radius: 8px; border: 2px solid #e5e7eb; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.ap-theme-btn.active .ap-theme-preview { border-color: #3b82f6; }
.ap-theme-preview-bar { height: 12px; flex-shrink: 0; }
.ap-theme-preview-body { flex: 1; }
.ap-theme-dark .ap-theme-preview-bar { background: #1f2937; }
.ap-theme-dark .ap-theme-preview-body { background: #111827; }
.ap-theme-light .ap-theme-preview-bar { background: #f3f4f6; }
.ap-theme-light .ap-theme-preview-body { background: #ffffff; }
.ap-theme-system .ap-theme-preview { background: linear-gradient(135deg, #1f2937 50%, #f3f4f6 50%); }
.ap-theme-label { font-size: 11px; font-weight: 500; color: #374151; }
/* Toggles */
.ap-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.ap-toggle-row:last-child { border-bottom: none; }
.ap-toggle-info { flex: 1; }
.ap-toggle-title { font-size: 12px; font-weight: 600; color: #111827; }
.ap-toggle-desc { font-size: 11px; color: #6b7280; margin-top: 2px; }
.ap-toggle { position: relative; display: inline-block; width: 32px; height: 18px; margin-left: 16px; flex-shrink: 0; }
.ap-toggle input { opacity: 0; width: 0; height: 0; }
.ap-toggle span { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e5e7eb; transition: .3s; border-radius: 34px; }
.ap-toggle span:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background: white; transition: .3s; border-radius: 50%; }
.ap-toggle input:checked + span { background-color: #3b82f6; }
.ap-toggle input:checked + span:before { transform: translateX(14px); }
/* Branding */
.ap-logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ap-logo-box { width: 80px; height: 50px; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f9fafb; font-size: 18px; font-weight: 800; color: #111827; letter-spacing: -1px; }
.ap-logo-hint { font-size: 10px; color: #6b7280; }
.ap-color-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ap-color-dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.ap-color-dot.selected { border-color: #111827; }
.ap-form-label { display: block; font-size: 11px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.ap-form-input { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; outline: none; box-sizing: border-box; }
.ap-form-input:focus { border-color: #3b82f6; }
/* Security Optimization checkboxes */
.ap-check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 12px; color: #374151; cursor: pointer; }
.ap-checkbox { width: 15px; height: 15px; accent-color: #3b82f6; flex-shrink: 0; cursor: pointer; }
/* KB */
.ap-kb-icon { width: 32px; height: 32px; border-radius: 8px; background: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
.ap-kb-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 8px; line-height: 1.4; }
.ap-kb-desc { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
.ap-link-learn { font-size: 10px; font-weight: 700; color: #3b82f6; text-decoration: none; text-transform: uppercase; }
/* FAQ */
.ap-faq-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 16px; }
.ap-faq-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.ap-faq-item:last-child { border-bottom: none; }
.ap-faq-q { font-size: 12px; font-weight: 500; color: #374151; }
.ap-faq-icon { color: #9ca3af; font-size: 13px; }
/* Illus */
.ap-illus-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 160px; margin-bottom: 24px; }
.ap-illus-card-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.ap-illus-card p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; max-width: 55%; }
.ap-illus-card a { font-size: 10px; font-weight: 700; color: #3b82f6; text-transform: uppercase; text-decoration: none; }
.ap-illus-img { position: absolute; right: 16px; bottom: 16px; width: 130px; height: auto; }
.ap-save-bar { display: flex; justify-content: flex-end; padding-top: 8px; }
.ap-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; background: #dcfce7; color: #166534; margin-left: 8px; }
