:root {
    --disc-bg: #0b0d0c;
    --disc-sheet: #f0ede5;
    --disc-ink: #181a17;
    --disc-muted: #6d7069;
    --disc-line: #d3cfc4;
    --disc-accent: #b47918;
    --disc-green: #376d55;
}

html.m8y-disclosure-locked,
html.m8y-disclosure-locked body { overflow: hidden !important; }

.m8y-disclosure-layer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "DM Sans", system-ui, sans-serif;
}

.m8y-disclosure-layer.is-open { display: flex; }
.m8y-disclosure-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 4, .94); backdrop-filter: blur(10px); }

.m8y-disclosure-card {
    position: relative;
    width: min(980px, 96vw);
    height: min(850px, 94dvh);
    display: grid;
    grid-template-rows: 48px 2px minmax(0, 1fr) 72px;
    overflow: hidden;
    border: 1px solid #333731;
    border-radius: 4px;
    background: var(--disc-sheet);
    color: var(--disc-ink);
    box-shadow: 0 36px 110px rgba(0, 0, 0, .68);
}

.m8y-disclosure-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 0 18px;
    background: var(--disc-bg);
    color: #eeece5;
}

.m8y-disclosure-wordmark { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.m8y-disclosure-wordmark strong { color: #e0a540; font-size: 12px; letter-spacing: .1em; }
.m8y-disclosure-wordmark span { padding-left: 9px; border-left: 1px solid #393c37; color: #a8aaa4; font-size: 11px; }
.m8y-disclosure-toolbar-title { overflow: hidden; color: #9fa29b; font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.m8y-disclosure-toolbar code { color: #90938d; font: 500 10px/1 ui-monospace, monospace; }

.m8y-disclosure-progress { background: #2a2d29; }
.m8y-disclosure-progress i { display: block; width: 0; height: 100%; background: #d39a36; transition: width .12s linear; }

.m8y-disclosure-document {
    overflow-y: auto;
    overscroll-behavior: contain;
    outline: none;
    background: var(--disc-sheet);
    scrollbar-color: #a59f90 transparent;
    scrollbar-width: thin;
}

.m8y-disclosure-page { width: min(760px, calc(100% - 72px)); margin: 0 auto; padding: 54px 0 72px; }
.m8y-disclosure-lead { padding-bottom: 44px; border-bottom: 1px solid var(--disc-line); }
.m8y-disclosure-folio { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.m8y-disclosure-folio span { color: var(--disc-accent); font-size: 10px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.m8y-disclosure-folio code { color: #99968d; font: 500 9px/1 ui-monospace, monospace; letter-spacing: .05em; }
.m8y-disclosure-lead h2 { max-width: 680px; margin: 0; color: #151714; font: 600 clamp(34px, 5vw, 53px)/.98 "Newsreader", Georgia, serif; letter-spacing: -.04em; }
.m8y-disclosure-lead > p { max-width: 620px; margin: 20px 0 0; color: #64675f; font-size: 14px; line-height: 1.65; }
.m8y-disclosure-lead-rule { display: flex; align-items: center; gap: 16px; margin-top: 36px; color: #83857e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.m8y-disclosure-lead-rule i { flex: 1; height: 1px; background: var(--disc-line); }

.m8y-disclosure-copy { padding-top: 48px; counter-reset: disclosure-section; }
.m8y-disclosure-section { position: relative; margin: 0 0 48px; padding-left: 58px; counter-increment: disclosure-section; }
.m8y-disclosure-section::before { content: counter(disclosure-section, decimal-leading-zero); position: absolute; left: 0; top: 3px; color: #a3a097; font: 600 11px/1 ui-monospace, monospace; }
.m8y-disclosure-section h3 { margin: 0 0 17px; color: #1d1f1b; font: 600 23px/1.18 "Newsreader", Georgia, serif; letter-spacing: -.015em; }
.m8y-disclosure-section p,
.m8y-disclosure-section li { color: #4f524c; font-size: 14px; line-height: 1.82; }
.m8y-disclosure-section p { margin: 0 0 16px; }
.m8y-disclosure-section ul { margin: 8px 0 0; padding-left: 21px; }
.m8y-disclosure-section li { margin-bottom: 8px; padding-left: 5px; }

.m8y-disclosure-end-marker { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 58px 0 38px; color: #7c7f77; }
.m8y-disclosure-end-marker > span { color: #474a44; font: 600 12px/1 "Newsreader", Georgia, serif; }
.m8y-disclosure-end-marker i { height: 1px; background: var(--disc-line); }
.m8y-disclosure-end-marker small { font-size: 9px; letter-spacing: .05em; }

.m8y-disclosure-confirmations { padding: 30px; border: 1px solid #cbc6ba; background: #e9e5dc; }
.m8y-disclosure-confirm-head > span { color: var(--disc-accent); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.m8y-disclosure-confirm-head h3 { margin: 7px 0 5px; font: 600 25px/1.15 "Newsreader", Georgia, serif; }
.m8y-disclosure-confirm-head p { margin: 0; color: #72746e; font-size: 11px; line-height: 1.5; }
.m8y-disclosure-acks { display: grid; gap: 9px; margin-top: 22px; }
.m8y-disclosure-acks label { min-height: 56px; display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 12px; padding: 14px; border: 1px solid #cbc7bd; background: #f4f1ea; color: #50534c; font-size: 11px; line-height: 1.55; cursor: pointer; }
.m8y-disclosure-acks label:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.m8y-disclosure-acks label:has(input:checked) { border-color: #7fa38f; background: #edf3ee; color: #253a2f; }
.m8y-disclosure-acks input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.m8y-disclosure-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #9b9d96; background: #fff; }
.m8y-disclosure-check .material-icons-round { opacity: 0; font-size: 15px; }
.m8y-disclosure-acks input:checked + .m8y-disclosure-check { border-color: var(--disc-green); background: var(--disc-green); color: white; }
.m8y-disclosure-acks input:checked + .m8y-disclosure-check .material-icons-round { opacity: 1; }
.m8y-disclosure-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: #856326; font-size: 10px; line-height: 1.5; }
.m8y-disclosure-warning .material-icons-round { margin-top: 1px; font-size: 14px; }
.m8y-disclosure-error { display: none; margin-top: 12px; padding: 10px 12px; border-left: 3px solid #b33d48; background: #f1dddf; color: #8e2530; font-size: 11px; }
.m8y-disclosure-error.is-visible { display: block; }

.m8y-disclosure-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 18px; border-top: 1px solid #2e312d; background: var(--disc-bg); color: #eceae3; }
.m8y-disclosure-scroll-hint { min-width: 0; display: flex; align-items: center; gap: 10px; }
.m8y-disclosure-scroll-hint > .material-icons-round { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #444841; color: #dfa745; font-size: 16px; animation: disclosureNudge 1.6s ease-in-out infinite; }
.m8y-disclosure-scroll-hint.is-complete > .material-icons-round { color: #78bd96; border-color: #416b54; animation: none; }
.m8y-disclosure-scroll-hint strong,
.m8y-disclosure-scroll-hint small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m8y-disclosure-scroll-hint strong { color: #e9e7df; font-size: 10px; }
.m8y-disclosure-scroll-hint small { margin-top: 2px; color: #868a82; font-size: 9px; }
.m8y-disclosure-actions { display: flex; gap: 8px; }
.m8y-disclosure-actions button,
.m8y-disclosure-card.is-failed button { min-height: 40px; padding: 0 16px; border: 1px solid #41453f; border-radius: 3px; font: 700 10px/1 "DM Sans", sans-serif; cursor: pointer; }
.m8y-disclosure-cancel { background: transparent; color: #b1b3ad; }
.m8y-disclosure-accept { min-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-color: #c78b25 !important; background: #dca13c; color: #17140e; }
.m8y-disclosure-accept:disabled { border-color: #343833 !important; background: #20231f; color: #656961; cursor: not-allowed; }
.m8y-disclosure-accept .material-icons-round { font-size: 15px; }
.m8y-disclosure-button-loader { width: 13px; height: 13px; border: 2px solid rgba(0, 0, 0, .22); border-top-color: #111; border-radius: 50%; animation: disclosureSpin .65s linear infinite; }

.m8y-disclosure-card.is-loading,
.m8y-disclosure-card.is-failed { height: auto; min-height: 270px; display: grid; place-items: center; padding: 42px; background: #111410; color: #eeeae0; text-align: center; }
.m8y-disclosure-loader { display: grid; place-items: center; }
.m8y-disclosure-loader > span { width: 30px; height: 30px; margin-bottom: 17px; border: 2px solid #3a3f38; border-top-color: #dca13c; border-radius: 50%; animation: disclosureSpin .8s linear infinite; }
.m8y-disclosure-loader strong { font: 600 19px/1.2 "Newsreader", Georgia, serif; }
.m8y-disclosure-loader small,
.m8y-disclosure-card.is-failed p { margin-top: 7px; color: #8f938a; font-size: 10px; }
.m8y-disclosure-card.is-failed > .material-icons-round { color: #d95f68; font-size: 34px; }
.m8y-disclosure-card.is-failed h2 { margin: 10px 0 0; font: 600 24px/1.2 "Newsreader", Georgia, serif; }
.m8y-disclosure-card.is-failed button { margin-top: 20px; border-color: #dca13c; background: #dca13c; color: #17140e; }

@keyframes disclosureSpin { to { transform: rotate(360deg); } }
@keyframes disclosureNudge { 50% { transform: translateY(3px); } }

@media (max-width: 720px) {
    .m8y-disclosure-layer { padding: 0; }
    .m8y-disclosure-card { width: 100vw; height: 100dvh; max-height: none; grid-template-rows: 43px 2px minmax(0, 1fr) 64px; border: 0; border-radius: 0; }
    .m8y-disclosure-toolbar { gap: 10px; padding: 0 12px; }
    .m8y-disclosure-wordmark span { display: none; }
    .m8y-disclosure-toolbar-title { text-align: left; }
    .m8y-disclosure-toolbar code { font-size: 9px; }
    .m8y-disclosure-page { width: auto; margin: 0; padding: 28px 18px 44px; }
    .m8y-disclosure-lead { padding-bottom: 30px; }
    .m8y-disclosure-folio { margin-bottom: 17px; }
    .m8y-disclosure-folio span { max-width: 75%; font-size: 9px; line-height: 1.35; }
    .m8y-disclosure-folio code { font-size: 8px; }
    .m8y-disclosure-lead h2 { font-size: clamp(31px, 10vw, 42px); line-height: .98; }
    .m8y-disclosure-lead > p { margin-top: 15px; font-size: 13px; line-height: 1.58; }
    .m8y-disclosure-lead-rule { margin-top: 25px; }
    .m8y-disclosure-copy { padding-top: 34px; }
    .m8y-disclosure-section { margin-bottom: 38px; padding-left: 36px; }
    .m8y-disclosure-section::before { font-size: 9px; }
    .m8y-disclosure-section h3 { margin-bottom: 13px; font-size: 21px; }
    .m8y-disclosure-section p,
    .m8y-disclosure-section li { font-size: 13.5px; line-height: 1.74; }
    .m8y-disclosure-confirmations { padding: 21px 16px; }
    .m8y-disclosure-confirm-head h3 { font-size: 23px; }
    .m8y-disclosure-acks label { padding: 13px 12px; font-size: 11px; }
    .m8y-disclosure-end-marker { grid-template-columns: auto 1fr; margin-top: 45px; }
    .m8y-disclosure-end-marker small { grid-column: 1 / -1; }
    .m8y-disclosure-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 9px; }
    .m8y-disclosure-scroll-hint { gap: 7px; }
    .m8y-disclosure-scroll-hint > .material-icons-round { width: 25px; height: 25px; font-size: 14px; }
    .m8y-disclosure-scroll-hint small { display: none; }
    .m8y-disclosure-actions { gap: 6px; }
    .m8y-disclosure-actions button { min-height: 39px; padding: 0 10px; }
    .m8y-disclosure-cancel { min-width: 70px; }
    .m8y-disclosure-accept { min-width: 0; width: min(46vw, 190px); }
    .m8y-disclosure-accept > span:first-child { max-width: 142px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 390px) {
    .m8y-disclosure-toolbar-title { display: none; }
    .m8y-disclosure-toolbar { grid-template-columns: 1fr auto; }
    .m8y-disclosure-scroll-hint div { display: none; }
    .m8y-disclosure-foot { grid-template-columns: 27px 1fr; }
    .m8y-disclosure-actions button { flex: 1; }
    .m8y-disclosure-accept { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .m8y-disclosure-scroll-hint > .material-icons-round { animation: none; }
}
