/* CompactCSS source: /style/ocr/index.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos gathers every visual vessel into one local stream;
Awtsmoos.com keeps the route scoped so no neighboring page inherits the dream.
*/

/* CompactCSS source: /style/ocr/tokens.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos renews each color and measure before the eye can name the beam;
Awtsmoos.com holds these tokens inside OCR alone, a locally bounded dream.
*/
body.ocr-document {
	margin: 0;
	min-height: 100dvh;
	background: #050b14;
	color: #edf7ff;
	color-scheme: dark;
}

.ocr-app {
	--ocr-bg: #050b14;
	--ocr-surface: rgba(12, 25, 43, .86);
	--ocr-surface-strong: #0d1d31;
	--ocr-surface-soft: rgba(255, 255, 255, .055);
	--ocr-border: rgba(145, 214, 255, .18);
	--ocr-border-strong: rgba(116, 221, 255, .42);
	--ocr-text: #edf7ff;
	--ocr-muted: #91a8bc;
	--ocr-accent: #72e5ff;
	--ocr-accent-strong: #49b7ff;
	--ocr-success: #6af2b2;
	--ocr-danger: #ff7d96;
	--ocr-focus: 0 0 0 3px rgba(114, 229, 255, .24);
	--ocr-shadow: 0 24px 70px rgba(0, 0, 0, .34);
	--ocr-radius-lg: 1.4rem;
	--ocr-radius-md: 1rem;
	--ocr-radius-sm: .75rem;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ocr-text);
}

.ocr-app,
.ocr-app * {
	box-sizing: border-box;
}



/* CompactCSS source: /style/ocr/shell.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos lays a quiet horizon before any control can appear;
Awtsmoos.com gives the OCR vessel one local sky, luminous yet clear.
*/
.ocr-app {
	position: relative;
	isolation: isolate;
	width: min(100%, 76rem);
	min-height: 100dvh;
	margin: 0 auto;
	padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
	overflow: hidden;
}

.ocr-app::before,
.ocr-app::after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 18rem;
	height: 18rem;
	border-radius: 50%;
	filter: blur(80px);
	opacity: .18;
	pointer-events: none;
}

.ocr-app::before {
	top: -7rem;
	right: -5rem;
	background: #29d8ff;
}

.ocr-app::after {
	bottom: -9rem;
	left: -6rem;
	background: #765cff;
}

.ocr-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	min-height: 3.25rem;
}

.ocr-brand,
.ocr-link {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--ocr-text);
	font-weight: 750;
	text-decoration: none;
}

.ocr-brand-mark {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--ocr-border-strong);
	border-radius: .7rem;
	background: var(--ocr-surface-soft);
	color: var(--ocr-accent);
}

.ocr-link {
	min-height: 2.75rem;
	padding: 0 .9rem;
	border: 1px solid var(--ocr-border);
	border-radius: 999px;
	font-size: .88rem;
}



/* CompactCSS source: /style/ocr/layout.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos gives space without waste, a horizon close enough to hold;
Awtsmoos.com lets the mobile vessel open first, then widen when the screen grows bold.
*/
.ocr-hero {
	max-width: 44rem;
	padding: clamp(1.5rem, 5vw, 3.25rem) 0 1.25rem;
}

.ocr-kicker {
	margin: 0 0 .55rem;
	color: var(--ocr-accent);
	font-size: .72rem;
	font-weight: 850;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ocr-hero h1 {
	margin: 0;
	font-size: clamp(2rem, 9vw, 4.7rem);
	line-height: .98;
	letter-spacing: -.055em;
}

.ocr-intro {
	max-width: 40rem;
	margin: .9rem 0 0;
	color: var(--ocr-muted);
	font-size: clamp(.96rem, 2.5vw, 1.08rem);
	line-height: 1.6;
}

.ocr-workspace {
	display: grid;
	gap: .9rem;
}

.ocr-panel {
	min-width: 0;
	padding: 1rem;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-lg);
	background: linear-gradient(145deg, rgba(15, 32, 53, .94), var(--ocr-surface));
	box-shadow: var(--ocr-shadow);
	backdrop-filter: blur(18px);
}

.ocr-panel-heading {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1rem;
}

.ocr-panel-heading h2,
.ocr-panel-heading p {
	margin: 0;
}

.ocr-panel-heading h2 {
	font-size: 1rem;
}

.ocr-panel-heading p {
	margin-top: .2rem;
	color: var(--ocr-muted);
	font-size: .78rem;
}

