/* ==========================================================================
   H7 Compounds — design tokens, reset, type, buttons, forms, utilities
   Signature: cobalt-on-abyss with an HPLC "chromatogram" trace motif.
   ========================================================================== */
:root {
	--ink: #030A1C;
	--abyss: #061129;
	--panel: #0A1734;
	--panel-2: #0E1F45;
	--line: rgba(140, 172, 232, .13);
	--line-2: rgba(140, 172, 232, .26);
	--text: #EAF0FA;
	--muted: #95A5C6;
	--dim: #64769C;
	--cobalt: #0766C7;
	--flare: #3D9BFF;
	--deep: #0A3A9C;
	--navy: #001948;
	--chrome: #D3DCEA;
	--ok: #3ED6A0;
	--warn: #F5B94B;
	--bad: #FF6B7A;
	--grad: linear-gradient(135deg, #3D9BFF 0%, #0766C7 38%, #0A3A9C 72%, #001948 100%);
	--grad-btn: linear-gradient(180deg, #1C80E4 0%, #0766C7 55%, #0659AE 100%);
	--grad-line: linear-gradient(90deg, transparent, rgba(61, 155, 255, .7), transparent);
	--r-xs: 6px;
	--r-sm: 9px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1260px;
	--gut: clamp(18px, 4vw, 36px);
	--sec: clamp(64px, 9vw, 120px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 30px 70px -30px rgba(0, 6, 30, .9);
	--glow: 0 0 0 1px rgba(61, 155, 255, .35), 0 10px 40px -10px rgba(7, 102, 199, .65);
	--header-h: 72px;
	color-scheme: dark;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:where(dl, dd, figure) { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 640; line-height: 1.12; letter-spacing: -.012em; font-stretch: 112%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(7, 102, 199, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.h7-skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--cobalt); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.h7-skip:focus { top: 12px; }
.h7-hp { position: absolute !important; left: -9999px !important; }

/* Layout primitives */
.h7-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.h7-section { padding-block: var(--sec); position: relative; }
.h7-section--tight { padding-block: calc(var(--sec) * .55); }
.h7-section--page { padding-top: clamp(32px, 5vw, 56px); }
.h7-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.h7-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h7-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h7-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.h7-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.h7-center { text-align: center; margin-top: 36px; }
.h7-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 1100px) { .h7-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .h7-grid--4, .h7-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h7-two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .h7-grid--3 { grid-template-columns: 1fr; } .h7-row2 { grid-template-columns: 1fr; } }

/* Type */
.h7-h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 620; }
.h7-h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 620; }
.h7-lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; margin-top: 14px; }
.h7-muted { color: var(--muted); }
.h7-link { display: inline-flex; align-items: center; gap: 8px; color: var(--flare); font-weight: 560; }
.h7-link .h7-i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.h7-link:hover .h7-i { transform: translateX(4px); }
.h7-sechead { margin-bottom: clamp(28px, 4vw, 44px); }
.h7-sechead--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.h7-price { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--text); }
.h7-price del { color: var(--dim); font-weight: 400; margin-right: 6px; font-size: .86em; }
.h7-price ins { text-decoration: none; color: var(--flare); }

/* Icons */
.h7-i { flex: none; width: 20px; height: 20px; }

