:root {
  --teal: #006d79;
  --teal-dark: #004f59;
  --teal-soft: #e9f7f8;
  --green: #08a95b;
  --green-dark: #078c4d;
  --ink: #123e45;
  --muted: #647b80;
  --line: #dbeaec;
  --page: #f3fbfc;
  --white: #fff;
  --shadow: 0 20px 55px rgba(0, 72, 83, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--page); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.background-shape { position: fixed; z-index: -1; width: 370px; height: 370px; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.shape-one { top: -180px; right: -120px; background: #d6f0ef; }
.shape-two { bottom: -210px; left: -160px; background: #d8f4e7; }
.member-header { background: var(--teal-dark); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100% - 36px, 1080px); min-height: 76px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 38px; border-radius: 8px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; letter-spacing: .05em; }
.brand small { margin-top: 2px; color: #a8dce0; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.logout-button { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 9px 15px; background: transparent; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.logout-button:hover { background: rgba(255,255,255,.1); }
.page-shell { width: min(100% - 36px, 1080px); margin: 0 auto; padding: 54px 0 70px; }
.login-view { display: grid; place-items: center; min-height: 650px; }
.login-card { width: min(100%, 560px); padding: 42px 46px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); text-align: center; }
.card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 18px; background: var(--teal-soft); color: var(--teal); font-size: 29px; font-weight: 900; transform: rotate(-45deg); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--teal-dark); line-height: 1.08; }
h1 { margin-bottom: 16px; font-size: clamp(31px, 5vw, 46px); letter-spacing: -.04em; }
h2 { margin-bottom: 9px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.03em; }
h3 { margin-bottom: 9px; font-size: 23px; }
.lead { max-width: 460px; margin: 0 auto 28px; color: var(--muted); font-size: 16px; }
form { text-align: left; }
label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 900; }
input { width: 100%; min-height: 52px; border: 1px solid #c7dfe2; border-radius: 10px; padding: 0 15px; outline: none; background: #fbffff; color: var(--ink); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,109,121,.12); }
input[aria-invalid="true"] { border-color: #d82436; }
.form-error { margin: 8px 0 0; color: #c52032; font-size: 12px; font-weight: 800; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em; cursor: pointer; box-shadow: 0 8px 18px rgba(8,169,91,.22); transition: transform .2s ease, background .2s ease; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-2px); }
.login-note { display: flex; align-items: flex-start; gap: 9px; margin: 24px 0 8px; padding: 12px 13px; border-radius: 10px; background: #f2f8df; color: #59691f; text-align: left; font-size: 12px; font-weight: 800; }
.login-note span { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: #bfdb39; color: #41510d; font-size: 12px; font-weight: 900; }
.security-note { margin: 0; color: #829396; font-size: 11px; }
.member-view { padding-bottom: 12px; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; padding: 30px 34px; border-radius: 20px; background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #fff; box-shadow: var(--shadow); }
.welcome-card h1, .welcome-card p { color: #fff; }
.welcome-card h1 { margin-bottom: 8px; font-size: clamp(28px, 5vw, 43px); }
.welcome-card > div:first-child { max-width: 700px; }
.welcome-card .eyebrow { color: #a9e6e1; }
.welcome-card p:not(.eyebrow) { margin: 0; color: #d9f5f4; font-size: 15px; }
.welcome-meta { display: flex; align-items: center; flex-direction: column; gap: 10px; }
.member-plan { border-radius: 999px; padding: 7px 11px; background: var(--green); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.member-email { max-width: 260px; overflow: hidden; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 10px 15px; color: #fff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.download-section { padding: 8px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 280px; margin: 0 0 4px; color: var(--muted); font-size: 13px; text-align: right; }
.section-count { border-radius: 999px; padding: 7px 11px; background: #e4f6ed; color: var(--green-dark); font-size: 11px; font-weight: 900; white-space: nowrap; }
.download-featured { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 30px; margin-bottom: 44px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 11px 30px rgba(0,72,83,.08); }
.document-cover { display: flex; flex-direction: column; min-height: 245px; border-radius: 7px; padding: 17px 15px 13px; background: linear-gradient(145deg, #fcffff, #e7f0ef); box-shadow: 8px 10px 0 #d6e4e2, 0 14px 25px rgba(0,0,0,.12); color: var(--teal-dark); transform: rotate(-2deg); }
.document-cover span { font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.document-cover strong { margin-top: 20px; color: #ef4c36; font-size: 44px; line-height: .8; letter-spacing: -.08em; }
.document-cover b { margin-top: 8px; font-size: 19px; line-height: .95; }
.document-cover small { margin-top: 7px; color: var(--teal); font-size: 8px; font-weight: 900; }
.document-cover i { margin-top: auto; padding-top: 10px; border-top: 4px solid var(--teal-dark); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .03em; }
.file-type { margin: 0 0 7px; color: var(--green-dark); font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.featured-copy h3 { font-size: clamp(22px, 4vw, 31px); }
.featured-copy > p:not(.file-type) { max-width: 600px; color: var(--muted); font-size: 15px; }
.download-button { width: auto; min-width: 270px; padding: 0 18px; margin-top: 8px; }
.download-button span { margin-left: 11px; font-size: 18px; }
.file-note { display: block; margin-top: 9px; color: #849699; font-size: 11px; }
.parts-heading { margin-bottom: 15px; }
.downloads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.download-item { display: flex; align-items: center; gap: 11px; min-height: 72px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; background: #fff; box-shadow: 0 5px 15px rgba(0,72,83,.05); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.download-item:hover { border-color: #8accc2; box-shadow: 0 9px 20px rgba(0,72,83,.1); transform: translateY(-2px); }
.part-number { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 900; }
.download-item span:nth-child(2) { min-width: 0; }
.download-item strong, .download-item small { display: block; }
.download-item strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.download-item small { margin-top: 3px; color: #819397; font-size: 11px; }
.download-item > b { margin-left: auto; color: var(--green-dark); font-size: 21px; }
.member-footer-note { margin: 30px auto 0; color: #7d9094; font-size: 12px; text-align: center; }
footer { padding: 24px 18px 34px; border-top: 1px solid var(--line); background: #fff; color: #71868a; text-align: center; }
footer p { margin: 0 0 3px; color: var(--teal-dark); font-size: 12px; font-weight: 900; }
footer small { font-size: 11px; }
@media (max-width: 800px) {
  .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-inner, .page-shell { width: min(100% - 28px, 560px); }
  .header-inner { min-height: 68px; }
  .brand strong { font-size: 10px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 48px; height: 34px; font-size: 12px; }
  .logout-button { padding: 8px 10px; font-size: 11px; }
  .page-shell { padding-top: 28px; }
  .login-view { min-height: 650px; }
  .login-card { padding: 34px 21px; border-radius: 18px; }
  .welcome-card { align-items: flex-start; flex-direction: column; padding: 25px 21px; }
  .welcome-meta { align-items: flex-start; }
  .member-email { max-width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-heading > p { max-width: none; text-align: left; }
  .download-featured { grid-template-columns: 1fr; gap: 26px; padding: 20px; }
  .document-cover { width: 180px; margin: 0 auto; }
  .featured-copy { text-align: center; }
  .download-button { width: 100%; min-width: 0; }
  .downloads-grid { grid-template-columns: 1fr; }
}