.ocr-step {
	display: grid;
	place-items: center;
	flex: 0 0 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--ocr-border-strong);
	border-radius: .8rem;
	color: var(--ocr-accent);
	font-size: .72rem;
	font-weight: 900;
}



/* CompactCSS source: /style/ocr/controls.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos gives every control a purpose the hand can understand;
Awtsmoos.com leaves no native vessel naked, every focus ring a guiding strand.
*/
.ocr-app .ocr-field {
	display: grid;
	gap: .5rem;
	margin-bottom: .85rem;
	color: var(--ocr-muted);
	font-size: .8rem;
	font-weight: 760;
}

.ocr-app .ocr-field select {
	width: 100%;
	min-height: 3rem;
	padding: 0 2.7rem 0 .9rem;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-sm);
	appearance: none;
	background: var(--ocr-surface-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2372e5ff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") calc(100% - .9rem) 50% / .9rem no-repeat;
	color: var(--ocr-text);
	font: inherit;
}

.ocr-app textarea {
	display: block;
	width: 100%;
	min-height: 14rem;
	max-height: 46dvh;
	padding: .95rem;
	resize: vertical;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-md);
	outline: none;
	background: rgba(3, 10, 18, .72);
	color: var(--ocr-text);
	font: 500 .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	unicode-bidi: plaintext;
}

.ocr-actions {
	display: flex;
	gap: .45rem;
	margin-left: auto;
}

.ocr-app .ocr-actions button {
	min-height: 2.55rem;
	padding: 0 .78rem;
	border: 1px solid var(--ocr-border);
	border-radius: .72rem;
	background: var(--ocr-surface-soft);
	color: var(--ocr-text);
	font: inherit;
	font-size: .76rem;
	font-weight: 800;
	cursor: pointer;
}

.ocr-app .ocr-actions button:disabled {
	opacity: .38;
	cursor: not-allowed;
}

.ocr-app :is(a, select, textarea, button, .ocr-file-field):focus-visible {
	outline: none;
	box-shadow: var(--ocr-focus);
}



/* CompactCSS source: /style/ocr/file-field.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos turns the hidden file input into a touchable gate of light;
Awtsmoos.com keeps its semantic soul while giving the hand a clearer sight.
*/
.ocr-file-field {
	display: flex;
	align-items: center;
	gap: .8rem;
	min-height: 5.3rem;
	padding: .85rem;
	border: 1px dashed var(--ocr-border-strong);
	border-radius: var(--ocr-radius-md);
	background: var(--ocr-surface-soft);
	cursor: pointer;
	transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.ocr-file-field input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ocr-file-icon {
	display: grid;
	place-items: center;
	flex: 0 0 2.7rem;
	height: 2.7rem;
	border-radius: .85rem;
	background: rgba(114, 229, 255, .12);
	color: var(--ocr-accent);
	font-size: 1.25rem;
}

.ocr-file-copy {
	display: grid;
	gap: .22rem;
	min-width: 0;
}

.ocr-file-copy strong {
	font-size: .92rem;
}

.ocr-file-copy small {
	overflow: hidden;
	color: var(--ocr-muted);
	font-size: .75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}



/* CompactCSS source: /style/ocr/advanced.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos opens deeper recognition through several small vessels rather than one crowded wall;
Awtsmoos.com joins disclosure, controls, toggles, and action while each local module keeps its call.
*/

/* CompactCSS source: /style/ocr/advanced-disclosure.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos conceals depth until the user asks, then opens the chamber without fright;
Awtsmoos.com makes expert recognition discoverable while the ordinary path stays light.
*/
.ocr-app .ocr-advanced {
	margin-top: .85rem;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-md);
	background: rgba(3, 10, 18, .42);
	overflow: hidden;
}

.ocr-app .ocr-advanced summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .7rem;
	min-height: 3rem;
	padding: 0 .85rem;
	color: var(--ocr-text);
	font-size: .82rem;
	font-weight: 850;
	cursor: pointer;
	list-style: none;
}

.ocr-app .ocr-advanced summary::-webkit-details-marker {
	display: none;
}

.ocr-app .ocr-advanced summary small {
	color: var(--ocr-muted);
	font-size: .7rem;
	font-weight: 650;
}



/* CompactCSS source: /style/ocr/advanced-fields.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos gives each engine parameter a bounded vessel, never a raw browser control in sight;
Awtsmoos.com keeps fields and toggles mobile-readable while deeper Tesseract choices remain precise and bright.
*/
.ocr-advanced-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .7rem;
	padding: .85rem .85rem .25rem;
	border-top: 1px solid var(--ocr-border);
}

