:root {
  color-scheme: light;
  --ens-bg: #f6f8fb;
  --ens-panel: #fff;
  --ens-ink: #111827;
  --ens-muted: #5f6875;
  --ens-line: #dfe5eb;
  --ens-blue: #317dcc;
  --ens-blue-soft: #eaf3fc;
  --ens-green: #18794e;
  --ens-red: #b4232f;
  --ens-dark: #101827;
  font-family: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ens-ink); background: var(--ens-bg); font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none!important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ens-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; padding: 12px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--ens-line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.ens-brand { font-weight: 900; text-decoration: none; }
.ens-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: var(--ens-muted); font-size: .92rem; }
.ens-header nav a { text-decoration: none; }
.ens-header nav a:hover, .ens-header nav a[aria-current="page"] { color: var(--ens-blue); }

.ens-hero { padding: clamp(48px, 7vw, 80px) clamp(18px, 4vw, 56px) 42px; background: #edf3f6; }
.ens-hero > div { max-width: 1180px; margin: 0 auto; }
.ens-eyebrow { margin: 0 0 9px; color: var(--ens-blue); font-weight: 800; }
h1, h2, h3 { margin: 0; font-family: Ubuntu, Arial, sans-serif; line-height: 1.12; letter-spacing: 0; }
h1 { max-width: 900px; font-size: clamp(2.35rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }
.ens-hero p:last-child { max-width: 820px; margin: 18px 0 0; color: var(--ens-muted); font-size: 1.08rem; }

.ens-guide { max-width: 1500px; margin: 0 auto; padding: 52px clamp(18px, 4vw, 56px) 20px; }
.ens-guide__heading { margin-bottom: 24px; }
.ens-guide__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ens-guide figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--ens-line); border-radius: 8px; background: var(--ens-panel); }
.ens-guide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #edf2f7; }
.ens-guide figcaption { display: grid; grid-template-columns: 34px 1fr; gap: 3px 11px; padding: 16px; }
.ens-guide figcaption > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: #fff; background: var(--ens-blue); font-weight: 900; }
.ens-guide figcaption strong { align-self: center; }
.ens-guide figcaption small { color: var(--ens-muted); line-height: 1.45; }

