* { box-sizing: border-box; }
body { margin: 0; background: #f5f9fa; color: #123554; font: 16px/1.6 Inter,system-ui,sans-serif; }
header { background: white; border-bottom: 1px solid #d8e7ec; }
.account-nav { max-width: 1280px; margin: auto; padding: 12px clamp(16px,4vw,48px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.account-brand { min-width:0; }
.account-brand img { display:block; width:clamp(108px,17vw,174px); max-width:100%; height:auto; }
main { max-width: 590px; margin: clamp(30px,8vw,100px) auto; padding: 0 16px; }
article { background: white; border: 1px solid #d8e7ec; border-radius: 18px; padding: clamp(22px,5vw,42px); }
h1 { font-size: clamp(28px,5vw,40px); line-height: 1.15; margin: 0; }
#google-signin { min-height: 44px; margin-top: 22px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
footer a { color: #006e75; }
.account-email { overflow-wrap:anywhere; font-size:14px; color:#476576; margin:8px 0 0; }
.account-workspace { max-width:880px; margin-block:clamp(24px,5vw,64px); }
.account-workspace article { padding:clamp(20px,4vw,40px); }
.account-sections { display:flex; gap:4px; margin-top:24px; border-bottom:1px solid #ccdfe4; }
.account-sections a { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; min-height:44px; margin-bottom:-1px; border-bottom:3px solid transparent; color:#476576; font-weight:650; text-decoration:none; }
.account-sections a svg { flex:none; }
.account-sections a:is(:hover,:focus-visible) { color:#005c65; background:#f2f9f9; }
.account-sections a[aria-current="page"] { color:#006970; background:#edf7f7; border-color:#007d83; border-radius:8px 8px 0 0; }
.report-library { margin:24px 0 0; }
.report-library h2 { margin:0 0 16px; color:#123554; font-size:22px; line-height:1.3; }
.report-library .account-empty { padding:18px 20px; background:#f5f9fa; border-radius:10px; color:#476576; }
.report-library p { margin:6px 0 20px; }
.account-action { display:inline-flex; gap:10px; align-items:center; min-height:44px; text-decoration:none; color:#fff; background:#006f74; font-weight:650; border-radius:8px; padding:9px 18px; }
.account-action:hover { background:#005a61; }
.account-action { border:0; font:inherit; font-weight:650; cursor:pointer; }
.account-action:disabled { opacity:.65; cursor:wait; }
.library-files,.purchase-history { list-style:none; padding:0; }
.library-files li,.purchase-history li { display:grid; gap:8px; padding:18px 0; border-bottom:1px solid #d8e7ec; }
.library-files .account-action { justify-self:start; }
.library-files span,.purchase-history span,.account-note { color:#476576; font-size:14px; }
.library-files .report-period { color:#123554; font-weight:600; }
.library-files { display:grid; gap:12px; }
.library-files li { border:1px solid #d8e7ec; border-radius:12px; padding:clamp(16px,3vw,24px); }
.purchase-history { margin:0; }
.purchase-history li { grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px 20px; }
.purchase-history li:first-child { padding-top:4px; }
.purchase-history li:last-child { border-bottom:0; padding-bottom:0; }
.purchase-history time { display:block; margin-top:4px; color:#526b7c; font-size:13px; }
.purchase-history .access-until,.purchase-history .purchase-expired { display:block; margin-top:6px; }
.purchase-history .access-until time { display:inline; color:inherit; font:inherit; }
.purchase-history .purchase-expired { font-weight:600; color:#77551c; }
.purchase-renew,.report-library .account-empty a { display:inline-block; padding:8px 0; color:#006e75; }
.purchase-history .purchase-status { justify-self:start; max-width:20em; padding:3px 10px; border-radius:6px; font-size:13px; font-weight:600; color:#77551c; background:#faf2dd; }
.purchase-history [data-status="completed"] { color:#135b45; background:#e4f3eb; }
.purchase-history [data-status="revoked"] { color:#7b3941; background:#f7edef; }
.report-download-actions { display:flex; flex-wrap:wrap; align-items:center; gap:2px 20px; margin-top:4px; }
.report-download { display:inline-flex; justify-content:center; align-items:center; gap:9px; border:0; border-radius:9px; background:#006f74; color:#fff; min-height:46px; padding:11px 19px; font:600 14px/1.5 Inter,system-ui,sans-serif; text-decoration:none; }
.report-download:hover { filter:brightness(.94); }
.report-download svg { flex:none; width:18px; height:18px; }
.report-language-picker { position:relative; }
.report-language-picker summary { display:flex; align-items:center; gap:7px; min-height:44px; color:#476576; font-size:13px; cursor:pointer; list-style:none; }
.report-language-picker summary::-webkit-details-marker { display:none; }
.report-language-picker summary::after { content:''; width:6px; height:6px; border-right:1.5px solid; border-bottom:1.5px solid; transform:translateY(-2px) rotate(45deg); }
.report-language-picker[open] summary::after { transform:translateY(2px) rotate(225deg); }
.report-language-options { position:absolute; z-index:2; top:100%; right:0; min-width:150px; padding:5px; border:1px solid #d8e7ec; border-radius:10px; background:white; box-shadow:0 8px 24px #12355418; }
.report-language-options a { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:44px; padding:8px 12px; border-radius:5px; color:#123554; font-size:14px; text-decoration:none; cursor:pointer; }
.report-language-options a:hover,.report-language-options a[aria-pressed="true"] { background:#edf7f7; color:#006f74; }
.report-language-options a[aria-pressed="true"]::after { content:'✓'; }
.library-files .report-download-caption { font-size:13px; }
.report-download-caption [data-report-language] { font:inherit; }
.checkout-offer { margin-top:26px; }
.checkout-offer h2 { font-size:22px; line-height:1.3; }
.checkout-price { font-size:36px; font-weight:750; margin:18px 0 0; }
.checkout-format { font-size:14px; font-weight:650; margin:22px 0; }
.sandbox-note { background:#fff6d6; color:#614d15; padding:12px; border-radius:8px; font-size:14px; }
.library-link { display:block; color:#006e75; margin-top:20px; }
.payment-status:empty { display:none; }
@media(max-width:600px) {
  .account-sections a { flex:1; padding-inline:6px; gap:6px; font-size:14px; }
  .purchase-history li { grid-template-columns:1fr; }
  .account-nav { display:grid; grid-template-columns:minmax(58px,1fr) auto; gap:6px; }
  main { margin:32px auto; }
  .report-download-actions { align-items:flex-start; flex-direction:column; gap:0; }
  .report-language-options { left:0; right:auto; }
}
:focus-visible { outline: 3px solid #00878a; outline-offset: 3px; }