/* Buttons */
.h7-btn {
	--bh: 46px;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: var(--bh); padding: 0 22px; border-radius: var(--r-sm);
	font-weight: 600; font-size: 15px; letter-spacing: .005em; line-height: 1; white-space: nowrap;
	border: 1px solid transparent; position: relative; isolation: isolate;
	transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.h7-btn .h7-i { width: 18px; height: 18px; }
.h7-btn:active { transform: translateY(1px) scale(.99); }
.h7-btn[disabled], .h7-btn.is-loading { opacity: .55; pointer-events: none; }
.h7-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: h7spin .7s linear infinite; }
.h7-btn--primary { background: var(--grad-btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px -10px rgba(7, 102, 199, .9); border-color: rgba(61, 155, 255, .55); }
.h7-btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--glow); }
.h7-btn--ghost { background: rgba(255, 255, 255, .02); border-color: var(--line-2); color: var(--text); }
.h7-btn--ghost:hover { border-color: rgba(61, 155, 255, .6); background: rgba(61, 155, 255, .08); }
.h7-btn--glass { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.h7-btn--glass:hover { background: rgba(255, 255, 255, .13); }
.h7-btn--sm { --bh: 38px; padding: 0 14px; font-size: 14px; }
.h7-btn--lg { --bh: 54px; padding: 0 28px; font-size: 16px; }
.h7-btn--block { width: 100%; }
.h7-btn--icon { padding: 0; width: var(--bh); }
.h7-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); color: var(--text); position: relative; transition: background-color .2s, color .2s; }
.h7-iconbtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* Fields — floating label */
.h7-field { position: relative; margin-bottom: 14px; }
.h7-field input, .h7-field select, .h7-field textarea {
	width: 100%; height: 56px; padding: 22px 16px 8px; border-radius: var(--r-sm);
	background: rgba(4, 12, 34, .7); border: 1px solid var(--line-2); color: var(--text); font-size: 15px;
	transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none;
}
.h7-field textarea { height: auto; min-height: 140px; padding-top: 28px; resize: vertical; }
.h7-field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395A5C6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.h7-field label { position: absolute; left: 16px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.h7-field input:focus, .h7-field select:focus, .h7-field textarea:focus { outline: 0; border-color: var(--flare); box-shadow: 0 0 0 4px rgba(61, 155, 255, .16); background: rgba(6, 17, 41, .95); }
.h7-field input:focus + label, .h7-field input:not(:placeholder-shown) + label,
.h7-field textarea:focus + label, .h7-field textarea:not(:placeholder-shown) + label,
.h7-field--select label { transform: translateY(-10px) scale(.78); color: var(--flare); }
.h7-field.is-invalid input { border-color: var(--bad); }
.h7-field--pass input { padding-right: 52px; }
.h7-field__eye { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: var(--r-xs); }
.h7-field__eye:hover { color: var(--text); }
.h7-form-msg { font-size: 14px; min-height: 0; margin: 4px 0 12px; }
.h7-form-msg:empty { margin: 0; }
.h7-form-msg.is-bad { color: var(--bad); }
.h7-form-msg.is-ok { color: var(--ok); }

/* Custom checkbox */
.h7-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; color: var(--text); line-height: 1.45; margin-bottom: 12px; }
.h7-check input { position: absolute; opacity: 0; pointer-events: none; }
.h7-check__box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: rgba(4, 12, 34, .8); transition: all .2s var(--ease); margin-top: 1px; }
.h7-check__box .h7-i { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }
.h7-check input:checked + .h7-check__box { background: var(--cobalt); border-color: var(--flare); box-shadow: 0 0 0 4px rgba(61, 155, 255, .15); }
.h7-check input:checked + .h7-check__box .h7-i { opacity: 1; transform: none; }
.h7-check input:focus-visible + .h7-check__box { outline: 2px solid var(--flare); outline-offset: 2px; }
.h7-check--sm { font-size: 14px; color: var(--muted); }

/* Toggle */
.h7-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 14px; white-space: nowrap; }
.h7-toggle input { position: absolute; opacity: 0; }
.h7-toggle__track { width: 40px; height: 22px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background-color .2s; }
.h7-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--chrome); transition: transform .25s var(--ease); }
.h7-toggle input:checked + .h7-toggle__track { background: var(--cobalt); border-color: var(--flare); }
.h7-toggle input:checked + .h7-toggle__track::after { transform: translateX(18px); background: #fff; }
.h7-toggle input:focus-visible + .h7-toggle__track { outline: 2px solid var(--flare); outline-offset: 2px; }

/* Chips, pills, badges */
.h7-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h7-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.h7-chips--scroll::-webkit-scrollbar { display: none; }
.h7-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 520; white-space: nowrap; transition: all .2s; background: rgba(255, 255, 255, .015); }
.h7-chip span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.h7-chip:hover { color: var(--text); border-color: rgba(61, 155, 255, .5); }
.h7-chip.is-active { background: rgba(7, 102, 199, .22); border-color: var(--flare); color: #fff; }
.h7-chip.is-active span { color: var(--chrome); }
.h7-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.h7-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h7-pill--ok { color: var(--ok); background: rgba(62, 214, 160, .1); }
.h7-pill--info { color: var(--flare); background: rgba(61, 155, 255, .12); }
.h7-pill--warn { color: var(--warn); background: rgba(245, 185, 75, .12); }
.h7-pill--bad { color: var(--bad); background: rgba(255, 107, 122, .12); }
.h7-pill--mute { color: var(--muted); background: rgba(149, 165, 198, .1); }
.h7-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-xs); background: rgba(7, 102, 199, .9); color: #fff; font-size: 12px; font-weight: 600; }
.h7-badge--sale { background: linear-gradient(90deg, #E2475A, #C7305B); }
.h7-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 560; color: var(--ok); }
.h7-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(62, 214, 160, .16); }
.h7-stock.is-out { color: var(--dim); }
.h7-stock.is-out::before { box-shadow: none; }
.h7-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.h7-ok .h7-i { width: 15px; height: 15px; }

