:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #202a2c; background: #f4f6f6; line-height: 1.6; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 960px; margin: 0 auto; padding: 0 32px 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid #dce3e3; }
.brand-label { color: #16705c; font-size: 13px; font-weight: 700; }
h1 { font-size: 24px; line-height: 1.4; margin: 3px 0 0; }
h2 { font-size: 23px; line-height: 1.4; margin: 6px 0 12px; }
h3 { font-size: 18px; margin: 0; }
p { margin: 10px 0; }
.site-label, .eyebrow { font-size: 12px; color: #637579; }
.eyebrow { font-weight: 600; }
#auth-section { max-width: 400px; margin: 48px auto 72px; padding: 0; }
.auth-heading { margin-bottom: 26px; }
.auth-switch { display: flex; border-bottom: 1px solid #ccd6d5; margin-bottom: 24px; }
.auth-switch button { flex: 1; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #6c7678; }
.auth-switch button[aria-pressed="true"] { color: #126d56; border-bottom-color: #126d56; }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 7px; }
input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #bac8c7; border-radius: 6px; font: inherit; background: #fff; color: #202a2c; }
input::placeholder { color: #879292; }
#auth-section input { margin-bottom: 20px; }
button, .button { display: inline-block; min-height: 44px; padding: 10px 18px; border: 1px solid #146b55; border-radius: 6px; background: #146b55; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; }
button:hover, .button:hover { background: #0f5443; }
button:disabled { cursor: not-allowed; opacity: .5; }
#login-button, #register-button { width: 100%; margin-top: 6px; }
.secondary, #logout { background: transparent; color: #4a5a5b; border-color: #c7d2d1; }
.secondary:hover, #logout:hover { background: #e7eeed; }
:focus-visible { outline: 3px solid #82b6aa; outline-offset: 3px; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
#account { margin: 2px 0 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.account-bar > div { min-width: 0; }
#logout { flex-shrink: 0; }
.service-tabs { display: flex; gap: 24px; border-bottom: 1px solid #ccd6d5; }
.service-tabs button { background: none; color: #647273; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 4px; }
.service-tabs button[aria-pressed="true"] { color: #126d56; border-bottom-color: #126d56; }
#member-area section { padding: 30px 0; min-height: 300px; }
#cdk-form { max-width: 460px; margin-top: 26px; }
#cdk-form button { margin-top: 16px; width: 100%; }
#cdk-code { font-family: ui-monospace, monospace; }
.heading, .query-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.heading h2 { margin: 0; }
.heading { margin-bottom: 16px; }
.query-row button { flex-shrink: 0; }
#products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product { border: 1px solid #d4dedd; border-radius: 8px; padding: 22px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.product button { margin-top: auto; width: 100%; }
.price { font-size: 26px; font-weight: 700; color: #126d56; }
ul { padding-left: 20px; margin: 8px 0 22px; }
.muted { color: #657173; font-size: 13px; }
#notice:empty { display: none; }
#notice:not(:empty) { padding: 12px 16px; border-left: 3px solid #b68528; background: #fff6e4; font-size: 14px; margin: 20px 0; }
.error { color: #a32922; }
#cdk-message, #products-message, #order-message { font-size: 14px; color: #526365; }
#order-details { margin: 20px 0; border-left: 2px solid #a4c2b9; padding-left: 16px; }
#order-details:empty { display: none; }
#order-details p, .product, #payment-host, #notice, #cdk-message { overflow-wrap: anywhere; }
#payment-host { font-size: 13px; }
footer { border-top: 1px solid #dce3e3; margin-top: 30px; padding-top: 20px; font-size: 12px; color: #7c898a; text-align: center; }
@media (max-width: 540px) {
  main { padding: 0 20px 24px; }
  .site-header { padding: 22px 0; }
  .site-label { display: none; }
  #auth-section { margin: 32px auto 48px; }
  #products { grid-template-columns: minmax(0, 1fr); }
  .query-row { flex-direction: column; align-items: stretch; }
  .service-tabs { gap: 0; }
  .service-tabs button { flex: 1; padding-inline: 8px; }
}
