.tools-page__intro { margin-bottom: 32px; max-width: 820px; }
.tools-page__label { display: block; color: #bac7d7; font-size: 13px; margin-bottom: 14px; }
.tools-page__image { min-height: 280px; }
.tools-page__image img { object-fit: cover; }
.qr-page__hero h1 { font-size: clamp(38px, 5.6vw, 70px); }
.qr-page__breadcrumb { margin-bottom: 24px; }
.qr-page__extra a { color: #b9d0ff; text-underline-offset: 4px; }
.qr-page__content { padding-top: 22px; padding-bottom: 80px; }
.qr-tool { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1px solid #46515f; border-radius: 16px; background: #202c39; overflow: hidden; }
.qr-tool__editor, .qr-tool__result { padding: clamp(24px, 3.5vw, 44px); min-width: 0; }
.qr-tool__result { background: #18222e; border-left: 1px solid #46515f; text-align: center; }
.qr-tool h2 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; font-weight: 500; line-height: 1.2; }
.qr-tool__intro { margin: 0 0 30px; color: #c6d0dc; font-size: 15px; line-height: 1.7; }
.qr-tool fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.qr-tool__controls:disabled { opacity: .6; }
.qr-tool__types legend, .qr-tool__field > label { display: block; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.qr-tool__type-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 27px; }
.qr-tool__type-options label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid #657486; border-radius: 8px; background: #17222f; color: #e1e8f2; font-size: 14px; cursor: pointer; }
.qr-tool__type-options label:has(:checked) { border-color: #91b5ff; background: #2a3d58; }
.qr-tool__type-options label:has(:focus-visible) { outline: 2px solid #91b5ff; outline-offset: 3px; }
.qr-tool__type-options input { width: 16px; height: 16px; margin: 0; accent-color: #91b5ff; }
.qr-tool__field { margin-bottom: 25px; }
.qr-tool textarea, .qr-tool select { display: block; width: 100%; border: 1px solid #657486; border-radius: 8px; background: #131f2b; color: #fff; font: inherit; font-size: 16px; line-height: 1.5; padding: 13px 15px; color-scheme: dark; }
.qr-tool textarea { min-height: 110px; resize: vertical; overflow-wrap: anywhere; }
.qr-tool textarea::placeholder { color: #aab9cc; opacity: 1; }
.qr-tool textarea[aria-invalid="true"] { border-color: #ffb4ab; }
.qr-tool select { max-width: 260px; min-height: 50px; }
.qr-tool__hint { color: #b8c6d8; font-size: 13px; line-height: 1.6; margin: 9px 0 0; }
.qr-tool__error { color: #ffb4ab; line-height: 1.6; font-size: 14px; margin: 0 0 20px; }
.qr-tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.qr-tool__actions .about-page__button { cursor: pointer; }
.qr-tool__actions .about-page__button:disabled { opacity: .6; cursor: wait; }
.qr-tool__button { appearance: none; display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; min-height: 48px; border: 1px solid #8e9caf; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.qr-tool__button:not(:disabled):hover { background: #30435d; border-color: #b5cdff; }
.qr-tool__button:disabled { color: #a7b4c4; border-color: #526174; cursor: not-allowed; background: transparent; }
.qr-tool__preview { width: min(100%, 300px); aspect-ratio: 1; margin: 25px auto 18px; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.qr-tool__placeholder { padding: 24px; color: #617084; }
.qr-tool__placeholder svg { display: block; margin: 0 auto; opacity: .7; }
.qr-tool__placeholder p { margin: 18px 0 0; font-size: 14px; line-height: 1.5; }
.qr-tool__code { width: 100%; height: 100%; }
.qr-tool__code svg { display: block; width: 100%; height: 100%; }
.qr-tool [hidden] { display: none !important; }
.qr-tool__status { font-size: 14px; color: #d5dfed; line-height: 1.6; min-height: 45px; margin: 0; }
.qr-tool__destination { font-size: 12px; color: #b9c8db; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 65px; overflow-y: auto; margin: 8px 0 16px; }
.qr-tool__downloads { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px 0 15px; }
.qr-tool__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.qr-tool :is(button,input,textarea,select):focus-visible, .qr-page a:focus-visible, .qr-page summary:focus-visible { outline: 2px solid #91b5ff; outline-offset: 4px; }
.qr-page__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(25px, 4vw, 54px); margin-top: 52px; }
.qr-page__notes h2 { margin: 0 0 14px; font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.qr-page__notes p { color: #c6d0dc; font-size: 15px; line-height: 1.8; margin: 0; }
.qr-page__extra { margin-top: 45px; max-width: 850px; }
.qr-page__help { margin-top: 52px; }
@media (max-width: 800px) {
    .qr-tool { grid-template-columns: 1fr; }
    .qr-tool__result { border-left: 0; border-top: 1px solid #46515f; }
    .qr-page__notes { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 650px) {
    .tools-page__image { min-height: 200px; height: 200px; }
    .qr-page__hero { padding-top: 35px; padding-bottom: 40px; }
    .qr-page__content { padding-top: 8px; padding-bottom: 55px; }
    .qr-tool__editor, .qr-tool__result { padding: 25px 20px; }
    .qr-tool__preview { width: min(100%, 280px); }
    .qr-tool__downloads .qr-tool__button { flex: 1; padding-inline: 12px; }
    .qr-page__notes { margin-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    .qr-tool__button { transition: none; }
}
