/* QES outlook only. Reuses the existing wallet, QR and verification components. */
.qes-outlook {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #335a61;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.qes-outlook-badge {
  padding: 6px 12px;
  border: 1px solid #a6c4c7;
  border-radius: 999px;
  background: #edf7f4;
  color: #18554d;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.qes-outlook a { margin-left: auto; color: #165e67; text-decoration: underline; text-underline-offset: 3px; }
.qes-portal .terminal { background: #073f49; --primary: #0d6770; --primary-deep: #073f49; --muted: #3c5e63; }
.qes-portal .term-screen { background: #c8e6e2; padding-bottom: 30px; }
.qes-portal .term-screen > .ph-app { background: #073f49; color: #fff; }
.qes-portal .ph-h { color: #073f49; font-size: 36px; margin: 18px 0; }
.qes-portal .ph-cta { flex-shrink: 0; background: #073f49; color: #fff; margin-top: 18px; }
.qes-portal .ph-note { color: #335a61; }
.qes-portal :is(button, a, summary):focus-visible { outline: 5px solid #073f49; outline-offset: 5px; }
.qes-file-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f7fcfb;
  color: #113b43;
}
.qes-file-icon { display: grid; place-items: center; width: 66px; height: 76px; flex-shrink: 0; border-radius: 12px; background: #d0e6e3; color: #0b5961; font-size: 20px; font-weight: 800; }
.qes-file-card strong, .qes-file-card div > span { display: block; }
.qes-file-card strong { font-size: 27px; font-weight: 700; overflow-wrap: anywhere; }
.qes-file-card div > span { margin-top: 5px; font-size: 20px; color: #45676b; }
.qes-document-details { margin-top: 18px; text-align: left; }
.qes-document-details summary { padding: 12px 0; color: #105660; font-size: 23px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.qes-document-details[open] summary { margin-bottom: 8px; }
.qes-portal .qes-document-details { max-height: 390px; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; }
.qes-document {
  padding: 26px;
  border: 1px solid #c7d5d9;
  border-radius: 14px;
  background: #fff;
  color: #233c43;
  text-align: left;
}
.qes-document-kicker { color: #64777b; font-size: 16px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.qes-document h4 { margin: 12px 0 6px; font-size: 27px; line-height: 1.2; font-weight: 750; color: #173a43; }
.qes-document .qes-document-subject { margin: 0 0 18px; font-size: 19px; color: #4f656a; line-height: 1.35; }
.qes-document-parties { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 18px; padding: 12px 0; border-top: 1px solid #e0e7e8; border-bottom: 1px solid #e0e7e8; }
.qes-document-parties > div { display: flex; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.35; }
.qes-document-parties dt { color: #5d7379; }
.qes-document-parties dd { margin: 0; font-weight: 600; }
.qes-document section + section { margin-top: 13px; }
.qes-document h5 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.qes-document section p { margin: 0; font-size: 18px; line-height: 1.42; color: #3d555c; }
.qes-document-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e0e7e8; padding-top: 14px; margin-top: 20px; color: #657b80; font-size: 16px; line-height: 1.3; }
.qes-profile-note { margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; background: #e7f4f0; font-size: 21px; line-height: 1.35; color: #285b52; }
.qes-request-document { margin-top: 12px; padding: 18px 20px; border-radius: 16px; background: #f5fcfa; color: #17444b; }
.qes-request-document strong, .qes-request-document span { display: block; }
.qes-request-document strong { font-size: 27px; overflow-wrap: anywhere; }
.qes-request-document span { margin-top: 6px; font-size: 21px; color: #47666c; }
.qes-portal .qr-request-cancel { margin-top: 26px; border-color: #5f8f91; color: #073f49; }
.qes-wallet, .qes-verification { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.qes-wallet > .qes-outlook { width: 560px; justify-content: center; }
.qes-wallet .dy-scroll { scrollbar-width: thin; scrollbar-color: #afc9cc transparent; }
.qes-wallet .dy-scroll::-webkit-scrollbar { display: block; width: 6px; }
.qes-wallet .dy-scroll-in { padding-bottom: 20px; }
.qes-wallet .dy-box .ph-row { gap: 12px; }
.qes-wallet .dy-box .ph-row span:last-child { max-width: 60%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.qes-wallet .qes-document-details { margin-top: 8px; }
.qes-wallet .qes-document-details summary { padding: 9px 0 4px; font-size: 18px; }
.qes-wallet .qes-document { padding: 15px; }
.qes-wallet .qes-document h4 { font-size: 24px; }
.qes-wallet .qes-document-kicker, .qes-wallet .qes-document-footer { font-size: 14px; }
.qes-wallet .qes-document .qes-document-subject,
.qes-wallet .qes-document-parties > div,
.qes-wallet .qes-document h5,
.qes-wallet .qes-document section p { font-size: 17px; }
.qes-wallet .qes-document-parties { display: grid; gap: 5px; }
.qes-trust-service { padding: 3px 0; font-size: 19px; line-height: 1.35; font-weight: 600; }
.qes-trust-service small { display: block; margin-top: 3px; color: #617384; font-size: 17px; font-weight: 400; }
.qes-wallet-outlook-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #edf5f3; color: #465f5b; font-size: 17px; line-height: 1.4; }
.qes-wallet-footer { flex-shrink: 0; padding-top: 6px; }
.qes-signing-intent { margin: 0 0 18px; color: #263e56; font-size: 19px; line-height: 1.35; font-weight: 600; }
.qes-open-document, .qes-reader-return {
  width: 100%; min-height: 64px; margin: 16px 0 0; padding: 14px 18px;
  border: 2px solid #b6cdd5; border-radius: 16px; background: #eaf3f6;
  color: #174d65; font: inherit; font-size: 23px; font-weight: 650;
  line-height: 1.25; text-align: center; cursor: pointer;
}
.qes-open-document:disabled { opacity: .65; cursor: default; }
.qes-document-opened { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #edf5f3; color: #315e57; font-size: 18px; line-height: 1.35; }
.qes-wallet-reader:focus { outline: none; }
.qes-reader-hint { margin: 0 0 14px; color: #52677a; font-size: 19px; line-height: 1.35; }
.qes-wallet-reader .qes-document { padding: 20px; }
.qes-wallet-reader .qes-document .qes-document-subject,
.qes-wallet-reader .qes-document-parties > div,
.qes-wallet-reader .qes-document h5,
.qes-wallet-reader .qes-document section p { font-size: 22px; line-height: 1.45; }
.qes-wallet-reader .qes-document h5 { margin-bottom: 6px; }
.qes-wallet-reader .qes-document section + section { margin-top: 20px; }
.qes-reader-end { margin: 16px 0 0; padding: 12px; border-top: 1px solid #d5e1e6; color: #52677a; font-size: 19px; text-align: center; }
.qes-reader-footer > p { margin: 0 0 12px; color: #52677a; font-size: 19px; line-height: 1.35; }
.qes-reader-return { min-height: 86px; margin: 0; border: 0; background: #174d65; color: #fff; font-size: 25px; }
.qes-open-document:focus-visible, .qes-reader-return:focus-visible { outline: 4px solid #642c83; outline-offset: 5px; }
.qes-wallet-view[hidden] { display: none; }
.qes-signing-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.qes-pin-pending { margin: 0; padding: 22px 18px; border-radius: 18px; background: #eef3f7; color: #52677a; font-size: 22px; line-height: 1.35; text-align: center; }
.qes-explanation {
  box-sizing: border-box;
  width: 900px;
  max-width: 100%;
  padding: 34px 42px 30px;
  border: 2px solid #aecfc9;
  border-radius: 34px;
  background: #f7fcfa;
  color: #173f46;
  box-shadow: 0 24px 70px #153f4214;
  animation: qes-explanation-appear .25s ease-out both;
}
.qes-explanation:focus { outline: none; }
.qes-explanation-kicker { color: #286b63; font-size: 20px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.qes-explanation h2 { margin: 12px 0 14px; color: #103f48; font-size: 50px; line-height: 1.12; }
.qes-explanation-question { margin: 0; color: #41626a; font-size: 28px; line-height: 1.35; }
.qes-explanation-steps { display: grid; gap: 20px; margin: 24px 0; padding: 0; list-style: none; counter-reset: qes-explanation-step; }
.qes-explanation-steps li { position: relative; padding-left: 64px; counter-increment: qes-explanation-step; }
.qes-explanation-steps li::before { content: counter(qes-explanation-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #dceee7; color: #185e53; font-size: 27px; font-weight: 750; }
.qes-explanation-steps h3 { margin: 2px 0 8px; color: #173f46; font-size: 29px; line-height: 1.25; }
.qes-explanation-steps p { margin: 0; color: #3c5961; font-size: 25px; line-height: 1.35; }
.qes-explanation-binding { margin: 0 0 18px; padding: 20px; border-left: 5px solid #78aaa0; border-radius: 0 14px 14px 0; background: #eaf2ef; }
.qes-explanation-binding h3 { margin: 0 0 8px; color: #173f46; font-size: 25px; line-height: 1.3; }
.qes-explanation-binding p { margin: 0; color: #3c5961; font-size: 23px; line-height: 1.35; }
.qes-explanation-demo { margin: 0; color: #516762; font-size: 20px; line-height: 1.35; }
.qes-explanation-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; }
.qes-explanation-actions > span { color: #45676a; font-size: 23px; line-height: 1.3; }
.qes-explanation-actions .btn { min-height: 88px; padding: 20px 38px; border-radius: 22px; background: #0b5961; color: #fff; font-size: 30px; }
.qes-explanation-actions .btn:focus-visible { outline: 5px solid #642c83; outline-offset: 5px; }
@keyframes qes-explanation-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .qes-explanation { animation: none; } }
.qes-verification > .qes-outlook { align-self: flex-start; }
.qes-done { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.qes-result-symbol { display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; margin: 28px 0 0; background: #d7efe5; color: #18734e; font-size: 70px; font-weight: 700; }
.done .qes-done h2 { margin: 28px 0 18px; font-size: 66px; line-height: 1.1; }
.done .qes-done .qes-result-lead { max-width: 800px; font-size: 28px; line-height: 1.4; }
.qes-result-card { width: 820px; max-width: 100%; margin-top: 30px; border: 2px solid #91bcb7; border-radius: 28px; padding: 30px 36px; background: #e2f1ed; color: #173f46; text-align: left; }
.qes-result-status { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid #bdd9d1; color: #145a41; font-size: 28px; line-height: 1.25; }
.qes-result-status > span { font-size: 34px; }
.qes-result-card .ph-row { font-size: 24px; padding: 14px 0; border-bottom-color: #cbdfdb; }
.qes-result-card .ph-row span:first-child { color: #50706f; }
.qes-result-card .ph-row span:last-child { min-width: 0; overflow-wrap: anywhere; }
.qes-result-card .qes-document-details { max-height: 550px; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; }
.done .qes-done .qes-result-example { margin: 24px 0 0; max-width: 820px; color: #52677a; font-size: 24px; line-height: 1.4; }
.qes-done :is(a, summary):focus-visible,
.qes-wallet summary:focus-visible { outline: 4px solid #642c83; outline-offset: 4px; }
