/* GEO Analysis Tool — plugin-specific admin (shell: pewit-admin-shell.css) */

.aivt-unit{font-size:14px;color:var(--pewit-muted);font-weight:500;margin-left:2px}

/* Notices */
.aivt-notice-bar{min-height:0;margin-bottom:12px;font-size:13px;font-weight:500}
.aivt-notice-ok{color:#065f46}
.aivt-notice-error{color:#b91c1c}
.aivt-notice-warn{color:#92400e}
.aivt-notice{padding:10px 12px;border-radius:8px;font-size:13px;margin:0 0 12px}
.aivt-notice-warn{background:#fff8e6;border:1px solid #f6e2b8}

/* Score colors */
.aivt-ok{--c:#059669}
.aivt-warn{--c:#b45309}
.aivt-bad{--c:#dc2626}
.aivt-neutral{--c:#94a3b8}

/* Score donut */
.aivt-donut{position:relative;border-radius:50%;display:grid;place-items:center;flex:none;
  background:conic-gradient(var(--c,#2f6bff) calc(var(--aivt-score,0)*1%),#eef1f6 0)}
.aivt-donut::after{content:"";position:absolute;inset:6px;background:var(--pewit-surface);border-radius:50%}
.aivt-donut-lg{width:84px;height:84px}
.aivt-donut-md{width:62px;height:62px}
.aivt-donut-value{position:relative;z-index:1;font-weight:700;font-size:22px;color:var(--c,#2f6bff)}
.aivt-donut-md .aivt-donut-value{font-size:17px}

/* Result blocks */
.aivt-result{margin-top:14px}
.aivt-result-head{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.aivt-result-title{font-size:15px;font-weight:700}
.aivt-result h4{margin:16px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:var(--pewit-muted)}

/* Dimension bars */
.aivt-bars{display:flex;flex-direction:column;gap:6px}
.aivt-bar-row{display:grid;grid-template-columns:180px 1fr 38px;align-items:center;gap:10px}
.aivt-bar-label{font-size:13px;font-weight:500}
.aivt-bar-label.aivt-bar-brand{font-weight:700;color:var(--pewit-primary)}
.aivt-bar-track{height:8px;background:#eef1f6;border-radius:999px;overflow:hidden}
.aivt-bar-fill{display:block;height:100%;border-radius:999px;background:var(--c,#2f6bff)}
.aivt-bar-num{font-size:13px;font-weight:600;text-align:right}
.aivt-bar-note{grid-column:1 / -1;margin:0 0 4px;font-size:12px;color:var(--pewit-muted)}

.aivt-tips{margin:0;padding-left:18px;font-size:13px;line-height:1.6}
.aivt-tips li{margin-bottom:4px}
.aivt-quotes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.aivt-quotes li{background:#f6f8fc;border-left:3px solid var(--pewit-primary);padding:8px 12px;border-radius:6px;font-style:italic;font-size:13px}

/* Pills & score cells */
.aivt-pill{display:inline-block;font-size:11px;padding:1px 8px;border-radius:999px;background:#eef4ff;color:#1d4ed8;margin-left:6px}
.aivt-pill-warn{background:#fff8e6;color:#92400e}
.aivt-score-pill{display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;font-weight:700;font-size:12px;color:#fff;background:var(--c,#94a3b8)}
.aivt-score-pill.aivt-none{background:#e7eaf1;color:#5a6478}

/* Tables / toolbars */
.aivt-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.aivt-list-toolbar h2{margin:0}
.aivt-filter-tabs{display:flex;gap:6px;flex-wrap:wrap}
.aivt-filter-tabs .pewit-btn{padding:6px 12px;font-size:13px}
.aivt-filter-tabs .is-active{background:#eef4ff;border-color:#dbe7ff;color:var(--pewit-primary)}
.aivt-table{margin-top:8px}
.aivt-table code{font-size:11px}

/* Settings */
.aivt-settings-card label{display:block;margin:14px 0 6px;font-weight:600;font-size:13px}
.aivt-settings-card .description{font-size:12px;color:var(--pewit-muted)}
.aivt-inline-check{font-weight:500!important;display:flex!important;align-items:center;gap:8px;margin:8px 0!important}
.aivt-inline-fields{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.aivt-inline-fields label{margin:0 0 6px}
.aivt-inline-fields input{width:90px}
.aivt-api-key-field{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.aivt-api-key-field code{background:#f6f8fc;padding:4px 8px;border-radius:6px}
.aivt-status{font-size:12px;color:var(--pewit-muted);margin-top:6px}
.aivt-status.ok{color:#065f46}
.aivt-status.error{color:#b91c1c}

/* Prompt testing */
.aivt-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.aivt-prompt-result{margin-top:14px}
.aivt-prompt-verdict{padding:10px 14px;border-radius:8px;font-size:14px;margin-bottom:10px}
.aivt-prompt-verdict.is-found{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}
.aivt-prompt-verdict.is-missing{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.aivt-prompt-answer{margin-top:8px}
.aivt-answer-body{background:#f6f8fc;border:1px solid var(--pewit-border);border-radius:8px;padding:10px 14px;font-size:13px;line-height:1.6;margin-top:8px}

/* Progress */
.aivt-progress{height:10px;background:#eef1f6;border-radius:999px;overflow:hidden;margin:10px 0}
.aivt-progress-bar{height:100%;background:var(--pewit-primary);border-radius:999px;transition:width .4s ease}
.aivt-job-log{margin-top:12px;font-size:12px}
.aivt-job-log ul{list-style:none;margin:8px 0 0;padding:0;max-height:220px;overflow:auto}
.aivt-job-log li{padding:2px 0;font-family:var(--pewit-mono,monospace)}
.aivt-log-error{color:#b91c1c}

/* Q&A / FAQ pairs */
.aivt-pairs{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.aivt-pair{border:1px solid var(--pewit-border);border-radius:8px;padding:12px 14px}
.aivt-pair-q{font-weight:700;margin:0 0 6px}
.aivt-pair-a{margin:0;font-size:13px;line-height:1.6;color:var(--pewit-text)}

/* Metabox */
.aivt-metabox .aivt-metabox-status{font-size:13px;font-weight:500;min-height:0;margin-bottom:8px}
.aivt-mb-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--pewit-border);margin-bottom:14px;padding-bottom:8px}
.aivt-mb-tab{background:none;border:none;cursor:pointer;padding:6px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--pewit-muted)}
.aivt-mb-tab.is-active{background:#eef4ff;color:var(--pewit-primary);font-weight:600}
.aivt-mb-panel{margin-top:6px}
.aivt-mb-panel .button{margin-right:6px}
.aivt-panel-result{margin-top:12px}
.aivt-schema-json{margin-top:10px;font-family:var(--pewit-mono,monospace);font-size:12px}

/* Sparkline + trends */
.aivt-spark{display:inline-flex;align-items:center;color:var(--pewit-primary);line-height:0}
.aivt-spark.aivt-ok{color:#059669}
.aivt-spark.aivt-warn{color:#d97706}
.aivt-spark.aivt-bad{color:#dc2626}
.aivt-spark svg{display:block}
.aivt-spark-empty{color:var(--pewit-muted);font-size:12px}
.aivt-trend-card .aivt-trend-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.aivt-trend-card .aivt-trend-head h2{margin:0}
.aivt-trend-chart{display:flex;align-items:center;gap:14px}
.aivt-trend-chart .aivt-trend-now{font-size:26px;font-weight:700;color:var(--pewit-text)}
.aivt-trend-chart .aivt-unit{font-size:13px;color:var(--pewit-muted);font-weight:500}
.aivt-trend-lg .aivt-spark svg{width:180px;height:44px}
.aivt-trend-inline{display:flex;align-items:center;gap:8px;margin-top:6px}
.aivt-trend-inline .aivt-trend-label{font-size:12px;color:var(--pewit-muted)}

/* Onboarding wizard */
.aivt-onboarding .aivt-step{border-top:1px solid var(--pewit-border);padding-top:16px;margin-top:18px}
.aivt-onboarding .aivt-step:first-of-type{border-top:none;padding-top:0;margin-top:18px}
.aivt-onboarding .aivt-step h2{display:flex;align-items:center;gap:10px;font-size:16px;margin:0 0 10px}
.aivt-onboarding .aivt-step-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:var(--pewit-primary);color:#fff;font-size:13px;font-weight:700}
.aivt-onboarding label{display:block;margin:10px 0 4px;font-weight:500}

/* GEO Autopilot */
.aivt-ap-scores{display:flex;align-items:center;gap:16px;margin:6px 0 12px}
.aivt-ap-score{display:flex;flex-direction:column;align-items:center;line-height:1.1}
.aivt-ap-num{font-size:32px;font-weight:800;color:#1d2327}
.aivt-ap-pred .aivt-ap-num{color:var(--pewit-primary,#2f6bff)}
.aivt-ap-cap{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--pewit-muted,#646970)}
.aivt-ap-arrow{font-size:24px;color:var(--pewit-muted,#646970)}
.aivt-ap-gain{margin-left:auto;font-size:18px;font-weight:700;color:#1a9d54;background:rgba(26,157,84,.1);border-radius:8px;padding:4px 12px}
.aivt-ap-intro{font-style:italic;border-left:3px solid var(--pewit-primary,#2f6bff);padding-left:12px;color:#3c434a}
.aivt-ap-weak{font-size:12px;color:var(--pewit-muted,#646970)}

/* Approval queue */
.aivt-approval{border:1px solid var(--pewit-border);border-radius:10px;padding:12px 14px;margin:10px 0;background:#fff}
.aivt-approval-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.aivt-approval-head .description{margin-left:6px}
.aivt-empty{color:var(--pewit-muted,#646970)}

@media (max-width:782px){
  .aivt-bar-row{grid-template-columns:120px 1fr 32px}
  .aivt-trend-lg .aivt-spark svg{width:130px}
  .aivt-approval-head{align-items:flex-start}
}