/* Panels, notes, empty states */
.h7-panel { background: linear-gradient(180deg, rgba(14, 31, 69, .55), rgba(10, 23, 52, .55)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.h7-panel h3 { font-size: 18px; margin-bottom: 12px; }
.h7-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.h7-panel__head h3 { margin: 0; }
.h7-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(7, 102, 199, .12); border: 1px solid rgba(61, 155, 255, .28); color: var(--chrome); margin-bottom: 20px; }
.h7-note .h7-i { color: var(--flare); margin-top: 2px; }
.h7-empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.h7-empty > .h7-i { width: 40px; height: 40px; color: var(--flare); opacity: .85; }
.h7-empty p { max-width: 46ch; margin: 0; }
.h7-empty--inline { padding: 28px 20px; }
.h7-placeholder { display: grid; place-items: center; width: 100%; border-radius: var(--r); border: 1px dashed var(--line-2); background: repeating-linear-gradient(45deg, rgba(61, 155, 255, .04) 0 10px, transparent 10px 20px); color: var(--dim); font-size: 13px; }

/* Key-value list */
.h7-kv { display: grid; gap: 0; }
.h7-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.h7-kv dt { color: var(--muted); }
.h7-kv dd { text-align: right; font-weight: 560; font-variant-numeric: tabular-nums; word-break: break-word; }
.h7-kv--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 700px) { .h7-kv--grid { grid-template-columns: 1fr; } }

/* Tables */
.h7-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 18px 0; }
.h7-table { font-size: 14px; min-width: 520px; }
.h7-table th { text-align: left; font-weight: 560; color: var(--muted); background: rgba(255, 255, 255, .025); padding: 11px 14px; font-size: 13px; }
.h7-table td { padding: 12px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* Quantity stepper */
.h7-qty { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(4, 12, 34, .7); overflow: hidden; }
.h7-qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--muted); transition: color .2s, background-color .2s; }
.h7-qty button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.h7-qty .h7-i { width: 16px; height: 16px; }
.h7-qty input { width: 44px; height: 100%; text-align: center; border: 0; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.h7-qty input::-webkit-outer-spin-button, .h7-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.h7-qty--sm { height: 34px; }
.h7-qty--sm button { width: 30px; }
.h7-qty--sm input { width: 30px; font-size: 14px; }

/* Checks list */
.h7-checks { display: grid; gap: 10px; }
.h7-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--chrome); font-size: 15px; }
.h7-checks .h7-i { width: 18px; height: 18px; color: var(--flare); stroke-width: 2.4; margin-top: 2px; }

/* Chromatogram trace (signature) */
.h7-chroma { width: 100%; height: 100%; overflow: visible; }
.h7-chroma path { fill: none; stroke: var(--flare); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(61, 155, 255, .7)); }

/* Toast */
.h7-toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: rgba(10, 23, 52, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 560; transition: all .35s var(--ease); max-width: calc(100vw - 32px); }
.h7-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.h7-toast .h7-i { color: var(--ok); }
.h7-toast.is-bad .h7-i { color: var(--bad); }

@keyframes h7spin { to { transform: rotate(360deg); } }
@keyframes h7draw { from { stroke-dashoffset: var(--len, 1200); } to { stroke-dashoffset: 0; } }

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