@charset "UTF-8";

/* Commerce pages share the public site's palette and type rhythm. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 44px; line-height: 1.35; letter-spacing: -1.5px; font-weight: 650; margin-bottom: 14px; }
h2 { font-size: 24px; line-height: 1.5; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.6; font-weight: 650; }
.shell { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; border-radius: 8px; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: #f6f5f0f2; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; gap: 36px; align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; margin-right: auto; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; display: block; color: var(--pink); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-type { font-size: 25px; line-height: 1.15; font-weight: 700; white-space: nowrap; }
.brand-type strong { color: var(--accent); font-weight: 650; }
.brand-type small { display: block; font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.site-nav { display: flex; gap: 30px; align-items: center; font-size: 14px; color: var(--muted); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; position: relative; white-space: nowrap; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"]:after { content: ""; position: absolute; bottom: 1px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.header-account { display: block; max-width: 200px; min-height: 44px; overflow: hidden; text-overflow: ellipsis; border: 1px solid #b8cdc4; border-radius: 12px; padding: 9px 21px; font-size: 14px; color: var(--text); white-space: nowrap; }
.header-account:hover { background: #edf1e9; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 12px; padding: 10px 23px; font-size: 14px; font-weight: 600; transition: background .18s, border-color .18s; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #17665f; }
.button-outline { color: var(--accent); background: white; border-color: #b6cfc5; }
.button-outline:hover:not(:disabled) { background: #eff5ee; border-color: var(--accent); }
.quiet-link { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; font-size: 14px; color: var(--accent); }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; font-weight: 500; color: var(--accent); margin: 0 0 15px; }
.title-dot { color: var(--pink); }

.portal-main { padding-block: 60px 76px; min-height: calc(100vh - 215px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading > div > p:last-child { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.shop-intro { display: flex; align-items: center; gap: 18px; padding: 23px 27px; border: 1px solid #dae3d2; background: #edf1e5; border-radius: 18px; margin-bottom: 30px; }
.intro-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: var(--pink); }
.intro-icon svg { width: 40px; height: 40px; }
.shop-intro strong { font-size: 16px; font-weight: 600; }
.shop-intro p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.shop-intro > a { margin-left: auto; min-height: 44px; display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 14px; color: var(--accent); }
.catalog-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.filter-tabs { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.filter-tabs button { min-height: 42px; border: 1px solid transparent; border-radius: 99px; background: transparent; padding: 8px 15px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.filter-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.filter-tabs button:hover:not([aria-pressed="true"]) { background: #e9eee6; color: var(--text); }
.catalog-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.package-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 27px; background: var(--panel); }
.package-top { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.package-kind, .small-label { display: inline-block; font-size: 12px; line-height: 1.5; color: #386656; border: 1px solid #dce6d5; border-radius: 99px; padding: 5px 10px; background: #f2f5ec; }
.activity-label { font-size: 12px; color: #a75447; overflow-wrap: anywhere; }
.package-card h2 { font-size: 21px; line-height: 1.55; margin-bottom: 8px; overflow-wrap: anywhere; }
.package-description { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; overflow-wrap: anywhere; }
.package-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; color: var(--text); margin-bottom: 19px; }
.currency { font-size: 19px; }
.price-number { min-width: 0; font-size: 40px; line-height: 1.3; font-weight: 600; letter-spacing: -1px; overflow-wrap: anywhere; }
.price-period { font-size: 13px; color: var(--muted); margin-left: 6px; }
.package-features { list-style: none; padding: 18px 0 0; margin: 0 0 20px; border-top: 1px solid #e8ece5; font-size: 14px; color: #516b64; flex: 1; }
.package-features li { display: flex; gap: 9px; margin-bottom: 7px; overflow-wrap: anywhere; }
.package-features li:before { content: "✓"; color: #6c9575; flex-shrink: 0; }
.package-features li:last-child { margin-bottom: 0; }
.package-action { width: 100%; }
.eligibility-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.catalog-footnote { margin: 25px 0 0; font-size: 12px; color: var(--muted); line-height: 1.9; text-align: center; }
.loading-card, .empty-state { grid-column: 1 / -1; min-width: 0; padding: 55px 28px; border: 1px solid var(--line); border-radius: 20px; background: #ffffffb3; text-align: center; color: var(--muted); font-size: 15px; }
.empty-symbol { font-size: 44px; color: var(--pink); display: block; line-height: 1; margin-bottom: 22px; }
.empty-state h2, .empty-state h3 { color: var(--text); font-size: 22px; margin: 0 0 12px; }
.empty-state p { font-size: 14px; line-height: 1.9; margin: 0 auto 22px; max-width: 440px; }
.error-state { background: #fffdf8; border-color: #e7ddcf; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; background: transparent; color: var(--accent); font-size: 14px; padding: 7px 8px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.account-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #eeefe8; }
.account-nav a { min-height: 46px; padding: 10px 13px; border-radius: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid transparent; }
.account-nav span { font-size: 13px; opacity: 0; }
.account-nav a:hover { color: var(--text); }
.account-nav a[aria-current="page"] { color: var(--accent); background: white; border-color: var(--line); }
.account-nav a[aria-current="page"] span { opacity: 1; }
.account-content { min-width: 0; }
.section-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 22px; }
.section-card h2 { font-size: 21px; margin-bottom: 20px; }
.section-title { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-title a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent); }
.account-profile { display: flex; align-items: center; gap: 17px; margin-bottom: 25px; }
.profile-avatar { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #efded7; border-radius: 16px; color: var(--pink); background: #fcf3ed; font-size: 30px; flex-shrink: 0; }
.account-profile h2 { margin: 0 0 3px; }
.account-profile p { font-size: 13px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 25px; }
.asset-stat { min-width: 0; border: 1px solid #e1e7d9; border-radius: 14px; padding: 20px 16px; background: #f3f5ec; }
.asset-stat > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.asset-stat strong { display: block; font-size: 28px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; line-height: 1.5; }
.asset-stat small { font-size: 12px; color: var(--muted); }
.account-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hint { font-size: 14px; color: var(--muted); line-height: 1.9; }
.section-card > .hint:last-child { margin-bottom: 0; }
.info-note { padding: 14px 17px; background: #f1f4ec; border: 1px solid #e0e6d7; border-radius: 12px; font-size: 13px; line-height: 1.9; color: #5c7167; margin: 18px 0; }
.table-wrap { overflow: auto; max-width: 100%; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #bbcfc2 transparent; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; font-weight: 500; background: #f5f6f0; }
th, td { padding: 15px 13px; border-bottom: 1px solid #e7ece5; vertical-align: top; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 14px; }
td.wrap { white-space: normal; min-width: 180px; overflow-wrap: anywhere; }
td small { font-size: 12px; color: var(--muted); line-height: 1.8; }
td .text-button { margin-block: -9px; }
.status-tag { display: inline-block; font-size: 12px; line-height: 1.5; border: 1px solid #e0e4d8; border-radius: 99px; padding: 4px 9px; background: #f5f4eb; color: #7b7355; white-space: nowrap; }
.status-paid, .status-active, .status-credited { background: #eef5e9; color: #477250; border-color: #dbe6d2; }
.status-failed, .status-closed, .status-expired, .status-cancelled, .status-refunded { background: #f7f0eb; color: #916a60; border-color: #eaddd4; }
.list-empty { padding: 28px 22px; text-align: center; font-size: 14px; color: var(--muted); background: #f6f7f1; border-radius: 12px; }
.pager { display: flex; gap: 14px; justify-content: flex-end; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.pager button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 13px; }
.detail-list { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px 18px; font-size: 14px; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.device-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.device-icon { width: 44px; height: 48px; display: grid; place-items: center; background: #eff3e9; border-radius: 12px; font-size: 24px; color: var(--accent); flex-shrink: 0; }
.device-card h3 { font-size: 16px; margin: 0 0 4px; }
.device-card p { font-size: 13px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.device-card > div { min-width: 0; }
.pending-banner { margin-top: 26px; border: 1px solid #dbdfcb; border-radius: 14px; padding: 13px 18px; background: #f0f1e3; color: #667151; display: flex; gap: 16px; align-items: center; font-size: 14px; }
.pending-banner button { margin-left: auto; white-space: nowrap; }

.site-footer { border-top: 1px solid #d9dfd2; background: #eaf0e0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 31px; color: var(--muted); font-size: 12px; }
.footer-brand { font-size: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
.footer-brand span { font-size: 13px; margin-left: 17px; color: var(--muted); font-weight: 400; }
.footer-inner > div { display: flex; gap: 24px; }
.footer-inner > div a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.footer-inner > p { margin: 0; }

/* Native payment remains in the browser dialog, with a full-size QR. */
dialog { width: min(540px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 22px; padding: 25px 30px 29px; color: var(--text); box-shadow: 0 30px 100px #173f422b; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #173f4266; backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.dialog-top .eyebrow { font-size: 12px; margin: 0; }
.icon-button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); background: #f5f6f0; border-radius: 50%; font-size: 26px; line-height: 1; }
#checkout-title { font-size: 24px; margin-bottom: 10px; }
.checkout-price { font-size: 38px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 20px; overflow-wrap: anywhere; }
.checkout-price small { font-size: 18px; }
.checkout-summary { background: #f4f6ee; border: 1px solid #e1e7d9; border-radius: 13px; padding: 18px; font-size: 14px; margin-bottom: 21px; }
.checkout-summary ul { padding-left: 19px; margin: 0; color: #5c7167; }
.checkout-summary li + li { margin-top: 5px; }
.field-label { display: block; font-size: 14px; color: var(--text); margin: 19px 0 9px; }
.checkout-select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bfcec2; border-radius: 10px; background: white; color: var(--text); }
.channel-options { display: flex; gap: 12px; }
.channel-option { flex: 1; min-height: 50px; border: 1px solid var(--line); background: #fafbf7; padding: 12px; border-radius: 11px; font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.channel-option:has(input:checked) { background: #eff5ed; border-color: var(--accent); }
.channel-option input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
.checkout-submit { width: 100%; margin-top: 23px; }
.checkout-caption { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 12px 0 0; }
.inline-error { color: #9c554b; background: #fcf1eb; border: 1px solid #ecd7cb; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.8; margin-top: 16px; overflow-wrap: anywhere; }
.order-status-panel { text-align: center; }
.order-status-panel h2 { font-size: 24px; margin-bottom: 10px; }
.payment-qr { box-sizing: content-box; width: 220px; height: 220px; max-width: none; margin: 20px auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; object-fit: contain; background: white; image-rendering: crisp-edges; }
.order-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.order-reference { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin: 22px 0 0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 13px 22px; border-radius: 12px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 30px #173f421a; font-size: 14px; color: var(--text); }

.login-main { min-height: calc(100vh - 200px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: center; padding-block: 65px; }
.login-story h1 { font-size: 43px; line-height: 1.5; margin-bottom: 20px; }
.login-story > p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.95; margin: 0; }
.login-art { width: 340px; height: 230px; position: relative; margin-top: 27px; }
.login-art img { position: absolute; width: 176px; height: 176px; object-fit: contain; top: 15px; left: 100px; background: white; border: 6px solid white; border-radius: 29px; transform: rotate(-6deg); box-shadow: 0 10px 30px #58644212; }
.art-orbit { border: 1px solid #d6dfc8; border-radius: 50%; width: 315px; height: 165px; position: absolute; top: 30px; left: 3px; transform: rotate(-15deg); }
.art-heart { position: absolute; color: var(--pink); width: 49px; height: 49px; left: 33px; top: 6px; transform: rotate(-10deg); }
.art-heart svg { width: 100%; height: 100%; }
.art-caption { font-size: 12px; color: var(--muted); position: absolute; bottom: 0; left: 105px; letter-spacing: 1px; }
.login-card { padding: 37px; background: white; border: 1px solid var(--line); border-radius: 22px; }
.login-card h2 { font-size: 29px; margin: 21px 0 9px; }
.login-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.login-methods { display: flex; flex-direction: column; gap: 11px; }
.login-method { border: 1px solid #e3e6dc; border-radius: 11px; background: #f8f9f4; padding: 15px 16px; min-height: 59px; display: flex; gap: 13px; align-items: center; text-align: left; width: 100%; opacity: 1; cursor: default; color: #607366; }
.login-method:disabled { opacity: 1; }
.method-icon { font-size: 22px; color: #78917b; width: 25px; line-height: 1; }
.method-name { font-size: 14px; flex: 1; }
.method-state { font-size: 12px; color: #738170; background: #edf0e6; border-radius: 99px; padding: 4px 9px; white-space: nowrap; }
.login-note { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 18px; }
.login-browse { width: 100%; margin: 24px 0 10px; }
.login-card > .quiet-link { display: flex; justify-content: center; font-size: 13px; }

@media (min-width: 1500px) {
  .portal-main { padding-top: 72px; }
}
@media (max-width: 1080px) {
  .shell { width: calc(100% - 56px); }
  .header-inner { gap: 26px; }
  .site-nav { gap: 24px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .catalog-toolbar { gap: 18px; align-items: flex-end; }
  .account-layout { gap: 24px; grid-template-columns: 170px minmax(0, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-main { gap: 55px; }
  .login-story h1 { font-size: 37px; }
  .login-card { padding: 30px; }
  .footer-brand span { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 0 16px; padding-top: 14px; }
  .brand { min-height: 48px; }
  .brand-type { font-size: 23px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-type small { font-size: 12px; margin-top: 5px; }
  .header-account { max-width: 190px; margin-left: auto; padding-inline: 19px; }
  .site-nav { order: 3; width: 100%; justify-content: center; gap: 38px; padding-top: 6px; }
  .site-nav a { justify-content: center; min-height: 48px; }
  .site-nav a[aria-current="page"]:after { bottom: 0; }
  .portal-main { padding-top: 38px; padding-bottom: 50px; }
  h1 { font-size: 36px; }
  .page-heading { margin-bottom: 27px; }
  .shop-intro { padding: 20px 22px; gap: 14px; margin-bottom: 26px; }
  .shop-intro > a { display: none; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .catalog-count { align-self: flex-end; }
  .account-layout { grid-template-columns: 1fr; gap: 22px; }
  .account-nav { flex-direction: row; gap: 3px; overflow: auto; padding: 5px; border-radius: 13px; scrollbar-width: none; }
  .account-nav a { flex-shrink: 0; padding-inline: 15px; white-space: nowrap; }
  .account-nav span { display: none; }
  .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .asset-stat { padding: 18px 14px; }
  .asset-stat strong { font-size: 25px; }
  .login-main { gap: 30px; grid-template-columns: 1fr 1fr; padding-block: 45px; }
  .login-story h1 { font-size: 29px; }
  .login-story > p:not(.eyebrow) { font-size: 14px; }
  .login-art { transform: scale(.75); transform-origin: left top; margin-bottom: -45px; }
  .login-card { padding: 26px 23px; }
  .footer-inner { flex-wrap: wrap; gap: 12px 24px; }
  .footer-inner > p { width: 100%; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .header-account { max-width: 150px; font-size: 13px; padding-inline: 16px; }
  .brand { gap: 7px; }
  .brand-type { font-size: 22px; }
  .site-nav { justify-content: space-between; gap: 12px; font-size: 14px; }
  .site-nav a { flex: 1; }
  .portal-main { padding-top: 29px; padding-bottom: 42px; }
  .eyebrow { font-size: 12px; letter-spacing: 1px; margin-bottom: 11px; }
  h1 { font-size: 32px; letter-spacing: -1px; margin-bottom: 11px; }
  .page-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
  .page-heading > div { min-width: 0; }
  .page-heading > div > p:last-child { font-size: 14px; }
  .page-heading > .quiet-link, .page-heading > .button { font-size: 13px; }
  .page-heading > .quiet-link { margin-top: -2px; }
  .page-heading > .button { margin-top: 10px; }
  .shop-intro { padding: 18px; gap: 12px; border-radius: 15px; margin-bottom: 22px; }
  .intro-icon { width: 34px; height: 36px; }
  .intro-icon svg { width: 34px; height: 34px; }
  .shop-intro strong { font-size: 15px; }
  .shop-intro p { font-size: 13px; line-height: 1.9; }
  .catalog-toolbar { margin-bottom: 19px; padding-bottom: 16px; gap: 9px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding: 3px 2px 9px; margin-inline: -2px; scrollbar-width: thin; scrollbar-color: #c8d3c4 transparent; }
  .filter-tabs button { flex-shrink: 0; min-height: 44px; padding-inline: 16px; font-size: 14px; }
  .catalog-count { font-size: 12px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .package-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "kind kind" "title title" "description description" "features features" "price action" "note note";
    column-gap: 14px;
    padding: 23px;
    border-radius: 18px;
  }
  .package-top { grid-area: kind; }
  .package-card h2 { grid-area: title; }
  .package-description { grid-area: description; }
  .package-price { grid-area: price; align-self: center; }
  .package-features { grid-area: features; }
  .package-action { grid-area: action; align-self: center; }
  .eligibility-note { grid-area: note; }
  .package-top { margin-bottom: 13px; }
  .package-card h2 { font-size: 21px; margin-bottom: 7px; }
  .package-description { font-size: 14px; margin-bottom: 12px; }
  .package-price { margin-bottom: 0; }
  .price-number { font-size: 38px; }
  .currency { font-size: 18px; }
  .price-period { font-size: 13px; }
  .package-features { padding-top: 15px; margin-bottom: 18px; font-size: 14px; line-height: 1.85; }
  .package-features li { margin-bottom: 5px; }
  .package-action { min-height: 46px; font-size: 14px; padding-inline: 14px; gap: 10px; }
  .eligibility-note { font-size: 12px; margin-top: 9px; }
  .catalog-footnote { font-size: 12px; margin-top: 21px; text-align: left; }
  .account-layout { gap: 18px; }
  .account-nav a { min-height: 44px; padding: 9px 14px; font-size: 14px; border-radius: 9px; }
  .section-card { padding: 22px 18px; border-radius: 17px; margin-bottom: 18px; }
  .section-card h2 { font-size: 20px; }
  .section-title { gap: 10px; }
  .section-title h2 { font-size: 19px; }
  .section-title a, .section-title .text-button { font-size: 13px; white-space: nowrap; }
  .account-profile { gap: 13px; margin-bottom: 22px; }
  .account-profile h2 { font-size: 20px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
  .asset-stat { padding: 17px 14px; border-radius: 12px; }
  .asset-stat > span { font-size: 13px; margin-bottom: 6px; }
  .asset-stat strong { font-size: 27px; }
  .account-actions { gap: 8px 12px; }
  .account-actions > .button { padding-inline: 17px; font-size: 13px; gap: 10px; }
  .info-note { font-size: 13px; padding: 13px; }
  .empty-state, .loading-card { padding: 38px 21px; }
  .empty-state h2 { font-size: 21px; }
  .empty-state p { font-size: 14px; }
  .empty-symbol { font-size: 40px; margin-bottom: 18px; }
  .pending-banner { padding: 13px; gap: 4px; flex-wrap: wrap; font-size: 13px; }
  .pending-banner .text-button { margin-left: 0; padding-left: 0; font-size: 13px; }
  .device-card { padding: 16px 13px; gap: 12px; }
  .device-card h3 { font-size: 15px; }
  .footer-inner { gap: 10px 18px; padding-block: 24px; }
  .footer-brand { font-size: 20px; }
  .footer-inner > div { gap: 17px; flex-wrap: wrap; }
  .footer-inner > div a { font-size: 13px; }
  .footer-inner > p { font-size: 12px; line-height: 1.9; }
  .login-main { display: block; padding-block: 32px 42px; min-height: auto; }
  .login-story { margin-bottom: 25px; }
  .login-story h1 { font-size: 31px; line-height: 1.5; margin-bottom: 13px; }
  .login-story > p:not(.eyebrow) { font-size: 14px; }
  .login-art { display: none; }
  .login-card { border-radius: 18px; padding: 27px 23px; }
  .login-card h2 { font-size: 27px; margin-top: 18px; }
  .login-subtitle { font-size: 14px; margin-bottom: 23px; }
  .login-method { padding: 15px 14px; gap: 10px; }
  .login-note { font-size: 12px; }
  .login-browse { margin-top: 23px; }
  dialog { padding: 20px; border-radius: 19px; }
  .dialog-top { margin-bottom: 13px; }
  .dialog-top .eyebrow { font-size: 12px; }
  #checkout-title { font-size: 22px; }
  .detail-list { grid-template-columns: 78px minmax(0, 1fr); gap: 11px 13px; font-size: 14px; }
  .channel-options { flex-direction: column; gap: 9px; }
  .channel-option { min-height: 48px; padding: 12px 14px; }
  .checkout-summary { padding: 16px; }
  .checkout-caption { font-size: 12px; }
  .order-actions { flex-direction: column; gap: 10px; }
  .order-actions .button { width: 100%; }
  .payment-qr { width: 220px; height: 220px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .brand-type { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-type small { font-size: 12px; letter-spacing: 1px; }
  .header-account { max-width: 130px; padding-inline: 13px; }
  .package-card { padding: 21px; }
  .login-card { padding: 25px 19px; }
  .method-icon { width: 22px; }
  .method-state { padding-inline: 7px; }
  .asset-stat strong { font-size: 24px; }
}
@media (max-width: 359px) {
  .package-card { display: flex; }
  .package-price { align-self: stretch; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Phone number and send action share a row; the code starts its own row. */
#phone-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 8px;
  align-items: end;
}
#phone-login label { display: grid; gap: 6px; min-width: 0; }
#phone-login input, #sms-send {
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #b8cec7;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}
#phone-login input { width: 100%; min-width: 0; background: white; font-size: 16px; }
#sms-send { color: #176861; background: #edf5f1; cursor: pointer; white-space: nowrap; }
#sms-send:disabled { opacity: .65; cursor: default; }
#phone-login label:nth-of-type(2), #phone-login .button { grid-column: 1 / -1; }
@media (max-width: 380px) {
  #phone-login { grid-template-columns: minmax(0, 1fr); }
}