.ens-workspace { max-width: 1500px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 56px) 64px; }
.ens-input-panel { border: 1px solid var(--ens-line); border-radius: 8px; background: var(--ens-panel); }
.ens-input-panel { padding: clamp(20px, 3vw, 30px); box-shadow: 0 12px 34px rgba(16,24,39,.06); }
.ens-section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.ens-section-heading > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: #fff; background: var(--ens-dark); font-weight: 900; }
.ens-section-heading p { margin: 8px 0 0; color: var(--ens-muted); }
.ens-form { display: grid; gap: 20px; margin-top: 26px; }
.ens-file { display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; align-items: center; min-height: 112px; padding: 18px; border: 2px dashed #abc0d0; border-radius: 8px; background: #f8fbfd; cursor: pointer; }
.ens-file:hover, .ens-file.is-dragging { border-color: var(--ens-blue); background: var(--ens-blue-soft); }
.ens-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ens-file__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 7px; color: #fff; background: var(--ens-blue); font-size: .76rem; font-weight: 900; }
.ens-file strong { min-width: 0; overflow-wrap: anywhere; }
.ens-file small { color: var(--ens-muted); }
.ens-fields { display: grid; grid-template-columns: minmax(240px, 320px); gap: 14px; }
.ens-fields label { display: grid; align-content: start; gap: 6px; font-weight: 800; }
.ens-fields input, .ens-table-tools input, .ens-table-tools select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c6d0; border-radius: 7px; color: var(--ens-ink); background: #fff; }
.ens-fields input:focus, .ens-table-tools input:focus, .ens-table-tools select:focus { border-color: var(--ens-blue); outline: 3px solid rgba(49,125,204,.16); }
.ens-fields small { color: var(--ens-muted); font-size: .78rem; font-weight: 400; }
.ens-balance-check { margin: -5px 0 0; padding: 10px 12px; border-left: 3px solid #9ba9b5; color: var(--ens-muted); background: #f6f8fa; font-size: .86rem; }
.ens-balance-check.is-valid { border-color: var(--ens-green); color: #11623e; background: #effaf4; }
.ens-balance-check.is-invalid { border-color: var(--ens-red); color: #8e1924; background: #fff3f4; }
.ens-primary, .ens-download { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 17px; border: 1px solid var(--ens-blue); border-radius: 7px; color: #fff; background: var(--ens-blue); font-weight: 850; text-decoration: none; cursor: pointer; }
.ens-primary { justify-self: start; min-width: 220px; }
.ens-primary:hover, .ens-download:hover { border-color: #2769ab; background: #2769ab; }
.ens-primary:focus-visible, .ens-download:focus-visible { outline: 3px solid rgba(49,125,204,.23); outline-offset: 2px; }
.ens-primary:disabled { border-color: #9ba9b5; background: #9ba9b5; cursor: wait; }
.ens-privacy { margin: -3px 0 0; color: var(--ens-muted); font-size: .82rem; }
.ens-trap { position: absolute!important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ens-message { display: grid; gap: 3px; margin-top: 20px; padding: 13px 15px; border-radius: 7px; }
.ens-message--error { border: 1px solid #e7b9be; color: #8e1924; background: #fff3f4; }
.ens-balance-prompt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ens-line); }
.ens-balance-prompt > div { display: grid; gap: 3px; color: var(--ens-muted); }
.ens-balance-prompt > div strong { color: var(--ens-ink); }
.ens-balance-prompt > div span { overflow-wrap: anywhere; }
.ens-balance-guide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 20px; align-items: center; margin: 20px 0 0; overflow: hidden; border: 1px solid var(--ens-line); border-radius: 8px; background: #f8fbfd; }
.ens-balance-guide img { display: block; width: 100%; min-width: 0; max-height: 520px; object-fit: contain; background: #edf2f7; }
.ens-balance-guide figcaption { display: grid; gap: 8px; padding: 20px 22px 20px 2px; }
.ens-balance-guide figcaption strong { color: var(--ens-ink); font-size: 1.05rem; }
.ens-balance-guide figcaption span { color: var(--ens-muted); line-height: 1.55; }
.ens-prompt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ens-prompt-actions a { color: var(--ens-blue); font-weight: 800; }

.ens-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 40px 64px; max-width: 1500px; margin: 0 auto; padding: 12px clamp(18px, 4vw, 56px) 70px; }
.ens-about > div > p:last-child { max-width: 650px; color: var(--ens-muted); }
.ens-about ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ens-about li { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--ens-line); border-radius: 8px; background: var(--ens-panel); }
.ens-about li span { color: var(--ens-muted); }
.ens-about__notice { grid-column: 1 / -1; margin: -18px 0 0; padding: 13px 15px; border-left: 3px solid var(--ens-blue); color: var(--ens-muted); background: var(--ens-blue-soft); }

.ens-results { padding: 58px clamp(18px, 4vw, 56px) 84px; border-top: 1px solid var(--ens-line); background: #fff; scroll-margin-top: 80px; }
.ens-results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1500px; margin: 0 auto 28px; }
.ens-penalty-check { display: grid; gap: 4px; max-width: 1500px; margin: 0 auto 22px; padding: 15px 17px; border: 1px solid var(--ens-line); border-left-width: 4px; border-radius: 7px; background: #f6f8fa; }
.ens-penalty-check span { color: var(--ens-muted); }
.ens-penalty-check--verified { border-color: #8fc9aa; border-left-color: var(--ens-green); background: #effaf4; }
.ens-penalty-check--verified strong { color: #11623e; }
.ens-penalty-check--error { border-color: #e7b9be; border-left-color: var(--ens-red); background: #fff3f4; }
.ens-penalty-check--error strong { color: #8e1924; }
.ens-penalty-check--unavailable { border-left-color: #7b8794; }
.is-debt { color: var(--ens-red)!important; }
.is-positive { color: var(--ens-green)!important; }
.ens-table-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 1500px; margin: 24px auto 12px; }
.ens-table-tools--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ens-table-tools label { display: grid; gap: 6px; color: var(--ens-muted); font-size: .82rem; font-weight: 800; }
.ens-table-tools input, .ens-table-tools select { width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 0 14px; }
.ens-table-tools > span { grid-column: 1 / -1; color: var(--ens-muted); font-size: .88rem; text-align: right; }
.ens-table-wrap { max-width: 1500px; max-height: 70vh; margin: 0 auto; overflow: auto; border: 1px solid var(--ens-line); border-radius: 8px; }
.ens-table-wrap:focus-visible { outline: 3px solid rgba(49,125,204,.18); outline-offset: 2px; }
.ens-table { width: 100%; min-width: 1280px; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.ens-table th { position: sticky; top: 0; z-index: 2; padding: 10px; color: #fff; background: var(--ens-dark); text-align: left; white-space: nowrap; }
.ens-table td { padding: 10px; border-top: 1px solid var(--ens-line); vertical-align: top; }
.ens-table tbody tr:first-child td { border-top: 0; }
.ens-table tbody tr:hover { background: #f7fafc; }
.ens-table td:nth-child(1) { width: 95px; }
.ens-table td:nth-child(2) { width: 270px; }
.ens-table td:nth-child(3) { width: 252px; }
.ens-table td:nth-child(4) { width: 110px; }
.ens-table td:nth-child(5), .ens-table td:nth-child(6), .ens-table td:nth-child(7), .ens-table td:nth-child(8) { width: 120px; }
.ens-table td:nth-child(9) { width: 80px; }
.ens-table td strong, .ens-table td small, .ens-table td mark { display: block; }
.ens-table td small { margin-top: 5px; color: var(--ens-muted); }
.ens-table td mark { margin-top: 7px; padding: 4px 6px; border-radius: 4px; color: #7d5610; background: #fff1c8; font-size: .74rem; }
.ens-nowrap { white-space: nowrap; }
.ens-money { font-weight: 800; white-space: nowrap; }
.ens-money small { font-weight: 400; }
.ens-balance-line { display: inline-flex; align-items: center; gap: 7px; }
.ens-balance-marker { display: inline-grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff!important; font-size: .76rem; font-weight: 900; line-height: 1; cursor: help; }
.ens-balance-marker--ok { background: var(--ens-green); }
.ens-balance-marker--error { background: var(--ens-red); }
.ens-year { font-weight: 800; white-space: nowrap; }
.ens-table tbody tr.ens-checkpoint td { background: #e9f8ef; }
.ens-table tbody tr.ens-checkpoint:hover td { background: #dff3e7; }
.ens-table tbody tr.ens-checkpoint td:first-child { border-left: 4px solid var(--ens-green); }
.ens-checkpoint-label { display: inline-block; margin-top: 8px; padding: 3px 6px; border-radius: 4px; color: #11623e; background: #ccebd8; font-size: .7rem; font-weight: 900; white-space: normal; }
.ens-row-check { margin-top: 9px; }
.ens-row-check summary { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid currentColor; border-radius: 5px; font-size: .75rem; font-weight: 900; cursor: pointer; list-style: none; }
.ens-row-check summary::-webkit-details-marker { display: none; }
.ens-row-check summary span { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; font-size: .78rem; line-height: 1; }
.ens-row-check p { margin: 8px 0 0; padding: 8px; border-radius: 5px; color: var(--ens-ink); background: #f5f8fa; font-size: .74rem; line-height: 1.45; }
.ens-row-check--verified summary { color: #11623e; background: #effaf4; }
.ens-row-check--verified summary span { background: var(--ens-green); }
.ens-row-check--error summary { color: #8e1924; background: #fff3f4; }
.ens-row-check--error summary span { background: var(--ens-red); }

.ens-footer { display: flex; justify-content: space-between; gap: 24px; padding: 25px clamp(18px, 4vw, 56px); color: rgba(255,255,255,.7); background: var(--ens-dark); }

@media (max-width: 1100px) {
  .ens-guide__steps { grid-template-columns: 1fr; }
  .ens-guide figure { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; }
  .ens-guide img { height: 100%; min-height: 210px; }
  .ens-guide figcaption { align-content: center; }
}

@media (max-width: 760px) {
  .ens-about { grid-template-columns: 1fr; }
  .ens-about ul { grid-template-columns: 1fr; }
  .ens-balance-guide { grid-template-columns: 1fr; }
  .ens-balance-guide figcaption { padding: 0 16px 18px; }
  .ens-header { position: static; align-items: flex-start; flex-direction: column; gap: 6px; }
  .ens-header nav { justify-content: flex-start; gap: 8px 14px; }
  .ens-hero { padding-top: 38px; }
  h1 { font-size: 2.35rem; }
  .ens-guide figure { display: block; }
  .ens-guide img { height: auto; min-height: 0; }
  .ens-fields { grid-template-columns: 1fr; }
  .ens-results-head { align-items: stretch; flex-direction: column; }
  .ens-download { align-self: flex-start; }
  .ens-table-tools { grid-template-columns: 1fr; }
  .ens-table-tools > span { text-align: left; }
  .ens-footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .ens-workspace, .ens-results { padding-left: 12px; padding-right: 12px; }
  .ens-input-panel { padding: 17px 13px; }
  .ens-section-heading { grid-template-columns: 1fr; }
  .ens-file { grid-template-columns: 44px 1fr; padding: 14px 11px; }
  .ens-file__icon { width: 44px; height: 44px; }
  .ens-primary { width: 100%; min-width: 0; }
  .ens-prompt-actions { align-items: stretch; flex-direction: column; }
  .ens-prompt-actions a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
