/* Security suite screens — WordPress admin palette; severity is always shown as text + icon, never colour alone */
.aowpcs-wrap {
	--aowpcs-critical: #8a2424;
	--aowpcs-critical-bg: #fcf0f1;
	--aowpcs-high: #b32d2e;
	--aowpcs-high-bg: #fcf0f1;
	--aowpcs-medium: #7a5a00;
	--aowpcs-medium-bg: #fcf9e8;
	--aowpcs-low: #135e96;
	--aowpcs-low-bg: #f0f6fc;
	--aowpcs-passed: #00703c;
	--aowpcs-passed-bg: #edfaef;
	--aowpcs-neutral: #50575e;
	--aowpcs-neutral-bg: #f6f7f7;
	--aowpcs-border: #dcdcde;
	--aowpcs-radius: 6px;
	max-width: 1400px;
}

.aowpcs-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 14px 0 2px; }
.aowpcs-brand__home { display: inline-flex; align-items: center; gap: 10px; color: #1d2327; font-size: 14px; font-weight: 600; text-decoration: none; }
a.aowpcs-brand__home:hover, a.aowpcs-brand__home:focus { color: #2271b1; }
.aowpcs-logo { display: block; flex: none; }
.aowpcs-brand__version { color: var(--aowpcs-neutral); font-size: 12px; }
.aowpcs-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; }
.aowpcs-wrap .nav-tab-wrapper { margin-top: 12px; }

/* Content protection: About and Say Thanks */
.aowpcs-author { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.aowpcs-author img { border-radius: 50%; }
.aowpcs-links { margin: 0; padding-left: 18px; list-style: disc; }
.aowpcs-qr { display: flex; flex-wrap: wrap; gap: 16px; }
.aowpcs-thanks img { max-width: 100%; height: auto; }
.aowpcs-score-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--aowpcs-border); background: #fff; font-weight: 600; text-decoration: none; }
.aowpcs-score-chip:focus { box-shadow: 0 0 0 2px #2271b1; outline: none; }

.aowpcs-panel { background: #fff; border: 1px solid var(--aowpcs-border); border-radius: var(--aowpcs-radius); padding: 16px 20px; margin: 16px 0; box-sizing: border-box; min-width: 0; }
.aowpcs-panel > h2:first-child, .aowpcs-panel > h3:first-child { margin-top: 0; }
.aowpcs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aowpcs-grid > .aowpcs-panel { margin: 0; }
.aowpcs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.aowpcs-grid + .aowpcs-grid { margin-top: 16px; }

/* Hero */
.aowpcs-hero { display: flex; gap: 28px; align-items: center; }
.aowpcs-hero__text { flex: 1; min-width: 0; }
.aowpcs-hero__text h2 { margin: 0 0 4px; font-size: 22px; }
.aowpcs-ring__track { stroke: #f0f0f1; }
.aowpcs-ring__value { stroke: var(--aowpcs-neutral); transition: stroke-dashoffset .6s ease; }
.aowpcs-band--good .aowpcs-ring__value { stroke: var(--aowpcs-passed); }
.aowpcs-band--fair .aowpcs-ring__value { stroke: #2271b1; }
.aowpcs-band--poor .aowpcs-ring__value { stroke: #dba617; }
.aowpcs-band--risk .aowpcs-ring__value { stroke: var(--aowpcs-high); }
.aowpcs-ring__score { font-size: 34px; font-weight: 700; fill: #1d2327; }
.aowpcs-ring__max { font-size: 12px; fill: #646970; }
.aowpcs-band-label.aowpcs-band--good, .aowpcs-score-chip.aowpcs-band--good { color: var(--aowpcs-passed); }
.aowpcs-band-label.aowpcs-band--fair, .aowpcs-score-chip.aowpcs-band--fair { color: #135e96; }
.aowpcs-band-label.aowpcs-band--poor, .aowpcs-score-chip.aowpcs-band--poor { color: var(--aowpcs-medium); }
.aowpcs-band-label.aowpcs-band--risk, .aowpcs-score-chip.aowpcs-band--risk { color: var(--aowpcs-high); }

/* Cards */
.aowpcs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.aowpcs-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--aowpcs-radius); border: 1px solid var(--aowpcs-border); border-left-width: 4px; background: #fff; color: #1d2327; text-decoration: none; min-width: 0; }
a.aowpcs-card:hover { background: var(--aowpcs-neutral-bg); color: #1d2327; }
a.aowpcs-card:focus { box-shadow: 0 0 0 2px #2271b1; outline: none; }
.aowpcs-card__label { font-size: 13px; color: #50575e; }
.aowpcs-card__label .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: text-bottom; }
.aowpcs-card__value { font-size: 26px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.aowpcs-cards--status .aowpcs-card__value { font-size: 18px; }
.aowpcs-card__sub { font-size: 12px; color: #646970; overflow-wrap: anywhere; }
.aowpcs-card--critical { border-left-color: var(--aowpcs-critical); background: var(--aowpcs-critical-bg); }
.aowpcs-card--high { border-left-color: var(--aowpcs-high); }
.aowpcs-card--medium { border-left-color: #dba617; }
.aowpcs-card--low, .aowpcs-card--info { border-left-color: #2271b1; }
.aowpcs-card--passed { border-left-color: var(--aowpcs-passed); }
.aowpcs-card--neutral { border-left-color: #c3c4c7; }

/* Badges */
.aowpcs-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.aowpcs-badge .dashicons { font-size: 14px; width: 14px; height: 14px; }
.aowpcs-badge--critical { color: #fff; background: var(--aowpcs-critical); border-color: var(--aowpcs-critical); }
.aowpcs-badge--high { color: var(--aowpcs-high); background: var(--aowpcs-high-bg); }
.aowpcs-badge--medium { color: var(--aowpcs-medium); background: var(--aowpcs-medium-bg); border-color: #c49a00; }
.aowpcs-badge--low, .aowpcs-badge--info { color: var(--aowpcs-low); background: var(--aowpcs-low-bg); }
.aowpcs-badge--passed { color: var(--aowpcs-passed); background: var(--aowpcs-passed-bg); }
.aowpcs-badge--unknown, .aowpcs-badge--neutral, .aowpcs-badge--accepted { color: var(--aowpcs-neutral); background: var(--aowpcs-neutral-bg); }
.aowpcs-badge--error { color: #fff; background: #50575e; border-color: #50575e; }
.aowpcs-badge--open { color: #1d2327; background: #fff; }

/* Lists */
.aowpcs-findings, .aowpcs-events, .aowpcs-actions { margin: 0; }
.aowpcs-findings li, .aowpcs-events li, .aowpcs-actions li { padding: 6px 0; border-bottom: 1px solid #f0f0f1; margin: 0; overflow-wrap: anywhere; }
.aowpcs-findings li:last-child, .aowpcs-events li:last-child, .aowpcs-actions li:last-child { border-bottom: 0; }
.aowpcs-actions { padding-left: 20px; }
.aowpcs-list { margin: 4px 0 4px 18px; list-style: disc; }
.aowpcs-list li { margin: 2px 0; overflow-wrap: anywhere; }
.aowpcs-muted { color: #646970; font-size: 12px; }
.aowpcs-text-error { color: var(--aowpcs-high); }
.aowpcs-code { background: transparent; padding: 0; font-size: 12px; overflow-wrap: anywhere; }
.aowpcs-pre { background: #f6f7f7; border: 1px solid var(--aowpcs-border); padding: 10px 12px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.aowpcs-ua { word-break: break-all; }

/* Tables */
.aowpcs-kv th { width: 34%; font-weight: 600; }
.aowpcs-kv td, .aowpcs-kv th { overflow-wrap: anywhere; vertical-align: top; }
.aowpcs-results td:nth-child(2) { white-space: nowrap; }
.aowpcs-results p { margin: 0 0 4px; }
.aowpcs-inventory td { vertical-align: top; }

/* Empty states and inline notices */
.aowpcs-empty { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--aowpcs-neutral-bg); border-radius: var(--aowpcs-radius); color: #50575e; flex-wrap: wrap; }
.aowpcs-empty p { margin: 0; flex: 1 1 240px; }
.aowpcs-notice-inline { background: var(--aowpcs-medium-bg); border-left: 4px solid #dba617; padding: 8px 12px; margin: 8px 0; }
.aowpcs-disclosure { background: var(--aowpcs-low-bg); border-left: 4px solid #2271b1; padding: 8px 12px; margin: 4px 0; }
.aowpcs-disclosure .dashicons { color: #2271b1; }

/* Launcher and progress */
.aowpcs-launcher { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.aowpcs-progress { border: 1px solid var(--aowpcs-border); border-radius: var(--aowpcs-radius); padding: 12px 16px; margin: 10px 0; background: #fff; }
.aowpcs-progress__head { display: flex; justify-content: space-between; gap: 12px; }
.aowpcs-progress__bar { height: 10px; background: #f0f0f1; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.aowpcs-progress__bar span { display: block; height: 100%; width: 0; background: #2271b1; transition: width .3s ease; }
.aowpcs-progress p { margin: 4px 0; }
.aowpcs-button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.aowpcs-inline-form { display: inline-block; margin: 0; }
.aowpcs-period { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }

/* Charts */
.aowpcs-chart { margin: 0; }
.aowpcs-chart svg { width: 100%; height: auto; max-height: 220px; display: block; }
.aowpcs-chart figcaption { font-size: 12px; color: #646970; margin-top: 4px; }
.aowpcs-chart__grid { stroke: #f0f0f1; stroke-width: 1; }
.aowpcs-chart__axis { font-size: 10px; fill: #646970; }
.aowpcs-chart__line { stroke: #2271b1; stroke-width: 2.5; }
.aowpcs-chart__dot { fill: #2271b1; }
.aowpcs-chart__bar--0 { fill: #72aee6; background: #72aee6; }
.aowpcs-chart__bar--1 { fill: #dba617; background: #dba617; }
.aowpcs-chart__bar--2 { fill: #b32d2e; background: #b32d2e; }
.aowpcs-legend { display: flex; gap: 14px; font-size: 12px; color: #50575e; margin-top: 4px; flex-wrap: wrap; }
.aowpcs-legend__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* Issue page */
.aowpcs-issue__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.aowpcs-issue__head h2 { margin: 0; font-size: 20px; }
.aowpcs-issue__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.aowpcs-issue__summary { font-size: 15px; }

/* Forms */
.aowpcs-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.aowpcs-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.aowpcs-switch__slider { position: absolute; inset: 0; background: #8c8f94; border-radius: 22px; transition: background .2s; }
.aowpcs-switch__slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.aowpcs-switch input:checked + .aowpcs-switch__slider { background: #2271b1; }
.aowpcs-switch input:checked + .aowpcs-switch__slider::before { transform: translateX(18px); }
.aowpcs-switch input:focus-visible + .aowpcs-switch__slider { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1; }
.aowpcs-switch input:disabled + .aowpcs-switch__slider { opacity: .5; }
.aowpcs-radio { display: block; margin: 4px 0 8px; }
.aowpcs-block-form label { display: inline-block; margin: 0 12px 8px 0; }
.aowpcs-event-filters select, .aowpcs-event-filters input { margin-bottom: 4px; }
.aowpcs-small-input { width: 140px; }
.aowpcs-compare-form { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aowpcs-onboarding { border-left: 4px solid #2271b1; }
.aowpcs-status-strip p { margin: 4px 0; }
.aowpcs-csp-result { background: #f6f7f7; border: 1px solid var(--aowpcs-border); padding: 8px 12px; margin: 8px 0; }

/* Fix dialog */
.aowpcs-dialog { max-width: 720px; width: calc(100% - 32px); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.aowpcs-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.aowpcs-dialog h2 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--aowpcs-border); }
.aowpcs-dialog__body { padding: 8px 20px; max-height: 60vh; overflow: auto; }
.aowpcs-dialog__body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: #50575e; margin: 14px 0 4px; }
.aowpcs-dialog__footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--aowpcs-border); background: #f6f7f7; }
.aowpcs-confirm { margin-right: auto; }

@media (max-width: 1100px) {
	.aowpcs-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.aowpcs-grid { grid-template-columns: 1fr; }
	.aowpcs-hero { flex-direction: column; align-items: flex-start; }
	.aowpcs-kv th { width: 40%; }
}
@media (max-width: 600px) {
	.aowpcs-panel { padding: 12px 14px; }
	.aowpcs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aowpcs-results td:nth-child(2) { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.aowpcs-ring__value, .aowpcs-progress__bar span, .aowpcs-switch__slider, .aowpcs-switch__slider::before { transition: none; }
}
