:root {
  color-scheme: light;
  --portal-ink: #17352d;
  --portal-muted: #687c73;
  --portal-green: #07866c;
  --portal-green-dark: #056b57;
  --portal-line: #e1eae5;
  --portal-soft: #f4f8f6;
  --portal-shadow: 0 24px 70px rgba(21, 60, 44, .09), 0 3px 12px rgba(21, 60, 44, .035);
}

* { box-sizing: border-box; }
.account-body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 8% 25%, rgba(218, 241, 231, .46), transparent 35%), #f4f7f5; color: var(--portal-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.account-body button, .account-body input { font: inherit; }
.account-body button:focus-visible, .account-body a:focus-visible, .account-body input:focus-visible, .account-body summary:focus-visible { outline: 3px solid rgba(7, 134, 108, .27); outline-offset: 3px; }
.account-header { position: relative; z-index: 1; border-bottom: 1px solid rgba(220, 234, 228, .85); background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); }
.account-header-inner { width: min(1220px, calc(100% - 56px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-brand { display: inline-flex; align-items: center; border-radius: 8px; }
.account-brand img { display: block; width: 176px; height: 60px; object-fit: contain; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: #486057; font-size: 13px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.back-link:hover { color: var(--portal-green); }
.back-link svg, .account-body svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-link svg { width: 18px; height: 18px; }
.account-main { flex: 1; width: min(1220px, calc(100% - 56px)); margin: 46px auto 64px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(390px, .88fr); align-items: stretch; gap: 26px; }
.portal-story { position: relative; display: flex; min-height: 660px; flex-direction: column; overflow: hidden; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(12, 58, 44, .14); border-radius: 26px; color: #fff; background: radial-gradient(ellipse at 83% 8%, rgba(86, 172, 134, .34), transparent 38%), linear-gradient(145deg, #103b30 0%, #0b2b24 52%, #09241f 100%); box-shadow: 0 28px 80px rgba(11, 47, 37, .16); }
.portal-story::after { position: absolute; right: -112px; bottom: 64px; width: 310px; height: 310px; border: 1px solid rgba(186, 236, 208, .1); border-radius: 50%; content: ""; pointer-events: none; }
.story-topline { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; color: #d4ebe0; font-size: 10px; font-weight: 750; letter-spacing: 1.25px; }
.story-topline i { margin: 0 2px; color: #71c69e; font-style: normal; }
.story-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(202, 239, 218, .3); border-radius: 9px; color: #bce9cc; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.story-copy { position: relative; z-index: 1; margin: 56px 0 28px; }
.story-eyebrow, .section-eyebrow { margin: 0 0 12px; color: #6ebd96; font-size: 10px; font-weight: 800; letter-spacing: 1.45px; text-transform: uppercase; }
.story-copy h2 { max-width: 470px; margin: 0; color: #fff; font-size: clamp(32px, 4vw, 49px); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.story-copy>p:last-child { max-width: 390px; margin: 17px 0 0; color: #bdd0c8; font-size: 14px; line-height: 1.75; }
.story-preview { position: relative; z-index: 1; overflow: hidden; margin-top: auto; border: 1px solid rgba(220, 242, 229, .2); border-radius: 17px; background: #173c32; box-shadow: 0 18px 36px rgba(0, 0, 0, .2); transform: perspective(1100px) rotateX(2deg) rotateY(-3deg); transition: transform .3s ease, box-shadow .3s ease; }
.story-preview:hover { transform: perspective(1100px) rotateX(0) rotateY(0) translateY(-3px); box-shadow: 0 23px 42px rgba(0, 0, 0, .25); }
.story-preview img { display: block; width: 100%; height: 258px; object-fit: cover; object-position: center; }
.preview-caption { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 0 15px; color: #d2e2db; font-size: 11px; }
.preview-dot, .purchase-badge i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #45c18a; box-shadow: 0 0 0 4px rgba(69, 193, 138, .12); }
.story-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.story-foot span { padding: 7px 11px; border: 1px solid rgba(208, 235, 218, .15); border-radius: 999px; color: #b8cec4; font-size: 10px; }

.login-panel { align-self: center; padding: clamp(30px, 4.2vw, 52px); border: 1px solid rgba(218, 230, 223, .95); border-radius: 25px; background: #fff; box-shadow: var(--portal-shadow); }
.login-heading .section-eyebrow, .dashboard-heading .section-eyebrow, .install-title-row .section-eyebrow { color: var(--portal-green); }
.login-heading h1, .dashboard-heading h1 { margin: 0; color: var(--portal-ink); font-size: clamp(31px, 3.8vw, 41px); font-weight: 680; letter-spacing: -.045em; line-height: 1.12; }
.login-heading>p:last-child { margin: 12px 0 0; color: var(--portal-muted); font-size: 14px; line-height: 1.7; }
.account-form { display: grid; gap: 19px; margin-top: 30px; }
.field-group { display: grid; gap: 8px; min-width: 0; }
.field-group label { color: #344e44; font-size: 12px; font-weight: 700; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-group input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #d8e3dd; border-radius: 11px; outline: none; background: #fbfdfc; color: var(--portal-ink); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field-group input::placeholder { color: #9aaba3; }
.field-group input:hover { border-color: #bbcec4; }
.field-group input:focus { border-color: var(--portal-green); background: #fff; box-shadow: 0 0 0 4px rgba(7, 134, 108, .09); }
.field-hint { color: #82938a; font-size: 11px; }
.password-field { position: relative; }
.password-field input { padding-right: 49px; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #81948a; cursor: pointer; transform: translateY(-50%); transition: color .18s ease, background .18s ease; }
.password-toggle:hover { background: #eef5f1; color: var(--portal-green-dark); }
.eye-icon { width: 18px; height: 18px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: var(--portal-green); font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--portal-green-dark); text-decoration: underline; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 51px; padding: 0 17px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 750; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary-button { margin-top: 3px; background: linear-gradient(135deg, #0a9072, #06765f); color: white; box-shadow: 0 9px 18px rgba(7, 134, 108, .18); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(135deg, #07866c, #056b57); box-shadow: 0 12px 22px rgba(7, 134, 108, .22); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .7; }
.primary-button>svg { width: 18px; height: 18px; }
.button-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: account-spin .8s linear infinite; }
.secondary-button { border: 1px solid #cbdcd2; background: #f7faf8; color: #315547; }
.secondary-button:hover:not(:disabled) { border-color: #a8c7b7; background: #eff7f2; }
.inline-feedback { margin: 15px 0 0; color: var(--portal-green-dark); font-size: 12px; line-height: 1.6; }
.inline-feedback.error, .account-notice.error, .download-feedback.error { color: #a8322c; }
.account-notice { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #cce6d8; border-radius: 12px; background: #f1faf5; color: #176447; font-size: 13px; line-height: 1.55; }
.account-notice.error { border-color: #f2d0cc; background: #fff7f6; }
.recovery-panel { margin-top: 24px; padding-top: 19px; border-top: 1px solid #edf1ee; }
.recovery-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #52675e; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.recovery-panel summary::-webkit-details-marker { display: none; }
.recovery-panel summary svg { width: 17px; height: 17px; color: #82958b; transition: transform .18s ease; }
.recovery-panel[open] summary svg { transform: rotate(180deg); }
.recovery-content>p { margin: 12px 0; color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.recovery-form { gap: 13px; margin-top: 15px; }
.recovery-form .field-group input { min-height: 44px; font-size: 13px; }
.recovery-form .secondary-button { min-height: 45px; }
.login-assurance { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: #8a9a92; font-size: 10px; }
.login-assurance svg { width: 17px; height: 17px; color: #63a586; }

.customer-dashboard { padding: 12px 0 0; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 31px; }
.dashboard-heading .section-eyebrow { margin-bottom: 10px; }
.dashboard-heading h1 { font-size: clamp(30px, 4vw, 42px); }
.dashboard-subtitle { margin: 10px 0 0; color: var(--portal-muted); font-size: 14px; line-height: 1.6; }
.account-identity { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 10px 9px 9px; border: 1px solid #e1e9e4; border-radius: 14px; background: rgba(255,255,255,.85); }
.identity-avatar { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border: 1px solid #cfe6da; border-radius: 12px; background: #eaf6ef; color: var(--portal-green-dark); font-size: 14px; font-weight: 800; }
.identity-copy { display: grid; min-width: 0; gap: 3px; }
.identity-copy strong { overflow: hidden; color: #304d40; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy span { overflow: hidden; max-width: 220px; color: #819188; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.signout-button { display: grid; width: 34px; height: 34px; flex: none; place-items: center; margin-left: 5px; border: 0; border-radius: 9px; background: transparent; color: #70867a; cursor: pointer; transition: background .18s ease, color .18s ease; }
.signout-button:hover { background: #fcefed; color: #a8322c; }
.signout-button svg { width: 18px; height: 18px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); align-items: stretch; gap: 22px; }
.product-card, .install-card, .no-purchase-card { border: 1px solid #e0e9e3; border-radius: 21px; background: #fff; box-shadow: 0 14px 38px rgba(22, 58, 43, .055); }
.product-card { position: relative; overflow: hidden; padding: clamp(24px, 3.4vw, 38px); background: radial-gradient(ellipse at 100% 0, rgba(227, 246, 235, .84), transparent 40%), #fff; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-icon, .install-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border: 1px solid #d3e9dc; border-radius: 15px; background: #edf8f1; color: var(--portal-green); }
.product-icon svg, .install-icon svg { width: 24px; height: 24px; }
.purchase-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d6eddf; border-radius: 999px; background: #f4fbf6; color: #3b745a; font-size: 9px; font-weight: 800; letter-spacing: .7px; }
.purchase-badge i { width: 6px; height: 6px; box-shadow: none; }
.product-card-copy { margin: 35px 0 25px; }
.product-label { margin: 0 0 9px; color: #719181; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.product-card-copy h2 { margin: 0; color: var(--portal-ink); font-size: clamp(28px, 4vw, 37px); font-weight: 700; letter-spacing: -.04em; }
.product-card-copy>p:last-child { max-width: 510px; margin: 12px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.75; }
.download-button { min-height: 56px; font-size: 14px; }
.download-button svg { width: 21px; height: 21px; }
.download-progress-wrap { margin-top: 19px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #597268; font-size: 11px; }
.progress-label span:last-child { color: var(--portal-green-dark); font-weight: 700; }
.download-progress-wrap progress { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: #eaf1ed; accent-color: var(--portal-green); }
.download-progress-wrap progress::-webkit-progress-bar { border-radius: 999px; background: #eaf1ed; }
.download-progress-wrap progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #0a9a76, #64bd8c); transition: width .16s ease; }
.download-progress-wrap progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #0a9a76, #64bd8c); }
.download-feedback { margin: 12px 0 0; color: #246b4f; font-size: 11px; line-height: 1.6; }
.product-footnote { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e8efea; color: #82948a; font-size: 10px; line-height: 1.6; }
.install-card { padding: clamp(22px, 3vw, 30px); }
.install-title-row { display: flex; align-items: center; gap: 13px; }
.install-title-row .section-eyebrow { margin-bottom: 5px; font-size: 9px; }
.install-title-row h2 { margin: 0; color: var(--portal-ink); font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.install-icon { width: 43px; height: 43px; border-radius: 13px; }
.install-icon svg { width: 22px; height: 22px; }
.install-steps { display: grid; gap: 20px; margin: 28px 0 24px; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: start; gap: 11px; }
.install-steps li>span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #dce9e1; border-radius: 9px; background: #f5f9f6; color: #51806a; font-size: 10px; font-weight: 800; }
.install-steps p { margin: 0; color: #75867e; font-size: 11px; line-height: 1.65; }
.install-steps strong { color: #365448; font-size: 11px; }
.offline-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid #e0eee5; border-radius: 12px; background: #f5faf6; color: #607a6e; font-size: 10px; line-height: 1.6; }
.offline-note svg { width: 17px; height: 17px; flex: none; color: #4b9a73; }
.no-purchase-card { display: flex; align-items: flex-start; gap: 15px; max-width: 720px; padding: 25px; }
.no-purchase-icon { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 10px; background: #f3f7f4; color: #688274; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.no-purchase-card h2 { margin: 1px 0 7px; color: #28463a; font-size: 16px; }
.no-purchase-card p { margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.7; }
.account-footer { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 68px; padding: 16px 24px; border-top: 1px solid rgba(220, 234, 228, .8); color: #87958e; font-size: 10px; }
.account-footer a { color: #6d8478; text-decoration: none; transition: color .18s ease; }
.account-footer a:hover { color: var(--portal-green); text-decoration: underline; }
[hidden] { display: none !important; }
@keyframes account-spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
  .account-main { width: min(720px, calc(100% - 40px)); margin-top: 30px; }
  .portal-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .portal-story { min-height: unset; padding: 29px; }
  .story-copy { margin: 30px 0 22px; }
  .story-copy h2 { max-width: 550px; font-size: 36px; }
  .story-preview img { height: 230px; }
  .story-foot { margin-top: 16px; }
  .login-panel { width: 100%; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .install-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .install-steps li { grid-template-columns: 25px minmax(0,1fr); }
}
@media (max-width: 600px) {
  .account-header-inner { width: calc(100% - 32px); min-height: 67px; }
  .account-brand img { width: 145px; height: 52px; }
  .back-link { gap: 4px; font-size: 11px; }
  .back-link svg { width: 16px; height: 16px; }
  .account-main { width: calc(100% - 28px); margin: 19px auto 36px; }
  .portal-story { padding: 22px; border-radius: 20px; }
  .story-copy { margin: 24px 0 19px; }
  .story-copy h2 { font-size: 31px; }
  .story-copy>p:last-child { margin-top: 11px; font-size: 12px; }
  .story-preview { border-radius: 13px; transform: none; }
  .story-preview:hover { transform: none; }
  .story-preview img { height: 175px; }
  .preview-caption { min-height: 39px; font-size: 10px; }
  .story-foot { gap: 6px; }
  .story-foot span { padding: 6px 9px; font-size: 9px; }
  .login-panel { padding: 26px 21px; border-radius: 20px; }
  .login-heading h1 { font-size: 32px; }
  .account-form { gap: 16px; margin-top: 24px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 21px; }
  .account-identity { width: 100%; }
  .identity-copy { flex: 1; }
  .identity-copy span { max-width: none; }
  .product-card, .install-card { padding: 21px; border-radius: 18px; }
  .product-card-top { align-items: flex-start; }
  .product-icon { width: 42px; height: 42px; }
  .purchase-badge { gap: 7px; padding: 7px 8px; font-size: 8px; }
  .product-card-copy { margin: 27px 0 21px; }
  .product-card-copy h2 { font-size: 31px; }
  .product-card-copy>p:last-child { font-size: 12px; }
  .download-button { min-height: 53px; font-size: 12px; }
  .install-steps { grid-template-columns: minmax(0,1fr); gap: 16px; margin: 22px 0; }
  .account-footer { flex-wrap: wrap; gap: 10px 17px; min-height: 58px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