.ocr-app .ocr-advanced-grid .ocr-field {
	margin: 0;
}

.ocr-app .ocr-advanced-grid input {
	width: 100%;
	min-height: 3rem;
	padding: 0 .85rem;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-sm);
	outline: none;
	background: var(--ocr-surface-strong);
	color: var(--ocr-text);
	font: inherit;
}

.ocr-wide-field {
	grid-column: 1 / -1;
}

.ocr-toggle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .5rem;
	padding: .6rem .85rem .85rem;
}

.ocr-toggle-grid label {
	display: flex;
	align-items: center;
	gap: .55rem;
	min-height: 2.65rem;
	padding: .55rem .65rem;
	border: 1px solid var(--ocr-border);
	border-radius: .75rem;
	background: var(--ocr-surface-soft);
	color: var(--ocr-muted);
	font-size: .74rem;
	cursor: pointer;
}

.ocr-toggle-grid input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--ocr-accent);
}



/* CompactCSS source: /style/ocr/advanced-action.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos turns configured intention into one unmistakable act of recognition and light;
Awtsmoos.com gives the primary action enough gravity to guide the hand without dominating the sight.
*/
.ocr-app .ocr-primary-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .8rem;
	width: 100%;
	min-height: 3.2rem;
	margin-top: .85rem;
	padding: .65rem .9rem;
	border: 1px solid var(--ocr-border-strong);
	border-radius: .9rem;
	background: linear-gradient(135deg, var(--ocr-accent), var(--ocr-accent-strong));
	color: #03111d;
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.ocr-app .ocr-primary-action small {
	font-size: .68rem;
	font-weight: 750;
	opacity: .72;
}

.ocr-app .ocr-primary-action:disabled {
	opacity: .38;
	cursor: not-allowed;
}





/* CompactCSS source: /style/ocr/states.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos makes change visible: waiting, working, error, success in flight;
Awtsmoos.com lets state speak softly so the user never wanders without light.
*/
.ocr-status {
	display: flex;
	align-items: center;
	gap: .55rem;
	min-height: 2.75rem;
	margin-top: .85rem;
	padding: .65rem .8rem;
	border: 1px solid var(--ocr-border);
	border-radius: var(--ocr-radius-sm);
	background: rgba(4, 13, 24, .58);
	color: var(--ocr-muted);
	font-size: .79rem;
}

.ocr-status-dot {
	flex: 0 0 .58rem;
	height: .58rem;
	border-radius: 50%;
	background: var(--ocr-muted);
	box-shadow: 0 0 0 4px rgba(145, 168, 188, .08);
}

.ocr-status[data-state="working"] {
	color: var(--ocr-accent);
}

.ocr-status[data-state="working"] .ocr-status-dot {
	background: var(--ocr-accent);
	animation: ocr-pulse 1.1s ease-in-out infinite;
}

.ocr-status[data-state="success"] {
	color: var(--ocr-success);
}

.ocr-status[data-state="success"] .ocr-status-dot {
	background: var(--ocr-success);
}

.ocr-status[data-state="error"] {
	border-color: rgba(255, 125, 150, .34);
	color: var(--ocr-danger);
}

.ocr-status[data-state="error"] .ocr-status-dot {
	background: var(--ocr-danger);
}

.ocr-result-panel:has(textarea:placeholder-shown) {
	background: linear-gradient(145deg, rgba(13, 29, 49, .9), rgba(8, 18, 31, .82));
}

@keyframes ocr-pulse {
	50% {
		transform: scale(.72);
		opacity: .45;
	}
}



/* CompactCSS source: /style/ocr/metrics.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos makes recognition measurable through several small diagnostic vessels rather than one crowded scroll;
Awtsmoos.com joins progress, metadata, exports, and previews while each module keeps a single role.
*/

/* CompactCSS source: /style/ocr/progress.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos lets hidden work become visible as a measured current rather than a frozen screen;
Awtsmoos.com gives the worker logger a compact progress vessel, restrained and clean.
*/
.ocr-progress-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: .65rem;
	margin-top: .55rem;
	color: var(--ocr-muted);
	font-size: .7rem;
	font-weight: 800;
}

.ocr-progress-shell progress {
	width: 100%;
	height: .42rem;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
	appearance: none;
}

