/* Moved out of AttachmentError.aspx (was an inline <style> block) */
/* Hide master page chrome — standalone page like login */
        #tgPromoWidget { display: none !important; }
        .page-title-container { display: none !important; }
        .TenderHeaderMenu { display: none !important; }
        .TenderCompactNav { display: none !important; }
        .tg-footer { display: none !important; }
        #tg-mobile-bottombar { display: none !important; }
        #content { padding: 0 !important; margin: 0 !important; }

        .ae-root {
            --teal: #378b95;
            --teal-dark: #286f78;
            --orange: #f5833d;
            --ink: #17363c;
            --text: #60767b;
            --line: #dce9ea;
            --canvas: #edf4f5;
            box-sizing: border-box;
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 22px;
            color: var(--ink);
            background: linear-gradient(180deg, #fff, #f5f9f9);
            position: relative;
        }
        .ae-root *, .ae-root *:before, .ae-root *:after { box-sizing: border-box; }
        .ae-root a { text-decoration: none; color: inherit; }

        .ae-page { width: min(100%, 760px); min-height: calc(100vh - 44px); display: flex; flex-direction: column; }

        .ae-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 40px; }
        .ae-brand { display: flex; align-items: center; gap: 9px; }
        .ae-brand img { height: 40px; width: auto; }
        .ae-brand small { display: block; margin-top: 2px; color: var(--text); font-size: .65rem; }
        .ae-home-link { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 11px; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-weight: 900; font-size: .78rem; }
        .ae-home-link:hover { background: var(--canvas); }

        .ae-bg-shapes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
        .ae-bg-shapes:before { content: ""; position: absolute; width: 60%; height: 150%; inset-inline-end: -15%; top: -25%; border-radius: 100px; transform: rotate(15deg); background: linear-gradient(180deg, rgba(55,139,149,.14), rgba(245,131,61,.07)); }
        html[dir="rtl"] .ae-bg-shapes:before { transform: rotate(-15deg); }
        .ae-bg-shapes:after { content: ""; position: absolute; width: 300px; height: 300px; inset-inline-start: -100px; bottom: -100px; border-radius: 50%; border: 35px solid rgba(255,255,255,.65); }

        .ae-error-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; position: relative; z-index: 1; }
        .ae-error-card { width: min(100%, 610px); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 25px; align-items: center; padding: 28px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.98); border-radius: 16px; box-shadow: 0 14px 34px rgba(23,54,60,.09); }

        .ae-visual { position: relative; display: grid; place-items: center; }
        .ae-file-icon { position: relative; width: 88px; height: 105px; background: #fff; border: 3px solid var(--teal); border-radius: 15px; box-shadow: 0 13px 28px rgba(55,139,149,.16); }
        .ae-file-icon:before { content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 28px; height: 28px; background: var(--canvas); border-inline-start: 3px solid var(--teal); border-bottom: 3px solid var(--teal); border-end-start-radius: 8px; }
        .ae-file-icon:after { content: "\D7"; position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font-size: 1.3rem; font-weight: 900; }

        .ae-code { display: inline-flex; padding: 4px 8px; color: var(--orange); background: #fff1e8; border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .06em; }
        .ae-error-card h1 { margin: 9px 0 7px; font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.12; color: var(--ink); }
        .ae-error-card p { margin: 0; color: var(--text); font-size: .84rem; line-height: 1.75; }

        .ae-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
        .ae-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 9px; font-size: .74rem; font-weight: 900; transition: opacity 0.2s; }
        .ae-btn:hover { opacity: 0.9; text-decoration: none; }
        .ae-btn-primary { color: #fff !important; background: var(--teal); }
        .ae-btn-secondary { color: var(--teal-dark) !important; background: #fff; border: 1px solid #bed5d8; }
        .ae-btn-contact { color: #fff !important; background: var(--orange); }

        @media (max-width: 600px) {
            .ae-root { padding: 14px; }
            .ae-page { min-height: calc(100vh - 28px); }
            .ae-brand small { display: none; }
            .ae-error-card { grid-template-columns: 1fr; gap: 17px; padding: 23px 18px; text-align: center; }
            .ae-actions { justify-content: center; }
            .ae-btn { width: 100%; }
        }
