/* ============================================================
   AEROSUPPLY — additions layered on top of aerosupply.css.

   Loaded after aerosupply.css from Magento_Theme/layout/default_head_blocks.xml
   so equal-specificity rules here win without !important.

   Two blocks:
     1. Header account flyout — reuses the .hsel / .hsel-menu chrome and the
        hover/click/focus behaviour already wired in aerosupply.js.
     2. CMS content pages      — a whole class vocabulary (as-*, btn-primary,
        h-section, company-*, warehouse-*, feat-*, as-vip-*) that the pages
        authored in Content > Pages still use. The rebuilt stylesheet dropped
        those rules, which left every 1column CMS page unstyled.
   ============================================================ */

/* ============================================================
   1. HEADER ACCOUNT FLYOUT
   ============================================================ */

/* The account trigger mirrors the currency trigger: icon + the same .caret,
   same height, same padding, same hover fill. It used to be a 36px square,
   which read as a different kind of control than the two dropdowns beside it. */
.hdr-tools .hsel--acct .hsel-btn{
  position:relative;height:36px;width:auto;padding:0 9px;
  display:inline-flex;align-items:center;gap:6px;text-transform:none;
}
.hdr-tools .hsel--acct .hsel-btn .acct-user{width:18px;height:18px;flex:0 0 auto}
/* .hsel-btn .caret is 8px; restate it here so the generic svg sizing above
   never stretches the arrow to the icon's 18px. */
.hdr-tools .hsel--acct .hsel-btn .caret{width:8px;height:8px;flex:0 0 auto}

/* Signed-in marker: a 6px accent dot, keyed off the session state that the
   template already resolved. */
.acct-dot{
  position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 0 2px var(--paper);
}

.hdr-tools .hsel-menu--acct{
  min-width:274px;padding:0;border-color:var(--line);
  box-shadow:0 30px 64px rgba(14,15,16,.15);
}

/* Menu rows: the base .hsel-menu > a rule is written for the language list and
   carries its own padding / type size, so the account rows restate them. */
.hdr-tools .hsel-menu--acct > a{
  display:flex;align-items:center;gap:11px;
  padding:12px 18px;font-size:14.5px;font-weight:400;letter-spacing:0;
  text-transform:none;color:var(--ink);
}
.hdr-tools .hsel-menu--acct > a + a{border-top:1px solid var(--line-2)}
.hdr-tools .hsel-menu--acct > a:hover{background:var(--mist)}
.hdr-tools .hsel-menu--acct .acct-ico{width:16px;height:16px;flex:0 0 auto;opacity:.5}

/* trailing chevron, pushed to the right edge of the row (sign-out has none) */
.hdr-tools .hsel-menu--acct > a > .acct-go{
  margin-left:auto;width:13px;height:13px;flex:0 0 auto;opacity:.26;
  transition:transform .3s var(--ease),opacity .2s;
}
.hdr-tools .hsel-menu--acct > a:hover > .acct-go{opacity:.6;transform:translateX(3px)}

/* Sign out reads as the secondary action of the three. */
.hdr-tools .hsel-menu--acct > a.acct-out{color:var(--muted)}

/* Guest state: a one-line pitch plus the two buttons. */
.acct-guest{padding:16px 16px 18px}
.acct-note{margin:0 0 14px;font-size:12.5px;line-height:1.58;color:var(--muted)}
.acct-btn{display:flex;width:100%;min-height:44px;padding:0 16px;font-size:12px}
.acct-btn + .acct-btn{margin-top:8px}
/* .btn:hover lifts the button; inside a 274px panel that lift reads as a jump. */
.acct-btn:hover{transform:none;box-shadow:none}

/* The desktop header drops the account entry below 900px — there is no room
   next to the centred wordmark — so mobile reaches the account through the
   drawer instead (see html/footer.phtml). */
@media (max-width:900px){
  .hdr-tools .hsel--acct{display:none}
}

/* ============================================================
   2. CMS CONTENT PAGES
   ============================================================ */

/* ---- page shell ----
   aerosupply.css whitelists one body class per route (.cms-page-view,
   .account, .checkout-cart-index, .catalog-product-view …). Any route missing
   from that list fell through to the global
   ".page-main{padding:0;max-width:none}" reset and rendered edge to edge —
   the VIP application was one of them. Defaulting to the design gutter and
   opting the homepage out covers every route, present and future.

   The catalogue and login rules in aerosupply.css are more specific, so they
   keep winning where they exist. */
