@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400..700&display=swap');

:root { font-family: 'DM Sans', Arial, sans-serif; color: #173c30; background: #f9f6ee; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #a87955; outline-offset: 3px; }
.library-container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.library-skip { position: absolute; z-index: 20; left: 20px; top: -80px; padding: 12px 16px; border-radius: 8px; background: white; }
.library-skip:focus { top: 15px; }
.library-header { border-bottom: 1px solid #dce5d8; background: #fffdf8; }
.library-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.library-brand { display: inline-flex; align-items: center; color: #173c30; font-family: 'Fraunces', Georgia, serif; font-size: 27px; font-weight: 700; letter-spacing: -.06em; line-height: 1; text-decoration: none; }
.library-brand > span:first-child { margin-right: 7px; color: #802b43; font-family: Georgia, serif; font-size: 27px; font-weight: 400; letter-spacing: 0; }
.library-brand-dot { color: #802b43; }
.library-header-link, .library-nav { color: #365646; font-size: 13px; font-weight: 700; }
.library-header-link { text-decoration: none; }
.library-header-link span { margin-left: 5px; }
.library-nav { display: flex; align-items: center; gap: 28px; }
.library-nav a { text-decoration: none; }
.library-nav a:hover, .library-header-link:hover { color: #802b43; }
.library-nav form { margin: 0; }
.library-nav button { padding: 10px 14px; border: 1px solid #cddccf; border-radius: 7px; background: transparent; color: #365646; font-size: 12px; font-weight: 700; cursor: pointer; }
.library-nav button:hover { background: #f1f5ed; }
.library-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: #a77043; font-size: 11px; font-weight: 800; letter-spacing: .17em; line-height: 1.4; }
.library-kicker > span { width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; letter-spacing: -.045em; }

.library-auth { position: relative; min-height: calc(100vh - 140px); overflow: hidden; background: radial-gradient(circle at 3% 45%, #e6eddf 0, transparent 32%), radial-gradient(circle at 95% 8%, #f4ead7 0, transparent 26%), #f9f6ee; }
.library-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 455px); gap: clamp(45px, 7vw, 110px); align-items: center; padding-block: clamp(70px, 9vw, 120px); }
.library-auth-intro h1 { max-width: 590px; margin: 23px 0 23px; font-size: clamp(48px, 5.2vw, 69px); font-weight: 500; line-height: 1.08; }
.library-auth-intro h1 em { color: #802b43; font-style: normal; }
.library-auth-intro > p:not(.library-kicker) { max-width: 530px; color: #53685a; font-size: 16px; line-height: 1.8; }
.library-benefits { display: grid; gap: 19px; margin-top: 37px; }
.library-benefits > div { display: flex; align-items: flex-start; gap: 14px; }
.library-benefits > div > span { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: #dcebd9; color: #276349; font-size: 12px; font-weight: 800; }
.library-benefits p { display: grid; gap: 4px; margin: 0; }
.library-benefits strong { color: #274c39; font-size: 14px; }
.library-benefits small { color: #718174; font-size: 12px; line-height: 1.5; }
.library-auth-card { padding: clamp(28px, 4vw, 42px); border: 1px solid #dce5da; border-radius: 16px; background: #fffdf8; box-shadow: 0 25px 60px #173c3014; }
.library-card-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 31px; border-radius: 10px; background: #e9efe4; color: #802b43; font-family: Georgia, serif; font-size: 28px; }
.library-auth-card h2 { margin: 12px 0 12px; font-size: 34px; font-weight: 600; line-height: 1.18; }
.library-auth-card > p:not(.library-kicker):not(.library-form-note) { margin-bottom: 28px; color: #53685a; font-size: 14px; line-height: 1.7; }
.library-form { display: grid; gap: 11px; }
.library-form label { color: #365646; font-size: 13px; font-weight: 700; }
.library-form input[type="email"] { width: 100%; height: 52px; padding: 12px 15px; border: 1px solid #cbd9ca; border-radius: 8px; background: #fff; color: #173c30; font-size: 14px; }
.library-form input::placeholder { color: #97a89a; }
.library-button { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; margin-top: 7px; padding: 13px 17px; border: 0; border-radius: 8px; background: #173c30; color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.library-button:hover { background: #285845; transform: translateY(-2px); }
.library-button span { font-size: 20px; font-weight: 400; line-height: 0; }
.library-form-note { margin: 17px 0 0; color: #7c8d7d; font-size: 12px; line-height: 1.6; }
.library-message { margin-bottom: 21px; padding: 13px 15px; border: 1px solid #d5e4d3; border-radius: 8px; background: #f1f7ef; color: #295c40; font-size: 13px; line-height: 1.6; }

.library-dashboard { padding: 44px 0 100px; background: #f9f6ee; }
.library-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; min-height: 276px; padding: clamp(31px, 5vw, 55px); border-radius: 16px; background: radial-gradient(circle at 94% 15%, #32644b 0, transparent 35%), #173c30; color: white; }
.library-hero .library-kicker { color: #dfbd85; }
.library-hero h1 { margin: 16px 0 12px; font-size: clamp(37px, 4.5vw, 57px); font-weight: 500; line-height: 1.1; }
.library-hero > div:first-child > p:not(.library-kicker) { max-width: 610px; margin-bottom: 19px; color: #d2e1d2; font-size: 14px; line-height: 1.75; }
.library-account { color: #b7d3be; font-size: 12px; }
.library-account strong { margin-left: 5px; color: white; overflow-wrap: anywhere; }
.library-hero-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 11px 17px; border-radius: 8px; background: #fffdf8; color: #173c30; font-size: 12px; font-weight: 800; text-decoration: none; }
.library-hero-link:hover { background: #ecf2e8; }
.library-overview { display: flex; flex: none; gap: 11px; }
.library-overview > div { display: grid; align-content: center; min-width: 105px; min-height: 95px; padding: 15px; border: 1px solid #ffffff3d; border-radius: 10px; background: #ffffff0d; }
.library-overview strong { font-family: 'Fraunces', Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1; }
.library-overview span { margin-top: 7px; color: #bfd8c3; font-size: 11px; }
.library-section { scroll-margin-top: 25px; margin-top: 68px; }
.library-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.library-section-heading h2 { margin: 9px 0 0; font-size: clamp(31px, 3.5vw, 42px); font-weight: 500; line-height: 1.1; }
.library-section-heading > p { max-width: 285px; margin: 0 0 4px; color: #6d806f; font-size: 13px; line-height: 1.6; text-align: right; }
.library-heading-count { color: #8ba08d; font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.library-quick-access { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 25px; border: 1px solid #dfe8dc; border-radius: 13px; background: #fffdf8; box-shadow: 0 9px 25px #173c3008; }
.library-quick-access > div:nth-child(2) { min-width: 0; margin-right: auto; }
.library-quick-access h2 { margin: 5px 0 3px; font-size: 24px; font-weight: 600; }
.library-quick-access p:last-child { margin: 0; color: #637669; font-size: 12px; }
.library-quick-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: #e9efe4; color: #245b42; font-size: 26px; }
.library-primary-link, .library-secondary-link { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 42px; padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.library-primary-link { background: #173c30; color: white; }
.library-primary-link:hover { background: #285845; }
.library-secondary-link { border: 1px solid #cddccf; color: #245b42; }
.library-secondary-link:hover { background: #f0f4ec; }
.library-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.library-owned-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #dfe8dc; border-radius: 13px; background: #dfe8dc; }
.library-owned-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; min-height: 82px; padding: 15px 18px; background: #fffdf8; }
.library-owned-info { display: grid; gap: 4px; min-width: 0; }
.library-owned-info > a { color: #173c30; font-size: 13px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.library-owned-info > a:hover { color: #802b43; text-decoration: underline; }
.library-owned-info small { overflow: hidden; color: #718674; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.library-owned-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 7px 10px; border-radius: 7px; background: #e9efe9; color: #245b42; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.library-owned-open:hover { background: #dce9da; }
.library-product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dfe8dc; border-radius: 13px; background: #fffdf8; box-shadow: 0 9px 25px #173c3008; }
.library-card-art { display: flex; flex-direction: column; justify-content: space-between; min-height: 154px; padding: 19px 22px; background: radial-gradient(circle at 85% 0%, #9bb89a 0, transparent 45%), linear-gradient(135deg, #2c6049, #173c30); color: #fffdf8; }
.library-card-art span { color: #dfbd85; font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.library-card-art strong { max-width: 200px; font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.1; }
.library-card-art[data-product="prod_christmas_savings"] { background: radial-gradient(circle at 85% 0%, #d6aa9f 0, transparent 45%), linear-gradient(135deg, #a45566, #802b43); }
.library-card-art[data-product="prod_money_reset"], .library-card-art[data-product="prod_money_reset_lite"] { background: radial-gradient(circle at 85% 0%, #e6cda2 0, transparent 45%), linear-gradient(135deg, #a77043, #644b36); }
.library-product-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 21px 23px 24px; }
.library-product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.library-product-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 10px; background: #e9efe4; color: #215c41; font-family: 'Fraunces', Georgia, serif; font-size: 24px; }
.library-product-card:nth-child(even) .library-product-icon { background: #f2e8df; color: #802b43; }
.library-product-type { padding: 6px 9px; border: 1px solid #dbe7d9; border-radius: 99px; color: #55735b; font-size: 9px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.library-product-label { margin: 23px 0 7px; color: #a77043; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.library-product-card h3 { margin: 17px 0 9px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.library-product-content > p { margin-bottom: 22px; color: #637669; font-size: 12px; line-height: 1.65; }
.library-product-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid #e6ece4; }
.library-product-button { display: inline-flex; align-items: center; gap: 8px; color: #245b42; font-size: 13px; font-weight: 800; text-decoration: none; }
.library-product-button:hover { color: #802b43; }
.library-product-button span { font-size: 17px; font-weight: 400; }
.library-unavailable { color: #7d8f80; font-size: 12px; }
.library-owned-badge { color: #286847; font-size: 11px; font-weight: 800; white-space: nowrap; }
.library-recommend-price { color: #173c30; font-size: 15px; white-space: nowrap; }
.library-included-grid { display: grid; gap: 12px; }
.library-included-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 17px 20px; border: 1px solid #dfe8dc; border-radius: 11px; background: #fffdf8; }
.library-included-card > div { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.library-included-card strong { font-size: 13px; overflow-wrap: anywhere; }
.library-included-card small { color: #718674; font-size: 11px; line-height: 1.4; }
.library-included-card a { color: #245b42; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.library-included-card a:hover { color: #802b43; }
.library-file-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 9px; background: #e9efe4; color: #245b42; font-size: 17px; font-weight: 800; }
.library-back { display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 26px; color: #42654d; font-size: 12px; font-weight: 800; text-decoration: none; }
.library-back:hover { color: #802b43; }
.library-detail-hero { display: grid; grid-template-columns: minmax(245px, .85fr) minmax(0, 1.15fr); gap: clamp(25px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 42px); border: 1px solid #dfe8dc; border-radius: 16px; background: #fffdf8; }
.library-detail-art { display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 29px; border-radius: 12px; background: radial-gradient(circle at 85% 0%, #9bb89a 0, transparent 45%), linear-gradient(135deg, #2c6049, #173c30); color: white; }
.library-detail-art[data-product="prod_christmas_savings"] { background: radial-gradient(circle at 85% 0%, #d6aa9f 0, transparent 45%), linear-gradient(135deg, #a45566, #802b43); }
.library-detail-art[data-product="prod_money_reset"], .library-detail-art[data-product="prod_money_reset_lite"] { background: radial-gradient(circle at 85% 0%, #e6cda2 0, transparent 45%), linear-gradient(135deg, #a77043, #644b36); }
.library-detail-art-mark { align-self: flex-end; color: #dfbd85; font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.library-detail-art > span:nth-child(2) { color: #e9cfaa; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.library-detail-art strong { max-width: 360px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 3.2vw, 45px); font-weight: 500; line-height: 1.08; }
.library-detail-copy h1 { margin: 13px 0 14px; font-size: clamp(34px, 3.9vw, 51px); font-weight: 500; line-height: 1.12; }
.library-detail-copy > p:not(.library-kicker) { max-width: 500px; margin-bottom: 25px; color: #637669; font-size: 14px; line-height: 1.7; }
.library-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.library-detail-section { margin-top: 55px; }
.library-download-list { overflow: hidden; border: 1px solid #dfe8dc; border-radius: 12px; background: #fffdf8; }
.library-download-row { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 21px; }
.library-download-row + .library-download-row { border-top: 1px solid #e6ece4; }
.library-download-row > div { display: grid; gap: 5px; min-width: 0; margin-right: auto; }
.library-download-row strong { font-size: 13px; overflow-wrap: anywhere; }
.library-download-row small { color: #718674; font-size: 11px; }
.library-download-row a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 7px; background: #e9efe9; color: #245b42; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.library-download-row a:hover { background: #dce9da; }
.library-orders-section { margin-top: 75px; }
.library-orders { display: grid; gap: 12px; }
.library-order { overflow: hidden; border: 1px solid #dfe8dc; border-radius: 11px; background: #fffdf8; }
.library-order summary { display: flex; align-items: center; gap: 24px; min-height: 77px; padding: 17px 24px; cursor: pointer; list-style: none; }
.library-order summary::-webkit-details-marker { display: none; }
.library-order-name { display: grid; gap: 5px; margin-right: auto; }
.library-order-name strong { font-size: 14px; }
.library-order-name small { color: #788b7c; font-size: 12px; }
.library-order-status { padding: 5px 9px; border-radius: 99px; background: #e6f1e5; color: #2d6a45; font-size: 10px; font-weight: 800; }
.library-order-total { color: #173c30; font-size: 15px; font-weight: 800; white-space: nowrap; }
.library-order-total small { color: #788b7c; font-size: 10px; font-weight: 600; }
.library-order-chevron { display: grid; place-items: center; width: 24px; height: 24px; color: #668170; font-size: 22px; transition: transform .2s; }
.library-order[open] .library-order-chevron { transform: rotate(180deg); }
.library-order-details { padding: 2px 24px 22px; border-top: 1px solid #e6ece4; }
.library-order-detail-head, .library-order-line, .library-order-paid { display: flex; justify-content: space-between; gap: 20px; }
.library-order-detail-head { padding: 17px 0 6px; color: #91a094; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.library-order-line { align-items: flex-start; padding: 11px 0; color: #45604d; font-size: 13px; }
.library-order-line > span { display: grid; gap: 4px; min-width: 0; }
.library-order-line > span strong { color: #173c30; font-weight: 700; overflow-wrap: anywhere; }
.library-order-line small { color: #8b9d8c; font-size: 11px; }
.library-order-line > strong { color: #173c30; white-space: nowrap; }
.library-order-paid { margin-top: 9px; padding-top: 16px; border-top: 1px solid #e6ece4; font-size: 14px; font-weight: 800; }
.library-receipt-note { margin: 17px 0 0; color: #718674; font-size: 11px; line-height: 1.5; }
.library-receipt-note a { color: #245b42; font-weight: 800; }
.library-empty { padding: 28px; border: 1px dashed #ccd9ca; border-radius: 10px; background: #fffdf8; color: #607568; font-size: 14px; }
.library-footer { border-top: 1px solid #dce5d8; background: #fffdf8; }
.library-footer .library-container { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: #78907c; font-size: 11px; }

@media (max-width: 850px) {
  .library-auth-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
  .library-auth-intro { max-width: 680px; }
  .library-auth-card { max-width: 560px; }
  .library-hero { align-items: flex-start; flex-direction: column; }
  .library-overview { width: 100%; }
  .library-overview > div { min-width: 0; flex: 1; }
  .library-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-owned-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .library-container { width: min(100% - 32px, 1120px); }
  .library-header-inner { min-height: 68px; }
  .library-brand { font-size: 23px; }
  .library-header-link { font-size: 11px; }
  .library-nav { gap: 13px; }
  .library-nav a { font-size: 11px; }
  .library-nav a:first-child { display: none; }
  .library-nav button { padding: 8px 10px; }
  .library-auth-grid { padding-block: 45px 65px; }
  .library-auth-intro h1 { font-size: clamp(42px, 10vw, 56px); }
  .library-benefits { margin-top: 28px; }
  .library-dashboard { padding-top: 19px; }
  .library-hero { gap: 25px; padding: 28px 24px; }
  .library-product-grid { grid-template-columns: 1fr; }
  .library-quick-access { align-items: flex-start; flex-wrap: wrap; padding: 19px; }
  .library-quick-access .library-primary-link { width: 100%; }
  .library-detail-hero { grid-template-columns: 1fr; }
  .library-detail-art { min-height: 190px; }
  .library-detail-actions > a { flex: 1; }
  .library-download-row, .library-included-card { flex-wrap: wrap; }
  .library-download-row a, .library-included-card a { margin-left: 56px; }
  .library-section { margin-top: 51px; }
  .library-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .library-section-heading > p { text-align: left; }
  .library-product-card { min-height: 0; }
  .library-footer .library-container { flex-direction: column; gap: 5px; }
}
@media (max-width: 450px) {
  .library-owned-row { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .library-owned-open { grid-column: 2; justify-self: start; }
}
