.hfyj-an-tool {
    --hfyj-an-ink: #080808;
    --hfyj-an-cream: #fff4e9;
    --hfyj-an-field: #fffaf5;
    --hfyj-an-blue: #baccec;
    --hfyj-an-muted: #625d58;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    color: var(--hfyj-an-ink);
    font-family: inherit;
}

.hfyj-an-form { border: 1px solid var(--hfyj-an-ink); background: var(--hfyj-an-cream); }
.hfyj-an-title { margin: 0; padding: 20px 27px; border-bottom: 1px solid var(--hfyj-an-ink); color: inherit; font: inherit; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.1; }
.hfyj-an-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hfyj-an-ink); }
.hfyj-an-tab { min-height: 50px; padding: 13px 18px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.hfyj-an-tab + .hfyj-an-tab { border-left: 1px solid var(--hfyj-an-ink); }
.hfyj-an-tab.is-active { background: var(--hfyj-an-ink); color: #fff; }
.hfyj-an-tab:not(.is-active):hover,
.hfyj-an-tab:not(.is-active):focus-visible { background: var(--hfyj-an-blue); }

.hfyj-an-layout { display: grid; grid-template-columns: minmax(330px, .92fr) minmax(360px, 1.08fr); }
.hfyj-an-controls,
.hfyj-an-status-area { min-width: 0; padding: 26px 28px 29px; }
.hfyj-an-controls { border-right: 1px solid var(--hfyj-an-ink); }
.hfyj-an-panel[hidden] { display: none !important; }
.hfyj-an-field { display: grid; gap: 7px; min-width: 0; margin: 0 0 20px; color: inherit; font-weight: 700; }
.hfyj-an-field select,
.hfyj-an-field input[type="number"] { box-sizing: border-box; width: 100%; height: 45px; min-height: 45px; padding: 9px 11px; border: 1px solid var(--hfyj-an-ink); border-radius: 0; background: var(--hfyj-an-field); color: var(--hfyj-an-ink); font: inherit; font-weight: 400; }
.hfyj-an-field small,
.hfyj-an-output small { color: var(--hfyj-an-muted); font-size: .82rem; font-weight: 400; line-height: 1.35; }
.hfyj-an-paired-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.hfyj-an-paired-fields .hfyj-an-field > span:first-child { min-height: 1.45em; }
.hfyj-an-number-wrap { position: relative; display: block; }
.hfyj-an-number-wrap input[type="number"] { padding-right: 48px; }
.hfyj-an-suffix { position: absolute; top: 1px; right: 1px; bottom: 1px; display: grid; min-width: 43px; place-items: center; border-left: 1px solid var(--hfyj-an-ink); background: var(--hfyj-an-field); pointer-events: none; font-weight: 700; }

.hfyj-an-autofill,
.hfyj-an-submit,
.hfyj-an-download-button { border: 2px solid var(--hfyj-an-ink); border-radius: 0; background: var(--hfyj-an-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hfyj-an-autofill { min-height: 42px; margin: 0 0 20px; padding: 9px 15px; }
.hfyj-an-autofill:hover,
.hfyj-an-autofill:focus-visible,
.hfyj-an-submit:hover,
.hfyj-an-submit:focus-visible,
.hfyj-an-download-button:hover,
.hfyj-an-download-button:focus-visible { background: var(--hfyj-an-blue); color: var(--hfyj-an-ink); }
.hfyj-an-autofill:disabled,
.hfyj-an-submit:disabled { cursor: wait; opacity: .65; }
[data-access-disabled="1"] { cursor: not-allowed !important; opacity: .55; }
.hfyj-an-field option:disabled { color: var(--hfyj-an-muted); }
.hfyj-an-result { min-height: 45px; padding: 10px 12px; border: 1px solid var(--hfyj-an-ink); background: var(--hfyj-an-blue); color: var(--hfyj-an-ink); font-weight: 700; }
.hfyj-an-divider { height: 1px; margin: 24px 0 22px; background: var(--hfyj-an-ink); }
.hfyj-an-check { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: inherit; font-weight: 700; cursor: pointer; }
.hfyj-an-check input { width: 21px; height: 21px; margin: 0; accent-color: var(--hfyj-an-blue); }
.hfyj-an-output { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin-bottom: 20px; }
.hfyj-an-output > span { min-width: 90px; padding: 8px 12px; border: 1px solid var(--hfyj-an-ink); background: var(--hfyj-an-field); text-align: center; font-weight: 700; }
.hfyj-an-output small { grid-column: 1 / -1; }
.hfyj-an-submit { width: 100%; min-height: 50px; padding: 11px 20px; }

.hfyj-an-status { min-height: 90px; padding: 16px 18px; border: 1px solid var(--hfyj-an-ink); background: var(--hfyj-an-blue); display: flex; align-items: center; gap: 14px; }
.hfyj-an-status-dot { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; background: var(--hfyj-an-ink); }
.hfyj-an-ready-copy,
.hfyj-an-loading-copy { display: grid; gap: 2px; line-height: 1.4; }
.hfyj-an-ready-copy strong,
.hfyj-an-loading-copy strong { font-weight: 700; }
.hfyj-an-ready-copy span,
.hfyj-an-loading-copy span { font-size: .9rem; }
.hfyj-an-loading { display: flex; align-items: center; gap: 14px; }
.hfyj-an-loading[hidden],
.hfyj-an-download[hidden],
.hfyj-an-error[hidden] { display: none !important; }
.hfyj-an-spinner { flex: 0 0 auto; width: 27px; height: 27px; border: 3px solid rgba(0, 0, 0, .18); border-top-color: var(--hfyj-an-ink); border-radius: 50%; animation: hfyj-an-spin .8s linear infinite; }
.hfyj-an-download { min-height: 360px; margin-top: 18px; padding: 30px; border: 1px solid var(--hfyj-an-ink); background: #fff; display: grid; align-content: center; justify-items: center; gap: 17px; text-align: center; }
.hfyj-an-download-actions { display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.hfyj-an-download-button { box-sizing: border-box; display: inline-flex; min-height: 44px; padding: 9px 20px; align-items: center; text-decoration: none; }
.hfyj-an-reset { box-sizing: border-box; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--hfyj-an-ink); border-radius: 0; background: #fff; color: var(--hfyj-an-ink); font: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.hfyj-an-reset:hover,
.hfyj-an-reset:focus-visible { background: var(--hfyj-an-blue); }
.hfyj-an-pdf-attributes { width: min(100%, 360px); margin: 2px 0 0; font-size: .88rem; text-align: left; }
.hfyj-an-pdf-attributes > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 5px 0; border-bottom: 1px solid rgba(8, 8, 8, .18); }
.hfyj-an-pdf-attributes dt { font-weight: 700; }
.hfyj-an-pdf-attributes dd { margin: 0; text-align: right; }
.hfyj-an-error,
.hfyj-an-access-message { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--hfyj-an-ink); background: #fff; }
.hfyj-an-terms { padding: 9px 16px 11px; border-top: 1px solid var(--hfyj-an-ink); text-align: center; font-size: .7rem; }
.hfyj-an-terms a { color: var(--hfyj-an-muted); text-underline-offset: 3px; }

@keyframes hfyj-an-spin { to { transform: rotate(360deg); } }

@media (max-width: 780px) {
    .hfyj-an-layout { grid-template-columns: 1fr; }
    .hfyj-an-controls { border-right: 0; border-bottom: 1px solid var(--hfyj-an-ink); }
    .hfyj-an-download { min-height: 240px; }
}

@media (max-width: 520px) {
    .hfyj-an-title,
    .hfyj-an-controls,
    .hfyj-an-status-area { padding-left: 18px; padding-right: 18px; }
    .hfyj-an-tab { padding: 11px 9px; font-size: .88rem; }
    .hfyj-an-paired-fields { grid-template-columns: 1fr; }
    .hfyj-an-paired-fields .hfyj-an-field > span:first-child { min-height: auto; }
    .hfyj-an-autofill { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hfyj-an-spinner { animation-duration: 1.6s; }
}
