/*
 * Temviora WP Suite Professional Blue UI — v1.3.0
 * Cohesive single-colour system, clean 2D surfaces, accessible focus states,
 * and transform/opacity-only motion for smooth rendering.
 */
:root {
	--bg: #f4f7fb;
	--surface: #ffffff;
	--surface-soft: #f8fbff;
	--text: #0f1f38;
	--muted: #64748b;
	--line: #dce6f2;
	--line-strong: #c7d6e8;
	--primary: #2563eb;
	--primary-deep: #1746ad;
	--primary-2: #4f83f1;
	--primary-soft: #eaf2ff;
	--primary-faint: #f7faff;
	--navy: #0d1c33;
	--success: #2563eb;
	--success-soft: #eaf2ff;
	--warning: #3970df;
	--warning-soft: #edf4ff;
	--danger: #1746ad;
	--danger-soft: #e8f0ff;
	--shadow-sm: 0 8px 24px rgba(31, 73, 125, .07);
	--shadow-md: 0 18px 46px rgba(31, 73, 125, .10);
	--shadow-lg: 0 30px 76px rgba(31, 73, 125, .13);
	--radius-xl: 22px;
	--radius-lg: 18px;
	--radius-md: 14px;
}

html { background: var(--bg); }
body {
	background:
		linear-gradient(rgba(37,99,235,.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37,99,235,.028) 1px, transparent 1px),
		var(--bg);
	background-size: 32px 32px;
	color: var(--text);
	font-size: 16px;
}
body::before {
	background:
		radial-gradient(circle at 8% -5%, rgba(37,99,235,.10), transparent 26%),
		radial-gradient(circle at 94% 10%, rgba(37,99,235,.07), transparent 28%);
}
::selection { color: #fff; background: var(--primary); }
:focus-visible { outline: 3px solid rgba(37,99,235,.34); outline-offset: 3px; }

/* Header */
.site-header {
	background: rgba(255,255,255,.95);
	backdrop-filter: blur(18px);
	border-bottom-color: var(--line);
	box-shadow: 0 1px 0 rgba(13,28,51,.02);
}
.brand__mark {
	border-radius: 12px;
	background: var(--primary);
	box-shadow: 0 10px 24px rgba(37,99,235,.24);
}
.brand__mark::after { background: rgba(37,99,235,.11); }
.brand__copy strong { color: var(--navy); }
.brand__copy small { color: var(--muted); }
.site-nav__links a { color: #34445d; }
.site-nav__links a svg { stroke: #60718a; }
.site-nav__links a:hover,
.site-nav__links a:focus-visible { color: var(--primary-deep); }
.button--dark {
	background: var(--navy);
	box-shadow: 0 12px 26px rgba(13,28,51,.18);
}
.site-nav__cta span { color: #91b6ff; }

/* One-colour homepage */
.button--primary,
.button--scan {
	background: var(--primary);
	box-shadow: 0 14px 30px rgba(37,99,235,.22);
}
.button--primary:hover,
.button--scan:not(:disabled):hover { background: var(--primary-deep); box-shadow: 0 18px 38px rgba(37,99,235,.28); }
.scanner-line span,
.scanner-line--warn span { background: var(--primary); box-shadow: 0 0 0 6px var(--primary-soft); }
.scanner-line em,
.scanner-line--warn em { color: var(--primary-deep); }
.orb--one,
.orb--two { filter: none; background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.12); }
.feature-card,
.scanner-card--main,
.mini-card { border-color: var(--line); box-shadow: var(--shadow-sm); }

/* Full-screen application */
.taskivoza-scan-page { overflow: hidden; }
.taskivoza-scan-page .site-footer { display: none; }
.scan-app {
	grid-template-columns: minmax(0, 1fr) clamp(380px, 31vw, 500px);
	min-height: calc(100dvh - var(--header-height));
	height: calc(100dvh - var(--header-height));
	background: var(--bg);
}
.scan-results {
	padding: clamp(24px, 2.1vw, 36px);
	background: transparent;
}
.scan-results__header {
	min-height: 90px;
	padding: 0 2px 22px;
	border-bottom: 0;
}
.scan-results__header h1 {
	margin: 5px 0 5px;
	font-size: clamp(30px, 2.3vw, 38px);
	line-height: 1.05;
	letter-spacing: -.045em;
}
.scan-results__header p {
	max-width: 690px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.section-kicker {
	color: var(--primary-deep);
	font-size: 10px;
	letter-spacing: .14em;
}
.scan-state-badge {
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: #43536b;
	font-size: 11px;
	box-shadow: 0 5px 14px rgba(31,73,125,.05);
}
.scan-state-badge i { background: var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.10); }
.scan-state-badge[data-scan-state="scanning"] { color: var(--primary-deep); border-color: #b9cdf3; background: var(--primary-faint); }
.scan-state-badge[data-scan-state="complete"] { color: var(--primary-deep); border-color: #a9c4f6; background: var(--primary-soft); }
.scan-state-badge[data-scan-state="error"] { color: var(--primary-deep); border-color: #9dbbf1; background: #edf4ff; }
.soft-icon-button { border-color: var(--line); border-radius: 10px; background: #fff; color: var(--primary-deep); }

.scan-canvas {
	position: relative;
	min-height: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.scan-canvas::before {
	background: linear-gradient(90deg, transparent, rgba(37,99,235,.055), transparent);
	opacity: .8;
}
.scan-canvas::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(37,99,235,.033) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37,99,235,.033) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}
.scan-empty,
.scan-progress,
.results-content { z-index: 1; }

/* 2D geometric background */
.geometry-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.geometry-layer i {
	position: absolute;
	display: block;
	border: 1px solid rgba(37,99,235,.14);
	background: rgba(37,99,235,.035);
	will-change: transform, opacity;
}
.geometry-layer i:nth-child(1) { width: 72px; height: 72px; left: 7%; top: 12%; border-radius: 18px; animation: geo-drift-a 13s ease-in-out infinite; }
.geometry-layer i:nth-child(2) { width: 22px; height: 22px; right: 10%; top: 18%; border-radius: 5px; animation: geo-drift-b 9s ease-in-out -2s infinite; }
.geometry-layer i:nth-child(3) { width: 110px; height: 1px; left: 13%; bottom: 25%; border: 0; background: rgba(37,99,235,.12); animation: geo-line 10s ease-in-out -3s infinite; }
.geometry-layer i:nth-child(4) { width: 42px; height: 42px; right: 17%; bottom: 14%; border-radius: 50%; animation: geo-drift-a 11s ease-in-out -5s infinite reverse; }
.geometry-layer i:nth-child(5) { width: 16px; height: 16px; left: 24%; top: 32%; transform: rotate(45deg); animation: geo-drift-b 8s ease-in-out -1s infinite; }
.geometry-layer i:nth-child(6) { width: 94px; height: 94px; right: 27%; top: 6%; border-radius: 24px; opacity: .45; animation: geo-drift-a 15s ease-in-out -7s infinite; }
.geometry-layer i:nth-child(7) { width: 150px; height: 1px; right: 8%; bottom: 34%; border: 0; background: rgba(37,99,235,.10); animation: geo-line 12s ease-in-out -4s infinite reverse; }
.geometry-layer i:nth-child(8) { width: 12px; height: 12px; left: 42%; bottom: 10%; border-radius: 3px; animation: geo-drift-b 7s ease-in-out -3s infinite; }

/* Empty state */
.scan-empty { max-width: 640px; padding: clamp(30px, 5vw, 70px); }
.empty-visual {
	width: 168px;
	height: 168px;
	border-radius: 32px;
	background: var(--primary-faint);
	border: 1px solid #cfe0fb;
	box-shadow: none;
}
.empty-visual::before,
.empty-visual::after { border-color: rgba(37,99,235,.12); }
.empty-visual__ring { border-color: rgba(37,99,235,.20); }
.empty-visual__shield { border-radius: 17px; background: #fff; color: var(--primary); border: 1px solid #c9dbfa; box-shadow: 0 12px 28px rgba(37,99,235,.10); }
.empty-dot { background: var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.10); }
.scan-empty h2 { margin-top: 30px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.035em; }
.scan-empty > p { max-width: 570px; font-size: 14px; line-height: 1.7; }
.empty-checks { gap: 10px; margin-top: 26px; }
.empty-checks span { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #46566d; font-size: 11px; }
.empty-checks i { background: var(--primary); }

/* Scan progress */
.scan-progress {
	padding: clamp(24px, 3.2vw, 50px);
	justify-content: center;
	background: linear-gradient(180deg, rgba(248,251,255,.92), rgba(255,255,255,.98));
}
.particle-field { opacity: .78; }
.scan-particle {
	background: rgba(37,99,235,var(--particle-alpha,.30));
	box-shadow: none;
}
.scan-orbit-system {
	width: clamp(190px, 18vw, 250px);
	height: clamp(190px, 18vw, 250px);
	margin-bottom: 14px;
}
.scan-orbit-system::before {
	background: rgba(37,99,235,.06);
	border: 1px solid rgba(37,99,235,.10);
	filter: none;
	animation: halo-breathe 3.8s ease-in-out infinite;
}
.orbit { border-color: rgba(37,99,235,.18); }
.orbit span { background: var(--primary); border: 4px solid #fff; box-shadow: 0 0 0 5px rgba(37,99,235,.12); }
.zip-document {
	width: 92px;
	height: 122px;
	padding: 19px;
	border: 1px solid #bcd1f6;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(37,99,235,.14);
}
.zip-document::before {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	width: 25px;
	height: 25px;
	background: linear-gradient(225deg, var(--primary-soft) 50%, transparent 51%);
	border-top-right-radius: 17px;
}
.zip-document strong { color: var(--primary); font-size: 13px; }
.zip-document i { background: #d9e5f7; }
.zip-document__scan { background: linear-gradient(to bottom, transparent, rgba(37,99,235,.20), transparent); }
.progress-copy h2 { font-size: clamp(25px, 2.1vw, 34px); letter-spacing: -.04em; }
.progress-copy p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.progress-file-pill {
	min-width: 280px;
	min-height: 42px;
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 5px 15px rgba(31,73,125,.04);
}
.progress-file-pill svg { stroke: var(--primary); }
.progress-file-pill strong { font-size: 11px; }
.progress-file-pill span { color: var(--primary-deep); font-size: 10px; }
.progress-number { width: min(760px, 92%); margin-top: 18px; }
.progress-number strong { color: var(--primary); font-size: 34px; }
.progress-number span { color: var(--muted); font-size: 11px; }
.progress-track {
	width: min(760px, 92%);
	height: 8px;
	margin-top: 12px;
	border: 1px solid #d8e4f4;
	background: #edf3fb;
}
.progress-track > span { background: var(--primary); box-shadow: none; }
.progress-track b { width: 18px; height: 18px; background: #fff; border: 4px solid var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.12); }
.phase-list { width: min(800px, 96%); margin-top: 26px; }
.phase-list::before { background: #dbe6f4; }
.scan-phase__icon { width: 42px; height: 42px; border: 1px solid #d5e2f3; border-radius: 11px; background: #fff; color: #8da1ba; box-shadow: none; }
.scan-phase.is-active .scan-phase__icon,
.scan-phase.is-done .scan-phase__icon { border-color: #9dbcf2; background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.07); }
.scan-phase.is-done .scan-phase__icon::after { background: var(--primary); }
.scan-phase strong { color: #7889a0; font-size: 9px; letter-spacing: .10em; }
.scan-phase.is-active strong,
.scan-phase.is-done strong { color: var(--primary-deep); }
.progress-note {
	margin-top: 22px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
	color: #56677e;
	box-shadow: 0 5px 15px rgba(31,73,125,.04);
}
.progress-note span { color: var(--primary); }
.cancel-scan {
	margin-top: 13px;
	border: 0;
	background: transparent;
	color: #73849b;
	font-size: 11px;
	font-weight: 750;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.cancel-scan:hover { color: var(--primary-deep); }

/* Results */
.results-content { padding: clamp(18px, 2vw, 30px); }
.report-hero {
	padding: 24px;
	border-color: var(--line);
	border-radius: 17px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.score-dial {
	background: conic-gradient(var(--primary) 0 var(--score-deg), #e7eef7 var(--score-deg) 360deg);
	box-shadow: none;
}
.score-dial::before { background: #fff; box-shadow: inset 0 0 0 1px #e7eef7; }
.status-pill,
.status-pill[data-status] { background: var(--primary-soft); color: var(--primary-deep); border-color: #c2d5f7; }
.report-id { color: #7b8ba1; }
.report-meta span { border-color: var(--line); background: var(--surface-soft); }
.report-actions button { border-color: var(--line); background: #fff; color: #40516a; }
.report-actions button:hover { border-color: #a9c4f2; background: var(--primary-faint); color: var(--primary-deep); }
.metric-grid > div { border-color: var(--line); border-radius: 12px; background: #fff; color: var(--primary); }
.metric-grid [data-metric="critical"] { color: #1746ad; }
.metric-grid [data-metric="high"] { color: #2458c6; }
.metric-grid [data-metric="medium"] { color: #3970df; }
.metric-grid [data-metric="low"] { color: #5a88e7; }
.metric-grid [data-metric="info"] { color: #7aa1ec; }
.result-toolbar { margin-top: 28px; }
.findings-search { border-color: var(--line); background: #fff; }
.findings-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.09); }
.filter-chips button { border-color: var(--line); background: #fff; color: #53647c; }
.filter-chips button:hover,
.filter-chips button.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.issue-card { border-color: var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(31,73,125,.04); }
.issue-card:hover { border-color: #b6cae8; box-shadow: 0 10px 24px rgba(31,73,125,.08); }
.issue-card__dot,
.issue-card[data-severity] .issue-card__dot { background: var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.09); }
.issue-card__severity,
.issue-card[data-severity] .issue-card__severity { background: var(--primary-soft); color: var(--primary-deep); }
.issue-card[data-severity="critical"] .issue-card__severity { background: #dce8ff; color: #103b99; }
.issue-card[data-severity="high"] .issue-card__severity { background: #e3edff; color: #1746ad; }
.issue-card[data-severity="medium"] .issue-card__severity { background: #eaf2ff; color: #2458c6; }
.issue-card[data-severity="low"] .issue-card__severity { background: #f0f5ff; color: #3970df; }
.issue-card[data-severity="info"] .issue-card__severity { background: #f5f8ff; color: #5a88e7; }
.issue-card code { background: #f1f5fa; color: #53647b; }
.scan-notice { border-color: var(--line); background: var(--primary-faint); color: #53647c; }

/* Upload panel */
.upload-panel {
	border-left-color: var(--line);
	background: #fff;
	box-shadow: -12px 0 35px rgba(31,73,125,.035);
}
.upload-panel__inner { padding: clamp(28px, 2.45vw, 42px); }
.upload-heading h2 { margin: 7px 0 7px; font-size: clamp(25px, 2vw, 31px); letter-spacing: -.04em; }
.upload-heading p { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.drop-zone {
	min-height: 280px;
	margin-top: 24px;
	border: 1.5px dashed #a9c3ed;
	border-radius: 18px;
	background:
		linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px),
		var(--primary-faint);
	background-size: 24px 24px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.drop-zone::after { width: 150px; height: 150px; border-radius: 22px; background: rgba(37,99,235,.045); transform: rotate(12deg); }
.drop-zone:hover,
.drop-zone.is-dragging { border-color: var(--primary); background-color: #f1f6ff; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(37,99,235,.10); }
.upload-icon {
	width: 68px;
	height: 68px;
	border: 1px solid #bfd3f5;
	border-radius: 16px;
	background: #fff;
	color: var(--primary);
	box-shadow: 0 12px 28px rgba(37,99,235,.10);
}
.drop-zone strong { margin-top: 22px; color: var(--navy); font-size: 16px; }
.drop-zone > span:not(.upload-icon) { color: var(--muted); font-size: 12px; }
.drop-zone small { color: #7c8ca2; font-size: 10px; }
.drop-zone__particles i { background: var(--primary); opacity: .24; }
.selected-file { border-color: #bdd2f4; background: var(--primary-faint); }
.selected-file__icon { background: var(--primary); color: #fff; }
.selected-file__ready { color: var(--primary-deep); }
.privacy-note { color: #64758c; }
.privacy-note svg { fill: var(--primary); }
.scan-scope { border-color: var(--line); background: var(--surface-soft); }
.scan-scope__icon { background: var(--primary-soft); color: var(--primary); }
.scope-grid span { border-color: var(--line); color: #52637b; }
.scope-grid i { color: var(--primary-deep); }
.button--scan {
	min-height: 58px;
	border-radius: 12px;
	background: var(--primary);
	box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.button--scan::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent); }
.button--scan__icon { background: rgba(255,255,255,.18); }
.scan-time-note { color: #74859b; }
.form-error { border-color: #afc9f4; background: #eef4ff; color: var(--primary-deep); }
.scan-app.is-scanning .upload-panel__inner { opacity: .66; }
.scan-app.is-scanning .drop-zone { filter: none; }

/* Refined animation system */
.motion-node { animation: ui-float 5s ease-in-out infinite; }
.motion-preset { will-change: transform, opacity; }
.scan-progress[hidden] .scan-particle,
.scan-progress[hidden] .orbit,
.scan-progress[hidden] .zip-document__scan { animation-play-state: paused !important; }

@keyframes ui-float {
	0%, 100% { transform: translate3d(0,0,0); }
	50% { transform: translate3d(0,-5px,0); }
}
@keyframes geo-drift-a {
	0%,100% { transform: translate3d(0,0,0) rotate(0deg); opacity: .55; }
	50% { transform: translate3d(10px,-12px,0) rotate(5deg); opacity: .9; }
}
@keyframes geo-drift-b {
	0%,100% { transform: translate3d(0,0,0) rotate(0deg); opacity: .35; }
	50% { transform: translate3d(-8px,10px,0) rotate(-7deg); opacity: .75; }
}
@keyframes geo-line {
	0%,100% { transform: scaleX(.55); opacity: .2; }
	50% { transform: scaleX(1); opacity: .65; }
}
@keyframes state-pulse {
	0%,100% { transform: scale(.9); opacity: .6; }
	50% { transform: scale(1.08); opacity: 1; }
}
@keyframes canvas-sheen {
	0%,72% { transform: translateX(-120%); }
	90%,100% { transform: translateX(120%); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes halo-breathe {
	0%,100% { transform: scale(.95); opacity: .45; }
	50% { transform: scale(1.03); opacity: .85; }
}
@keyframes file-scan {
	0% { transform: translateY(-10px); opacity: 0; }
	18%,82% { opacity: 1; }
	100% { transform: translateY(128px); opacity: 0; }
}
@keyframes active-phase {
	0%,100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}
@keyframes float-dot {
	0%,100% { transform: translate3d(0,0,0); opacity: .18; }
	50% { transform: translate3d(7px,-9px,0); opacity: .50; }
}
@keyframes button-sheen {
	0%,70% { left: -70%; }
	100% { left: 135%; }
}
@keyframes issue-enter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
	.scan-app { grid-template-columns: minmax(0,1fr) 390px; }
}
@media (max-width: 900px) {
	.taskivoza-scan-page { overflow: auto; }
	.scan-app { height: auto; grid-template-columns: 1fr; }
	.upload-panel { border-left: 0; border-top: 1px solid var(--line); box-shadow: none; }
	.scan-results { min-height: 760px; }
}
@media (max-width: 650px) {
	.scan-results__header h1 { font-size: 29px; }
	.scan-canvas { border-radius: 16px; }
	.scan-progress { padding: 25px 12px; }
	.progress-copy h2 { font-size: 25px; }
	.progress-copy p { font-size: 12px; }
	.phase-list { width: 100%; }
	.scan-phase strong { font-size: 7.5px; }
	.drop-zone { min-height: 245px; }
}
@media (prefers-reduced-motion: reduce) {
	.geometry-layer,
	.particle-field,
	.drop-zone__particles { display: none !important; }
}

.geometry-layer i,
.motion-node,
.scan-particle,
.orbit,
.drop-zone__particles i,
.scan-orbit-system::before,
.zip-document__scan,
.button--scan::before,
.scan-canvas::before {
	animation-play-state: var(--motion-state, running);
}


/* v1.4.0 polish and slower professional scanning */
.scan-results__header p {
	font-size: 15px;
	line-height: 1.65;
}
.scan-empty {
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding: clamp(44px, 6vw, 82px);
}
.scan-empty h2 {
	font-size: clamp(26px, 2.8vw, 40px);
	line-height: 1.08;
	letter-spacing: -.048em;
}
.scan-empty > p {
	max-width: 620px;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.72;
}
.empty-checks span {
	padding-inline: 16px;
	font-size: 12px;
}
.progress-copy p {
	max-width: 620px;
	margin-inline: auto;
	font-size: 14px;
	line-height: 1.68;
}
.progress-number strong {
	font-size: clamp(32px, 2.5vw, 40px);
}
.progress-number span {
	font-size: 12px;
}
.progress-track {
	height: 12px;
}
.progress-track > span,
.progress-track > b {
	transition-duration: .95s;
}
.button--scan {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 18px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}
.button--scan__icon {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
}
.button--scan [data-run-label] {
	overflow: hidden;
	text-overflow: ellipsis;
}
.button--scan b {
	margin-left: 4px;
	flex: 0 0 auto;
}
.geometry-layer .tv-geo-extra {
	position: absolute;
	left: var(--geo-left);
	top: var(--geo-top);
	width: var(--geo-size);
	height: var(--geo-height, var(--geo-size));
	border-radius: var(--geo-radius, 18px);
	transform: rotate(var(--geo-rotate, 0deg));
	border: 1px solid rgba(37,99,235,.12);
	background: rgba(37,99,235,.026);
}
.drop-zone__particles .tv-upload-particle {
	position: absolute;
	width: var(--upload-size, 5px);
	height: var(--upload-size, 5px);
	border-radius: 50%;
	background: var(--primary);
	opacity: var(--upload-alpha, .16);
}
.scan-particle {
	filter: saturate(1.02);
}
@media (max-width: 650px) {
	.scan-empty {
		padding: 28px 22px;
	}
	.scan-empty h2 {
		font-size: clamp(22px, 8vw, 32px);
	}
	.scan-empty > p,
	.progress-copy p,
	.scan-results__header p {
		font-size: 13px;
	}
	.button--scan {
		min-height: 58px;
		gap: 10px;
		padding: 0 14px;
		font-size: 14px;
	}
}

/* --------------------------------------------------------------------------
 * Temviora WP Suite v1.5.0 — stable professional scanner workspace
 * -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

.taskivoza-scan-page,
.taskivoza-scan-page * { box-sizing: border-box; }
.taskivoza-scan-page {
	margin: 0;
	overflow: hidden;
	background: #f3f7fc;
}
.taskivoza-scan-page .site-main,
.taskivoza-scan-page #page { min-width: 0; }

.scan-app {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: none;
	height: calc(100dvh - var(--header-height));
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(390px, 31vw);
	overflow: hidden;
	background: #f3f7fc;
}
.admin-bar .scan-app { height: calc(100dvh - var(--header-height) - 32px); }
.scan-results,
.upload-panel {
	position: relative;
	min-width: 0;
	min-height: 0;
}
.scan-results {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0;
	padding: clamp(22px, 2vw, 34px);
	overflow: hidden;
	background:
		radial-gradient(circle at 55% 5%, rgba(37, 99, 235, .065), transparent 30%),
		#f4f8fd;
}
.scan-results__header {
	min-height: 92px;
	padding: 0 2px 20px;
	align-items: flex-start;
}
.scan-results__header h1 {
	margin: 5px 0 6px;
	font-size: clamp(30px, 2.4vw, 42px);
	line-height: 1;
	letter-spacing: -.052em;
}
.scan-results__header p {
	max-width: 720px;
	font-size: 14px;
	line-height: 1.65;
}
.scan-header-actions { flex: 0 0 auto; }
.scan-state-badge {
	min-height: 38px;
	padding-inline: 14px;
	border-radius: 11px;
	font-size: 12px;
}

.scan-canvas {
	position: relative;
	isolation: isolate;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border: 1px solid #d8e4f2;
	border-radius: 22px;
	background:
		linear-gradient(rgba(37,99,235,.026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37,99,235,.026) 1px, transparent 1px),
		#fff;
	background-size: 36px 36px;
	box-shadow: 0 18px 48px rgba(28, 66, 115, .075);
}
.scan-canvas::after {
	z-index: -1;
	background:
		radial-gradient(circle at 50% 43%, rgba(37,99,235,.065), transparent 35%),
		linear-gradient(180deg, rgba(255,255,255,.1), rgba(245,249,255,.2));
}
.geometry-layer { z-index: -1; }
.geometry-layer i,
.geometry-layer .tv-geo-extra {
	pointer-events: none;
	border-color: rgba(37,99,235,.11);
	background: rgba(37,99,235,.025);
}

.scan-empty {
	position: absolute;
	inset: 0;
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: clamp(32px, 5vw, 76px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transform: none !important;
	overflow: hidden;
}
.scan-empty .empty-visual {
	flex: 0 0 auto;
	width: clamp(142px, 15vw, 180px);
	height: clamp(142px, 15vw, 180px);
	margin: 0 0 28px;
	border-radius: 34px;
}
.scan-empty h2 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(27px, 3vw, 43px);
	line-height: 1.08;
	letter-spacing: -.052em;
}
.scan-empty > p {
	max-width: 650px;
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.72;
}
.empty-checks {
	max-width: 760px;
	gap: 10px;
	margin-top: 26px;
}
.empty-checks span {
	min-height: 39px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 11px;
}

.scan-progress {
	position: absolute;
	inset: 0;
	width: 100%;
	min-width: 0;
	padding: clamp(24px, 3.2vw, 52px);
	overflow: auto;
	background: linear-gradient(180deg, rgba(248,251,255,.96), rgba(255,255,255,.99));
}
.scan-orbit-system {
	flex: 0 0 auto;
	width: clamp(184px, 17vw, 246px);
	height: clamp(184px, 17vw, 246px);
}
.progress-copy h2 {
	font-size: clamp(25px, 2.3vw, 36px);
	line-height: 1.08;
}
.progress-copy p {
	max-width: 670px;
	margin: 9px auto 0;
	font-size: 13px;
	line-height: 1.65;
}
.progress-file-pill {
	width: min(390px, 88%);
	min-width: 0;
	min-height: 40px;
}
.progress-number,
.progress-track { width: min(780px, 88%); }
.progress-number strong { font-size: clamp(32px, 3vw, 42px); }
.progress-number span { font-size: 11px; }
.progress-track {
	height: 12px;
	background: #e8eef7;
	border-color: #d7e2f0;
}
.progress-track > span {
	background: linear-gradient(90deg, #1d4ed8, #2563eb 55%, #60a5fa);
	transition: width .8s cubic-bezier(.2,.75,.25,1);
}
.progress-track > b { transition: left .8s cubic-bezier(.2,.75,.25,1); }
.phase-list { width: min(780px, 92%); }
.progress-note {
	max-width: 680px;
	font-size: 10.5px;
	line-height: 1.55;
}
.cancel-scan {
	min-height: 32px;
	padding: 5px 12px;
}

.results-content {
	position: absolute;
	inset: 0;
	width: 100%;
	min-width: 0;
	padding: clamp(20px, 2.1vw, 36px);
	overflow-x: hidden;
	overflow-y: auto;
}
.report-hero {
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 22px;
	padding: clamp(20px, 2vw, 28px);
	border-color: #d9e4f1;
	background: #fff;
	box-shadow: 0 12px 32px rgba(31,73,125,.07);
}
.report-hero__copy { min-width: 0; }
.report-hero__copy h2 {
	overflow-wrap: anywhere;
	font-size: clamp(23px, 2vw, 32px);
}
.report-meta {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}
.report-meta span {
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid #e0e9f4;
	border-radius: 10px;
	background: #f8fbff;
}
.report-meta b,
.report-meta em {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.report-meta b { color: #77879b; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.report-meta em { margin-top: 4px; color: #203550; font-size: 10px; font-style: normal; font-weight: 750; }
.issue-card pre {
	max-width: 100%;
	margin: 9px 0 0;
	padding: 9px 10px;
	overflow: auto;
	border: 1px solid #e1e9f3;
	border-radius: 8px;
	background: #f7faff;
	color: #53657d;
	font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre-wrap;
	word-break: break-word;
}

.upload-panel {
	z-index: 2;
	min-width: 0;
	overflow-y: auto;
	overflow-x: hidden;
	border-left: 1px solid #d7e3f1;
	background: #fff;
	box-shadow: -14px 0 36px rgba(31,73,125,.045);
}
.upload-panel__inner {
	width: 100%;
	min-height: 100%;
	padding: clamp(24px, 2.35vw, 40px);
}
.upload-heading h2 { font-size: clamp(25px, 2vw, 32px); }
.upload-heading p { font-size: 13px; }
.drop-zone {
	min-height: clamp(245px, 30vh, 310px);
	padding: 26px;
	border-radius: 18px;
}
.drop-zone strong { font-size: 16px; }
.drop-zone > span:not(.upload-icon) { font-size: 12px; }
.drop-zone__particles { position: absolute; inset: 0; pointer-events: none; }
.drop-zone__particles .tv-upload-particle {
	position: absolute;
	width: var(--upload-size, 5px);
	height: var(--upload-size, 5px);
	border-radius: 50%;
	background: #2563eb;
	opacity: var(--upload-alpha, .14);
}
.engine-status {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	margin-top: 16px;
	padding: 12px 13px;
	border: 1px solid #cfe0f5;
	border-radius: 12px;
	background: #f7fbff;
}
.engine-status__icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: #e8f1ff;
}
.engine-status__icon i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2563eb;
	box-shadow: 0 0 0 5px rgba(37,99,235,.11);
}
.engine-status strong,
.engine-status small { display: block; }
.engine-status strong { color: #18304e; font-size: 11px; }
.engine-status small { margin-top: 3px; color: #6c7f98; font-size: 9px; line-height: 1.5; }
.engine-status[data-ready="0"] {
	border-color: #f0b8c4;
	background: #fff7f9;
}
.engine-status[data-ready="0"] .engine-status__icon { background: #ffe8ed; }
.engine-status[data-ready="0"] .engine-status__icon i { background: #cc3150; box-shadow: 0 0 0 5px rgba(204,49,80,.1); }
.scope-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.button--scan {
	width: 100%;
	min-width: 0;
	min-height: 60px;
	display: grid;
	grid-template-columns: 31px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 12px;
	padding: 0 17px;
	border: 0;
	border-radius: 13px;
	font-size: 15px;
	font-weight: 820;
	line-height: 1;
	white-space: nowrap;
}
.button--scan [data-run-label] {
	min-width: 0;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
}
.button--scan__icon {
	width: 31px;
	height: 31px;
}
.button--scan b {
	margin: 0;
	text-align: right;
}
.scan-time-note {
	padding-inline: 8px;
	font-size: 9.5px;
	line-height: 1.5;
	text-align: center;
}
.form-error {
	font-size: 11px;
	line-height: 1.55;
}

/* Motion: 512 unique keyframes are available, but only visible elements run. */
.motion-node,
.motion-preset {
	animation-name: var(--motion-name, ui-float) !important;
	animation-duration: var(--motion-duration, 9s) !important;
	animation-delay: var(--motion-delay, 0s) !important;
	animation-timing-function: ease-in-out !important;
	animation-iteration-count: infinite !important;
	animation-direction: alternate !important;
	animation-play-state: var(--motion-state, running) !important;
	will-change: transform, opacity;
}
.scan-progress[hidden] *,
.results-content[hidden] * { animation-play-state: paused !important; }
.is-tab-hidden *,
.is-tab-hidden *::before,
.is-tab-hidden *::after { animation-play-state: paused !important; }

@media (max-width: 1180px) {
	.scan-app { grid-template-columns: minmax(0, 1fr) 390px; }
	.report-meta { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
	.taskivoza-scan-page { overflow: auto; }
	.scan-app {
		height: auto;
		min-height: calc(100dvh - var(--header-height));
		grid-template-columns: minmax(0, 1fr);
		overflow: visible;
	}
	.admin-bar .scan-app { height: auto; }
	.scan-results { min-height: 760px; overflow: visible; }
	.upload-panel { border-left: 0; border-top: 1px solid #d7e3f1; overflow: visible; }
	.upload-panel__inner { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 650px) {
	.scan-results { min-height: 720px; padding: 16px 12px 20px; }
	.scan-results__header { min-height: 88px; padding: 0 3px 16px; }
	.scan-results__header h1 { font-size: 29px; }
	.scan-results__header p { max-width: 250px; font-size: 11.5px; }
	.scan-state-badge { min-height: 34px; padding-inline: 10px; font-size: 10px; }
	.scan-canvas { border-radius: 17px; }
	.scan-empty { padding: 28px 20px; }
	.scan-empty .empty-visual { width: 132px; height: 132px; margin-bottom: 22px; }
	.scan-empty h2 { font-size: 27px; }
	.scan-empty > p { font-size: 12.5px; }
	.empty-checks span:nth-child(3) { display: none; }
	.scan-progress { justify-content: flex-start; padding: 22px 10px 30px; }
	.progress-number,
	.progress-track,
	.phase-list { width: 95%; }
	.progress-copy p { font-size: 12px; }
	.progress-note { margin-inline: 8px; }
	.report-hero { grid-template-columns: 1fr; text-align: center; }
	.report-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.report-actions { justify-content: center; flex-wrap: wrap; }
	.metric-grid { grid-template-columns: repeat(2, 1fr); }
	.issue-card { grid-template-columns: 10px minmax(0,1fr); }
	.issue-card__severity { grid-column: 2; justify-self: start; }
	.upload-panel__inner { padding: 26px 17px 36px; }
	.scope-grid { grid-template-columns: 1fr; }
	.button--scan { font-size: 14px; }
}
@media (max-width: 782px) {
	.admin-bar .scan-app { height: auto; }
}
@media (max-height: 760px) and (min-width: 901px) {
	.scan-app { min-height: 0; }
	.scan-results { padding: 18px 22px 20px; }
	.scan-results__header { min-height: 74px; padding-bottom: 12px; }
	.scan-results__header h1 { font-size: 29px; }
	.scan-orbit-system { width: 168px; height: 168px; }
	.progress-copy h2 { font-size: 25px; }
	.progress-note { margin-top: 10px; }
	.drop-zone { min-height: 215px; margin-top: 16px; }
	.upload-panel__inner { padding-top: 22px; padding-bottom: 24px; }
	.scan-scope { margin-top: 14px; }
	.button--scan { min-height: 54px; margin-top: 14px; }
}

/* Report metadata remains readable instead of compressing five labels into one row. */
.report-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-meta b { overflow: visible; white-space: normal; line-height: 1.3; }
@media (max-width: 1180px) {
	.report-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
	.report-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact desktop composition keeps the primary action visible on short screens. */
@media (max-height: 760px) and (min-width: 901px) {
	.upload-panel__inner { padding: 18px 22px 20px; }
	.upload-heading .section-kicker { display: none; }
	.upload-heading h2 { margin: 0 0 5px; font-size: 22px; }
	.upload-heading p {
		max-height: 34px;
		overflow: hidden;
		font-size: 11px;
		line-height: 1.5;
	}
	.drop-zone {
		min-height: 180px;
		height: 180px;
		margin-top: 12px;
		padding: 14px;
	}
	.upload-icon {
		width: 50px;
		height: 50px;
		margin-bottom: 8px;
		border-radius: 13px;
	}
	.upload-icon svg { width: 25px; height: 25px; }
	.drop-zone strong { margin-top: 7px; font-size: 13px; }
	.drop-zone > span:not(.upload-icon) { margin-top: 4px; font-size: 10px; }
	.drop-zone small { display: none; }
	.privacy-note { margin-top: 9px; }
	.privacy-note p { font-size: 8.5px; line-height: 1.4; }
	.engine-status {
		min-height: 48px;
		margin-top: 9px;
		padding: 7px 9px;
	}
	.engine-status__icon { width: 30px; height: 30px; }
	.engine-status small { display: none; }
	.scan-scope { margin-top: 9px; }
	.scan-scope summary { min-height: 56px; padding: 8px 10px; }
	.scan-scope__icon { width: 34px; height: 34px; }
	.scan-scope summary small { display: none; }
	.button--scan { min-height: 52px; margin-top: 10px; }
	.scan-time-note { display: none; }
}

/* Account navigation */
.site-nav__account {
	display: flex;
	align-items: center;
	gap: 15px;
}
.site-nav__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 800;
	color: #34445d;
	text-decoration: none;
}
.site-nav__login:hover,
.site-nav__login:focus-visible { color: var(--primary-deep); }
@media (max-width: 900px) {
	.site-nav__account {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.site-nav__login {
		min-height: 48px;
		border: 1px solid var(--line);
		border-radius: 11px;
		background: #f8faff;
	}
	.site-nav__account .site-nav__cta { width: 100%; }
}
@media (max-width: 480px) {
	.site-nav__account { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1080px) {
	.menu-toggle { display: block; margin-left: auto; }
	.site-nav {
		position: fixed;
		left: 16px;
		right: 16px;
		top: calc(var(--header-height) + 8px);
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px;
		border: 1px solid var(--line);
		border-radius: 16px;
		background: #fff;
		box-shadow: var(--shadow-lg);
	}
	.site-nav.is-open { display: flex; }
	.site-nav__links { flex-direction: column; align-items: stretch; gap: 5px; }
	.site-nav__links a { padding: 11px; border-radius: 9px; }
	.site-nav__links a:hover { background: var(--primary-soft); }
	.site-nav__account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.site-nav__login { min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: #f8faff; }
	.site-nav__account .site-nav__cta { width: 100%; }
}