.ocr-progress-shell progress::-webkit-progress-bar {
	background: var(--ocr-surface-soft);
}

.ocr-progress-shell progress::-webkit-progress-value {
	background: linear-gradient(90deg, var(--ocr-accent), #8c7dff);
}

.ocr-progress-shell progress::-moz-progress-bar {
	background: linear-gradient(90deg, var(--ocr-accent), #8c7dff);
}



/* CompactCSS source: /style/ocr/result-meta.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos lets confidence and structure inform without pretending a metric is the whole page;
Awtsmoos.com keeps diagnostic truth in small chips that scroll sideways instead of growing a vertical cage.
*/
.ocr-result-meta {
	display: flex;
	gap: .4rem;
	margin-bottom: .65rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.ocr-result-meta[hidden] {
	display: none;
}

.ocr-result-meta span {
	flex: 0 0 auto;
	padding: .4rem .62rem;
	border: 1px solid var(--ocr-border);
	border-radius: 999px;
	background: var(--ocr-surface-soft);
	color: var(--ocr-muted);
	font-size: .67rem;
	font-weight: 800;
}



/* CompactCSS source: /style/ocr/exports.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos lets structured recognition leave the browser through deliberate export gates;
Awtsmoos.com keeps TSV and hOCR secondary to readable text while preserving richer states.
*/
.ocr-export-row {
	display: flex;
	gap: .45rem;
	margin-top: .65rem;
}

.ocr-export-row[hidden] {
	display: none;
}

.ocr-app .ocr-export-row button {
	min-height: 2.55rem;
	padding: 0 .8rem;
	border: 1px solid var(--ocr-border);
	border-radius: .75rem;
	background: var(--ocr-surface-soft);
	color: var(--ocr-text);
	font: inherit;
	font-size: .74rem;
	font-weight: 800;
	cursor: pointer;
}

.ocr-app .ocr-export-row button:disabled {
	opacity: .38;
	cursor: not-allowed;
}



/* CompactCSS source: /style/ocr/previews.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos reveals the greyscale and binary vessels Tesseract actually sees beneath the photograph's face;
Awtsmoos.com keeps preprocessing inspection collapsible so diagnostic depth never overwhelms the workspace.
*/
.ocr-previews {
	margin-top: .65rem;
	border: 1px solid var(--ocr-border);
	border-radius: .85rem;
	overflow: hidden;
}

.ocr-previews[hidden] {
	display: none;
}

.ocr-previews summary {
	padding: .75rem .8rem;
	font-size: .76rem;
	font-weight: 850;
	cursor: pointer;
}

.ocr-previews > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .55rem;
	padding: 0 .65rem .65rem;
}

.ocr-previews figure {
	margin: 0;
	min-width: 0;
}

.ocr-previews figcaption {
	margin-bottom: .35rem;
	color: var(--ocr-muted);
	font-size: .66rem;
}

.ocr-previews img {
	display: block;
	width: 100%;
	max-height: 14rem;
	object-fit: contain;
	border-radius: .65rem;
	background: #fff;
}





/* CompactCSS source: /style/ocr/responsive.css */
/* B"H
Boruch Hashem
Blessed is He

The Awtsmoos is no prisoner of width; phone and desktop both arise anew;
Awtsmoos.com lets one interface fold with grace, compact and clear in every view.
*/
@media (min-width: 760px) {
	.ocr-app {
		padding-inline: 1.5rem;
	}

	.ocr-workspace {
		grid-template-columns: minmax(17rem, .82fr) minmax(0, 1.18fr);
		align-items: start;
	}

	.ocr-panel {
		padding: 1.25rem;
	}

	.ocr-input-panel {
		position: sticky;
		top: 1rem;
	}

	.ocr-result-panel textarea {
		min-height: min(28rem, 52dvh);
	}
}

@media (max-width: 420px) {
	.ocr-app {
		padding-inline: .75rem;
	}

	.ocr-brand span:last-child {
		display: none;
	}

	.ocr-result-heading {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.ocr-actions {
		width: 100%;
		margin-left: 3.1rem;
	}
}

@media (hover: hover) {
	.ocr-link:hover,
	.ocr-file-field:hover,
	.ocr-app .ocr-actions button:not(:disabled):hover {
		border-color: var(--ocr-border-strong);
		background-color: rgba(114, 229, 255, .09);
	}

	.ocr-file-field:hover {
		transform: translateY(-1px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ocr-app *,
	.ocr-app *::before,
	.ocr-app *::after {
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
}


