
.ap-tool { font-family: 'Plus Jakarta Sans', sans-serif; color: #111827; }
.ap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid #DFD8C5; padding-bottom: 12px; }
.ap-tab { background: #F7F4EC; border: 1px solid #DFD8C5; color: #1E293B; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.ap-tab.active { background: #0C1427; color: #F6D365; border-color: #0C1427; }
.ap-panel { display: none; }
.ap-panel.active { display: block; }
.ap-notice { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; border-radius: 10px; padding: 10px 14px; font-size: 0.84rem; margin-bottom: 16px; }
.ap-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ap-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-card { background: #F7F4EC; border: 1px solid #DFD8C5; border-radius: 12px; padding: 16px; }
.ap-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ap-field label { font-size: 0.82rem; font-weight: 700; color: #334155; display: flex; justify-content: space-between; }
.ap-input, .ap-select { width: 100%; padding: 9px 11px; border: 1px solid #CBD5E1; border-radius: 8px; background: #FFFFFF; font-size: 0.9rem; color: #0F172A; }
.ap-range { width: 100%; accent-color: #2563EB; }
.ap-score-box { background: linear-gradient(135deg, #0B132B 0%, #162447 100%); color: #FFFFFF; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #C89B3C; }
.ap-grade-big { font-family: 'Cinzel', serif; font-size: 2.8rem; font-weight: 700; color: #F6D365; line-height: 1.1; }
.ap-score-num { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; color: #93C5FD; }
.ap-tier-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ap-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; display: flex; justify-content: space-between; }
.ap-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.ap-filters .ap-input { flex: 1 1 220px; }
.ap-filters .ap-select { flex: 0 1 160px; }
.ap-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: #334155; cursor: pointer; }
.ap-meta-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.84rem; color: #475569; flex-wrap: wrap; gap: 8px; }
.ap-table-wrap { overflow-x: auto; border: 1px solid #DFD8C5; border-radius: 12px; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #FFFFFF; }
.ap-table th { background: #EFEAD9; color: #0C1427; text-align: left; padding: 10px 12px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid #DFD8C5; }
.ap-table td { padding: 9px 12px; border-bottom: 1px solid #F1ECE0; vertical-align: top; }
.ap-table tr:hover td { background: #FAF8F2; }
.ap-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 0.74rem; font-weight: 600; background: #EFEAD9; color: #1E293B; margin: 1px 3px 1px 0; }
.ap-tag-star { background: #FEF3C7; color: #92400E; }
.ap-tag-shiny { background: #E0E7FF; color: #3730A3; }
.ap-result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.ap-mini-card { background: #FFFFFF; border: 1px solid #DFD8C5; border-radius: 10px; padding: 12px; }
.ap-mini-card h4 { margin: 0 0 4px; font-size: 0.95rem; color: #0C1427; }
.ap-mini-sub { font-size: 0.78rem; color: #64748B; margin-bottom: 6px; }
.ap-btn-sm { background: #0C1427; color: #F6D365; border: none; border-radius: 8px; padding: 7px 12px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
@media (max-width: 780px) {
  .ap-grid-2, .ap-grid-4 { grid-template-columns: 1fr; }
}