.page-main{
  width:100%;max-width:var(--max);margin:0 auto;
  padding:clamp(28px,4vw,64px) var(--pad) clamp(48px,6vw,96px);
}
.cms-home .page-main{padding:0;max-width:none}

/* .page-main already supplies the design gutter and max width for
   .cms-page-view, so the page's own .container must not add a second one. */
.cms-page-view .container{width:100%;max-width:none;margin:0;padding:0}

/* ---------- shared typographic primitives ---------- */

.as-label{
  display:block;margin:0 0 14px;
  font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--accent);
}

.h-section{
  margin:0 0 18px;
  font-size:calc(var(--h-scale, 1) * clamp(24px,2.8vw,38px));font-weight:500;line-height:1.14;letter-spacing:-.018em;
}

.lead{
  margin:0 0 18px;max-width:74ch;
  font-size:clamp(15px,1.1vw,17.5px);line-height:1.72;color:var(--muted);
}

/* CMS pages: the hero standfirst sits one step above body. Scoped, because the
   homepage authors a .lead of its own inside its hero. */
.cms-page-view .lead{font-size:calc(var(--fs-body, 16px) + 2px)}

/* ---------- page hero (about, and any CMS page that opens with one) ---------- */

.as-page-hero{
  padding:0 0 clamp(36px,4.4vw,60px);
  border-bottom:1px solid var(--line);
  margin:0 0 clamp(40px,5vw,72px);
}
.as-page-hero .h-section{max-width:26ch}

/* ---------- buttons authored directly in CMS content ----------
   The pages use four button class names that predate the current .btn. They are
   mapped onto the same shape here rather than edited in the database, because
   the markup is merchant-editable in Content > Pages. */

.btn-primary,
.btn-dark-outline,
.btn-white,
.btn-white-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 30px;
  font-size:13px;font-weight:500;letter-spacing:.04em;
  border:1px solid var(--ink);border-radius:0;text-decoration:none;
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-dark-outline{background:transparent;color:var(--ink)}
.btn-dark-outline:hover{background:var(--ink);color:#fff}
.btn-white{background:#fff;color:var(--ink);border-color:#fff}
.btn-white:hover{background:transparent;color:#fff;border-color:#fff}
.btn-white-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-white-outline:hover{background:#fff;color:var(--ink);border-color:#fff}

/* ---------- about: company / warehouse two-column blocks ---------- */

.company-inner,
.warehouse-inner{
  display:grid;grid-template-columns:1.05fr 1fr;
  gap:clamp(28px,4vw,64px);align-items:center;
}
.company-visual,
.warehouse-visual{background:var(--mist);border:1px solid var(--line);overflow:hidden}
.company-visual img,
.warehouse-visual img{display:block;width:100%;height:100%;object-fit:cover}

.company-text p,
.warehouse-text p{
  margin:0 0 18px;max-width:60ch;
  font-size:14px;line-height:1.72;color:var(--muted);
}

.company-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);
  margin:22px 0;
}
.company-stat{background:var(--paper);padding:16px 14px}
.company-stat strong{display:block;font-size:calc(var(--h-scale, 1) * clamp(20px,2.2vw,26px));font-weight:600;line-height:1.1;letter-spacing:-.02em}
.company-stat span{
  display:block;margin-top:5px;
  font-size:12px;letter-spacing:.06em;color:var(--muted);
}

.company-certs{display:flex;flex-wrap:wrap;gap:8px}
.company-certs span{
  padding:6px 12px;border:1px solid var(--line);
  font-size:12px;letter-spacing:.06em;color:var(--ink-2);
}

.warehouse-features{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:22px 0 0}
.warehouse-features li{display:flex;gap:12px;align-items:flex-start}
.wf-num{
  flex:0 0 auto;padding-top:2px;
  font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--accent);
}
.warehouse-features li > div > strong{display:block;margin-bottom:3px;font-size:14px;font-weight:600}
.warehouse-features li > div > span{display:block;font-size:14px;line-height:1.55;color:var(--muted)}

/* ---------- about: feature grid ---------- */

.section-head{margin:0 0 clamp(24px,3vw,40px);max-width:64ch}
.feat-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);
}
.feat-item{background:var(--paper);padding:clamp(22px,2.4vw,34px)}
.feat-tag{
  display:inline-block;margin-bottom:16px;
  font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--accent);
}
.feat-icon{
  width:40px;height:40px;margin-bottom:16px;
  display:grid;place-items:center;border:1px solid var(--line);color:var(--ink);
}
.feat-icon svg{width:20px;height:20px}
.feat-item h4{margin:0 0 8px;font-size:16px;font-weight:600}
.feat-item p{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}

