@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    font-family: "DM Sans", sans-serif;
    color: #17324d;
    background: #f5f7fb;
    --navy: #123a5a;
    --blue: #176c91;
    --aqua: #18a6a3;
    --light-aqua: #e8f7f5;
    --border: #dce5ec;
    --muted: #6c7d8e;
    --shadow: 0 22px 60px rgba(29, 61, 86, .12);
    --header-height: 78px;
    --footer-height: 78px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-shell {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 24%, rgba(24,166,163,.08), transparent 27%),
        radial-gradient(circle at 91% 20%, rgba(30,104,145,.07), transparent 25%),
        #f7f9fc;
}
.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw,28px); background: rgba(255,255,255,.94); border-bottom: 1px solid #dce5ec; backdrop-filter: blur(14px); }
main { display: flex; flex: 1 0 auto; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font: 800 20px "Manrope"; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--blue),var(--aqua)); border-radius: 12px; font-size: 27px; }
.brand small { display: block; color: #789; font: 500 10px "DM Sans"; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: #506579; text-decoration: none; font-size: 14px; }
nav a[aria-current="page"] { color: var(--aqua); font-weight: 800; }
.language { border: 1px solid var(--border); background: #fff; color: var(--navy); padding: 8px 11px; border-radius: 9px; }
.language-switcher { position: relative; }
.language-switcher .language { display: flex; align-items: center; gap: 5px; }
.language-switcher .language span { font-size: 17px; line-height: 1; }
.language-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 155px; padding: 6px; border: 1px solid var(--border); border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgba(18,58,90,.16); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .16s ease; }
.language-switcher:hover .language-menu, .language-switcher:focus-within .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu a { display: flex; padding: 9px 10px; border-radius: 7px; color: var(--navy); white-space: nowrap; }
.language-menu a:hover { background: var(--light-aqua); color: var(--blue); }

.hero { padding: 64px 24px 48px; max-width: 1240px; margin: auto; text-align: center; }
.trust-pill { display: inline-flex; padding: 7px 13px; color: #157873; background: #effaf8; border: 1px solid #c7e8e3; border-radius: 99px; font-size: 12px; font-weight: 600; }
h1 { margin: 21px 0 16px; color: var(--navy); font: 800 clamp(38px,5vw,62px)/1.08 "Manrope"; letter-spacing: -2.5px; }
h1 span { color: var(--aqua); }
.hero-copy { max-width: 650px; margin: auto; color: var(--muted); font-size: 17px; line-height: 1.65; }
.portal-hero { max-width: 1180px; min-height: calc(100vh - 156px); margin: auto; padding: 76px 24px 86px; display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.portal-hero h1 { margin-top: 19px; }
.portal-actions { width: 100%; margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; text-align: left; }
.portal-action { min-height: 310px; padding: 29px; display: flex; align-items: flex-start; flex-direction: column; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 45px rgba(26,67,89,.08); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.portal-action:hover { transform: translateY(-4px); border-color: #a9d8d3; box-shadow: 0 22px 54px rgba(26,67,89,.13); }
.home-guides-strip { width: min(1080px, calc(100% - 48px)); margin: 0 auto 70px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #eaf7f4; border: 1px solid #cfeae5; border-radius: 18px; }
.home-guides-strip h2 { margin: 5px 0 4px; }
.home-guides-strip p { margin: 0; color: var(--muted); }
.home-guides-strip .button { flex: 0 0 auto; }
.portal-action.primary { background: linear-gradient(150deg,#f4fcfb,#fff); border-color: #b9e1dd; }
.portal-action-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 23px; color: #fff; background: linear-gradient(145deg,var(--blue),var(--aqua)); border-radius: 15px; font-size: 24px; }
.portal-action h2 { margin: 0 0 10px; font-size: 22px; }
.portal-action p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.portal-action > strong { margin-top: auto; color: var(--blue); font-size: 12px; }

.stepper { display: flex; align-items: center; justify-content: center; max-width: 760px; margin: 35px auto 27px; }
.step { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #738394; font-size: 12px; font-weight: 600; }
.step span { width: 28px; height: 28px; display: grid; place-items: center; background: #fff; border: 1px solid #cad6df; border-radius: 50%; }
.step.active { color: #187f7b; }
.step.active span { color: #fff; background: var(--aqua); border-color: var(--aqua); }
.step-line { flex: 1; min-width: 18px; height: 1px; margin: 0 11px; background: #d5dfe7; }

.sign-card { position: relative; max-width: 980px; min-height: 380px; margin: auto; overflow: hidden; background: #fff; border: 1px solid #d6e1ea; border-radius: 22px; box-shadow: var(--shadow); }
.drop-zone { min-height: 370px; margin: 18px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fbfdfe; border: 1.5px dashed #b8cedb; border-radius: 16px; transition: .2s; }
.drop-zone:hover, .drop-zone.dragging { background: #f6fcfb; border-color: var(--aqua); }
.upload-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 17px; color: var(--aqua); background: var(--light-aqua); border-radius: 20px; font-size: 34px; }
h2 { margin: 0 0 8px; color: var(--navy); font: 700 24px "Manrope"; }
.drop-zone p, .eid-panel > p, .success-state p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.button { min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: inherit; border: 0; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; transition: .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: #fff; background: linear-gradient(135deg,#176b90,#159b98); box-shadow: 0 9px 22px rgba(22,121,143,.2); }
.button-secondary { color: var(--blue); background: #eaf4f7; }
.button-large { min-height: 51px; padding: 0 25px; }
.file-hint { margin-top: 18px; color: #8a99a7; font-size: 11px; }

.document-view { min-height: 515px; display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto 1fr; text-align: left; }
.document-summary { grid-column: 1; grid-row: 1 / 3; padding: 30px 24px; display: flex; align-items: flex-start; gap: 11px; background: #f4f7f9; border-right: 1px solid var(--border); }
.pdf-badge { padding: 6px; color: #fff; background: #e95756; border-radius: 5px; font-size: 10px; font-weight: 800; }
.document-name { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.document-name strong { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.document-name small { margin-top: 3px; color: #8b99a6; font-size: 11px; }
.icon-button { width: 32px; height: 32px; color: #718292; background: transparent; border: 0; border-radius: 8px; font-size: 22px; }
.icon-button:hover { background: #e7edf1; }
.eid-panel { grid-column: 2; grid-row: 2; padding: 24px 42px 42px; display: flex; flex-direction: column; }
.eyebrow { margin-bottom: 9px; color: var(--aqua); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.requirements { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 5px 0 20px; }
.requirements div { padding: 14px; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; background: #f7fafb; border: 1px solid #e2e9ee; border-radius: 11px; }
.requirements span { grid-row: 1 / 3; width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 11px; }
.requirements strong { color: var(--navy); font-size: 11px; }
.requirements small { color: #83929f; font-size: 9px; }
.status { padding: 14px; display: flex; align-items: center; gap: 11px; border-radius: 11px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; background: #9aa8b3; border-radius: 50%; box-shadow: 0 0 0 4px #e7ecef; }
.status > span:last-child { display: flex; flex-direction: column; }
.status strong { color: var(--navy); font-size: 12px; }
.status small { margin-top: 2px; color: #7c8c99; font-size: 10px; }
.status.neutral { background: #f2f5f7; }
.status.checking { background: #fff7e7; }
.status.checking .status-dot { background: #eca72c; box-shadow: 0 0 0 4px #fae8c5; }
.status.success { background: #ebf8f5; }
.status.success .status-dot { background: #20a17e; box-shadow: 0 0 0 4px #ccece3; }
.status.error { background: #fff0f0; }
.status.error .status-dot { background: #d95a5a; box-shadow: 0 0 0 4px #f6d5d5; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.format-selector { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 30px 42px 0; border: 0; }
.format-selector-title { grid-column: 1 / -1; margin: 0 0 4px; color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.3; }
.format-selector label { display: flex; align-items: center; gap: 10px; padding: 13px; background: #fff; border: 1px solid #d8e1e7; border-radius: 11px; cursor: pointer; }
.format-selector label:has(input:checked) { border-color: var(--aqua); box-shadow: 0 0 0 2px rgba(24, 166, 163, .1); }
.format-selector input { accent-color: var(--aqua); }
.format-selector span { display: flex; flex-direction: column; }
.format-selector strong { color: var(--navy); font-size: 13px; }
.format-selector small { margin-top: 2px; color: #788994; font-size: 10px; }
.format-selector .timestamp-option { grid-column: 1 / -1; padding: 11px 13px; background: #f1faf8; border-color: #cce8e3; }
.format-selector .timestamp-option:has(input:checked) { border-color: #8bcfc5; box-shadow: none; }
.timestamp-option input { width: 17px; height: 17px; }
.privacy-note { margin-top: auto !important; margin-bottom: 0 !important; padding-top: 25px; color: #8193a1 !important; font-size: 10px !important; }

.validation-section { max-width: 980px; margin: 0 auto; padding: 72px 24px 24px; }
.section-heading { max-width: 690px; margin: 0 auto 26px; text-align: center; }
.section-heading h2 { margin: 5px 0 9px; color: var(--navy); font-size: clamp(28px, 4vw, 40px); }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.setup-section { max-width: 980px; margin: 0 auto; padding: 72px 24px 10px; }
.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-selector-section { padding-bottom: 32px; }
.download-platform-tabs { max-width: 760px; margin: 0 auto; padding: 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: #edf4f6; border-radius: 18px; }
.download-platform-tab { padding: 17px 20px; display: flex; align-items: center; gap: 14px; color: var(--navy); background: transparent; border: 1px solid transparent; border-radius: 14px; cursor: pointer; text-align: left; }
.download-platform-tab[aria-selected="true"] { background: #fff; border-color: #cfe0e6; box-shadow: 0 8px 24px rgba(26, 67, 89, .1); }
.download-platform-tab > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.download-platform-tab strong { font-size: 15px; }
.download-platform-tab small { color: var(--muted); font-size: 10px; }
.platform-download-panel { padding: 46px 24px 64px; background: #fff; }
.platform-download-panel[hidden] { display: none; }
.platform-panel-heading { margin-bottom: 25px; }
.setup-grid-two { max-width: 980px; margin: 0 auto; grid-template-columns: repeat(2, 1fr); }
.setup-grid-two .setup-card p { min-height: 48px; }
.direct-download-link { display: inline-flex; padding: 10px 13px; color: #fff !important; background: var(--blue); border-radius: 9px; line-height: 1.3; }
.direct-download-link:hover { background: var(--navy); text-decoration: none !important; }
.download-unavailable { color: var(--muted); font-size: 11px; font-weight: 700; }
.platform-panel-footer { max-width: 980px; margin: 18px auto 0; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); background: #f4f8f9; border-radius: 12px; font-size: 10px; }
.platform-panel-footer a { color: var(--blue); font-weight: 800; text-decoration: none; }
.platform-panel-footer code { overflow-wrap: anywhere; font-size: 9px; }
.linux-install-command { max-width: 980px; margin: 18px auto 0; padding: 17px 20px; display: grid; gap: 8px; color: #fff; background: #102f46; border-radius: 13px; }
.linux-install-command strong { margin-bottom: 2px; font-size: 12px; }
.linux-install-command code { overflow-x: auto; color: #d8f6ed; font-size: 11px; white-space: nowrap; }
.platform-grid { margin: 0 0 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.platform-grid article { padding: 21px; background: #f7fafb; border: 1px solid var(--border); border-radius: 15px; }
.platform-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--aqua); border-radius: 10px; font-weight: 800; }
.platform-grid h3 { margin: 13px 0 6px; color: var(--navy); font-size: 15px; }
.platform-grid p { min-height: 58px; margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.platform-grid a { display: block; margin-top: 5px; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.setup-card { position: relative; padding: 25px 22px 23px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 34px rgba(26, 67, 89, .06); }
.setup-number { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 12px; font-weight: 800; }
.setup-version { color: var(--aqua); font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.setup-card h3 { margin: 6px 0 8px; color: var(--navy); font-size: 18px; }
.setup-card p { min-height: 78px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.setup-card a { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.setup-card a:hover { text-decoration: underline; }
.setup-links { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-links a { padding: 7px 10px; background: #edf6f8; border-radius: 8px; }
.setup-note { margin: 17px 0 0; padding: 14px 18px; color: #506b7c; background: #eaf7f4; border-radius: 12px; font-size: 11px; text-align: center; }
.downloads-section { padding: 70px 24px; background: #fff; }
.download-card { max-width: 980px; margin: 0 auto; padding: 26px; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 22px; text-align: left; background: #f7fafb; border: 1px solid #dce7ec; border-radius: 16px; }
.download-platform { width: 66px; height: 66px; display: grid; place-items: center; color: #fff; background: var(--aqua); border-radius: 16px; font-size: 15px; font-weight: 900; }
.download-copy h3 { margin: 4px 0 6px; color: var(--navy); font-size: 21px; }
.download-copy > p { margin: 0; color: #60798a; }
.download-requirements { margin: 17px 0 0; display: grid; gap: 8px; }
.download-requirements div { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 10px; }
.download-requirements dt { color: #60798a; font-weight: 700; }
.download-requirements dd { min-width: 0; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.download-requirements code { font-size: 11px; }
.download-actions { display: flex; align-items: center; flex-direction: column; gap: 10px; }
.checksum-link { color: #147f8f; font-size: 11px; font-weight: 700; }
.download-disabled { cursor: not-allowed; opacity: .65; }
.downloads-warning { max-width: 980px; margin: 14px auto 0; color: #6f5b2b; font-size: 11px; text-align: center; }
.validation-card { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 45px rgba(26, 67, 89, .08); }
.validation-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 24px 24px 8px; border: 0; }
.validation-mode legend { width: 100%; padding: 24px 24px 0; color: var(--navy); font-size: 16px; font-weight: 800; }
.validation-mode label { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.validation-mode label:has(input:checked) { border-color: var(--aqua); background: #f1faf8; box-shadow: 0 0 0 2px rgba(24,166,163,.08); }
.validation-mode input { accent-color: var(--aqua); }
.validation-mode span { display: flex; flex-direction: column; }
.validation-mode strong { color: var(--navy); font-size: 13px; }
.validation-mode small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.server-validation-warning { margin: 10px 24px 0; padding: 15px 17px; color: #704d17; background: #fff5df; border: 1px solid #edd39a; border-radius: 12px; }
.server-validation-warning strong { font-size: 12px; }
.server-validation-warning p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; }
.validation-mode label:has(input:disabled) { cursor: not-allowed; filter: grayscale(.45); opacity: .6; }
.availability-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; }
.availability-modal[hidden] { display: none; }
.availability-modal-card { position: relative; z-index: 1; width: min(540px, 100%); padding: 31px; background: #fff; border-radius: 20px; box-shadow: 0 25px 80px rgba(9,38,60,.3); }
.availability-modal-card h2 { margin: 7px 0 10px; color: var(--navy); font-size: 25px; }
.availability-modal-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
.availability-modal-icon { display: grid; place-items: center; float: right; width: 42px; height: 42px; color: #fff; background: #e69a2f; border-radius: 50%; font-size: 21px; font-weight: 900; }
.availability-list { margin: 19px 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.availability-list li { padding: 10px 12px; color: #62491f; background: #fff6e5; border-radius: 9px; font-size: 12px; line-height: 1.45; }
.availability-list li.ok { color: #126a5d; background: #eaf8f4; }
.availability-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.availability-actions .text-button { width: 100%; margin-top: 3px; text-align: center; }
.validation-upload { padding: 24px; display: flex; align-items: center; gap: 12px; }
.validation-file-icon { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--aqua); border-radius: 12px; font-weight: 800; }
.validation-file-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.validation-file-copy strong { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; }
.validation-file-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.validation-progress { margin: 0 24px 24px; padding: 15px; display: flex; align-items: center; gap: 12px; background: #fff7e7; border-radius: 12px; }
.validation-progress > span:last-child { display: flex; flex-direction: column; }
.validation-progress small { margin-top: 3px; color: var(--muted); }
.validation-error { margin: 0 24px 24px; padding: 14px 16px; color: #a84848; background: #fff0f0; border: 1px solid #f1cccc; border-radius: 12px; }
.validation-result { border-top: 1px solid var(--border); }
.validation-summary { padding: 28px; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 16px; background: #ebf8f5; }
.validation-summary.invalid { background: #fff0f0; }
.validation-summary.indeterminate { background: #fff7e7; }
.validation-summary-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: #20a17e; border-radius: 50%; font-size: 23px; font-weight: 800; }
.validation-summary.invalid .validation-summary-icon { background: #d95a5a; }
.validation-summary.indeterminate .validation-summary-icon { background: #eca72c; }
.validation-summary h3 { margin: 2px 0 4px; color: var(--navy); font-size: 22px; }
.validation-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.validation-summary dl { display: flex; gap: 24px; margin: 0; }
.validation-summary dl div { display: flex; flex-direction: column; }
.validation-summary dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.validation-summary dd { margin: 3px 0 0; color: var(--navy); font-size: 14px; font-weight: 800; }
.validation-signatures { padding: 22px 28px; display: grid; gap: 14px; }
.signature-result { padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
.signature-result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.signature-result h4 { margin: 3px 0 5px; color: var(--navy); font-size: 18px; }
.signature-result p { margin: 0; color: var(--muted); font-size: 12px; }
.signature-badge { padding: 6px 9px; color: #147b65; background: #e5f6f1; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.signature-badge.invalid { color: #a84848; background: #fff0f0; }
.signature-meta { margin: 17px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.signature-meta div { display: flex; flex-direction: column; }
.signature-meta dt { color: var(--muted); font-size: 10px; }
.signature-meta dd { margin: 4px 0 0; color: var(--navy); font-size: 12px; font-weight: 700; }
.certificate-chain { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.certificate-chain strong { color: var(--navy); }
.timestamp-panel { margin-top: 12px; padding: 13px; display: grid; gap: 8px; color: var(--navy); background: #f6f9fb; border-radius: 10px; font-size: 11px; }
.timestamp-result { padding: 10px 12px; display: grid; gap: 4px; border-left: 3px solid #a84848; background: #fff; border-radius: 8px; color: var(--muted); }
.timestamp-result.valid { border-left-color: #1a9a7e; }
.timestamp-state { color: #a84848; font-weight: 800; }
.timestamp-result.valid .timestamp-state { color: #147b65; }
.timestamp-missing { color: #8a6729; }
.signature-details { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 13px; }
.signature-details summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 800; }
.signature-details-body { padding-top: 10px; color: var(--muted); font-size: 11px; }
.signature-details-body strong { display: block; margin-top: 9px; color: var(--navy); }
.signature-details-body ul { margin: 5px 0 0; padding-left: 18px; }
.validation-messages .message-error, .validation-messages .message-warning { color: #9a3412; }
.validation-engine { margin: 0; padding: 0 28px 24px; color: #8494a1; font-size: 10px; text-align: center; }

.operation-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.operation-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 35, 52, .58); backdrop-filter: blur(4px); }
.operation-modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); padding: 30px; overflow: auto; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; box-shadow: 0 28px 80px rgba(5, 31, 48, .3); }
.operation-modal-card > .eyebrow { display: block; margin-top: 15px; text-align: center; }
.operation-modal-card h2 { text-align: center; }
.operation-modal-card > p { margin: 7px 0 19px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.operation-spinner { width: 48px; height: 48px; margin: 0 auto; border: 4px solid #d9eeed; border-top-color: var(--aqua); border-radius: 50%; animation: operation-spin .8s linear infinite; }
.operation-spinner.complete { display: grid; place-items: center; color: #fff; background: #20a17e; border: 0; animation: none; }
.operation-spinner.complete::after { content: "✓"; font-size: 23px; font-weight: 800; }
.operation-progress-track { height: 7px; overflow: hidden; background: #e7eef2; border-radius: 99px; }
.operation-progress-track span { width: 0; height: 100%; display: block; background: linear-gradient(90deg,var(--blue),var(--aqua)); border-radius: inherit; transition: width .25s ease; }
.operation-progress-meta { margin-top: 7px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.operation-steps { margin: 21px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.operation-steps li { padding: 9px 11px; display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; color: #8493a0; border: 1px solid transparent; border-radius: 10px; }
.operation-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; background: #edf2f5; border-radius: 50%; font-size: 10px; font-weight: 800; }
.operation-steps li div { display: flex; flex-direction: column; }
.operation-steps li strong { font-size: 12px; }
.operation-steps li small { margin-top: 2px; font-size: 9px; }
.operation-steps li.active { color: var(--navy); background: #f1faf8; border-color: #cae9e4; }
.operation-steps li.active > span { color: #fff; background: var(--aqua); box-shadow: 0 0 0 4px rgba(24,166,163,.12); }
.operation-steps li.done { color: #477063; }
.operation-steps li.done > span { color: #fff; background: #20a17e; font-size: 0; }
.operation-steps li.done > span::after { content: "✓"; font-size: 11px; }
@keyframes operation-spin { to { transform: rotate(360deg); } }

.success-state { min-height: 480px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.success-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 17px; color: var(--aqua); background: var(--light-aqua); border-radius: 50%; font-size: 34px; }
.text-button { margin-top: 18px; color: #61798d; background: transparent; border: 0; font-size: 12px; }
.error-message { margin: 0 20px 20px; padding: 10px 14px; color: #a84848; background: #fff1f1; border: 1px solid #f2c6c6; border-radius: 9px; font-size: 12px; }
.debug-panel { margin: 12px 20px 20px; padding: 10px 14px; color: #52687b; background: #f7f9fb; border: 1px solid #dce5ec; border-radius: 9px; text-align: left; font-size: 11px; }
.debug-panel summary { cursor: pointer; font-weight: 700; }
.debug-actions { display: flex; gap: 8px; margin: 10px 0 6px; }
.debug-actions button { padding: 5px 9px; color: #31566f; background: #fff; border: 1px solid #ccd9e2; border-radius: 6px; font-size: 10px; }
.debug-panel pre { max-height: 220px; margin: 0; padding: 10px; overflow: auto; color: #dce8ef; background: #172733; border-radius: 6px; white-space: pre-wrap; word-break: break-word; font: 10px/1.5 Consolas, monospace; }
.features { max-width: 980px; margin: 16px auto 68px; padding: 0 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; text-align: left; }
.features article { padding: 22px; }
.features article > span { color: var(--aqua); font-size: 23px; }
.features h3 { margin: 10px 0 5px; color: var(--navy); font: 700 14px "Manrope"; }
.features p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; min-height: var(--footer-height); padding: 0 max(5vw,28px); display: flex; align-items: center; justify-content: space-between; color: #8796a4; background: rgba(255,255,255,.96); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(26,67,89,.05); backdrop-filter: blur(14px); font-size: 11px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #60798a; text-decoration: none; }
.footer-links a:hover { color: var(--aqua); text-decoration: underline; }

.content-section { max-width: 1050px; margin: 0 auto; padding: 70px 24px 80px; }
.content-section .section-heading h1 { margin: 6px 0 10px; font-size: clamp(34px, 5vw, 52px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 20px; align-items: start; }
.contact-form, .operator-card, .legal-card { padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 45px rgba(26,67,89,.08); }
.contact-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.contact-form label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: 12px 13px; color: var(--navy); background: #fbfdfe; border: 1px solid #ccd9e2; border-radius: 9px; outline: none; }
.contact-form textarea { resize: vertical; line-height: 1.5; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(24,166,163,.11); }
.contact-honeypot { position: absolute !important; left: -10000px !important; }
.contact-form .consent-field { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; color: #61798d; font-weight: 500; line-height: 1.45; }
.consent-field input { margin-top: 2px; accent-color: var(--aqua); }
.consent-field a, .operator-card a, .legal-card a { color: var(--blue); }
.form-advice { margin: -4px 0 0; padding: 11px 13px; color: #7a622b; background: #fff8e7; border-radius: 9px; font-size: 10px; }
.contact-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.contact-result { color: var(--muted); font-size: 12px; }
.contact-result.success { color: #147b65; }
.contact-result.error { color: #a84848; }
.operator-card h2 { margin: 4px 0 15px; }
.operator-card address { color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.65; }
.operator-card dl { margin: 18px 0; display: grid; gap: 10px; }
.operator-card dl div { display: grid; gap: 3px; }
.operator-card dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.operator-card dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 700; }
.operator-card > a { font-size: 11px; font-weight: 800; text-decoration: none; }
.protected-email { margin: 0 0 17px; display: grid; gap: 3px; color: var(--muted); font-size: 11px; }
.protected-email strong { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.protected-email a, .protected-email-inline a { color: var(--blue); font-weight: 700; text-decoration: none; }
.protected-email a:hover, .protected-email-inline a:hover { text-decoration: underline; }
.legal-card { max-width: 850px; margin: 0 auto; }
.legal-card h2 { margin: 27px 0 7px; font-size: 18px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0; color: #5f7485; font-size: 13px; line-height: 1.7; }
.legal-card .legal-updated { margin-top: 28px; color: #8796a4; font-size: 10px; }

.guide-hero { max-width: 900px; margin: 0 auto; padding: 72px 24px 38px; text-align: center; }
.guide-hero h1 { margin: 13px 0 17px; font-size: clamp(34px, 5vw, 56px); }
.guide-hero > p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.7; }
.guide-back { display: table; margin: 0 auto 18px; color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.guide-grid { width: min(1100px, calc(100% - 48px)); margin: 0 auto 72px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.guide-card { padding: 28px; display: flex; align-items: flex-start; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 19px; box-shadow: 0 14px 38px rgba(26,67,89,.07); }
.guide-card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--blue),var(--aqua)); border-radius: 13px; font-size: 13px; font-weight: 900; }
.guide-card h2 { margin: 18px 0 9px; font-size: 21px; line-height: 1.3; }
.guide-card p { margin: 0 0 19px; color: var(--muted); line-height: 1.65; }
.guide-card a { margin-top: auto; color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.technical-hub-link { width: min(900px, calc(100% - 48px)); margin: -44px auto 72px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy); background: #eaf7f4; border: 1px solid #c8e8e2; border-radius: 15px; text-decoration: none; }
.technical-hub-link strong { font-size: 16px; }
.technical-hub-link span { color: var(--blue); font-size: 12px; font-weight: 700; }
.guide-article { width: min(1060px, calc(100% - 48px)); margin: 0 auto 60px; display: grid; grid-template-columns: 235px minmax(0,1fr); align-items: start; gap: 34px; }
.guide-toc { position: sticky; top: calc(var(--header-height) + 22px); padding: 20px; display: grid; gap: 10px; background: #edf6f7; border-radius: 14px; }
.guide-toc strong { margin-bottom: 3px; color: var(--navy); font-size: 12px; }
.guide-toc a { color: #547082; font-size: 11px; line-height: 1.4; text-decoration: none; }
.guide-toc a:hover { color: var(--aqua); }
.guide-content { padding: 34px 38px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 42px rgba(26,67,89,.07); }
.guide-content section { scroll-margin-top: calc(var(--header-height) + 22px); }
.guide-content section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.guide-content h2 { font-size: 23px; line-height: 1.35; }
.guide-content p, .guide-content li { color: #536e7f; font-size: 14px; line-height: 1.75; }
.guide-content ul { padding-left: 21px; }
.guide-content code { padding: 2px 5px; color: #125f79; background: #edf6f8; border-radius: 5px; }
.guide-inline-cta { color: var(--blue); font-weight: 800; text-decoration: none; }
.guide-sources { margin-top: 38px; padding: 22px; background: #f2f8f7; border-left: 4px solid var(--aqua); border-radius: 12px; }
.guide-sources h2 { margin-top: 0; font-size: 16px; }
.guide-sources ul { margin-bottom: 0; }
.guide-sources a { color: var(--blue); font-weight: 700; }
.guide-related { width: min(1060px, calc(100% - 48px)); margin: 0 auto 70px; text-align: center; }
.guide-related h2 { margin-bottom: 16px; }
.guide-related div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.guide-related a { padding: 10px 13px; color: var(--blue); background: #fff; border: 1px solid var(--border); border-radius: 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.security-hero { padding: 72px 24px 38px; text-align: center; }
.security-hero h1 { max-width: 900px; margin: 10px auto 18px; }
.security-hero > p { max-width: 800px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.security-assurance { display: inline-flex; align-items: center; gap: 12px; margin-top: 25px; padding: 13px 20px; color: #067c6e; background: #e7f8f4; border: 1px solid #bfe9df; border-radius: 999px; }
.security-content { width: min(980px, calc(100% - 48px)); margin: 0 auto 70px; }
.server-option-note { margin: 0 0 22px; padding: 18px 21px; color: #704d17; background: #fff5df; border: 1px solid #edd39a; border-radius: 14px; }
.server-option-note p { margin-top: 5px; color: #765b32; }
.security-content > article { display: grid; grid-template-columns: 50px 1fr; gap: 19px; margin: 14px 0; padding: 25px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.security-content h2 { margin: 0 0 8px; font-size: 20px; }
.security-content p { margin: 0; color: var(--muted); line-height: 1.7; }
.security-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: linear-gradient(135deg, var(--blue), #10a99f); border-radius: 13px; font-weight: 800; }
.security-risk { margin: 28px 0; padding: 28px; color: #fff; background: #0d3555; border-radius: 17px; }
.security-risk p { color: #d9e9f4; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 25px; }
.security-grid article { padding: 24px; background: #f1f6f8; border-radius: 15px; }

@media (max-width: 1000px) and (min-width: 761px) {
    nav { gap: 14px; }
    nav a { font-size: 12px; }
}

@media (max-width: 880px) and (min-width: 761px) {
    :root { --header-height: 118px; }
    .site-header { height: auto; min-height: 68px; padding: 12px 24px; flex-wrap: wrap; gap: 9px; }
    nav { width: 100%; gap: 7px; order: 2; }
    nav a { display: block; flex: 1; padding: 7px 5px; background: #f1f6f8; border-radius: 7px; font-size: 10px; text-align: center; }
}

@media (max-width: 760px) {
    :root { --header-height: 118px; --footer-height: 72px; }
    .site-header { height: auto; min-height: 68px; padding: 12px 18px; flex-wrap: wrap; gap: 9px; }
    nav { width: 100%; gap: 6px; order: 2; }
    nav a { display: block; flex: 1; padding: 7px 5px; background: #f1f6f8; border-radius: 7px; font-size: 10px; text-align: center; }
    .language-switcher { flex: 0 0 auto; }
    .language { display: flex; min-height: 31px; padding: 6px 8px; }
    .brand small { display: none; }
    .hero { padding: 45px 14px 32px; }
    .portal-hero { min-height: auto; padding: 52px 14px; }
    .portal-actions { grid-template-columns: 1fr; margin-top: 29px; }
    .portal-action { min-height: 255px; }
    h1 { letter-spacing: -1.7px; }
    .hero-copy { font-size: 15px; }
    .step { font-size: 0; }
    .stepper { max-width: 330px; }
    .drop-zone { min-height: 340px; margin: 10px; padding: 24px 14px; }
    .document-view { grid-template-columns: 1fr; }
    .document-summary { grid-column: 1; grid-row: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .format-selector { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; padding: 22px 20px 0; }
    .format-selector-title { margin-bottom: 2px; font-size: 16px; }
    .eid-panel { grid-column: 1; grid-row: auto; padding: 24px 20px 28px; }
    .requirements { grid-template-columns: 1fr; }
    .requirements div { grid-template-columns: 28px 1fr; }
    .actions { flex-direction: column; }
    .validation-section { padding: 52px 14px 10px; }
    .setup-section { padding: 52px 14px 0; }
    .setup-grid { grid-template-columns: 1fr; }
    .download-platform-tabs { grid-template-columns: 1fr; }
    .platform-download-panel { padding: 38px 14px 50px; }
    .platform-panel-footer { align-items: flex-start; flex-direction: column; }
    .platform-grid { grid-template-columns: 1fr; }
    .platform-grid p { min-height: 0; }
    .download-card { grid-template-columns: 55px minmax(0, 1fr); padding: 20px; }
    .download-platform { width: 52px; height: 52px; border-radius: 13px; }
    .download-actions { grid-column: 1 / -1; align-items: stretch; }
    .download-requirements div { grid-template-columns: 1fr; gap: 2px; }
    .setup-card p { min-height: 0; }
    .validation-upload { align-items: stretch; flex-direction: column; }
    .validation-mode { grid-template-columns: 1fr; }
    .validation-file-icon { display: none; }
    .validation-summary { grid-template-columns: 42px 1fr; padding: 22px; }
    .validation-summary dl { grid-column: 1 / -1; justify-content: space-between; gap: 10px; }
    .signature-meta { grid-template-columns: 1fr; }
    .operation-modal { padding: 12px; }
    .operation-modal-card { max-height: calc(100vh - 24px); padding: 23px 18px; }
    .features { grid-template-columns: 1fr; gap: 0; }
    .contact-layout, .form-grid { grid-template-columns: 1fr; }
    .guide-hero { padding: 48px 18px 30px; }
    .guide-grid { width: calc(100% - 28px); grid-template-columns: 1fr; margin-bottom: 48px; }
    .guide-article { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 16px; }
    .guide-toc { position: static; }
    .guide-content { padding: 25px 21px; }
    .guide-related { width: calc(100% - 28px); }
    .technical-hub-link { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; margin-top: -25px; margin-bottom: 48px; }
    .home-guides-strip { width: calc(100% - 28px); align-items: stretch; flex-direction: column; margin-bottom: 45px; }
    .security-content { width: calc(100% - 28px); }
    .security-content > article { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .contact-form, .operator-card, .legal-card { padding: 22px; }
    .contact-submit-row { align-items: stretch; flex-direction: column; }
    .contact-submit-row .button { width: 100%; }
    footer { flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
}
