/* eProbash 1.2.0: tool-first design layer. Loads after style.css and overrides its tokens and key components. */

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--surface: #f7f8fc;
	--surface-2: #eceff8;
	--text: #0b1020;
	--muted: #586177;
	--border: #e3e7f1;
	--accent: #5b4bff;
	--accent-ink: #ffffff;
	--accent-soft: #e8e5ff;
	--focus: #f59e0b;
	--art-1: #4f46e5;
	--art-2: #06b6d4;
	--art-3: #f59e0b;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 10px 30px rgba(11, 16, 32, .06);
	--shadow-lg: 0 2px 4px rgba(11, 16, 32, .05), 0 24px 60px rgba(40, 40, 120, .14);
	--ok: #047857;
	--err: #b42318;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a0e1a; --surface: #111729; --surface-2: #1a2238; --text: #eef1fa; --muted: #9aa5bd; --border: #242d46;
		--accent: #8f84ff; --accent-ink: #0a0e1a; --accent-soft: #1b2048; --art-1: #6366f1; --art-2: #22d3ee;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5); --ok: #34d399; --err: #f97066;
	}
}
:root[data-theme="dark"] {
	--bg: #0a0e1a; --surface: #111729; --surface-2: #1a2238; --text: #eef1fa; --muted: #9aa5bd; --border: #242d46;
	--accent: #8f84ff; --accent-ink: #0a0e1a; --accent-soft: #1b2048; --art-1: #6366f1; --art-2: #22d3ee;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5); --ok: #34d399; --err: #f97066;
}

/* ---------- Base ---------- */
body { font-size: 1rem; line-height: 1.65; }
h1, h2, h3 { letter-spacing: -.02em; }
.site-main { padding-block: 0 3rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
	background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
	box-shadow: 0 1px 2px rgba(79, 70, 229, .25), 0 6px 16px rgba(79, 70, 229, .18); transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); filter: none; }
.search-form__field { border-radius: 12px; }


/* ---------- Tool page ---------- */
.tool { padding-bottom: 1rem; }
.tool .breadcrumbs { margin-top: 1.25rem; }
.tool-app__loading { color: var(--muted); margin: 0; }
.tool-form { display: grid; gap: 1rem; }
.tf-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.tf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tf-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.tf { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.tf[hidden], .tool-form [hidden], .tool-app [hidden] { display: none !important; }
.tf__label { font-size: .88rem; font-weight: 700; color: var(--text); }
.tf input[type="number"], .tf input[type="text"], .tf input[type="date"], .tf select, .tf textarea {
	width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; min-height: 46px;
}
.tf textarea { min-height: 96px; resize: vertical; }
.tf input:focus, .tf select:focus, .tf textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tf__hint { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.tf__hint--box { padding: .7rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--surface-2); }
.tabs__btn { padding: .55rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.tabs__btn.is-on { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px rgba(11, 16, 32, .12); }
.daybox, .checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.daybox__item, .checks__item { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1.5px solid var(--border); border-radius: 999px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.daybox__item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.daybox input, .checks input { accent-color: var(--accent); }

.tr { margin-top: 1.4rem; }
.tr:empty { display: none; }
.tr__label { margin: 0 0 .2rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tr__big { margin: 0 0 1rem; font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); overflow-wrap: anywhere; }
.tr__rows { margin: 0 0 1rem; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tr__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--border); }
.tr__row:first-child { border-top: 0; }
.tr__row dt { color: var(--muted); font-size: .94rem; }
.tr__row dd { margin: 0; font-weight: 700; text-align: right; }
.tr__row--strong { background: var(--accent-soft); }
.tr__row--strong dt, .tr__row--strong dd { color: var(--accent); font-weight: 800; }
.tr__note { margin: 0 0 1rem; padding: .75rem .95rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .88rem; line-height: 1.55; }
.tr__hint { margin: 0; color: var(--muted); }
.tr__err { margin: 0 0 .8rem; padding: .75rem .95rem; border-radius: 12px; background: color-mix(in srgb, var(--err) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--err) 40%, var(--border)); color: var(--err); font-weight: 600; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 2.25rem 1rem; margin-bottom: 1rem; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 18px; background: var(--accent-soft); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.drop__title { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.drop__sub { font-size: .88rem; color: var(--muted); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.files { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.files__item { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.files__img { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.files__thumb { width: 52px; height: 52px; object-fit: cover; transition: transform .2s; }
.files__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.files__meta strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__meta small { color: var(--muted); }
.files__btns { display: flex; gap: .3rem; }
.mini { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 1rem; cursor: pointer; }
.mini:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.mini[disabled] { opacity: .35; cursor: default; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .6rem; }
.steps li { counter-increment: s; display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem; }
.tool-prose h2 { margin-top: 1.8em; }
.tool-prose ul { padding-left: 1.2em; }
.tool-prose li { margin-bottom: .4em; }
.faq { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); margin-bottom: .6rem; overflow: hidden; }
.faq summary { padding: .9rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq[open] { border-color: var(--accent); }
.faq p { margin: 0; padding: 0 1.1rem 1rem; color: var(--muted); }
.tool-sources ul { padding-left: 1.2em; }
.tool-sources li { margin-bottom: .35rem; }
.side-box { padding: 1.15rem 1.2rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .92rem; }
.side-box--trust { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.side-box p { margin: 0 0 .6rem; color: var(--muted); }
.side-box__title { font-weight: 800; color: var(--text) !important; font-size: 1rem; }
.side-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
.side-list a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--text); }
.side-list a:hover { color: var(--accent); }
.side-box .more { font-weight: 700; text-decoration: none; }


@media (max-width: 560px) {
	.tr__row { flex-direction: column; gap: .15rem; }
	.tr__row dd { text-align: left; }
	.tool-card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tcard, .btn, .files__thumb { transition: none; } .tcard:hover, .btn:hover { transform: none; } }
.tool-preview{display:block;max-width:100%;max-height:260px;margin:.8rem 0;border-radius:10px;border:1px solid var(--border)}

.ep-src{margin-top:2rem;font-size:.72rem;color:var(--muted,#6b7280);text-align:right}.ep-src summary{cursor:pointer;display:inline-block;opacity:.7}.ep-src ul{list-style:none;margin:.3rem 0 0;padding:0}.ep-src li{margin:0;line-height:1.5}