/* ---------- about: closing contact band ---------- */

.as-contact{padding:clamp(44px,5.5vw,80px) 0 0;border-top:1px solid var(--line)}
.as-contact-inner{max-width:72ch}
.as-contact-inner p{margin:0;font-size:calc(var(--fs-body, 16px) + 2px);line-height:1.72;color:var(--muted)}
.as-contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

/* ---------- VIP membership page ---------- */

.as-vip-hero{padding:0 0 clamp(36px,4.4vw,60px);border-bottom:1px solid var(--line)}
.as-vip-hero .h-section{max-width:26ch;font-size:calc(var(--h-scale, 1) * clamp(26px,3.2vw,44px))}
.as-vip-hero p{margin:0;max-width:74ch;font-size:calc(var(--fs-body, 16px) + 2px);line-height:1.72;color:var(--muted)}
.as-vip-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

.as-vip-section{padding:clamp(40px,5vw,72px) 0}
.as-vip-section + .as-vip-section{border-top:1px solid var(--line)}

/* benefit cards — hairline grid, no rounded corners, matches the product grid */
.as-vip-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);
  margin-top:clamp(20px,2.6vw,32px);
}
.as-vip-card{background:var(--paper);padding:clamp(20px,2.2vw,30px)}
.as-vip-num{
  display:block;margin-bottom:12px;
  font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--accent);
}
.as-vip-card h3{margin:0 0 8px;font-size:16px;font-weight:600;letter-spacing:-.005em}
.as-vip-card p{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}

/* access-level table */
.as-vip-table-wrap{
  margin-top:clamp(20px,2.4vw,32px);
  border:1px solid var(--line);overflow-x:auto;-webkit-overflow-scrolling:touch;
}
.as-vip-table{width:100%;min-width:660px;border-collapse:collapse;font-size:14px}
.as-vip-table th{
  padding:14px 16px;text-align:left;background:var(--mist);
  border-bottom:1px solid var(--line);
  font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted);
}
.as-vip-table td{padding:14px 16px;border-bottom:1px solid var(--line-2);color:var(--ink-2)}
.as-vip-table tbody tr:last-child td{border-bottom:0}
.as-vip-table td:first-child{font-weight:500;color:var(--ink)}

/* four steps */
.as-vip-steps{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(16px,2vw,28px);margin-top:clamp(22px,2.8vw,34px);
}
.as-vip-step{border-top:1px solid var(--ink);padding-top:16px}
.as-vip-step > span{
  display:block;margin-bottom:10px;
  font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--accent);
}
.as-vip-step h3{margin:0 0 6px;font-size:16px;font-weight:600}
.as-vip-step p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}

/* closing call to action */
.as-vip-cta{
  margin:clamp(36px,4.4vw,60px) 0 0;
  padding:clamp(32px,4vw,56px);
  background:var(--ink);color:#fff;
}
.as-vip-cta h3{margin:0 0 10px;font-size:calc(var(--h-scale, 1) * clamp(20px,2.4vw,30px));font-weight:500;letter-spacing:-.012em}
.as-vip-cta p{margin:0;max-width:64ch;font-size:14px;line-height:1.65;color:rgba(255,255,255,.72)}

/* ---------- prose: pages authored as bare HTML ----------
   help-faqs, order-tracking, shipping-delivery and the privacy policy are
   written without classes. The global reset zeroes list markers and margins,
   so the direct children of .column.main need their rhythm restored.

   Direct-child selectors keep these rules away from the structured pages
   above, whose headings sit inside their own wrappers. */

