:root {
  color-scheme: light;
  --ink: #231d19;
  --muted: #675d56;
  --paper: #f6f0e5;
  --surface: #fffdf8;
  --surface-soft: #eee4d5;
  --primary: #742b26;
  --primary-dark: #56201d;
  --gold: #b88b37;
  --gold-soft: #ead9b8;
  --line: #d7cbbb;
  --success: #2f6a4f;
  --danger: #a22d2d;
  --shadow: 0 14px 36px rgba(47, 36, 28, .09);
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, .button, input { border-radius: 6px; }
button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(184,139,55,.34);
  outline-offset: 2px;
}

.site-header {
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 50px; height: 50px; flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.35; }
.brand strong { font-size: 19px; }
.brand small { color: var(--muted); font-size: 13px; }
.brand.compact { margin-bottom: 22px; }
.brand.compact img { width: 44px; height: 44px; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.nav-link { min-height: 42px; padding: 8px 12px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-link:hover { color: var(--primary); background: #f4ecdf; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 44px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: #fffaf0; background: var(--primary); border-color: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-outline { color: var(--ink); background: transparent; border-color: #9d8e80; }
.button-outline:hover, .button-quiet:hover { background: #f1e9dc; }
.button-quiet { color: var(--ink); background: transparent; }
.button.full { width: 100%; margin-top: 18px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 8vw, 130px) 56px;
  color: #fffaf0;
  background: #432b27;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-60px, 4vw, 60px);
  top: 34px;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  background: url("/assets/xuanyou-brand-mark.svg") center / contain no-repeat;
  opacity: .13;
}
.hero-copy { width: min(760px, 100%); }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-weight: 800; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.16; letter-spacing: 0; }
.hero .hero-lead { margin: 18px 0 0; color: #fffaf0; font-size: clamp(21px, 2.4vw, 29px); font-weight: 700; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; margin: 24px 0; color: #eee2d3; font-size: 18px; }
.hero-copy > .hero-lead:not(.eyebrow) { margin: 18px 0 0; color: #fffaf0; }
.button-on-dark { color: #fffaf0; border-color: rgba(255, 250, 240, .65); }
.button-on-dark:hover { color: var(--ink); }
.hero .button-outline { color: #fff; border-color: #d5c2b4; }
.hero .button-outline:hover { background: rgba(255,255,255,.1); }
.hero-facts { max-width: 920px; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.25); }
.hero-facts div { padding: 18px 24px 0 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts span { color: #dbcfc2; font-size: 14px; }

.content-section { padding: 72px clamp(20px, 8vw, 130px); }
.content-section.surface { background: var(--surface); }
.section-heading { width: min(760px, 100%); margin: 0 0 36px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.section-heading p:last-child { color: var(--muted); }
.platform-tag { display: inline-flex; padding: 3px 9px; color: var(--primary); background: #f3e2d8; border: 1px solid #dfc4b7; border-radius: 4px; font-size: 13px; font-weight: 800; }
.product-showcase { background: var(--paper); }
.product-showcase-list { border-top: 1px solid var(--line); }
.product-showcase-item { padding: 34px 0; display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(30px, 7vw, 92px); align-items: center; border-bottom: 1px solid var(--line); }
.product-showcase-item-reverse .product-visual { order: 2; }
.product-visual { min-height: 300px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.product-visual-app { background: #ece1d0; }
.product-visual-editor { background: #3b302a; }
.product-visual img { width: clamp(118px, 15vw, 176px); height: clamp(118px, 15vw, 176px); object-fit: contain; filter: drop-shadow(0 14px 18px rgba(37, 27, 22, .16)); }
.product-showcase-copy h3 { margin: 8px 0 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.24; }
.product-showcase-copy > p { max-width: 720px; color: var(--muted); font-size: 17px; }
.plain-feature-list { margin: 22px 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain-feature-list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); }
.plain-feature-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.text-link { display: inline-flex; margin-top: 28px; font-weight: 800; }
.capability-section .section-heading { margin-bottom: 30px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 230px; padding: 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid article > span { color: var(--gold); font-size: 14px; font-weight: 800; }
.capability-grid strong { margin-top: 26px; color: var(--primary); font-size: 20px; }
.capability-grid p { margin: 10px 0 0; color: var(--muted); }
.capability-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-section { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.practice-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.practice-copy { padding-top: 5px; color: var(--muted); font-size: 18px; border-top: 3px solid var(--primary); }
.practice-copy p:first-child { color: var(--ink); }
.feature-band { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.feature-band h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list div { padding: 18px 0; display: grid; grid-template-columns: 150px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--primary); }
.feature-list span { color: var(--muted); }
.cta-band { padding: 46px clamp(20px, 8vw, 130px); display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fffaf0; background: var(--primary); }
.cta-band h2 { margin: 0; font-size: 30px; }
.cta-band p { margin: 6px 0 0; color: #eadfd4; }
.cta-band .button { color: var(--ink); background: #fff9ee; }

.about-hero { padding: clamp(64px, 9vw, 104px) clamp(20px, 8vw, 130px); color: #fffaf0; background: #432b27; }
.about-hero > div { width: min(820px, 100%); }
.about-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: 1.18; }
.about-hero p:last-child { max-width: 720px; margin: 22px 0 0; color: #eee2d3; font-size: 18px; }
.about-overview { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.about-overview .section-heading { margin-bottom: 0; }
.about-copy { color: var(--muted); font-size: 18px; }
.about-copy p:first-child { margin-top: 0; color: var(--ink); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article { min-height: 190px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid strong { color: var(--primary); font-size: 21px; }
.service-grid p { margin-bottom: 0; color: var(--muted); }
.about-method { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 96px); }
.about-method h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.method-list { margin: 0; padding: 0; list-style: none; counter-reset: method; border-top: 1px solid var(--line); }
.method-list li { counter-increment: method; padding: 18px 0; display: grid; grid-template-columns: 42px 130px minmax(0, 1fr); gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line); }
.method-list li::before { content: counter(method, decimal-leading-zero); color: var(--gold); font-weight: 800; }
.method-list span { color: var(--muted); }
.values-section { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 7vw, 96px); }
.values-section .section-heading { margin: 0; }
.value-list { border-top: 1px solid var(--line); }
.value-list div { padding: 20px 0; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); gap: 22px; border-bottom: 1px solid var(--line); }
.value-list strong { color: var(--primary); }
.value-list span { color: var(--muted); }
.product-detail { scroll-margin-top: 24px; }
.product-detail-heading { max-width: 980px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; align-items: center; }
.product-icon-shell { width: 150px; height: 150px; display: grid; place-items: center; overflow: hidden; background: #ece1d0; border: 1px solid var(--line); border-radius: 6px; }
.product-icon-shell-editor { background: #3b302a; }
.product-icon-shell img { width: 96px; height: 96px; object-fit: contain; }
.product-detail-heading h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.24; }
.product-detail-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.product-detail-grid { margin: 38px 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-detail-grid > div { min-height: 170px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-detail-grid strong { color: var(--primary); font-size: 18px; }
.product-detail-grid p { margin-bottom: 0; color: var(--muted); }

.downloads-intro { padding-bottom: 36px; }
.download-grid { display: grid; gap: 22px; }
.download-card { padding: clamp(24px, 4vw, 38px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); }
.download-card:nth-child(2) { border-left-color: var(--gold); }
.download-card h2 { margin: 8px 0; font-size: 27px; }
.download-card p { color: var(--muted); }
.download-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--muted); font-size: 14px; }
.download-checksum { display: grid; gap: 6px; margin: 16px 0 0; color: var(--muted); }
.download-checksum code { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); font-size: 12px; }
.download-notes { margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.download-notes h2 { margin-top: 0; font-size: 22px; }

.site-footer { padding: 30px clamp(20px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; color: #dfd1c1; background: #2b241f; }
.site-footer strong, .site-footer small { display: block; }
.site-footer small { margin-top: 5px; color: #bfb1a3; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-footer a { color: #f1e9dc; }
.site-footer .icp-record { flex: 0 0 100%; padding-top: 18px; border-top: 1px solid rgba(241, 233, 220, .2); color: #cfc1b3; text-align: center; }
.site-footer .icp-record:hover { color: #fff; }

.account-shell { display: grid; place-items: center; padding: 30px 18px; background: #eee3d0; }
.auth-layout { width: min(100%, 470px); }
.form-panel, .result-panel { padding: clamp(24px, 5vw, 42px); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--primary); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); }
.form-panel h1, .result-panel h1 { margin: 0; font-size: 34px; }
.form-intro { margin: 12px 0 24px; color: var(--muted); overflow-wrap: anywhere; }
form { display: grid; gap: 10px; }
form label { margin-top: 10px; font-weight: 700; line-height: 1.45; }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea { width: 100%; min-height: 48px; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid #aa9d91; border-radius: 6px; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,139,55,.22); }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.check-row input { margin-top: 6px; }
.form-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.form-foot { margin-bottom: 0; text-align: center; color: var(--muted); }
.captcha-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(132px, 168px); gap: 10px; align-items: center; }
.captcha-row > input, .captcha-image-button { height: 52px; min-height: 52px; }
.captcha-image-button { padding: 0; overflow: hidden; cursor: pointer; background: #fffaf0; border: 1px solid #aa9d91; }
.captcha-image-button:hover { border-color: var(--gold); }
.captcha-image-button:focus-visible { outline: 3px solid rgba(184,139,55,.25); border-color: var(--gold); }
.captcha-image-button:disabled { cursor: wait; opacity: .65; }
.captcha-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.form-hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.message { padding: 11px 13px; color: var(--success); background: #edf6f0; border-left: 4px solid var(--success); }
.message.error { color: var(--danger); background: #fff0ee; border-color: var(--danger); }
.result-panel { width: min(100%, 540px); text-align: center; }
.result-panel img { width: 72px; height: 72px; }
.dashboard { width: min(1440px, 100%); margin: 0 auto; padding: 58px clamp(20px, 8vw, 130px); }
.account-header-actions { row-gap: 8px !important; }
.account-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-summary-card { min-height: 245px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #765f4d; border-radius: 6px; box-shadow: 0 5px 16px rgba(47,36,28,.045); }
.account-license-card { border-top-color: var(--primary); }
.account-card-label, .account-card-description { color: var(--muted); }
.account-summary-card > strong { font-size: clamp(21px, 2vw, 27px); line-height: 1.35; overflow-wrap: anywhere; }
.account-card-description { margin: 0; line-height: 1.7; }
.account-fact-list { margin: auto 0 0; display: grid; grid-template-columns: minmax(78px, .5fr) minmax(0, 1fr); gap: 7px 14px; }
.account-fact-list dt, .account-fact-list dd { margin: 0; overflow-wrap: anywhere; }
.account-fact-list dt { color: var(--muted); }
.account-fact-list dd { font-weight: 700; }
.account-section { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.account-section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.account-section-heading h2, .account-section-heading p { margin: 0; }
.account-section-heading > p { max-width: 560px; color: var(--muted); text-align: right; }
.account-client-grid, .account-software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-panel { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 5px 16px rgba(47,36,28,.04); }
.account-panel-heading { margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.account-panel-heading h3 { margin: 0; font-size: 19px; }
.account-panel-heading span { color: var(--muted); font-size: 13px; text-align: right; }
.account-item-list { display: grid; gap: 10px; }
.account-item { min-width: 0; padding: 14px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-left: 4px solid #765f4d; border-radius: 5px; }
.account-item[data-status="active"] { border-left-color: var(--success); }
.account-item[data-status="expired"], .account-item[data-status="signed_out"] { border-left-color: #a89279; }
.account-item-main { min-width: 0; display: grid; gap: 3px; }
.account-item-main strong { overflow-wrap: anywhere; }
.account-item-main small, .account-item-detail { color: var(--muted); }
.account-item-detail { grid-column: 1 / -1; font-size: 13px; }
.account-software-card { min-width: 0; padding: 24px; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 6px; box-shadow: 0 5px 16px rgba(47,36,28,.045); }
.account-software-card:nth-child(2) { border-top-color: var(--gold); }
.account-software-card > img { width: 82px; height: 82px; object-fit: contain; border-radius: 8px; }
.account-software-copy { min-width: 0; display: grid; align-content: start; gap: 9px; }
.account-software-copy h3, .account-software-copy p { margin: 0; }
.account-software-copy h3 { font-size: 22px; }
.account-software-copy p, .account-software-copy small { color: var(--muted); line-height: 1.7; }
.account-software-copy .button-row { margin-top: 4px; }
.purchase-section { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan-option { padding: 26px; display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 6px; box-shadow: 0 5px 16px rgba(47,36,28,.045); }
.plan-option:nth-child(2) { border-top-color: var(--gold); }
.plan-option strong { color: var(--primary); font-size: 30px; }
.plan-option small, .muted-text { color: var(--muted); }
.plan-option .button { margin-top: 8px; justify-self: start; }
.subsection-heading { margin: 34px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.subsection-heading h2, .subsection-heading p { margin: 0; }
.subsection-heading p { color: var(--muted); }
.payment-order-toolbar { margin-bottom: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f4ecdf; border: 1px solid var(--line); border-radius: 6px; }
.payment-order-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.payment-order-filter { min-height: 38px; padding: 7px 12px; color: var(--ink); background: var(--surface); border: 1px solid #bcae9c; cursor: pointer; }
.payment-order-filter span { margin-left: 4px; color: var(--muted); font-size: 12px; }
.payment-order-filter:hover { border-color: var(--primary); }
.payment-order-filter.is-active { color: #fffaf0; background: var(--primary); border-color: var(--primary); }
.payment-order-filter.is-active span { color: #f8e7cf; }
.payment-order-toolbar > p { margin: 0; text-align: right; }
.payment-orders, .payment-order-list { display: grid; gap: 12px; }
.payment-order { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #765f4d; border-radius: 5px; box-shadow: 0 5px 16px rgba(47,36,28,.04); }
.payment-order[data-status="Pending"] { border-left-color: var(--gold); }
.payment-order[data-status="Paid"] { border-left-color: var(--success); }
.payment-order[data-status="Closed"] { border-left-color: var(--danger); }
.payment-order[data-status="RefundRequested"] { border-left-color: var(--danger); }
.payment-order-summary { min-height: 86px; padding: 17px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 16px; list-style: none; cursor: pointer; transition: background-color .16s ease; }
.payment-order-summary::-webkit-details-marker { display: none; }
.payment-order-summary:hover { background: #fbf6ed; }
.payment-order-summary:focus-visible { outline: 3px solid rgba(135,47,39,.22); outline-offset: -3px; }
.payment-order[open] > .payment-order-summary { background: #fbf6ed; border-bottom: 1px solid var(--line); }
.payment-order-summary-main { min-width: 0; display: grid; gap: 7px; }
.payment-order-summary-main strong { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.payment-order-summary-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.payment-order-summary-meta span { position: relative; }
.payment-order-summary-meta span + span::before { content: "·"; position: absolute; left: -9px; color: #b6a48f; }
.payment-order-summary > .status-badge { justify-self: start; }
.payment-order-summary-action { min-width: 82px; min-height: 36px; padding: 6px 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--surface); border: 1px solid #bcae9c; border-radius: 4px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.payment-order-action-open { display: none; }
.payment-order[open] .payment-order-action-closed { display: none; }
.payment-order[open] .payment-order-action-open { display: inline; }
.payment-order-body { padding: 0 20px 20px; }
.status-badge { min-height: 28px; padding: 3px 9px; display: inline-flex; align-items: center; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.payment-details { margin: 18px 0 0; display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.payment-details dt, .payment-details dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.payment-details dt { color: var(--muted); }
.payment-note { margin: 18px 0; padding: 14px; background: #f4ecdf; border-left: 4px solid var(--gold); }
.remittance-form { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.remittance-form label { margin: 0; display: grid; gap: 8px; align-content: start; }
.remittance-form label > input { margin: 0; }
.remittance-form .button { align-self: end; }
.refund-policy-notice { margin-top: 20px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; background: #f8f2e8; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; }
.refund-policy-copy { min-width: 0; display: grid; gap: 4px; }
.refund-policy-copy strong { font-size: 18px; }
.refund-policy-copy p { margin: 0; color: var(--muted); }
.refund-policy-kicker { color: var(--primary); font-size: 13px; font-weight: 800; }
.refund-policy-link { font-weight: 700; }
.refund-request-panel { margin-top: 18px; padding: 20px; display: grid; gap: 15px; background: #fbf6ed; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; }
.refund-request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.refund-request-heading > div { display: grid; gap: 3px; }
.refund-request-heading strong { font-size: 19px; }
.refund-deadline { padding: 5px 9px; color: var(--primary-dark); background: var(--gold-soft); border-radius: 4px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.refund-request-copy { margin: 0; color: var(--muted); }
.refund-reason-field { margin: 0; display: grid; gap: 8px; font-weight: 700; }
.refund-reason-field textarea { margin: 0; font-weight: 400; }
.refund-agreement-check { margin: 0; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 14px; }
.refund-agreement-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; }
.refund-request-panel .button { justify-self: start; }
.refund-request-panel .button:disabled { cursor: not-allowed; }
.refund-state-panel { margin-top: 18px; padding: 17px 18px; display: grid; gap: 5px; background: #f8f2e8; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 5px; }
.refund-state-panel strong { font-size: 18px; }
.refund-state-panel p { margin: 0; color: var(--muted); }
.refund-state-panel .refund-policy-link { justify-self: start; margin-top: 3px; }
.refund-state-panel.is-pending { background: #fff7e6; border-left-color: #a86f18; }
.refund-state-panel.is-complete { background: #edf6f1; border-left-color: var(--success); }
.refund-state-panel.is-muted { background: #f3eee6; border-left-color: #8c8177; }
.admin-security-shell { min-height: calc(100vh - 86px); padding: 72px 20px; display: grid; place-items: start center; }
.admin-security-shell[hidden] { display: none; }
.admin-security-card { width: min(100%, 560px); padding: clamp(28px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--primary); box-shadow: 0 18px 48px rgba(47,36,28,.1); }
.admin-security-card h1 { margin: 4px 0 14px; font-size: clamp(30px, 5vw, 42px); }
.admin-security-card > p { color: var(--muted); }
.admin-security-card .security-email { color: var(--ink); font-weight: 700; }
.admin-code-form { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; }
.admin-code-form[hidden] { display: none; }
.admin-code-form label { grid-column: 1 / -1; margin: 0; }
.admin-code-form input { font-size: 22px; letter-spacing: 6px; }
.admin-security-card .security-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.review-actions { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.review-actions label { margin: 0; }
.refund-admin-guide { margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; counter-reset: none; }
.refund-admin-guide li { min-width: 0; padding: 13px; display: flex; align-items: flex-start; gap: 10px; background: #f8f2e8; border: 1px solid #e2d6c6; border-radius: 5px; }
.refund-admin-guide li > span { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; color: #fffaf0; background: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 800; }
.refund-admin-guide li > div { min-width: 0; display: grid; gap: 2px; }
.refund-admin-guide strong { font-size: 14px; }
.refund-admin-guide small { color: var(--muted); line-height: 1.45; }
.refund-process-form { margin-top: 16px; padding: 16px; display: grid; gap: 12px; background: #f8f2e8; border: 1px solid #e2d6c6; border-radius: 5px; }
.refund-process-field { margin: 0; display: grid; gap: 7px; font-weight: 700; }
.refund-process-field textarea { font-weight: 400; }
.refund-process-warning { margin: 0; padding: 11px 13px; color: #752626; background: #fff0ed; border-left: 4px solid var(--danger); }
.refund-process-actions { display: flex; justify-content: flex-end; gap: 10px; }
.plan-original-price { text-decoration: line-through; }
.plan-campaign { color: var(--primary) !important; font-weight: 700; }
.plan-refund-note { padding-top: 9px; border-top: 1px solid var(--line); color: var(--text) !important; }

.admin-header { position: relative; z-index: 20; }
.admin-portal { width: min(1560px, 100%); margin: 0 auto; padding: 30px clamp(18px, 3vw, 48px) 72px; }
.admin-command-bar { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-command-bar h1 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; }
.admin-command-bar p:last-child { margin: 6px 0 0; color: var(--muted); }
.admin-command-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.admin-updated-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.admin-workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-tabs { position: sticky; z-index: 5; top: 18px; padding: 8px; display: grid; gap: 4px; background: #ede1cf; border: 1px solid var(--line); border-radius: 8px; }
.admin-tab { position: relative; min-height: 62px; padding: 9px 38px 9px 13px; display: grid; align-content: center; gap: 1px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; text-align: left; cursor: pointer; }
.admin-tab span { color: inherit; font-weight: 800; }
.admin-tab small { color: inherit; font-size: 12px; opacity: .78; }
.admin-tab:hover { color: var(--ink); background: rgba(255,253,248,.7); }
.admin-tab.is-active { color: #fffaf0; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 14px rgba(86,32,29,.18); }
.admin-nav-count { position: absolute; top: 50%; right: 11px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; color: var(--primary-dark); background: var(--gold-soft); border-radius: 11px; font-size: 12px; }
.admin-content { min-width: 0; }
.admin-view { display: grid; gap: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 132px; padding: 20px; display: grid; align-content: center; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #765f4d; border-radius: 6px; box-shadow: 0 5px 16px rgba(47,36,28,.05); }
.metric-card .metric-label { color: var(--muted); font-size: 14px; }
.metric-card strong { color: var(--primary-dark); font-size: clamp(25px, 2.7vw, 35px); line-height: 1.2; }
.metric-primary { border-left-color: var(--primary); }
.metric-success { border-left-color: var(--success); }
.metric-warning { border-left-color: #a86f18; }
.metric-info { border-left-color: #386c83; }
.metric-neutral { border-left-color: #765f4d; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.admin-panel { min-width: 0; padding: clamp(20px, 2.5vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 7px 22px rgba(47,36,28,.05); }
.admin-chart-panel { min-height: 330px; }
.panel-heading { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.panel-heading h2, .panel-heading p { margin: 0; }
.panel-heading h2 { font-size: 23px; }
.panel-heading p { margin-top: 4px; color: var(--muted); }
.trend-chart { height: 210px; padding-top: 12px; display: flex; align-items: end; gap: 4px; border-bottom: 1px solid var(--line); }
.trend-column { min-width: 5px; height: 100%; flex: 1 1 0; display: grid; grid-template-rows: minmax(0, 1fr) 22px; align-items: end; }
.trend-plot { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.trend-column small { min-height: 20px; color: var(--muted); font-size: 10px; text-align: center; white-space: nowrap; }
.trend-bar { width: 100%; min-height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; transition: opacity .15s ease; }
.trend-column:hover .trend-bar { opacity: .72; }
.trend-bar.is-zero { background: #d9cdbc; opacity: .45; }
.admin-chart-panel:nth-child(2) .trend-bar { background: var(--success); }
.attention-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.attention-item { min-height: 118px; padding: 17px; display: grid; align-content: center; gap: 4px; color: var(--ink); background: #f7f0e5; border: 1px solid var(--line); border-radius: 5px; text-align: left; cursor: pointer; }
.attention-item:hover { border-color: #9d8e80; background: #f1e7d8; }
.attention-item strong { font-size: 25px; line-height: 1.2; }
.attention-item span { color: var(--muted); font-size: 13px; }
.attention-warning { border-left: 4px solid #a86f18; }
.attention-danger { border-left: 4px solid var(--danger); }
.attention-info { border-left: 4px solid #386c83; }
.attention-neutral { border-left: 4px solid #765f4d; }
.admin-filter-bar { margin-bottom: 14px; padding: 14px; display: flex; align-items: end; flex-wrap: wrap; gap: 10px 12px; background: #f8f2e8; border: 1px solid #e2d6c6; border-radius: 5px; }
.admin-filter-bar label { min-width: 160px; margin: 0; display: grid; align-content: end; gap: 6px; }
.admin-filter-bar .filter-grow { min-width: min(100%, 280px); flex: 1 1 340px; }
.filter-actions { min-height: 48px; display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.filter-actions .button { min-width: 88px; }
.result-summary { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.checkbox-label { min-height: 48px; display: flex !important; align-items: center; gap: 10px; font-weight: 700; }
.checkbox-label input { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.admin-form-grid label { display: grid; align-content: start; gap: 5px; }
.admin-form-grid .span-all { grid-column: 1 / -1; }
.admin-form-grid > .button, .admin-form-grid > .button-row { justify-self: start; align-self: end; }
.button-small { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.table-scroll > .muted-text, .admin-loading, .admin-empty-state { margin: 0; padding: 30px 18px; color: var(--muted); text-align: center; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e7ded2; white-space: nowrap; }
.admin-table th { position: sticky; z-index: 1; top: 0; color: var(--primary-dark); background: var(--surface-soft); }
.admin-table tbody tr { transition: background .12s ease; }
.admin-table tbody tr:hover { background: #faf6ee; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.table-primary-cell { display: grid; gap: 2px; font-weight: 700; }
.table-primary-cell small { color: var(--muted); font-weight: 400; }
.table-code { max-width: 200px; overflow: hidden; font-family: Consolas, monospace; text-overflow: ellipsis; }
.table-wrap-cell { max-width: 360px; white-space: normal !important; overflow-wrap: anywhere; }
.pagination { margin-top: 15px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pagination label { min-width: 100px; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.pagination select { width: auto; min-width: 76px; }
.status-success { color: #24533f; background: #e5f1e9; border-color: #a7c8b4; }
.status-warning { color: #744b0e; background: #fbefd9; border-color: #ddbd7f; }
.status-danger { color: #842727; background: #fbe5e2; border-color: #dfaaa5; }
.status-info { color: #28566a; background: #e4f0f3; border-color: #a7c7d0; }
.status-neutral, .status-badge.is-muted { color: var(--muted); background: #eee9e2; border-color: #d5cbc0; }
.campaign-list { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.campaign-item { padding: 19px; background: #faf6ee; border: 1px solid var(--line); border-radius: 5px; }
.campaign-item p { margin: 8px 0; }
.campaign-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.campaign-heading strong { font-size: 19px; }
.commerce-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.commerce-status-item { min-height: 104px; padding: 17px; display: grid; align-content: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #765f4d; border-radius: 5px; }
.commerce-status-item strong { font-size: 21px; }
.commerce-status-item span { color: var(--muted); font-size: 13px; }
.commerce-status-item.status-success { border-top-color: var(--success); }
.commerce-status-item.status-warning { border-top-color: #a86f18; }
.commerce-status-item.status-info { border-top-color: #386c83; }
.commerce-status-item.status-neutral { border-top-color: #765f4d; }
.admin-disclosure { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.admin-disclosure summary { padding: 18px 22px; display: grid; gap: 2px; cursor: pointer; }
.admin-disclosure summary span { font-weight: 800; }
.admin-disclosure summary small { color: var(--muted); }
.admin-disclosure-body { padding: 22px; border-top: 1px solid var(--line); }
.admin-toast { position: fixed; z-index: 60; top: 92px; right: 24px; width: min(430px, calc(100% - 36px)); padding: 13px 16px; color: #24533f; background: #edf6f0; border: 1px solid #b9d1c2; border-left: 5px solid var(--success); border-radius: 5px; box-shadow: var(--shadow); }
.admin-toast.is-error { color: #842727; background: #fff0ee; border-color: #e0b7b2; border-left-color: var(--danger); }
.admin-toast.is-success { color: #24533f; }
.admin-drawer-layer { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); }
.admin-drawer-backdrop { grid-column: 1; width: 100%; height: 100%; background: rgba(35,29,25,.42); border: 0; border-radius: 0; cursor: pointer; }
.admin-drawer { grid-column: 2; height: 100%; padding: 26px; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -16px 0 36px rgba(35,29,25,.13); }
.admin-drawer > header { padding-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.admin-drawer h2 { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.admin-drawer-content { padding-top: 20px; }
.drawer-sections { display: grid; gap: 18px; }
.drawer-section { padding: 18px; background: #f8f2e8; border: 1px solid #e2d6c6; border-radius: 5px; }
.drawer-section h3 { margin: 0 0 12px; font-size: 18px; }
.admin-detail-list { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.admin-detail-list dt, .admin-detail-list dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #e3d8ca; overflow-wrap: anywhere; }
.admin-detail-list dt { color: var(--muted); }
body.admin-drawer-open { overflow: hidden; }
.admin-confirm-dialog { width: min(460px, calc(100% - 36px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.admin-confirm-dialog::backdrop { background: rgba(35,29,25,.45); }
.admin-confirm-dialog form { padding: 28px; }
.admin-confirm-dialog h2 { margin: 0 0 10px; font-size: 25px; }
.admin-confirm-dialog .button-row { margin-top: 22px; justify-content: flex-end; }
.legal-page { width: min(100% - 36px, 860px); margin: 40px auto; padding: clamp(24px, 5vw, 54px); background: var(--surface); border: 1px solid var(--line); }
.legal-page h1 { font-size: clamp(34px, 5vw, 44px); }
.legal-page h2 { margin-top: 30px; font-size: 21px; }
.legal-page .brand { margin-bottom: 26px; }
.legal-meta { color: var(--muted); }
.legal-highlight { margin: 26px 0; padding: 20px; background: #f8f2e8; border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.legal-highlight strong { color: var(--primary-dark); font-size: 18px; }
.legal-highlight p { margin: 6px 0 0; }
.legal-action-row { margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-tabs { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; border-radius: 6px; }
  .admin-tab { min-width: 0; }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .site-header .brand small { display: none; }
  .site-header nav .nav-link { display: none; }
  .account-site-header { flex-direction: column; }
  .account-site-header .brand { flex-shrink: 0; }
  .account-header-actions { width: 100%; justify-content: flex-start !important; }
  .hero { min-height: auto; }
  .hero::after { right: -120px; width: 420px; }
  .hero-facts, .account-summary-grid, .account-client-grid, .account-software-grid, .feature-band, .plan-grid, .about-overview, .about-method, .practice-section, .values-section { grid-template-columns: 1fr; }
  .hero-facts div { padding-right: 0; }
  .account-section-heading { align-items: stretch; flex-direction: column; gap: 6px; }
  .account-section-heading > p { max-width: none; text-align: left; }
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  .download-card { grid-template-columns: 1fr; }
  .download-card .button { width: 100%; }
  .cta-band, .site-footer { align-items: stretch; flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
  .metric-grid, .attention-grid, .commerce-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-command-bar { align-items: flex-start; flex-direction: column; }
  .admin-command-actions { justify-content: flex-start; }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar { align-items: stretch; }
  .admin-filter-bar label, .admin-filter-bar .filter-grow { min-width: 210px; flex: 1 1 210px; }
  .refund-admin-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-list { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .product-showcase-item { grid-template-columns: 1fr; gap: 24px; }
  .product-showcase-item-reverse .product-visual { order: 0; }
  .product-visual { min-height: 220px; }
  .capability-grid, .capability-grid-wide, .product-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-list div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 520px) {
  .site-header { min-height: 70px; padding: 10px 14px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 17px; }
  .site-header .button { min-height: 40px; padding: 7px 12px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: 38px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-top: 13px; }
  .content-section { padding-top: 54px; padding-bottom: 54px; }
  .dashboard { padding-top: 38px; }
  .account-header-actions .button { flex: 1 1 auto; justify-content: center; }
  .account-summary-card { min-height: 0; }
  .account-panel-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .account-panel-heading span { text-align: left; }
  .account-software-card { padding: 18px; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; }
  .account-software-card > img { width: 66px; height: 66px; }
  .account-software-copy .button-row { grid-column: 1 / -1; }
  .account-software-copy .button { width: 100%; justify-content: center; }
  .payment-order-toolbar { align-items: stretch; flex-direction: column; }
  .payment-order-toolbar > p { text-align: left; }
  .payment-order-summary { min-height: 0; padding: 15px 14px; grid-template-columns: minmax(0, 1fr) auto; }
  .payment-order-summary-main { grid-column: 1 / -1; }
  .payment-order-summary-action { min-width: 76px; justify-self: end; }
  .payment-order-body { padding: 0 14px 16px; }
  .subsection-heading { align-items: stretch; flex-direction: column; }
  .payment-details, .remittance-form, .review-actions { grid-template-columns: 1fr; }
  .refund-policy-notice { grid-template-columns: 1fr; }
  .refund-policy-notice .button { width: 100%; }
  .refund-request-heading { flex-direction: column; gap: 8px; }
  .refund-deadline { white-space: normal; }
  .refund-request-panel .button { width: 100%; }
  .refund-admin-guide { grid-template-columns: 1fr; }
  .refund-process-actions { width: 100%; flex-direction: column; }
  .refund-process-actions .button { width: 100%; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .admin-portal { padding: 24px 12px 54px; }
  .admin-command-actions, .admin-command-actions .button { width: 100%; }
  .admin-tabs { margin-inline: 0; padding: 6px; border-radius: 6px; }
  .admin-tab { min-width: 0; min-height: 58px; padding-right: 34px; }
  .metric-grid, .attention-grid, .commerce-status, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .span-all { grid-column: auto; }
  .admin-filter-bar { display: grid; grid-template-columns: 1fr; }
  .admin-filter-bar label, .admin-filter-bar .filter-grow { min-width: 0; }
  .filter-actions, .filter-actions .button { width: 100%; }
  .filter-actions .button { flex: 1 1 0; }
  .admin-code-form { grid-template-columns: 1fr; }
  .admin-code-form label { grid-column: auto; }
  .pagination { justify-content: space-between; }
  .admin-panel { padding: 18px 14px; }
  .admin-chart-panel { min-height: 290px; }
  .trend-chart { height: 180px; }
  .admin-drawer-layer { display: block; }
  .admin-drawer-backdrop { display: none; }
  .admin-drawer { width: 100%; padding: 20px 16px; border-left: 0; }
  .admin-detail-list { grid-template-columns: 92px minmax(0, 1fr); }
  .method-list li { grid-template-columns: 36px 1fr; }
  .method-list span { grid-column: 2; }
  .capability-grid, .capability-grid-wide, .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-heading { grid-template-columns: 86px minmax(0, 1fr); gap: 18px; }
  .product-icon-shell { width: 86px; height: 86px; }
  .product-icon-shell img { width: 58px; height: 58px; }
}