.cms-page-view .column.main > h2{
  margin:0 0 16px;
  font-size:calc(var(--h-scale, 1) * clamp(24px,2.8vw,34px));font-weight:500;line-height:1.16;letter-spacing:-.018em;
}
.cms-page-view .column.main > h3{
  margin:34px 0 10px;
  font-size:calc(var(--h-scale, 1) * clamp(17px,1.6vw,20px));font-weight:600;line-height:1.3;
}
.cms-page-view .column.main > h4{
  margin:28px 0 8px;font-size:16px;font-weight:600;line-height:1.35;
}
.cms-page-view .column.main > p{
  margin:0 0 16px;max-width:78ch;
  font-size:14px;line-height:1.75;color:var(--muted);
}
.cms-page-view .column.main > ul,
.cms-page-view .column.main > ol{
  margin:0 0 18px;padding-left:22px;max-width:78ch;
}
.cms-page-view .column.main > ul{list-style:disc}
.cms-page-view .column.main > ol{list-style:decimal}
.cms-page-view .column.main > ul li,
.cms-page-view .column.main > ol li{
  margin:0 0 6px;font-size:14px;line-height:1.75;color:var(--muted);
}
.cms-page-view .column.main > *:last-child{margin-bottom:0}

/* inline emphasis + links inside prose */
.cms-page-view .column.main > p a,
.cms-page-view .column.main > ul a,
.cms-page-view .column.main > ol a{
  color:var(--ink);border-bottom:1px solid var(--accent);transition:color .2s;
}
.cms-page-view .column.main > p a:hover,
.cms-page-view .column.main > ul a:hover,
.cms-page-view .column.main > ol a:hover{color:var(--accent)}
.cms-page-view .column.main > p strong{color:var(--ink);font-weight:600}

/* definition / data tables in CMS content */
.cms-page-view .column.main > table,
.cms-page-view .cms-content table{
  width:100%;margin:0 0 20px;border-collapse:collapse;font-size:14px;
}
.cms-page-view .column.main > table th,
.cms-page-view .column.main > table td,
.cms-page-view .cms-content table th,
.cms-page-view .cms-content table td{
  padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;
}
.cms-page-view .column.main > table th,
.cms-page-view .cms-content table th{
  font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted);
}

@media (max-width:640px){
  .cms-page-view .cms-content table th,
  .cms-page-view .cms-content table td,
  .cms-page-view .column.main > table th,
  .cms-page-view .column.main > table td{overflow-wrap:anywhere}
}

/* privacy policy / cookie notice wrapper */
.cms-page-view .cms-content{max-width:100%}

/* ---------- native Contact Us form ----------
   Magento_Contact renders a plain <fieldset><legend> form that assumed the
   blank theme's form CSS. With that stylesheet dropped the browser defaults
   show through: a 1px box around the fieldset, the legend sitting on the
   border, and inputs stretched to the full 1500px content column.

   The mist background comes from aerosupply.css line ~972: the homepage's
   contact band is styled by a bare ".contact" rule, which also matches
   Magento_Contact's "<form class=\\"form contact\\">". A two-class selector here
   wins it back without touching the homepage band. */
.form.contact{
  max-width:760px;
  background:transparent;position:static;
}
.form.contact fieldset.fieldset{border:0;margin:0;padding:0;min-width:0}
.form.contact .legend{
  display:block;margin:0 0 8px;padding:0;border:0;
  font-size:clamp(18px,1.7vw,22px);font-weight:600;line-height:1.3;color:var(--ink);
}
.form.contact .fieldset > br{display:none}
.form.contact .field{margin:0 0 18px}
.form.contact .field.note{
  margin:0 0 22px;font-size:14.5px;line-height:1.7;color:var(--muted);
}
.form.contact .field.note.no-label{font-size:14.5px}

/* ============================================================
   3. MEMBERSHIP MODULE
   The module's two templates (vip/panel.phtml, vip/apply.phtml) were written
   against the old stylesheet and use their own as-* vocabulary. Both are
   rendered on the VIP page — the status bar through the page's layout update,
   the application form on /vip/apply.
   ============================================================ */

/* ---------- status bar shown above the VIP page content ---------- */

.as-member-bar{
  margin:0 0 clamp(26px,3.2vw,40px);
  border:1px solid var(--line);background:var(--mist);
}
.as-member-bar-main{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  padding:14px 18px;
}
.as-member-bar-tag{
  flex:0 0 auto;padding:5px 10px;
  font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--ink);border:1px solid var(--ink);
}
.as-member-bar-text{
  flex:1 1 300px;margin:0;
  font-size:14px;line-height:1.6;color:var(--muted);
}
/* state tints — the same palette the storefront uses for system messages */
.as-member-bar--vip,
.as-member-bar--approved{background:#F2F7F1;border-color:#CBDCC8}
.as-member-bar--pending{background:#FDF6E8;border-color:#E6D3A8}
.as-member-bar--rejected,
.as-member-bar--expired{background:var(--accent-soft);border-color:#EBC5BD}

/* ---------- buttons and badges used by the module ---------- */

.as-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  flex:0 0 auto;min-height:44px;padding:0 22px;
  font-size:13px;font-weight:500;letter-spacing:.04em;
  border:1px solid var(--ink);border-radius:0;text-decoration:none;cursor:pointer;
  transition:background .22s var(--ease),color .22s var(--ease),border-color .22s var(--ease);
}
.as-btn-primary{background:var(--ink);color:#fff}
.as-btn-primary:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.as-btn-outline{background:transparent;color:var(--ink)}
.as-btn-outline:hover{background:var(--ink);color:#fff}

.as-badge{
  flex:0 0 auto;display:inline-flex;align-items:center;
  padding:5px 11px;
  font-size:12px;font-weight:600;letter-spacing:.04em;
}
.as-badge--ok{background:var(--ink);color:#fff}
.as-badge--pending{background:#8A6D1F;color:#fff}

/* ---------- VIP application form ---------- */

.as-vip-form-page{max-width:720px}

.as-back-link{
  display:inline-block;margin:0 0 22px;padding-bottom:3px;
  font-size:13px;letter-spacing:.06em;color:var(--muted);
  border-bottom:1px solid var(--line);
  transition:color .2s,border-color .2s;
}
.as-back-link:hover{color:var(--ink);border-color:var(--ink)}

.as-form-title{
  margin:0 0 10px;
  font-size:calc(var(--h-scale, 1) * clamp(24px,2.8vw,36px));font-weight:500;line-height:1.14;letter-spacing:-.018em;
}
.as-form-sub{margin:0 0 30px;max-width:64ch;font-size:14px;line-height:1.65;color:var(--muted)}

.as-form-reject{
  margin:0 0 26px;padding:16px 18px;
  background:var(--accent-soft);border:1px solid #EBC5BD;
}
.as-form-reject > strong{display:block;margin:0 0 6px;font-size:14px;color:var(--accent)}
.as-form-reject p{margin:0;font-size:14px;line-height:1.65;color:var(--ink-2)}
.as-form-reject .as-form-reject-tip{margin-top:8px;font-size:12px;color:var(--muted)}

.as-vip-form{margin:0}
.as-form-section{
  margin:0;padding:26px 0 6px;
  border:0;border-top:1px solid var(--line);
}
.as-form-section legend{
  display:flex;align-items:center;gap:10px;
  margin:0 0 14px;padding:0;
  font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--ink);
}
.as-form-section legend > span{font-size:12px;letter-spacing:.1em;color:var(--accent)}

.as-field{margin:0 0 18px}
.as-field > label{
  display:block;margin:0 0 7px;
  font-size:12px;font-weight:500;letter-spacing:.04em;color:var(--muted);
}
.as-field > label em{font-style:normal;margin-left:3px;color:var(--accent)}

.as-field input[type=text],
.as-field input[type=email],
.as-field input[type=tel],
.as-field input[type=url],
.as-field select,
.as-field textarea{
  width:100%;font:inherit;font-size:15px;line-height:1.4;color:var(--ink);
  background:var(--paper);border:1px solid var(--line);border-radius:0;
  padding:12px 14px;
  transition:border-color .2s var(--ease);
}
.as-field input:focus,
.as-field select:focus,
.as-field textarea:focus{outline:none;border-color:var(--ink)}
.as-field input[type=file]{font-size:14px;color:var(--muted)}
.as-field textarea{min-height:124px;resize:vertical}

.as-field-tip{display:block;margin-top:7px;font-size:12px;line-height:1.55;color:var(--muted-2)}
.as-field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}

.as-form-actions{
  display:flex;flex-wrap:wrap;gap:12px;
  margin-top:10px;padding-top:26px;border-top:1px solid var(--line);
}

/* ---------- responsive ---------- */

@media (max-width:980px){
  .company-inner,
  .warehouse-inner{grid-template-columns:1fr;gap:28px}
  .feat-grid{grid-template-columns:1fr}
  .as-vip-grid{grid-template-columns:1fr 1fr}
  .as-vip-steps{grid-template-columns:1fr 1fr;gap:22px 24px}
  .company-stats{grid-template-columns:repeat(2,1fr)}
  .as-field-row{grid-template-columns:1fr;gap:0}
}

@media (max-width:640px){
  .as-vip-grid{grid-template-columns:1fr}
  .as-vip-steps{grid-template-columns:1fr}
  .warehouse-features{grid-template-columns:1fr}
  .as-page-hero .h-section,
  .as-vip-hero .h-section{max-width:none}
  .btn-primary,
  .btn-dark-outline,
  .btn-white,
  .btn-white-outline{min-height:48px;padding:0 22px;font-size:12px}
  .as-contact-actions .btn-primary,
  .as-contact-actions .btn-dark-outline,
  .as-vip-actions a{flex:1 1 100%}
  .as-vip-cta{padding:26px 20px}
  .as-member-bar-main{gap:12px}
  .as-member-bar-text{flex:1 1 100%}
  .as-member-bar .as-btn{width:100%}
  .as-form-actions .as-btn{flex:1 1 100%}
}

/* ============================================================
   3b. ACCOUNT DASHBOARD - VIP STATUS CARD
   The VIP landing page keeps its one line bar (it also hides the apply CTA
   for customers who already applied). The dashboard needs something that
   stands on its own above "Account Information", so the same data is
   re-laid out here as a card: eyebrow + badge, level, one sentence, a thin
   membership meter, and a single link.
   ============================================================ */

.as-mcard{
  margin:0 0 42px;
  padding:18px 22px 16px;
  background:var(--paper);
  border:1px solid var(--line);
  border-top:2px solid var(--ink);
}
.as-mcard--pending{border-top-color:#8A6D1F}
.as-mcard--rejected,
.as-mcard--expired{border-top-color:var(--accent)}
.as-mcard--none{border-top-color:var(--line-2)}

.as-mcard__head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;
}
.as-mcard__eyebrow{
  font-size:11px;font-weight:600;letter-spacing:.08em;
  color:var(--muted);
}
.as-mcard__badge{
  display:inline-flex;align-items:center;flex:0 0 auto;
  padding:4px 10px;
  font-size:11px;font-weight:600;letter-spacing:.06em;
}
.as-mcard__badge--ok{background:var(--ink);color:#fff}
.as-mcard__badge--pending{background:#8A6D1F;color:#fff}
.as-mcard__badge--bad{background:var(--accent);color:#fff}
.as-mcard__badge--idle{background:var(--mist-2);color:var(--muted)}

.as-mcard__body{margin:15px 0 0}
.as-mcard__main{min-width:0}

.as-mcard__count{display:flex;align-items:baseline;gap:9px}
.as-mcard__count-num{
  font-size:calc(var(--fs-body) * 1.7);line-height:1;font-weight:500;
  letter-spacing:-.02em;color:var(--ink);
}
.as-mcard__count-label{
  font-size:11px;font-weight:600;letter-spacing:.06em;
  color:var(--muted);
}

.as-mcard__level{
  margin:0;
  font-size:calc(var(--fs-body) * 1.5);line-height:1.3;font-weight:500;
  letter-spacing:-.005em;color:var(--ink);
}
.as-mcard__text{
  max-width:68ch;margin:6px 0 0;
  font-size:var(--fs-body);line-height:1.7;color:var(--muted);
}
.as-mcard__meter{
  position:relative;height:3px;margin:18px 0 0;
  background:var(--line-2);overflow:hidden;
}
.as-mcard__meter-fill{
  position:absolute;top:0;bottom:0;left:0;
  background:var(--ink);
}
.as-mcard--pending .as-mcard__meter-fill{background:#8A6D1F}
.as-mcard--rejected .as-mcard__meter-fill,
.as-mcard--expired .as-mcard__meter-fill{background:var(--accent)}
.as-mcard__foot{
  display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 18px;
  margin:16px 0 0;
}
.as-mcard__link{
  display:inline-block;margin-left:auto;padding-bottom:2px;
  font-size:11px;font-weight:600;letter-spacing:.06em;
  color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink);
  transition:color .2s,border-color .2s;
}
.as-mcard__link:hover{color:var(--accent);border-color:var(--accent)}

@media (max-width:767px){
  .as-mcard{margin-bottom:30px;padding:16px 16px 14px}
  .as-mcard__text{line-height:1.65}
  .as-mcard__count-num{font-size:calc(var(--fs-body) * 1.5)}
}

/* CJK has no case, so the uppercase tracking above only loosens the glyphs
   and makes "会员状态" read as four disconnected characters. */
html:is(:lang(zh),:lang(ja),:lang(ko))
  :is(.as-mcard__eyebrow,.as-mcard__badge,.as-mcard__link,
      .as-mcard__count-label){letter-spacing:.04em}
