:root {
  --bg: #0B1411;
  --surface: #12201B;
  --primary: #2D9B5F;
  --accent: #E8B84A;
  --text: #E8EEEA;
  --muted: #8AA398;
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Outfit", system-ui, sans-serif;
  --radius: 18px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea, label { touch-action: manipulation; }
button, .btn, .burger, .lang-btn { -webkit-tap-highlight-color: color-mix(in srgb, var(--primary) 22%, transparent); }
html[dir="rtl"] { direction: rtl; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  letter-spacing: 0.01em;
}
body.booting main { opacity: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }

.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 40;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; color: #000; padding: 8px; }

.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  backdrop-filter: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 600; letter-spacing: 0.02em; font-size: 18px; }
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand img[hidden],
.brand img:not([src]),
body.no-brand-mark .brand img {
  display: none !important;
}
.brand .soft { color: var(--primary); }
.brand small { display: block; font-size: 10px; letter-spacing: 0.28em; color: var(--accent); margin-top: -2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: 8px; flex-shrink: 0; }
.lang { position: relative; }
.lang-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font-size: 12px; letter-spacing: 0.08em;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 200px; max-height: 320px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--muted);
}
.lang-menu button:hover, .lang-menu button.active { background: var(--surface); color: var(--text); }
.lang-menu .native { display: block; font-size: 13px; color: var(--text); }
.lang-menu .name { font-size: 11px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--bg); font-weight: 600;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.burger { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 12px; }
.burger span, .burger span:before, .burger span:after {
  display: block; width: 16px; height: 1.5px; background: var(--text); margin: 0 auto; position: relative;
}
.burger span:before, .burger span:after { content: ""; position: absolute; left: 0; }
.burger span:before { top: -5px; } .burger span:after { top: 5px; }

.drawer {
  position: fixed; inset: 88px 12px auto 12px; z-index: 29;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; display: grid; gap: 4px;
}
.drawer[hidden] { display: none !important; }
@media (min-width: 861px) {
  .drawer { display: none !important; }
}
.drawer a { padding: 12px; border-radius: 10px; color: var(--muted); }
.drawer a.active, .drawer a:hover { background: var(--surface); color: var(--text); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  position: relative; padding: 88px 0 72px; overflow: hidden;
  min-height: min(72vh, 640px); display: flex; align-items: center;
}
.hero:before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 520px; height: 520px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 28%, transparent), transparent 68%);
  pointer-events: none;
}
.kicker {
  color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 11px; font-weight: 500; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95; font-weight: 600; margin: 0 0 22px;
  max-width: 16ch;
}
.hero p.lead { max-width: 42em; color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gold-line { width: 72px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); margin: 28px 0; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 12px auto 64px; width: min(1120px, calc(100% - 40px));
}
.stats div { background: var(--surface); padding: 22px 24px; }
.stats strong { display: block; font-family: var(--display); font-size: 28px; }
.stats span { color: var(--muted); font-size: 13px; }

section { padding: 28px 0 64px; }
.sec-h {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px;
}
.sec-h h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); margin: 0; font-weight: 600; }
.sec-h p { color: var(--muted); margin: 0; max-width: 36em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #fff 4%), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  min-height: 220px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.card .icon {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  display: grid; place-items: center; color: var(--primary); font-size: 18px;
  flex-shrink: 0;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.card .cover, .case .cover {
  margin: -24px -22px 8px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.case .cover { margin: -28px -28px 16px; border-radius: 22px 22px 0 0; flex: 0 0 auto; }
.card .cover img, .card .cover video,
.case .cover img, .case .cover video {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.cover-hero { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; max-width: 46em; }
.cover-hero img, .cover-hero video { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.card h3 { margin: 8px 0 0; font-size: 20px; font-weight: 600; }
.card-body h3 { margin-top: 0; }
.card p { color: var(--muted); margin: 0; line-height: 1.55; flex: 1; }

.cases { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.cover-ph {
  height: 160px;
  background:
    radial-gradient(120px 80px at 20% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    radial-gradient(160px 100px at 80% 70%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 72%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--surface));
}
.case .cover-ph { height: 168px; }
.case {
  border-radius: 22px; overflow: hidden; min-height: 280px; position: relative;
  border: 1px solid var(--line); background:
    radial-gradient(800px 240px at 20% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent),
    var(--surface);
  padding: 28px; display: flex; flex-direction: column; justify-content: flex-start;
  transition: border-color .22s ease, transform .22s ease;
}
.case:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.cases.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cases.team-grid .case {
  min-height: 0;
  justify-content: flex-start;
  padding: 0 0 18px;
}
.cases.team-grid .case .cover {
  margin: 0 0 12px;
  border-radius: 22px 22px 0 0;
}
.cases.team-grid .case .cover img,
.cases.team-grid .case .cover video,
.cases.team-grid .case .cover-ph {
  height: auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.cases.team-grid .case h3 { font-size: 22px; margin: 0 18px 8px; }
.cases.team-grid .case p { margin: 0 18px; }
.cases.team-studio {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 920px;
}
.cases.team-studio .case {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  grid-template-areas: "pic name" "pic role";
  column-gap: 36px;
  row-gap: 8px;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.cases.team-studio .case:hover { transform: none; border-color: var(--line); }
.cases.team-studio .case .cover {
  grid-area: pic;
  margin: 0;
  width: 100%;
  border-radius: calc(var(--radius) + 2px);
  justify-self: start;
}
.cases.team-studio .case .cover img,
.cases.team-studio .case .cover video,
.cases.team-studio .case .cover-ph {
  height: auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.cases.team-studio .case h3 {
  grid-area: name;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  align-self: end;
}
.cases.team-studio .case p {
  grid-area: role;
  margin: 0;
  font-size: 16px;
  align-self: start;
}
.cases.team-studio .case:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  grid-template-areas: "name pic" "role pic";
  text-align: right;
}
.cases.team-studio .case:nth-child(even) .cover { justify-self: end; }
.cases.team-studio .case:first-child {
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  padding-top: 8px;
}
.cases.team-studio .case:first-child h3 { font-size: clamp(32px, 4vw, 48px); }
.cases.careers-grid,
.cases.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cases.careers-grid .case,
.cases.media-grid .case {
  min-height: 0;
  padding: 0 0 20px;
}
.cases.careers-grid .case .cover,
.cases.media-grid .case .cover {
  margin: 0 0 14px;
  border-radius: 22px 22px 0 0;
}
.cases.careers-grid .case .cover img,
.cases.careers-grid .case .cover video,
.cases.careers-grid .case .cover-ph,
.cases.media-grid .case .cover img,
.cases.media-grid .case .cover video,
.cases.media-grid .case .cover-ph {
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
}
.cases.careers-grid .case h3,
.cases.media-grid .case h3 { font-size: 24px; margin: 0 20px 8px; }
.cases.careers-grid .case p,
.cases.media-grid .case p,
.cases.careers-grid .case .meta,
.cases.media-grid .case .meta { margin: 0 20px; }
.cases.products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
}
.cases.products-grid .case {
  min-height: 0;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.cases.products-grid .case:hover { transform: none; border-color: transparent; }
.cases.products-grid .case .cover {
  margin: 0 0 16px;
  border-radius: calc(var(--radius) + 4px);
}
.cases.products-grid .case .cover img,
.cases.products-grid .case .cover video,
.cases.products-grid .case .cover-ph {
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.cases.products-grid .case:nth-child(4n+1) .cover img,
.cases.products-grid .case:nth-child(4n+1) .cover video,
.cases.products-grid .case:nth-child(4n+1) .cover-ph {
  aspect-ratio: 4 / 5;
}
.cases.products-grid .case:nth-child(4n+2) {
  margin-top: 72px;
}
.cases.products-grid .case:nth-child(4n+2) .cover img,
.cases.products-grid .case:nth-child(4n+2) .cover video,
.cases.products-grid .case:nth-child(4n+2) .cover-ph {
  aspect-ratio: 16 / 10;
}
.cases.products-grid .case:nth-child(4n+3) {
  margin-top: 28px;
}
.cases.products-grid .case:nth-child(4n+3) .cover img,
.cases.products-grid .case:nth-child(4n+3) .cover video,
.cases.products-grid .case:nth-child(4n+3) .cover-ph {
  aspect-ratio: 5 / 4;
}
.cases.products-grid .case:nth-child(4n+4) {
  margin-top: -24px;
}
.cases.products-grid .case:nth-child(4n+4) .cover img,
.cases.products-grid .case:nth-child(4n+4) .cover video,
.cases.products-grid .case:nth-child(4n+4) .cover-ph {
  aspect-ratio: 3 / 4;
}
.cases.products-grid .case h3 { margin: 0 4px 10px; line-height: 1.2; }
.cases.products-grid .case p { margin: 0 4px; }
.cases.products-grid .case:nth-child(4n+1) h3 { font-size: clamp(26px, 2.4vw, 34px); }
.cases.products-grid .case:nth-child(4n+2) h3 { font-size: clamp(20px, 1.8vw, 24px); }
.cases.products-grid .case:nth-child(4n+3) h3 { font-size: clamp(22px, 2vw, 28px); }
.cases.products-grid .case:nth-child(4n+4) h3 { font-size: clamp(24px, 2.1vw, 30px); }
.cases.cases-board {
  counter-reset: case-n;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  align-items: start;
}
.cases.cases-board .case {
  counter-increment: case-n;
  min-height: 0;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.cases.cases-board .case:hover { transform: none; border-color: transparent; }
.cases.cases-board .case .cover {
  margin: 0 0 16px;
  border-radius: calc(var(--radius) + 2px);
}
.cases.cases-board .case .cover img,
.cases.cases-board .case .cover video,
.cases.cases-board .case .cover-ph {
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.cases.cases-board .case .meta {
  margin: 0 2px 8px;
  letter-spacing: 0.12em;
}
.cases.cases-board .case .meta::before {
  content: counter(case-n, decimal-leading-zero) "  ";
  color: var(--primary);
}
.cases.cases-board .case h3 { margin: 0 2px 10px; line-height: 1.2; }
.cases.cases-board .case p { margin: 0 2px; max-width: 36em; }
.cases.cases-board .case:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 40px;
  row-gap: 8px;
  align-items: center;
  padding: 0;
}
.cases.cases-board .case:first-child .cover {
  grid-column: 1;
  grid-row: 1 / 4;
  margin: 0;
}
.cases.cases-board .case:first-child .cover img,
.cases.cases-board .case:first-child .cover video,
.cases.cases-board .case:first-child .cover-ph {
  aspect-ratio: 16 / 10;
}
.cases.cases-board .case:first-child .meta { grid-column: 2; grid-row: 1; margin: 0; }
.cases.cases-board .case:first-child h3 {
  grid-column: 2;
  grid-row: 2;
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0;
}
.cases.cases-board .case:first-child p { grid-column: 2; grid-row: 3; margin: 0; align-self: start; }
.cases.cases-board .case:nth-child(2) { margin-top: 8px; }
.cases.cases-board .case:nth-child(2) .cover img,
.cases.cases-board .case:nth-child(2) .cover video,
.cases.cases-board .case:nth-child(2) .cover-ph { aspect-ratio: 16 / 9; }
.cases.cases-board .case:nth-child(2) h3 { font-size: clamp(22px, 2vw, 28px); }
.cases.cases-board .case:nth-child(3) { margin-top: 56px; }
.cases.cases-board .case:nth-child(3) .cover img,
.cases.cases-board .case:nth-child(3) .cover video,
.cases.cases-board .case:nth-child(3) .cover-ph { aspect-ratio: 4 / 5; }
.cases.cases-board .case:nth-child(3) h3 { font-size: clamp(24px, 2.2vw, 30px); }
.cases.cases-board .case:nth-child(n+4) .cover img,
.cases.cases-board .case:nth-child(n+4) .cover video,
.cases.cases-board .case:nth-child(n+4) .cover-ph { aspect-ratio: 5 / 4; }
.cases.cases-board .case:nth-child(n+4) h3 { font-size: clamp(20px, 1.8vw, 26px); }
.cover-hero.cover-hero-wide {
  max-width: none;
}
.cover-hero.cover-hero-wide img,
.cover-hero.cover-hero-wide video {
  max-height: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 22%;
}
.careers-lead { max-width: none; margin-bottom: 28px; }
.careers-lead figure img {
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 28%;
}
.cover-hero.cover-hero-portrait img,
.cover-hero.cover-hero-portrait video {
  max-height: none;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.case .meta { color: var(--accent); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.case h3 { font-family: var(--display); font-size: 32px; margin: 8px 0 10px; }
.case p { color: var(--muted); margin: 0; }

.why-web { padding: 12px 0 48px; }
.why-web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 40px;
  align-items: center;
}
.why-web-grid > .cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.why-web-grid > .cover img,
.why-web-grid > .cover video,
.why-web-grid > .cover-ph {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.why-web-copy { min-width: 0; }
.why-web-copy h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}
.why-web-copy .lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 38em;
}
.why-web-points {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.why-web-points li {
  margin: 0;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--primary);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}
.why-web-actions { margin-top: 4px; }
@media (max-width: 860px) {
  .why-web { padding: 8px 0 36px; }
  .why-web-grid { grid-template-columns: 1fr; gap: 18px; }
  .why-web-actions .btn { min-height: 44px; }
  .why-web-actions { display: grid; gap: 10px; }
  .why-web-actions .btn { width: 100%; }
}
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.about-grid p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.panel {
  border: 1px solid var(--line); border-radius: 22px; padding: 28px 28px 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.panel dt { color: var(--text); font-size: 15px; letter-spacing: 0.02em; text-transform: none; margin: 0; font-weight: 600; }
.panel dd { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.panel-meta { font-size: 13px; }
.channel-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-sec { padding-bottom: 8px; }
.contact-sec .panel { max-width: none; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.contact-intro { margin-bottom: 20px; max-width: 46em; }
.contact-hours h3, .inquiry-form h3 { font-family: var(--display); font-size: 22px; margin: 20px 0 8px; }
.contact-hours p { white-space: pre-wrap; color: var(--muted); line-height: 1.55; margin: 0; }
.contact-map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { display: block; width: 100%; height: 280px; border: 0; }
.inquiry-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
}
.inquiry-form .inquiry-hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.inquiry-form input, .inquiry-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text);
  font: inherit;
}
.inquiry-form .btn { margin-top: 8px; }
.inquiry-form .ok { color: var(--primary); margin-top: 10px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.channel {
  position: relative;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; color: var(--text);
  cursor: default;
}
a.channel { cursor: pointer; }
a.channel:hover, .channel:hover, .channel:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); color: var(--text);
  outline: none;
}
.channel-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  min-width: max-content;
  max-width: min(280px, 70vw);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-all;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 18%, transparent);
  transition: opacity .15s ease, transform .15s ease;
}
.channel-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface);
}
.channel:hover .channel-tip,
.channel:focus-visible .channel-tip,
.channel.is-open .channel-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .channel-tip {
    bottom: auto;
    top: calc(100% + 10px);
  }
  .channel-tip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--surface);
  }
}

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.legal { color: var(--muted); line-height: 1.8; max-width: 48em; white-space: pre-wrap; font-size: 16px; }
.empty-block { color: var(--muted); font-size: 15px; padding: 28px 0; }
.site-banner { padding: 24px 0 0; }
.site-banner .banner-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.site-banner .banner-media img, .site-banner .banner-media video { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.banner-slider { position: relative; }
.banner-track { position: relative; }
.banner-slide { display: none; }
.banner-slide.on { display: block; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text); cursor: pointer; font-size: 22px; line-height: 1;
}
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 999px; padding: 0; border: 0;
  background: color-mix(in srgb, var(--text) 35%, transparent); cursor: pointer;
}
.banner-dot.on { background: var(--primary); }
@media (max-width: 860px) {
  .banner-nav { width: 34px; height: 34px; }
}
.prose { color: var(--muted); line-height: 1.8; max-width: 48em; font-size: 16px; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.2em 0 0.5em; line-height: 1.3; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose p { margin: 0.7em 0; }
.prose ul, .prose ol { margin: 0.8em 0; padding-left: 1.5em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--line); color: var(--muted); }
.prose pre { background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 0.9em 1em; border-radius: 8px; overflow: auto; }
.prose code { background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.92em; }
.prose img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; display: block; margin: 1em 0; }
.prose figure { margin: 1.2em 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 1.2em 0;
}
.prose .media-grid figure { margin: 0; }
.prose .media-grid img { height: 180px; margin: 0; }
.prose .media-grid.team-grid img { height: 220px; object-position: top; }
.prose .news-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: start;
  margin: 1.1em 0;
}
.prose .news-card img { width: 168px; height: 112px; object-fit: cover; border-radius: 12px; margin: 0; }
.prose .news-card p { margin: 0.2em 0 0; }
@media (max-width: 640px) {
  .prose .news-card { grid-template-columns: 1fr; }
  .prose .news-card img { width: 100%; height: 168px; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form { max-width: 28em; display: grid; gap: 14px; }
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-inline-end: 42px; }
.pw-eye {
  position: absolute; inset-inline-end: 2px; bottom: 2px;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw-eye.is-on { color: var(--text); }
.pw-eye.is-on::after {
  content: ""; position: absolute; width: 18px; height: 1.8px;
  background: currentColor; transform: rotate(-35deg); border-radius: 1px;
}
.auth-code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.auth-code-row .btn { height: 42px; }
.acct-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.acct-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); background: transparent; white-space: nowrap;
}
.acct-nav a:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.acct-nav a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.acct-nav .vip-chip { margin-left: auto; font-size: 12px; color: var(--muted); }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.acct-subnav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: -8px 0 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.acct-subnav a {
  display: inline-flex; align-items: center;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-radius: 10px;
}
.acct-subnav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.acct-subnav a.on { color: var(--text); background: var(--surface); }
.acct-id-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct-id-cell code { font-size: 12px; word-break: break-all; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.plan.feat, .plan.current { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); }
.plan .pill { align-self: flex-start; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--primary); border-radius: 999px; padding: 4px 10px; }
p.banner { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); margin: 0 0 16px; }
p.banner.ok { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.plan h3 { font-family: var(--display); font-size: 28px; margin: 0; }
.plan-body { color: var(--muted); font-size: 14px; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.plan ul { color: var(--muted); font-size: 14px; padding-left: 18px; flex: 1; }
.pay-opts { display: grid; gap: 8px; margin-bottom: 10px; }
.pay-opt { display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.pay-opt span { color: var(--muted); font-size: 12px; word-break: break-all; }
.pay-opt input { width: auto; accent-color: var(--primary); }
.pay-page { display: grid; gap: 16px; }
.pay-page > .btn-sm { justify-self: start; }
.pay-page .pay-opts { gap: 10px; margin: 0 0 16px; }
.pay-page .pay-opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.pay-page .pay-opt > span { display: grid; gap: 4px; color: var(--text); font-size: 14px; }
.pay-page .pay-opt b { color: var(--text); font-size: 15px; }
.pay-page .pay-opt span span { color: var(--muted); font-size: 13px; }
.pay-page .pay-opt:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.pay-page .acct-table th { text-align: left; width: 7em; color: var(--muted); font-weight: 600; }
.pay-copy-cell { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.pay-copy-cell code { flex: 1; min-width: 0; font-size: 13px; }
.pay-shot { display: block; width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin: 0 0 12px; }
.pay-act {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
  margin-top: 16px;
}
.pay-act .btn {
  flex: 1 1 9.5em;
  min-width: 0;
  min-height: 44px;
  text-align: center;
}
.pay-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.pay-file-btn input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 16px; margin: 0; padding: 0; border: 0;
}
.pay-act .btn[aria-disabled="true"] { opacity: 0.45; }
.pay-qr-wrap { display: grid; justify-items: start; gap: 8px; margin: 0 0 16px; }
.pay-qr {
  width: 180px; height: 180px; object-fit: contain;
  background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line);
}
.pay-ccy { display: grid; gap: 8px; margin: 0 0 16px; }
.pay-ccy .note { margin: 0; }
button.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.invite-card {
  border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  background: radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent), var(--surface);
}
.invite-card .code { font-family: var(--display); font-size: clamp(28px, 5vw, 42px); letter-spacing: 0.12em; margin: 8px 0 16px; word-break: break-all; }
.invite-card .link { color: var(--muted); font-size: 13px; word-break: break-all; margin: 0 0 8px; line-height: 1.5; }
.invite-rate .acct-panel-head { margin-bottom: 8px; }
.invite-rate .acct-panel-head .note { margin: 0; }
.invite-rate-table th:nth-child(n+2),
.invite-rate-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.invite-rate-table td.num { font-family: var(--display); font-size: 20px; font-weight: 600; }
.invite-rate-table tr.on td { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.invite-rate .pill {
  display: inline-block; margin-left: 8px; font-size: 11px; letter-spacing: 0.04em;
  color: var(--bg); background: var(--primary); border-radius: 999px; padding: 2px 8px; vertical-align: 2px;
}
.invite-rate .note { margin: 12px 0 0; }
[class*="acct-invite-"] + .acct-panel { margin-top: 18px; }
.stack { display: grid; gap: 8px; }
.acct-lead { margin: 0 0 22px; max-width: 46em; }
.acct-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: start; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acct-panel { margin-bottom: 18px; }
.acct-split .acct-panel, .acct-split .invite-card { margin-bottom: 0; }
.acct-panel h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.acct-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.acct-panel-head h3 { margin: 0; }
.acct-bind-form, .acct-wd-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wallet-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 18px; width: 100%;
}
.wallet-stats > div, .wallet-stats > a { background: var(--surface); padding: 18px 20px; color: inherit; text-decoration: none; }
.wallet-stats > a:hover { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.wallet-stats span { display: block; color: var(--muted); font-size: 12px; }
.wallet-stats strong { display: block; font-family: var(--display); font-size: 22px; margin-top: 6px; font-weight: 600; }
.wallet-home { display: grid; gap: 16px; min-width: 0; }
.wallet-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(520px 180px at 0% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    var(--surface);
}
.wallet-hero-main { min-width: 0; }
.wallet-hero-main span {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.wallet-hero-main strong {
  display: block; font-family: var(--display); font-size: clamp(32px, 5vw, 48px); font-weight: 600; margin: 6px 0 10px; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.wallet-hero-main p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 42em; overflow-wrap: anywhere; }
.wallet-ico-btn {
  position: relative; width: 76px; height: 54px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  cursor: pointer; display: grid; place-items: center; padding: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.wallet-ico-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.wallet-ico-btn svg { width: 64px; height: 42px; display: block; }
.wallet-ico-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: var(--bg);
  font-size: 11px; font-weight: 700; font-style: normal; line-height: 18px; text-align: center;
}
.wallet-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wallet-metrics a {
  display: block; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); color: inherit; text-decoration: none;
}
.wallet-metrics a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.wallet-metrics span { display: block; color: var(--muted); font-size: 12px; }
.wallet-metrics strong { display: block; font-family: var(--display); font-size: 22px; margin-top: 6px; font-weight: 600; }
.wallet-cta {
  border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; background: var(--surface);
}
.wallet-cta-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.wallet-cta-head h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.wallet-wd-form { display: grid; gap: 14px; }
.wallet-wd-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.wallet-wd-form .btn { justify-self: start; min-width: 8em; }
.method-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.method-card.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}
.method-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.method-card b { display: block; font-size: 15px; font-weight: 600; }
.method-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; word-break: break-all; }
.acct-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.acct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acct-table td, .acct-table th { word-break: break-word; }
.acct-table th {
  text-align: left; color: var(--muted); font-weight: 500;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px;
}
.acct-table td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.acct-table .cell-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.acct-table .show-sm { display: none; }
.acct-list { display: none; }
.acct-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}
.acct-filter.with-q {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
}
.acct-filter label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.acct-filter input { width: 100%; min-width: 0; }
.acct-filter .btn { justify-self: start; }
.acct-date { min-width: 0; }
.acct-date-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.acct-date-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-date-txt.ph { color: var(--muted); }
.acct-date-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.acct-date-btn[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.acct-cal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.acct-cal-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.acct-cal-head strong {
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}
.acct-cal-nav {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.acct-cal-dow,
.acct-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.acct-cal-dow span,
.acct-cal-pad {
  display: grid;
  place-items: center;
  min-height: 28px;
  font-size: 11px;
  color: var(--muted);
}
.acct-cal-day {
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.acct-cal-day:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.acct-cal-day.today { box-shadow: inset 0 0 0 1px var(--line); }
.acct-cal-day.on {
  background: var(--primary);
  color: var(--bg);
}
.acct-cal-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.acct-pager {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px;
}
.pub-page-size { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pub-page-size select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.acct-pager-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-pager-btns .btn.on {
  background: var(--primary); color: var(--bg); border-color: var(--primary);
}
.acct-pager-btns .btn:disabled { opacity: 0.4; }
.status-pill {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.06em; border: 1px solid var(--line); width: fit-content;
}
.status-pill.ok { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.status-pill.warn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.status-pill.bad { color: #c98984; border-color: color-mix(in srgb, #c98984 45%, var(--line)); }
.comm-list { display: grid; gap: 12px; margin-top: 14px; }
.comm-item {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.comm-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.comm-item-head .kicker { margin: 0 0 4px; }
.comm-amt { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--primary); }
.comm-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin: 0;
}
.comm-meta div { min-width: 0; }
.comm-meta dt { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; }
.comm-meta dd { margin: 0; font-size: 14px; word-break: break-word; }
.comm-meta small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-all; }
select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; color: var(--text); font: inherit;
}
.nav-picks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; }
.nav-picks .check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.nav-picks input { width: auto; accent-color: var(--primary); }
.site-mgr { display: grid; gap: 18px; }
.site-hero-bar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px;
  background: radial-gradient(520px 180px at 0% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent), var(--surface);
}
.site-hero-bar h3 { font-family: var(--display); font-size: clamp(26px, 4vw, 36px); margin: 4px 0 8px; font-weight: 600; }
.site-hero-bar .kicker { margin: 0; }
.site-slug { margin: 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.site-form { display: grid; gap: 16px; }
.site-form > .kicker { margin: 4px 0 0; }
.site-block {
  display: grid; gap: 10px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.site-block .kicker { margin: 0; }
.site-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.site-form .check {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--text); font-size: 14px;
}
.site-form .check input { width: auto; margin: 0; accent-color: var(--primary); }
.site-save-row { align-items: center; }
.site-save-row .note { margin: 0; }
.cms-list-head { justify-content: space-between; align-items: center; gap: 12px; }
.cms-list-head h3 { margin: 0; }
.acct-media { display: grid; gap: 8px; margin: 4px 0 10px; }
.acct-media.busy { opacity: 0.72; pointer-events: none; }
.acct-media-drop {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  cursor: pointer;
  outline: none;
}
.acct-media-drop:hover, .acct-media-drop:focus-visible { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.acct-media-drop.over { border-style: solid; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.acct-media-drop.has-file { border-style: solid; }
.acct-banner-add { grid-template-columns: 1fr; min-height: 64px; }
.acct-media-preview {
  width: 88px; height: 72px; border-radius: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 80%, var(--line));
  display: grid; place-items: center;
}
.acct-media-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.acct-media-ph { color: var(--muted); font-size: 22px; line-height: 1; }
.acct-media-copy { display: grid; gap: 4px; min-width: 0; }
.acct-media-copy b { font-size: 13px; font-weight: 600; color: var(--text); }
.acct-media-copy span { font-size: 12px; color: var(--muted); word-break: break-all; }
.acct-banner-list { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-banner-tile {
  position: relative; width: 112px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.acct-banner-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-banner-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text); font-size: 14px; line-height: 1;
}
.site-form input,
.site-form textarea,
.site-form select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  caret-color: var(--primary);
}
.site-form input::placeholder,
.site-form textarea::placeholder { color: var(--muted); opacity: 0.85; }
.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
}
.site-form option { background: var(--surface); color: var(--text); }
.site-gen-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; align-items: start; }
.site-gen-stack { display: grid; gap: 14px; }
.cms-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.cms-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.cms-stat-card .kicker { margin: 0 0 6px; }
.cms-stat-card b {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.1;
}
.cms-stat-card em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cms-stat-quota { margin: 0 0 22px; }
.cms-stat-quota-lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
}
.cms-stat-quota-track {
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--line) 80%, var(--surface));
  overflow: hidden;
}
.cms-stat-quota-track i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}
.cms-stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 108px;
  margin: 8px 0 8px;
}
.cms-stat-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}
.cms-stat-bar i {
  display: block;
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--primary) 78%, var(--text));
}
.cms-stat-bar em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0;
}
@media (max-width: 720px) {
  .cms-stat-bar em { transform: rotate(-50deg); transform-origin: top center; margin-top: 4px; }
  .cms-stat-bars { height: 120px; }
}
.cms-stat-block { margin: 28px 0 8px; }
.cms-stat-block-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cms-stat-block-h .kicker { margin: 0; }
.cms-stat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.cms-stat-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}
.cms-stat-legend i.pv { background: var(--primary); }
.cms-stat-legend i.uv { background: var(--accent, #E8B84A); }
.cms-stat-legend i.inq { background: color-mix(in srgb, var(--muted) 45%, var(--primary)); }
.cms-stat-chart {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 6px 2px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.cms-stat-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cms-stat-svg text { fill: var(--muted); font-size: 11px; }
.cms-stat-svg .y-lab { font-size: 10px; }
.cms-stat-svg .grid { stroke: var(--line); stroke-width: 1; opacity: 0.65; }
.cms-stat-svg .pv-fill { fill: color-mix(in srgb, var(--primary) 16%, transparent); }
.cms-stat-svg polyline.pv { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cms-stat-svg polyline.uv { fill: none; stroke: var(--accent, #E8B84A); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 4 3; }
.cms-stat-svg circle.pv { fill: var(--primary); stroke: none; }
.cms-stat-svg circle.uv { fill: var(--accent, #E8B84A); stroke: none; }
.cms-stat-svg rect.pv { fill: var(--primary); stroke: none; }
.cms-stat-svg rect.uv { fill: var(--accent, #E8B84A); stroke: none; }
.cms-stat-svg rect.inq { fill: color-mix(in srgb, var(--muted) 40%, var(--primary)); stroke: none; opacity: 0.72; }
.cms-stat-svg .hit { fill: #000; fill-opacity: 0; cursor: crosshair; pointer-events: all; }
.cms-stat-svg .hit:hover { fill: var(--primary); fill-opacity: 0.08; }
.cms-stat-tip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  min-width: 148px;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transform: translate(-50%, calc(-100% - 10px));
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
}
.cms-stat-tip[hidden] { display: none; }
.cms-stat-tip strong { font-size: 12px; }
.cms-stat-tip span { color: var(--muted); }
.cms-stat-table { max-height: 280px; overflow: auto; margin-top: 12px; }
.cms-mods-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
}
.cms-mods-wrap .cms-mods {
  flex: 1 1 16em;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  align-items: center;
}
.cms-loc {
  margin: 0 0 4px auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.cms-loc select { min-width: 8em; }
.cms-chrome { min-width: 0; }
.cms-cover { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.cms-contact-row { display: grid; grid-template-columns: 9em 1fr auto; gap: 8px; align-items: end; margin: 0 0 10px; }
.cms-rich { display: grid; gap: 0; margin: 4px 0 14px; }
.cms-rich > .site-field { margin-bottom: 8px; }
.cms-rich-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 6px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
}
.cms-rich-bar button {
  min-height: 30px; padding: 4px 9px; border-radius: 7px;
  background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
  border: 1px solid transparent; line-height: 1; cursor: pointer;
}
.cms-rich-bar button:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
}
.cms-rich-ed {
  min-height: 140px; max-height: 420px; overflow: auto;
  padding: 12px; border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.7;
}
.cms-rich-ed:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cms-rich-ed h2, .cms-rich-ed h3 { margin: 0.6em 0 0.3em; line-height: 1.3; }
.cms-rich-ed p { margin: 0.5em 0; }
.cms-rich-ed ul, .cms-rich-ed ol { padding-left: 1.5em; margin: 0.5em 0; }
.cms-rich-ed blockquote { margin: 0.6em 0; padding-left: 0.9em; border-left: 3px solid var(--line); color: var(--muted); }
.cms-rich-ed a { color: var(--primary); }
.acct-modal-cms .acct-modal-card { max-width: 720px; }
.tpl-fold {
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: hidden;
}
.tpl-fold-sum {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.tpl-fold-sum::-webkit-details-marker { display: none; }
.tpl-fold-sum .kicker { margin: 0; }
.tpl-fold-cur {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-fold-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tpl-fold-sum::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  justify-self: end;
  grid-column: 4;
}
.tpl-fold[open] .tpl-fold-sum::after { transform: rotate(225deg); }
.tpl-fold-body { padding: 0 14px 16px; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.skin-card.skin-ai { min-height: 88px; justify-content: center; }
.skin-card {
  position: relative;
  display: grid; gap: 8px; cursor: pointer; margin: 0;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text); font-size: 13px;
}
.skin-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.skin-card:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.skin-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 42%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.skin-swatch {
  display: block; height: 72px; border-radius: 10px; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, var(--sw-bg) 0 58%, var(--sw-sf) 58% 100%);
}
.skin-swatch::after {
  content: "";
  position: absolute; right: 12px; bottom: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sw-pri);
  box-shadow: 14px 10px 0 var(--sw-acc);
}
.skin-card b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.skin-card > span:not(.skin-swatch) {
  color: var(--muted); font-size: 11px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.skin-card .tpl-preview {
  position: relative; z-index: 2;
  font-size: 12px; color: var(--primary); text-decoration: none;
  justify-self: start;
}
.skin-card .tpl-preview:hover { text-decoration: underline; }
.layout-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.layout-card {
  position: relative;
  display: grid; gap: 4px; cursor: pointer; margin: 0;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
}
.layout-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.layout-card:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.layout-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 42%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.layout-card b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.layout-card span {
  color: var(--muted); font-size: 11px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.pick-chip input { width: auto; margin: 0; accent-color: var(--primary); }
.pick-chip:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.pick-chip:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  color: var(--text);
}
.pick-chip.locked, .pick-chip:has(input:disabled) { opacity: 0.7; cursor: default; }
.loc-max-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.site-form-preview .site-prev-note { margin: 0; }
.site-prev-cta { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.site-prev-cta .note { margin: 0; }
.cms-ai-lock { pointer-events: none; opacity: 0.72; }
.site-ai-note { margin-top: 0; }
.site-ai-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.site-ai-fail p { margin: 0; flex: 1 1 220px; }
.site-locked { padding: 32px 28px; }
.site-locked h3 { font-family: var(--display); font-size: 28px; margin: 6px 0 10px; }
.site-locked .lead { margin: 0 0 18px; }
.kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 8px 0 4px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.auth-form .err { color: #b42318; margin: 0; }
.auth-switch { color: var(--muted); font-size: 14px; }
.nav-member { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-member .btn {
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  font-weight: 550;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.nav-member .btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 16%, transparent);
  border-color: color-mix(in srgb, var(--text) 36%, transparent);
}
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea, select {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
label > input, label > textarea, label > select,
label > .acct-clearable {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.acct-clearable {
  display: grid;
  min-width: 0;
}
.acct-clearable input,
.acct-clearable textarea,
.acct-clear-x {
  grid-area: 1 / 1;
}
.acct-clearable input,
.acct-clearable textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline-end: 40px;
}
.acct-clear-x {
  z-index: 1;
  justify-self: end;
  align-self: center;
  margin-inline-end: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  line-height: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.acct-clear-x svg { display: block; }
.acct-clearable:has(textarea) .acct-clear-x {
  align-self: start;
  margin-top: 10px;
}
.acct-clear-x[hidden] { display: none !important; }
.acct-clear-x:hover { background: color-mix(in srgb, var(--text) 18%, transparent); }
@media (max-width: 860px) {
  .acct-clear-x { width: 32px; height: 32px; min-width: 32px; }
  .acct-clearable input,
  .acct-clearable textarea { padding-inline-end: 44px; }
}
textarea { min-height: 140px; resize: vertical; }
.note { color: var(--muted); font-size: 13px; }
.ok { color: var(--primary); }

.foot {
  border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 13px;
}
.foot-bar {
  display: flex; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap; align-items: baseline;
}
.foot-brand { display: grid; gap: 4px; color: var(--text); }
.foot-brand span { color: var(--muted); font-weight: 400; }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--text); }
.foot-copy { color: var(--muted); }

.page-head { padding: 48px 0 12px; }
.page-head h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 64px); margin: 0; }

body.site-unavailable {
  background: #f4f6fa;
  color: #0f172a;
}
body.site-unavailable .unavailable {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 10px;
}
body.site-unavailable .unavailable-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 650;
}
body.site-unavailable .unavailable h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
}
body.site-unavailable .unavailable .lead {
  margin: 0 auto;
  max-width: 28em;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

#gf-chat-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 96px));
}
#gf-chat-host:not(:has(iframe)) {
  width: 0;
  height: 0;
  overflow: visible;
}
#gf-chat-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.acct-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
  overflow-y: visible;
  --acct-ink: #102018;
  --acct-mark: color-mix(in srgb, var(--primary) 42%, var(--text));
  --acct-glow: color-mix(in srgb, var(--primary) 38%, #fff);
}
.acct-shell .wrap,
.acct-body,
.acct-main,
.acct-profile,
.acct-mast,
.acct-nav,
.acct-tabs { min-width: 0; max-width: 100%; }
.acct-aurora {
  position: absolute;
  inset: -80px 0 auto 0;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 55% at 12% 18%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%),
    radial-gradient(36% 50% at 88% 8%, color-mix(in srgb, var(--acct-glow) 22%, transparent), transparent 68%),
    radial-gradient(28% 40% at 52% 0%, color-mix(in srgb, var(--text) 8%, transparent), transparent 72%);
  filter: saturate(1.15);
  animation: acct-glow 10s ease-in-out infinite alternate;
}
@keyframes acct-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to { transform: translate3d(2%, 4%, 0) scale(1.06); opacity: 1; }
}
.acct-mast, .acct-body { position: relative; z-index: 1; }
.acct-mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 44px 0 28px;
  animation: acct-rise 0.7s ease both;
}
@keyframes acct-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.acct-mast-copy .kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--acct-mark);
}
.acct-mast h1 {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 0.92;
  color: var(--text);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.acct-rule {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--acct-glow), transparent);
}
.acct-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  box-shadow: 0 12px 40px rgba(0,0,0,.22), inset 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent);
  backdrop-filter: blur(18px);
}
.acct-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, transparent 42%),
    linear-gradient(160deg, #d9fff6, var(--primary));
  color: var(--acct-ink); font-family: var(--display); font-weight: 700; font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 70%, transparent);
}
.acct-user-meta { display: grid; min-width: 0; padding-right: 6px; }
.acct-user-meta strong {
  font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16em;
}
.acct-user-meta span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.acct-user .btn {
  flex-shrink: 0;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.acct-body { padding-bottom: 8px; }
.acct-shell .acct-nav {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px;
  margin: 0 0 26px; padding: 0 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: acct-rise 0.8s ease 0.06s both;
}
.acct-shell .acct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  order: 1;
  min-width: 0;
  flex: 1;
}
.acct-tab-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.72;
}
.acct-tab-ico svg { width: 16px; height: 16px; display: block; }
.acct-tab-lab { display: inline; }
.acct-shell .acct-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 12px 14px 14px;
  margin-bottom: -1px;
  color: color-mix(in srgb, var(--muted) 55%, var(--text));
  background: transparent;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.acct-shell .acct-nav a:hover {
  color: var(--text);
  background: transparent;
}
.acct-shell .acct-nav a.on {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--primary);
  box-shadow: none;
  font-weight: 650;
}
.acct-shell .acct-nav a.on .acct-tab-ico { opacity: 1; color: var(--primary); }
.acct-shell .acct-nav .vip-chip {
  order: 2;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted);
  font-weight: 550;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 12px;
}
.acct-main { display: grid; gap: 0; min-width: 0; animation: acct-rise 0.85s ease 0.12s both; }
.acct-shell[data-acct-tpl="classic"] {
  --skin-display: var(--display);
  --skin-sans: var(--body);
  --skin-radius: var(--radius);
}
.acct-shell[data-acct-tpl="simple"] {
  --skin-display: "Manrope", system-ui, sans-serif; --skin-sans: "Manrope", system-ui, sans-serif;
  --skin-radius: 10px;
}
.acct-shell[data-acct-tpl="card"] {
  --skin-display: "Playfair Display", Georgia, serif; --skin-sans: "DM Sans", system-ui, sans-serif;
  --skin-radius: 18px;
}
.acct-shell[data-acct-tpl="platform"] {
  --skin-display: "Space Grotesk", system-ui, sans-serif; --skin-sans: "Space Grotesk", system-ui, sans-serif;
  --skin-radius: 12px;
}
.acct-shell[data-acct-tpl="split"] {
  --skin-display: "Syne", system-ui, sans-serif; --skin-sans: "Outfit", system-ui, sans-serif;
  --skin-radius: 4px;
}
.acct-shell[data-acct-tpl="stack"] {
  --skin-display: "Outfit", system-ui, sans-serif; --skin-sans: "Outfit", system-ui, sans-serif;
  --skin-radius: 28px;
}
.acct-shell[data-acct-tpl="rail"] {
  --skin-display: "IBM Plex Sans", system-ui, sans-serif; --skin-sans: "IBM Plex Sans", system-ui, sans-serif;
  --skin-radius: 14px;
}
.acct-shell[data-acct-tpl="compact"] {
  --skin-display: "Sora", system-ui, sans-serif; --skin-sans: "Sora", system-ui, sans-serif;
  --skin-radius: 6px;
}
.acct-shell[data-acct-tpl="ledger"] {
  --skin-display: "Newsreader", Georgia, serif; --skin-sans: "IBM Plex Sans", system-ui, sans-serif;
  --skin-radius: 2px;
}
.acct-shell[data-acct-tpl="lounge"] {
  --skin-display: "Cormorant Garamond", Georgia, serif; --skin-sans: "Outfit", system-ui, sans-serif;
  --skin-radius: 32px;
}
.acct-shell[data-acct-tpl="studio"] {
  --skin-display: "Instrument Serif", Georgia, serif; --skin-sans: "Archivo", system-ui, sans-serif;
  --skin-radius: 4px;
}
.acct-shell[data-acct-tpl] {
  --display: var(--skin-display);
  font-family: var(--skin-sans);
}
.acct-shell[data-acct-tpl] h1,
.acct-shell[data-acct-tpl] h2,
.acct-shell[data-acct-tpl] h3 { font-family: var(--skin-display); }
.acct-shell[data-acct-tpl] .btn { border-radius: var(--skin-radius); }
.acct-shell[data-acct-tpl="simple"] .acct-aurora { display: none; }
.acct-shell[data-acct-tpl="simple"] .acct-mast { padding: 28px 0 18px; align-items: center; }
.acct-shell[data-acct-tpl="simple"] .acct-mast h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-style: normal;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.acct-shell[data-acct-tpl="simple"] .acct-rule { width: 40px; margin-top: 10px; background: var(--primary); }
.acct-shell[data-acct-tpl="simple"] .acct-user {
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
  background: var(--surface);
}
.acct-shell[data-acct-tpl="simple"] .acct-idcard { display: none; }
.acct-shell[data-acct-tpl="simple"] .acct-profile {
  grid-template-columns: 1fr;
  max-width: none;
}
.acct-simple-who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--skin-radius, 10px);
}
.acct-simple-who-copy { min-width: 0; display: grid; gap: 3px; }
.acct-simple-who-copy strong { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.acct-simple-who-copy span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.acct-profile {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}
.acct-profile-classic { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 18px; max-width: none; }
.acct-profile-simple { grid-template-columns: 1fr; max-width: none; gap: 14px; }
.acct-profile-card {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}
.acct-profile-card .acct-idcard { min-height: 0; }
.acct-profile-platform { grid-template-columns: 1fr; max-width: 720px; }
.acct-profile-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.acct-profile-split .acct-idcard { order: 2; }
.acct-profile-stack { grid-template-columns: 1fr; }
.acct-profile-rail { grid-template-columns: 1fr; }
.acct-profile-compact { grid-template-columns: 1fr; gap: 10px; }
.acct-profile-ledger { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; align-items: start; max-width: none; }
.acct-profile-lounge { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; }
.acct-profile-studio { grid-template-columns: minmax(200px, 0.78fr) minmax(0, 1.22fr); gap: 24px; align-items: stretch; }
.acct-form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acct-form-inline .acct-field { flex: 1; min-width: 12em; }
.acct-plat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.acct-plat-tiles > div {
  padding: 16px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--skin-radius, 12px);
}
.acct-plat-tiles span { display: block; font-size: 11px; color: var(--muted); }
.acct-plat-tiles b { display: block; margin-top: 6px; font-size: 18px; }
.acct-led-book { min-width: 0; }
.acct-led-cap {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.acct-facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
}
.acct-facts > div {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.acct-facts > div:nth-child(even) {
  background: color-mix(in srgb, var(--text) 3.5%, var(--surface));
}
.acct-facts > div:last-child { border-bottom: 0; }
.acct-facts .lab { color: var(--muted); font-size: 12px; letter-spacing: 0.02em; }
.acct-facts b, .acct-facts code { font-weight: 550; overflow-wrap: anywhere; }
.acct-studio-stamp { display: none; }
.acct-studio-plate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 0;
}
.acct-studio-plate h2 {
  margin: 4px 0 2px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.acct-studio-plate .acct-idcard-mail { overflow-wrap: anywhere; }
.acct-studio-swatch {
  display: block;
  width: 28px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.acct-studio-plate .acct-mono {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  margin: 10px 0 8px;
}
.acct-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
  min-width: 0;
}
.acct-compact-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.acct-compact-head strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-compact-head span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-compact-out {
  flex-shrink: 0;
  white-space: nowrap;
}
.acct-mast-simple h1 { font-size: clamp(28px, 4vw, 40px); font-style: normal; }
.acct-mast-ledger { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.acct-mast-ledger .acct-date { margin: 0 0 6px; font-variant: normal; letter-spacing: 0.04em; color: var(--muted); font-size: 12px; font-family: var(--skin-sans, inherit); }
.acct-mast-ledger .acct-mast-who {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 100%;
  min-width: 0;
}
.acct-mast-ledger .acct-mast-who span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-ledger-out { flex-shrink: 0; white-space: nowrap; }
.acct-mast-lounge {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.acct-mast-lounge .acct-mast-copy { min-width: 0; flex: 1; }
.acct-lounge-quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 52px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  overflow-wrap: anywhere;
  max-width: 18em;
}
.acct-mast-studio {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.acct-mast-studio .acct-studio-swatch { margin: 0 0 10px; }
.acct-mast-studio .acct-mast-copy { flex: 1; min-width: 0; }
.acct-studio-out { flex-shrink: 0; white-space: nowrap; }
.acct-mast-rail { padding-bottom: 12px; }
.acct-split-stack { display: grid; grid-template-columns: 1fr; }
.acct-shell[data-acct-tpl="rail"] .acct-nav .acct-user { display: none; }
.acct-shell[data-acct-tpl="card"] .acct-mast {
  align-items: center;
  padding: 32px 0 20px;
}
.acct-shell[data-acct-tpl="card"] .acct-mast h1 {
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
}
.acct-shell[data-acct-tpl="card"] .acct-idcard,
.acct-shell[data-acct-tpl="card"] .acct-pass {
  border-radius: 22px;
}
.acct-shell[data-acct-tpl="platform"] .acct-mast h1 { letter-spacing: -0.06em; text-transform: uppercase; font-style: normal; font-size: clamp(36px, 6vw, 58px); }
.acct-shell[data-acct-tpl="split"] .acct-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.acct-shell[data-acct-tpl="split"] .acct-idcard { order: 2; border-radius: 4px; border-top: 8px solid var(--primary); }
.acct-shell[data-acct-tpl="split"] .acct-mast h1 { font-style: normal; text-transform: none; letter-spacing: -0.04em; font-size: clamp(26px, 3.2vw, 36px); }
.acct-shell[data-acct-tpl="stack"] .acct-profile { grid-template-columns: 1fr; }
.acct-shell[data-acct-tpl="stack"] .acct-idcard { min-height: 0; border-radius: 28px; }
.acct-shell[data-acct-tpl="stack"] .acct-mast h1 { font-style: normal; }
.acct-stage { min-width: 0; }
.acct-tab-n {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 650;
}
.acct-nav-text { border-bottom: 0; gap: 0; }
.acct-nav-text .acct-tabs { gap: 4px 18px; }
.acct-nav-text a {
  padding: 4px 0 6px !important;
  border-bottom: 0 !important;
  font-size: 13px;
}
.acct-nav-text a.on { font-weight: 700; border-bottom: 0 !important; text-decoration: underline; text-underline-offset: 5px; }
.acct-nav-pills { border-bottom: 0; }
.acct-nav-pills .acct-tabs { gap: 8px; flex-wrap: wrap; }
.acct-nav-pills a {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 8px 14px !important;
  margin: 0;
  background: var(--surface);
}
.acct-nav-pills a.on {
  border-color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}
.acct-nav-seg { border-bottom: 0; }
.acct-nav-seg .acct-tabs {
  display: inline-flex;
  flex: none;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.acct-nav-seg a {
  margin: 0;
  padding: 10px 16px !important;
  border-bottom: 0 !important;
  border-right: 1px solid var(--line);
}
.acct-nav-seg a:last-child { border-right: 0; }
.acct-nav-seg a.on { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.acct-nav-num { border-bottom: 2px solid var(--line); }
.acct-nav-num a { gap: 10px; align-items: baseline; }
.acct-nav-num a.on .acct-tab-n { color: var(--primary); }
.acct-nav-tiny { border-bottom: 1px solid var(--line); }
.acct-nav-tiny a { padding: 6px 8px 8px !important; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.acct-nav-rule { border-bottom: 1px solid var(--line); }
.acct-nav-folio { border-bottom: 1px solid var(--line); }
.acct-nav-folio .acct-tabs { gap: 4px 4px; }
.acct-nav-folio a {
  font-variant: normal;
  letter-spacing: 0;
  gap: 8px;
  align-items: baseline;
  border-bottom-width: 2px;
  padding: 8px 12px 10px !important;
}
.acct-nav-folio a.on {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--primary);
}
.acct-nav-folio a.on .acct-tab-n { color: var(--primary); }
.acct-nav-ghost { border-bottom: 0; }
.acct-nav-ghost a { border-bottom: 0 !important; opacity: 0.55; font-style: italic; font-family: var(--display); font-size: 18px; }
.acct-nav-ghost a.on { opacity: 1; }
.acct-nav-caps { border-bottom: 0; }
.acct-nav-mark { border-bottom: 1px solid var(--line); }
.acct-nav-mark .acct-tabs { gap: 4px 20px; }
.acct-nav-mark a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 8px 0 12px !important;
  border-bottom-width: 1px;
}
.acct-nav-mark a.on { border-bottom-color: var(--primary); font-weight: 600; }
.acct-nav-line a { /* default underline tabs */ }
.acct-shell[data-acct-tpl="rail"] .acct-stage {
  display: grid;
  grid-template-columns: minmax(188px, 220px) minmax(0, 1fr);
  grid-template-areas: none;
  gap: 12px 24px;
  align-items: start;
  max-width: 1180px;
}
.acct-shell[data-acct-tpl="rail"] .acct-rail-pane { min-width: 0; }
.acct-shell[data-acct-tpl="rail"] .acct-mast { padding-top: 8px; }
.acct-shell[data-acct-tpl="rail"] .acct-main { min-width: 0; }
.acct-shell[data-acct-tpl="rail"] .acct-side {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  overflow: hidden;
  padding: 12px;
  background: var(--surface);
  border-radius: 16px;
  z-index: 1;
}
.acct-shell[data-acct-tpl="rail"] .acct-side-who {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 8px;
  gap: 8px;
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: none;
}
.acct-shell[data-acct-tpl="rail"] .acct-side-who .acct-avatar {
  width: 36px;
  height: 36px;
  font-size: 16px;
  box-shadow: none;
}
.acct-shell[data-acct-tpl="rail"] .acct-side-who .acct-user-meta { padding: 0; min-width: 0; flex: 1; }
.acct-shell[data-acct-tpl="rail"] .acct-side-who .acct-user-meta strong,
.acct-shell[data-acct-tpl="rail"] .acct-side-who .acct-user-meta span {
  max-width: 100%;
}
.acct-shell[data-acct-tpl="split"] .acct-stage {
  display: grid;
  grid-template-columns: minmax(208px, 240px) minmax(0, 1fr);
  grid-template-areas: none;
  column-gap: 0;
  align-items: start;
  max-width: 1180px;
}
.acct-shell[data-acct-tpl="split"] .acct-side {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 16px 12px 0;
  border-right: 1px solid var(--line);
  max-height: calc(100dvh - 96px);
  overflow: hidden;
  overscroll-behavior: contain;
  z-index: 2;
  background: var(--bg);
}
.acct-shell[data-acct-tpl="split"] .acct-mast {
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 14px;
  width: 100%;
}
.acct-shell[data-acct-tpl="split"] .acct-side-who {
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 10px;
  gap: 10px;
  border-radius: 4px;
  box-shadow: none;
  backdrop-filter: none;
  border: 1px solid var(--line);
  background: var(--surface);
}
.acct-shell[data-acct-tpl="split"] .acct-side-who .acct-avatar {
  width: 36px;
  height: 36px;
  font-size: 16px;
  box-shadow: none;
}
.acct-shell[data-acct-tpl="split"] .acct-side-who .acct-user-meta { padding: 0; flex: 1; }
.acct-shell[data-acct-tpl="split"] .acct-side-who .acct-user-meta strong,
.acct-shell[data-acct-tpl="split"] .acct-side-who .acct-user-meta span {
  max-width: 100%;
  display: block;
}
.acct-shell[data-acct-tpl="split"] .acct-mast { order: 1; }
.acct-shell[data-acct-tpl="split"] .acct-side-who { order: 2; }
.acct-shell[data-acct-tpl="split"] .acct-nav { order: 3; }
.acct-shell[data-acct-tpl="split"] .acct-side-foot { order: 4; }
.acct-shell[data-acct-tpl="split"] .acct-nav {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
  margin: 0;
  padding: 0;
  position: static;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.acct-shell[data-acct-tpl="split"] .acct-tabs { flex-direction: column; flex: none; width: 100%; gap: 2px; }
.acct-shell[data-acct-tpl="split"] .acct-main {
  padding: 18px 0 48px 28px;
  border-left: 0;
  min-height: 0;
}
.acct-shell[data-acct-tpl="split"] .acct-nav a {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 0;
  border-left: 2px solid transparent;
  min-height: 40px;
  box-sizing: border-box;
  width: 100%;
  font-weight: 500;
  justify-content: flex-start;
}
.acct-shell[data-acct-tpl="split"] .acct-nav a .acct-tab-lab {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-shell[data-acct-tpl="split"] .acct-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.acct-shell[data-acct-tpl="split"] .acct-nav a.on {
  border-bottom-color: transparent;
  border-left-color: var(--text);
  font-weight: 500;
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
}
.acct-shell[data-acct-tpl="split"] .acct-nav .vip-chip {
  order: 0;
  margin: 0 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  justify-content: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.acct-shell[data-acct-tpl="split"] .acct-side-foot {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 3;
}
.acct-shell[data-acct-tpl="split"] .acct-side-out {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  min-height: 40px;
  max-height: 40px;
  padding: 0 10px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}
.acct-studio-frame { display: contents; }
.acct-shell[data-acct-tpl="simple"] .acct-stage { max-width: 1080px; }
.acct-shell[data-acct-tpl="simple"] .acct-nav { margin-bottom: 20px; }
.acct-shell[data-acct-tpl="simple"] .acct-profile-form {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 20px 16px;
  box-shadow: none;
  border-radius: var(--skin-radius, 10px);
}
.acct-shell[data-acct-tpl="card"] .acct-stage { max-width: 1100px; }
.acct-shell[data-acct-tpl="card"] .acct-profile-form {
  border-radius: 22px;
  background: var(--surface);
  padding: 22px 22px 18px;
}
.acct-shell[data-acct-tpl="platform"] .acct-mast { align-items: flex-end; }
.acct-shell[data-acct-tpl="platform"] .acct-nav { align-items: center; }
.acct-shell[data-acct-tpl="stack"] .acct-idcard { padding: 36px 32px; }
.acct-shell[data-acct-tpl="stack"] .acct-profile-form { border-radius: 28px; }
.acct-shell[data-acct-tpl="compact"] .acct-stage { max-width: 960px; }
.acct-shell[data-acct-tpl="compact"] .acct-profile-form { padding: 16px; border-radius: 8px; }
.acct-shell[data-acct-tpl="compact"] .acct-form-inline .acct-field { min-width: 12em; }
.acct-shell[data-acct-tpl="compact"] input,
.acct-shell[data-acct-tpl="compact"] select,
.acct-shell[data-acct-tpl="compact"] textarea {
  min-height: 40px;
  border-radius: 6px;
}
.acct-shell[data-acct-tpl="ledger"] .acct-stage { max-width: 1080px; }
.acct-shell[data-acct-tpl="ledger"] .acct-profile-form {
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 22px 18px;
}
.acct-shell[data-acct-tpl="ledger"] input,
.acct-shell[data-acct-tpl="ledger"] select,
.acct-shell[data-acct-tpl="ledger"] textarea {
  min-height: 40px;
}
.acct-shell[data-acct-tpl="lounge"] .acct-stage { max-width: 1100px; }
.acct-shell[data-acct-tpl="lounge"] .acct-profile-form {
  border: 0;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  padding: 24px 24px 20px;
}
.acct-shell[data-acct-tpl="lounge"] input,
.acct-shell[data-acct-tpl="lounge"] select,
.acct-shell[data-acct-tpl="lounge"] textarea {
  min-height: 44px;
  border-radius: 18px;
}
@media (min-width: 861px) {
  .acct-shell[data-acct-tpl="lounge"] .acct-nav,
  .acct-shell[data-acct-tpl="lounge"] .acct-tabs { justify-content: center; }
  .acct-shell[data-acct-tpl="lounge"] .acct-tab-ico { display: none; }
  .acct-shell[data-acct-tpl="studio"] .acct-tab-ico { display: none; }
}
.acct-shell[data-acct-tpl="studio"] .acct-stage { max-width: 1100px; }
.acct-shell[data-acct-tpl="studio"] .acct-profile-form {
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  border-radius: 4px;
  padding: 22px 24px 20px;
}
.acct-shell[data-acct-tpl="studio"] input,
.acct-shell[data-acct-tpl="studio"] select,
.acct-shell[data-acct-tpl="studio"] textarea {
  min-height: 40px;
  border-radius: 4px;
}
.acct-shell[data-acct-tpl="rail"] .acct-nav {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
}
.acct-shell[data-acct-tpl="rail"] .acct-side-foot {
  flex: 0 0 auto;
  min-width: 0;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="rail"] .acct-side-out {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-shell[data-acct-tpl="rail"] .acct-tabs { flex-direction: column; flex: none; width: 100%; }
.acct-shell[data-acct-tpl="rail"] .acct-nav a {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 0;
  border-left: 3px solid transparent;
  border-radius: 10px;
}
.acct-shell[data-acct-tpl="rail"] .acct-nav a.on {
  border-bottom-color: transparent;
  border-left-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}
.acct-shell[data-acct-tpl="rail"] .acct-nav .vip-chip { order: 0; margin: 0 0 10px; }
.acct-shell[data-acct-tpl="rail"] .acct-aurora { opacity: 0.35; }
.acct-shell[data-acct-tpl="compact"] .acct-aurora { display: none; }
.acct-shell[data-acct-tpl="compact"] .acct-mast { padding: 18px 0 10px; }
.acct-shell[data-acct-tpl="compact"] .acct-mast h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
}
.acct-shell[data-acct-tpl="compact"] .acct-profile { grid-template-columns: 1fr; gap: 10px; }
.acct-shell[data-acct-tpl="compact"] .acct-idcard { padding: 14px 16px; min-height: 0; border-radius: 6px; }
.acct-shell[data-acct-tpl="compact"] .acct-idcard h2 { font-size: 18px; }
.acct-shell[data-acct-tpl="compact"] .acct-nav a { padding: 8px 10px 10px; font-size: 12px; min-height: 36px; }
.acct-shell[data-acct-tpl="compact"] .acct-plat-tiles { gap: 8px; margin-bottom: 12px; }
.acct-shell[data-acct-tpl="compact"] .acct-plat-tiles > div { padding: 12px; border-radius: 8px; }
.acct-shell[data-acct-tpl="compact"] .acct-plat-tiles b { font-size: 15px; }
.acct-shell[data-acct-tpl="ledger"] .acct-aurora { display: none; }
.acct-shell[data-acct-tpl="ledger"] .acct-mast {
  padding: 28px 0 12px;
  border-bottom: 0;
}
.acct-shell[data-acct-tpl="ledger"] .acct-mast h1 {
  font-style: normal;
  font-weight: 500;
  border-bottom: 0;
  display: block;
  padding-bottom: 0;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 44px);
}
.acct-shell[data-acct-tpl="ledger"] .acct-mast .lead { margin: 6px 0 0; color: var(--muted); max-width: 36em; }
.acct-shell[data-acct-tpl="ledger"] .acct-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); max-width: none; gap: 22px; }
.acct-shell[data-acct-tpl="ledger"] .acct-idcard {
  border-radius: 2px;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  box-shadow: none;
}
.acct-shell[data-acct-tpl="ledger"] .acct-idcard:before { display: none; }
.acct-shell[data-acct-tpl="ledger"] .panel,
.acct-shell[data-acct-tpl="ledger"] .invite-card {
  border-radius: 2px;
  box-shadow: none;
}
.acct-shell[data-acct-tpl="lounge"] .acct-mast { padding: 36px 0 24px; }
.acct-shell[data-acct-tpl="lounge"] .acct-mast h1 { font-style: italic; font-weight: 500; font-size: clamp(32px, 5vw, 48px); }
.acct-shell[data-acct-tpl="lounge"] .acct-profile { gap: 24px; }
.acct-shell[data-acct-tpl="lounge"] .acct-idcard,
.acct-shell[data-acct-tpl="lounge"] .acct-profile-form {
  border-radius: 28px;
}
.acct-shell[data-acct-tpl="lounge"] .acct-user { border-radius: 22px; }
.acct-shell[data-acct-tpl="studio"] .acct-aurora { display: none; }
.acct-shell[data-acct-tpl="studio"] .acct-mast {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row;
  align-items: flex-start;
  padding: 28px 0 8px;
}
.acct-shell[data-acct-tpl="studio"] .acct-mast h1 {
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
}
.acct-shell[data-acct-tpl="studio"] .acct-mast .lead {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 36em;
}
.acct-shell[data-acct-tpl="studio"] .acct-mast .btn { margin-left: 0; }
.acct-shell[data-acct-tpl="studio"] .acct-user { margin-top: 0; border-radius: 4px; }
.acct-shell[data-acct-tpl="studio"] .acct-nav { justify-content: flex-start; }
.acct-shell[data-acct-tpl="studio"] .acct-tabs { justify-content: flex-start; }
.acct-shell[data-acct-tpl="studio"] .acct-idcard {
  text-align: left;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.acct-shell[data-acct-tpl="studio"] .acct-idcard-top { justify-content: space-between; }
.acct-shell[data-acct-tpl="studio"] .acct-id-cell { justify-content: flex-start; }
.acct-shell[data-acct-tpl="studio"] .acct-profile {
  grid-template-columns: minmax(200px, 0.78fr) minmax(0, 1.22fr);
  max-width: none;
  margin: 0;
}
.acct-idcard {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 26px 26px 20px 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%),
    radial-gradient(70% 50% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 82%, var(--bg)), var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  box-shadow:
    0 22px 48px color-mix(in srgb, var(--bg) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent);
}
.acct-idcard:before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--primary) 55%, transparent));
}
.acct-idcard-shine {
  position: absolute; inset: -40% -20% auto auto;
  width: 70%; height: 80%;
  background: linear-gradient(125deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 48%, transparent 62%);
  transform: rotate(-12deg);
  pointer-events: none;
  animation: acct-shine 7s ease-in-out infinite;
}
@keyframes acct-shine {
  0%, 100% { opacity: 0.35; transform: translateX(0) rotate(-12deg); }
  50% { opacity: 0.7; transform: translateX(-8%) rotate(-12deg); }
}
.acct-idcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.acct-mono {
  width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 38px; font-weight: 600; font-style: italic;
  color: var(--bg);
  background: linear-gradient(160deg, color-mix(in srgb, #fff 55%, var(--primary)), var(--primary) 62%, color-mix(in srgb, var(--accent) 35%, var(--primary)));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 28%, transparent);
}
.acct-idcard .kicker { margin: 0 0 6px; color: var(--accent); letter-spacing: 0.18em; }
.acct-idcard h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  color: var(--text);
}
.acct-idcard-mail { margin: 0 0 20px; color: var(--muted); font-size: 14px; word-break: break-all; }
.acct-id-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 18px;
}
.acct-id-stat,
.acct-id-stats > div {
  padding: 12px 12px 11px;
  border-radius: 14px;
  min-width: 0;
  background: color-mix(in srgb, var(--bg) 38%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.acct-id-stats span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.acct-id-stats b {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  color: var(--text);
}
.acct-id-stats i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.acct-id-foot {
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.acct-id-foot .acct-id-cell { margin-bottom: 0; align-items: center; }
.acct-id-foot .acct-id-cell span {
  width: auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.acct-id-foot p { margin: 0; font-size: 12px; color: var(--muted); }
.acct-shell .acct-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  gap: 4px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.acct-shell .acct-subnav a {
  padding: 8px 12px 12px;
  margin-bottom: -1px;
  border-radius: 0;
  font-weight: 500;
  position: relative;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.acct-shell .acct-subnav a:hover { color: var(--text); background: transparent; }
.acct-shell .acct-subnav a.on {
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-weight: 650;
  border-bottom-color: var(--primary);
}
.acct-shell .acct-subnav a.on:after { content: none; }
.acct-shell .acct-panel,
.acct-shell .panel {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent 56px),
    color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.acct-shell .acct-panel h3,
.acct-shell .panel > h3 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 18px;
}
.acct-shell .site-form > h3,
.acct-shell .cms-list-head h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.acct-shell .cms-list-head h3 { margin: 0; }
.acct-shell .acct-form { display: grid; gap: 6px; max-width: none; }
.acct-shell .acct-form > .note { margin: 0 0 12px; }
.acct-shell .acct-form > .acct-row { margin-top: 10px; }
.acct-profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  min-height: 100%;
}
.acct-form-head { display: grid; gap: 6px; }
.acct-profile-form h3 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
}
.acct-form-head .note { margin: 0; line-height: 1.5; color: var(--muted); }
.acct-field { display: grid; gap: 8px; font-size: 13px; }
.acct-profile-form .acct-field input {
  min-height: 46px;
  border-radius: 14px;
  padding: 12px 14px;
}
.acct-profile-form .acct-field .acct-clearable input {
  padding-inline-end: 44px;
}
.acct-profile-form .acct-field .acct-clearable {
  position: relative;
  display: block;
  height: 46px;
}
.acct-profile-form .acct-field .acct-clearable input {
  display: block;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.acct-profile-form .acct-field .acct-clear-x {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  inset-inline-end: 8px;
  transform: none;
}
/* Hide the browser's native clear (x) / reveal control on account inputs */
.acct-form input::-ms-clear,
.acct-form input::-ms-reveal { display: none; width: 0; height: 0; }
.acct-form input::-webkit-search-cancel-button,
.acct-form input::-webkit-search-decoration,
.acct-form input::-webkit-contacts-auto-fill-button,
.acct-form input::-webkit-credentials-auto-fill-button {
  -webkit-appearance: none;
  appearance: none;
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}
.acct-form-actions { margin-top: auto; padding-top: 8px; }
.acct-email-code:not([hidden]) { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.acct-email-code .acct-field { width: 100%; }
.acct-profile-form .acct-form-actions .btn { min-width: 7.5em; }
.acct-shell .acct-form input,
.acct-shell .site-form input,
.acct-shell .site-form textarea,
.acct-shell .site-form select,
.acct-shell .acct-form select,
.acct-shell .wallet-wd-form input,
.acct-shell .wallet-wd-form select {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
}
.acct-shell .acct-form input:focus,
.acct-shell .site-form input:focus,
.acct-shell .site-form textarea:focus,
.acct-shell .site-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.acct-shell .acct-table { font-size: 13.5px; }
.acct-shell .acct-table th { padding: 10px 10px 8px; color: var(--muted); }
.acct-shell .acct-table td { padding: 13px 10px; }
.acct-shell .acct-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.acct-shell .acct-table-wrap {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 18px;
  overflow: auto;
  margin: 0;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.acct-shell .acct-table-wrap .acct-table th,
.acct-shell .acct-table-wrap .acct-table td { padding-left: 14px; padding-right: 14px; }
.acct-shell .acct-table-wrap .acct-table thead th {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  position: sticky; top: 0;
}
.acct-shell .acct-id-cell code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
}
.acct-shell .kicker { color: var(--acct-mark); }
.acct-idcard .kicker { color: var(--accent); }
.acct-idcard .acct-id-cell code {
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--text);
}
.acct-idcard .btn-ghost {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.acct-shell .ok, .acct-shell .status-pill.ok, .acct-shell .banner.ok { color: var(--acct-mark); }
.acct-shell .btn {
  gap: 6px;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: linear-gradient(180deg, color-mix(in srgb, #fff 22%, var(--primary)), var(--primary));
  border: 1px solid color-mix(in srgb, #fff 14%, var(--primary));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent),
    0 8px 16px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease, filter .15s ease;
}
.acct-shell .btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.acct-shell .btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
}
.acct-shell .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.acct-shell .btn:disabled {
  opacity: 0.42;
  pointer-events: none;
  filter: none;
  transform: none;
  box-shadow: none;
}
.acct-shell .btn-ghost {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: none;
  filter: none;
}
.acct-shell .btn-ghost:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  filter: none;
}
.acct-shell .btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12.5px;
  min-width: 0;
  box-shadow: none;
}
.acct-shell .acct-form .btn:not(.btn-ghost):not(.btn-sm),
.acct-shell .wallet-cta .btn:not(.btn-ghost):not(.btn-sm),
.acct-shell .invite-card .btn:not(.btn-ghost):not(.btn-sm),
.acct-shell .plan .btn:not(.btn-ghost) {
  min-width: 8em;
}
.acct-shell .plan .btn,
.acct-shell .acct-plan-act .btn {
  width: 100%;
}
.acct-shell .acct-pager-btns .btn {
  min-width: 2.4em;
  min-height: 34px;
  padding: 6px 11px;
}
.acct-shell .acct-pager-btns .btn.on {
  color: #f4fffc;
  background: var(--primary);
  border-color: var(--primary);
}
.acct-shell .wallet-ico-btn {
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.acct-shell .wallet-ico-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.acct-shell .status-pill.warn {
  color: var(--acct-mark);
  border-color: color-mix(in srgb, var(--acct-mark) 45%, var(--line));
}
.acct-shell .lead { color: var(--muted); font-size: 15px; line-height: 1.6; }
.acct-shell .banner {
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.acct-shell .plans { gap: 16px; }
.acct-plan-act { display: grid; gap: 10px; margin-top: 4px; }
.acct-plan-act .note { margin: 0; }
.acct-plan-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
  margin: 0 0 16px;
}
.acct-plan-bar .banner { flex: 1; min-width: 12em; margin: 0; }
.acct-plan-bar .btn { align-self: center; white-space: nowrap; }
.acct-shell .plan {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.acct-shell .plan:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.2); }
.acct-shell .plan.current {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--surface);
}
.acct-shell .plan .pill {
  position: absolute; top: 16px; right: 16px; align-self: auto; z-index: 2;
  background: var(--primary);
  color: #f4fffc;
}
.acct-shell .plan.current h3 { padding-right: 92px; }
.acct-shell .invite-card {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    var(--surface);
}
.acct-shell .invite-card .code {
  color: var(--text);
}
.acct-shell .wallet-hero {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    radial-gradient(70% 80% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 62%),
    var(--surface);
}
.acct-shell .wallet-hero-main strong {
  color: var(--text);
}
.acct-shell .wallet-ico-btn {
  background: color-mix(in srgb, #061820 55%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 14px 30px rgba(6, 24, 32, 0.35);
}
.acct-shell .wallet-metrics a {
  transition: transform .2s ease, border-color .2s ease;
}
.acct-shell .wallet-metrics a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.acct-shell .site-hero-bar {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.acct-dom { display: grid; gap: 12px; margin: 0 0 18px; }
.acct-dom-bind, .acct-dom-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acct-dom-bind .site-field, .acct-dom-search .site-field { flex: 1; min-width: 180px; }
.acct-dom-row, .acct-dom-hit {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.acct-dom-hit em { font-style: normal; color: var(--muted); margin-left: 8px; }
.acct-shell .cms-mods-wrap { border-bottom-color: var(--line); }
.acct-shell .cms-mods { padding-top: 2px; }
.acct-shell .cms-cover {
  width: 56px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
}
body.acct-on .foot { border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .acct-aurora, .acct-idcard-shine, .acct-mast, .acct-shell .acct-nav, .acct-main { animation: none; }
}

.acct-modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
}
.acct-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 14, 0.62);
  backdrop-filter: blur(6px);
}
.acct-modal-card {
  position: relative; width: min(560px, 100%); max-width: 100%; min-width: 0;
  max-height: min(88vh, 720px); overflow: auto; -webkit-overflow-scrolling: touch;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg)); color: var(--text);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.4); padding: 20px 22px 24px;
}
.acct-modal-payout .acct-modal-card { width: min(640px, 100%); }
.acct-modal-cms .acct-modal-card { width: min(720px, 100%); max-height: min(90vh, 880px); }
.acct-modal-body, .acct-bind-form, .acct-modal .stack { min-width: 0; }
.acct-modal .form-row, .acct-modal label { min-width: 0; }
.acct-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.acct-modal-head h3 { margin: 0; font-size: 18px; font-family: var(--display); min-width: 0; overflow-wrap: anywhere; }
.acct-modal-x {
  width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.acct-modal-x:hover { color: var(--text); background: var(--surface); }
.acct-modal-body .acct-table th { text-align: left; width: 7.5em; color: var(--muted); font-weight: 600; }
.acct-wd-shot { display: block; max-width: 100%; border-radius: 10px; margin-top: 6px; }

.gf-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}
body.acct-on .gf-toast {
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.gf-toast-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.gf-toast-item.in { opacity: 1; transform: none; }
.gf-toast-item.out { opacity: 0; transform: translateY(8px); }
.gf-toast-item.ok { border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); }
.gf-toast-item.warn { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }
.gf-toast-item.bad { border-color: color-mix(in srgb, #c98984 55%, var(--line)); }
.gf-toast-mark {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.gf-toast-item.ok .gf-toast-mark {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
}
.gf-toast-item.warn .gf-toast-mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
.gf-toast-item.bad .gf-toast-mark {
  background: color-mix(in srgb, #c98984 22%, transparent);
  color: #c98984;
}
.gf-toast-text { font-size: 14px; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .acct-mast { padding-top: 24px; align-items: stretch; }
  .acct-mast h1 { font-size: clamp(32px, 11vw, 48px); }
  .acct-user { width: 100%; border-radius: 18px; }
  .acct-user-meta strong { max-width: none; }
  .acct-profile { grid-template-columns: 1fr; }
  .acct-id-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-shell { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); overflow-x: visible; }
  .acct-shell .acct-nav {
    display: contents;
  }
  .acct-shell .acct-nav .vip-chip {
    order: 0;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
  }
  .acct-shell .acct-tabs {
    position: fixed;
    z-index: 36;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 72%, var(--bg));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }
  .acct-shell .acct-nav a {
    flex: none;
    min-width: 0;
    min-height: 52px;
    padding: 6px 2px 5px;
    border-radius: 14px;
    border-bottom: 0;
    margin-bottom: 0;
    font-size: 11px;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
  }
  .acct-shell .acct-nav a.on {
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    border-bottom: 0;
  }
  .acct-shell .acct-nav a.on .acct-tab-ico { color: var(--primary); }
  .acct-tab-ico {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
  }
  .acct-tab-ico svg { width: 20px; height: 20px; display: block; }
  .acct-tab-lab {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
  }
  .acct-shell .acct-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .acct-shell .acct-subnav::-webkit-scrollbar { display: none; }
  .acct-shell .acct-subnav a {
    flex: 1 0 auto;
    min-height: 40px;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 10px 12px;
  }
  .cms-chrome {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 28;
    margin: 0 -12px 14px;
    padding: 8px 12px 10px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .acct-shell .cms-topnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    flex-wrap: nowrap;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
  }
  .acct-shell .cms-topnav a {
    flex: none;
    min-height: 40px;
    padding: 8px 10px;
    margin: 0;
    border-radius: 12px;
    border-bottom: 0;
    font-size: 12px;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
  }
  .acct-shell .cms-topnav a.on {
    border-bottom: 0;
    background: color-mix(in srgb, var(--primary) 20%, var(--surface));
    color: var(--text);
  }
  .cms-mods-wrap {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    align-items: stretch;
  }
  .acct-shell .cms-mods {
    display: flex;
    gap: 6px;
    padding: 2px 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .acct-shell .cms-mods::-webkit-scrollbar { display: none; }
  .acct-shell .cms-mods a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    margin: 0;
    border-radius: 999px;
    border-bottom: 0;
    font-size: 12px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
  }
  .acct-shell .cms-mods a.on {
    border-bottom: 0;
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 22%, var(--surface));
  }
  .cms-mods-wrap .cms-loc {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .cms-mods-wrap .cms-loc-lab {
    flex: 0 0 auto;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cms-mods-wrap .cms-loc select { flex: 1; min-width: 0; width: auto; }
  .acct-main .panel,
  .acct-main .acct-panel {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .acct-shell .site-form > h3 { font-size: 18px; margin: 0 0 6px; }
  .cms-save-bar {
    position: sticky;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 21;
    margin: 8px -14px 0;
    padding: 10px 14px 6px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 28%);
  }
  .cms-save-bar .btn { width: 100%; min-height: 44px; }
  .cms-list-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .cms-list-head h3 { font-size: 18px; }
  .acct-shell .cms-list-head .btn {
    width: 100%;
    min-height: 44px;
    align-self: stretch;
  }
  .cms-mem-on {
    flex-direction: column;
    align-items: stretch;
  }
  .cms-mem-on .btn { width: 100%; min-height: 44px; }
  .cms-contact-row {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
  .cms-contact-row select { grid-column: 1 / -1; }
  .cms-contact-row .btn { min-height: 44px; }
  .cms-rich-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cms-rich-bar::-webkit-scrollbar { display: none; }
  .cms-rich-bar button { flex: 0 0 auto; min-height: 36px; }
  .cms-rich-ed { max-height: 240px; font-size: 16px; }
  .acct-modal-cms .cms-rich-ed { max-height: 28vh; }
  .acct-modal .site-form .btn { min-height: 44px; }
  .acct-banner-list { gap: 8px; }
  .acct-banner-tile { width: calc(50% - 4px); height: 88px; }
  body:has(.acct-modal) .acct-shell .acct-tabs { visibility: hidden; }
  .invite-card { padding: 20px 16px; min-width: 0; overflow: hidden; }
  .invite-card .code {
    font-size: clamp(20px, 7vw, 28px);
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .invite-card .link { overflow-wrap: anywhere; word-break: break-all; }
  .invite-card .acct-row { flex-direction: column; align-items: stretch; }
  .invite-card .btn, .acct-shell .invite-card .btn { width: 100%; min-width: 0; min-height: 44px; }
  .acct-split, .acct-panel, .acct-lead { min-width: 0; max-width: 100%; }
  .acct-panel h3 { font-size: 18px; overflow-wrap: anywhere; }
  .acct-table { min-width: 0; }
  .acct-table-wrap:has(+ .acct-list) { display: none; }
  .acct-list { display: grid; gap: 8px; }
  .tpl-fold-hint { display: none; }
  .tpl-fold-sum {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .tpl-fold-sum .kicker { grid-column: 1; }
  .tpl-fold-cur { grid-column: 1; white-space: normal; }
  .tpl-fold-sum::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .site-hero-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .site-hero-bar h3 { font-size: 24px; }
  .site-hero-bar .btn { width: 100%; }
  .site-save-row { flex-direction: column; align-items: stretch; }
  .acct-media-drop { grid-template-columns: 1fr; }
  .acct-media-preview { width: 100%; height: 120px; }
  .acct-filter, .acct-filter.with-q {
    grid-template-columns: 1fr 1fr;
  }
  .acct-filter .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-height: 44px;
  }
  .acct-list-empty { margin: 0; color: var(--muted); font-size: 13px; padding: 6px 0; }
  .acct-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 10px 12px;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 45%, transparent);
  }
  .acct-list-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .acct-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }
  .acct-list-date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
  }
  .acct-list-top .status-pill {
    flex-shrink: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
    padding: 2px 8px;
  }
  .acct-list-mid {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .acct-list-amt {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .acct-list-go {
    flex-shrink: 0;
    width: 18px;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    text-align: center;
  }
  .method-card-head { flex-direction: column; align-items: stretch; }
  .method-card-head .acct-row { width: 100%; }
  .method-card-head .btn { flex: 1; min-height: 40px; }
  .acct-modal {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
  }
  .acct-modal-card,
  .acct-modal-payout .acct-modal-card,
  .acct-modal-cms .acct-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .acct-modal .form-row { grid-template-columns: 1fr; }
  .acct-modal .acct-row { flex-direction: column; align-items: stretch; }
  .acct-modal .acct-row .btn { width: 100%; min-width: 0; }
  .acct-modal-body .acct-table { width: 100%; }
  .acct-modal-body .acct-table th {
    width: auto; min-width: 0; display: block; padding: 10px 0 2px; border: 0;
  }
  .acct-modal-body .acct-table td { display: block; padding: 0 0 10px; border: 0; word-break: break-all; }
  .acct-modal-body .acct-table tr { display: block; border-top: 1px solid var(--line); }
  .wallet-home { gap: 12px; }
  .wallet-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
    align-items: start;
  }
  .wallet-hero-main span { letter-spacing: 0.04em; text-transform: none; }
  .wallet-hero-main strong { font-size: clamp(26px, 8vw, 36px); margin: 4px 0 8px; }
  .wallet-hero-main p { font-size: 13px; }
  .wallet-ico-btn { width: 64px; height: 46px; flex-shrink: 0; }
  .wallet-ico-btn svg { width: 52px; height: 34px; }
  .wallet-metrics a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 12px 14px;
  }
  .wallet-metrics span { flex: 1; min-width: 0; }
  .wallet-metrics strong { margin: 0; font-size: 18px; text-align: right; overflow-wrap: anywhere; }
  .wallet-cta { padding: 16px; border-radius: 16px; min-width: 0; }
  .wallet-cta-head { flex-direction: column; align-items: stretch; }
  .wallet-cta-head .btn, .acct-shell .wallet-cta .btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.35; }
  .wallet-wd-form .btn { justify-self: stretch; width: 100%; min-height: 44px; min-width: 0; }
  .wallet-wd-form label { display: grid; gap: 6px; min-width: 0; }
  .auth-form { max-width: none; }
  .auth-code-row { grid-template-columns: 1fr; }
  .auth-code-row .btn { width: 100%; height: 44px; }
  .pay-page .pay-opt { min-height: 44px; }
  .acct-plan-bar { flex-direction: column; align-items: stretch; }
  .acct-plan-bar .btn { width: 100%; min-height: 44px; }
  .pay-act { flex-direction: column; }
  .pay-act .btn { width: 100%; flex: none; }
  .nav-links, .nav #nav-cta { display: none; }
  .burger { display: block; min-width: 44px; min-height: 44px; }
  .cards, .cases, .about-grid, .form-row, .stats, .contact-grid, .acct-split, .acct-profile, .wallet-stats, .wallet-metrics, .wallet-wd-grid, .comm-meta, .site-gen-grid { grid-template-columns: 1fr; }
  .cases.products-grid .case:nth-child(n) { margin-top: 0; }
  .cases.products-grid .case:nth-child(odd) .cover img,
  .cases.products-grid .case:nth-child(odd) .cover video,
  .cases.products-grid .case:nth-child(odd) .cover-ph { aspect-ratio: 16 / 10; }
  .cases.products-grid .case:nth-child(even) .cover img,
  .cases.products-grid .case:nth-child(even) .cover video,
  .cases.products-grid .case:nth-child(even) .cover-ph { aspect-ratio: 4 / 5; }
  .cases.cases-board .case:nth-child(n) { margin-top: 0; }
  .cases.cases-board .case:first-child {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cases.cases-board .case:first-child .cover,
  .cases.cases-board .case:first-child .meta,
  .cases.cases-board .case:first-child h3,
  .cases.cases-board .case:first-child p {
    grid-column: auto;
    grid-row: auto;
  }
  .cases.cases-board .case:first-child .cover { margin: 0 0 16px; }
  .cases.team-studio .case,
  .cases.team-studio .case:nth-child(even),
  .cases.team-studio .case:first-child {
    grid-template-columns: 1fr;
    grid-template-areas: "pic" "name" "role";
    text-align: left;
    justify-items: start;
  }
  .cases.team-studio .case .cover { max-width: 280px; }
  .cms-loc { margin-left: 0; }
  .hero { padding-top: 48px; min-height: 0; }
  .nav {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .drawer {
    inset: calc(72px + env(safe-area-inset-top, 0px)) 12px auto 12px;
    max-height: min(70dvh, calc(100dvh - 110px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .foot { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  body:has(.acct-shell) .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  input, textarea, select { font-size: 16px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .acct-shell .btn:not(.btn-sm) { min-height: 44px; }
  .acct-shell .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 12px; }
  .hero-actions .btn { width: 100%; }
  .card:hover, .case:hover, .acct-shell .plan:hover, .acct-shell .wallet-metrics a:hover, .acct-shell .btn:hover { transform: none; }
  .acct-shell { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .acct-shell .acct-mast,
  .acct-shell[data-acct-tpl="lounge"] .acct-mast,
  .acct-shell .acct-compact-head { padding: 16px 0 12px; gap: 10px; align-items: flex-start; }
  .acct-shell[data-acct-tpl] .acct-mast h1,
  .acct-shell[data-acct-tpl="platform"] .acct-mast h1,
  .acct-shell[data-acct-tpl="split"] .acct-mast h1,
  .acct-shell[data-acct-tpl="lounge"] .acct-mast h1,
  .acct-shell[data-acct-tpl="studio"] .acct-mast h1,
  .acct-shell[data-acct-tpl="simple"] .acct-mast h1,
  .acct-shell[data-acct-tpl="compact"] .acct-mast h1 {
    font-size: clamp(24px, 7.5vw, 34px);
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.1;
  }
  .acct-lounge-quote { font-size: clamp(24px, 8vw, 36px); }
  .acct-shell .acct-nav .vip-chip {
    order: -1;
    margin: 0 0 4px;
    width: fit-content;
  }
  .acct-user { width: 100%; }
  .acct-user .btn { margin-left: auto; flex-shrink: 0; }
  .acct-user-meta { flex: 1; min-width: 0; }
  .acct-shell[data-acct-tpl="split"] .acct-profile,
  .acct-shell[data-acct-tpl="lounge"] .acct-profile,
  .acct-shell[data-acct-tpl="card"] .acct-profile,
  .acct-shell[data-acct-tpl="stack"] .acct-profile,
  .acct-shell[data-acct-tpl="platform"] .acct-profile,
  .acct-shell[data-acct-tpl="compact"] .acct-profile,
  .acct-shell[data-acct-tpl="simple"] .acct-profile,
  .acct-shell[data-acct-tpl="ledger"] .acct-profile,
  .acct-shell[data-acct-tpl="studio"] .acct-profile,
  .acct-shell[data-acct-tpl="rail"] .acct-profile,
  .acct-profile-split,
  .acct-profile-lounge {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }
  .acct-shell[data-acct-tpl="split"] .acct-idcard { order: 0; }
  .acct-id-stats,
  .acct-plat-tiles { grid-template-columns: 1fr; }
  .acct-form-inline { flex-direction: column; align-items: stretch; }
  .acct-form-inline .acct-form-actions .btn { width: 100%; }
  .acct-compact-head { flex-wrap: wrap; }
  .acct-compact-head strong { flex: 1 1 auto; min-width: 0; }
  .acct-facts > div { grid-template-columns: 1fr; }
  .acct-mast-ledger { flex-wrap: wrap; align-items: flex-start; }
  .acct-profile-ledger,
  .acct-shell[data-acct-tpl="ledger"] .acct-profile { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="rail"] .acct-stage,
  .acct-shell[data-acct-tpl="split"] .acct-stage {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 12px;
  }
  .acct-shell[data-acct-tpl="split"] .acct-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    z-index: 1;
  }
  .acct-shell[data-acct-tpl="split"] .acct-side-who { order: 2; }
  .acct-shell[data-acct-tpl="split"] .acct-side-foot { order: 3; }
  .acct-shell[data-acct-tpl="split"] .acct-nav { order: 4; flex: none; overflow: visible; min-height: 0; }
  .acct-shell[data-acct-tpl="split"] .acct-mast,
  .acct-shell[data-acct-tpl="split"] .acct-nav { padding-right: 0; }
  .acct-shell[data-acct-tpl="split"] .acct-main {
    border-left: 0;
    padding: 0 0 8px;
    min-height: 0;
  }
  .acct-shell[data-acct-tpl="split"] .acct-nav { flex-direction: column; padding-bottom: 0; }
  .acct-shell[data-acct-tpl="split"] .acct-tabs { flex-direction: row; }
  .acct-shell[data-acct-tpl="split"] .acct-nav a {
    border-left: 0;
    padding-left: 12px;
  }
  .acct-nav-seg .acct-tabs { width: 100%; overflow-x: auto; }
  .acct-profile-studio,
  .acct-shell[data-acct-tpl="studio"] .acct-profile {
    grid-template-columns: 1fr;
  }
  .acct-shell[data-acct-tpl="studio"] .acct-mast {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .acct-shell[data-acct-tpl="studio"] .acct-mast .btn,
  .acct-shell[data-acct-tpl="studio"] .acct-studio-out { margin-left: 0; }
  .acct-shell[data-acct-tpl="rail"] .acct-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .acct-shell[data-acct-tpl="rail"] .acct-side-who { order: 2; margin: 0; }
  .acct-shell[data-acct-tpl="rail"] .acct-side-foot { order: 3; margin: 0; padding: 0; border-top: 0; }
  .acct-shell[data-acct-tpl="rail"] .acct-nav {
    order: 4;
    flex: none;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    border-right: 0;
    border-bottom: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    width: 100%;
  }
  .acct-shell[data-acct-tpl="rail"] .acct-tabs { flex-direction: row; }
  .acct-shell[data-acct-tpl="rail"] .acct-nav a {
    border-left: 0;
    border-radius: 0;
  }
  .acct-shell[data-acct-tpl="rail"] .acct-nav a.on {
    border-left-color: transparent;
    border-bottom: 2px solid var(--primary);
    background: transparent;
  }
  .acct-shell[data-acct-tpl="rail"] .acct-side-out { width: 100%; max-width: none; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .acct-shell[data-acct-tpl="rail"] .acct-stage {
    grid-template-columns: minmax(148px, 176px) minmax(0, 1fr);
    gap: 18px;
  }
  .acct-shell[data-acct-tpl="split"] .acct-stage {
    grid-template-columns: minmax(168px, 196px) minmax(0, 1fr);
  }
  .acct-shell[data-acct-tpl="split"] .acct-profile {
    grid-template-columns: 1fr;
  }
  .acct-shell[data-acct-tpl="studio"] .acct-profile,
  .acct-shell[data-acct-tpl="ledger"] .acct-profile,
  .acct-profile-lounge,
  .acct-profile-studio,
  .acct-profile-ledger {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .acct-shell .acct-mast h1 { font-size: clamp(32px, 4.6vw, 52px); }
  .acct-plat-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .wallet-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .wallet-ico-btn { width: 58px; height: 44px; }
  .acct-idcard { padding: 20px 16px 16px; }
  .acct-id-stats { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="platform"] .acct-mast h1 { font-size: 24px; }
  .acct-mono { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
  .acct-studio-plate .acct-mono { border-radius: 4px; }
  .acct-profile-form { padding: 20px 16px 16px; }
  .acct-profile-form .acct-form-actions .btn { width: 100%; min-width: 0; }
  .acct-user { border-radius: 18px; }
  .acct-id-cell { flex-direction: column; align-items: flex-start; }
  .acct-shell[data-acct-tpl="simple"] .acct-plat-tiles { grid-template-columns: 1fr; }
  .acct-pass-stripe { margin-left: -16px; margin-right: -16px; }
}

.plan-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.plan-line-copy h3 { margin: 0 0 4px; font-size: 20px; }
.plan-line.on strong { color: var(--primary); }
.plan-edit { padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.plan-edit h3 { font-size: clamp(32px, 5vw, 52px); font-style: italic; margin: 0 0 12px; }
.plan-sheet {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 22px 18px;
  display: grid;
  gap: 8px;
  border-radius: 4px;
}
.plan-row {
  padding: 16px 0 16px 16px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 8px;
}
.plan-row.on { border-left-color: var(--primary); }
.plan-row-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.plan-row-head h3 { margin: 0; }
.acct-plans-table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.acct-plans-table { width: 100%; }
.acct-plans-table tr.on { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.acct-shell[data-acct-tpl="simple"] .panel,
.acct-shell[data-acct-tpl="simple"] .acct-panel,
.acct-shell[data-acct-tpl="simple"] .invite-card,
.acct-shell[data-acct-tpl="simple"] .wallet-hero,
.acct-shell[data-acct-tpl="simple"] .wallet-cta,
.acct-shell[data-acct-tpl="simple"] .wallet-metrics a,
.acct-shell[data-acct-tpl="simple"] .pay-page .pay-opt {
  border: 1px solid var(--line);
  border-radius: var(--skin-radius, 10px);
  background: var(--surface);
  box-shadow: none;
}
.acct-shell[data-acct-tpl="simple"] .wallet-metrics {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acct-shell[data-acct-tpl="simple"] .wallet-metrics a { padding: 14px 16px; }
.acct-shell[data-acct-tpl="simple"] .acct-subnav {
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acct-shell[data-acct-tpl="simple"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="simple"] .acct-subnav a {
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  min-height: 40px;
  white-space: nowrap;
}
.acct-shell[data-acct-tpl="simple"] .acct-subnav a.on {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}
.acct-shell[data-acct-tpl="simple"] input,
.acct-shell[data-acct-tpl="simple"] select,
.acct-shell[data-acct-tpl="simple"] textarea {
  border-radius: 8px;
  min-height: 44px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="simple"] textarea { min-height: 96px; }
.acct-shell[data-acct-tpl="simple"] .btn { border-radius: 8px; min-height: 44px; }
.acct-shell[data-acct-tpl="simple"] p.banner {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  padding: 10px 14px;
}
.acct-shell[data-acct-tpl="simple"] .plans,
.acct-shell[data-acct-tpl="simple"] .plans-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.acct-shell[data-acct-tpl="simple"] .plan-line {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--skin-radius, 10px);
  background: var(--surface);
}
.acct-shell[data-acct-tpl="simple"] .plan-line .btn,
.acct-shell[data-acct-tpl="simple"] .acct-plan-act { width: 100%; }
.acct-shell[data-acct-tpl="simple"] .wallet-ico-btn { box-shadow: none; border-radius: 10px; }

.acct-shell[data-acct-tpl="card"] .plans,
.acct-shell[data-acct-tpl="card"] .plans-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
}
.acct-shell[data-acct-tpl="card"] .plan { border-radius: 22px; padding: 22px 22px 18px; }
.acct-shell[data-acct-tpl="card"] .plan .btn,
.acct-shell[data-acct-tpl="card"] .acct-plan-act { width: 100%; }
.acct-shell[data-acct-tpl="card"] .panel,
.acct-shell[data-acct-tpl="card"] .acct-panel,
.acct-shell[data-acct-tpl="card"] .wallet-cta,
.acct-shell[data-acct-tpl="card"] .pay-page .pay-opt { border-radius: 22px; }
.acct-shell[data-acct-tpl="card"] .btn { border-radius: 999px; min-height: 44px; }
.acct-shell[data-acct-tpl="card"] .btn-sm { min-height: 36px; }
.acct-shell[data-acct-tpl="card"] .acct-subnav {
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acct-shell[data-acct-tpl="card"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="card"] .acct-subnav a {
  border-radius: 999px;
  min-height: 40px;
  white-space: nowrap;
  padding: 8px 14px;
}
.acct-shell[data-acct-tpl="card"] .invite-card { border-radius: 24px; }
.acct-shell[data-acct-tpl="card"] .wallet-hero { border-radius: 24px; }
.acct-shell[data-acct-tpl="card"] .wallet-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acct-shell[data-acct-tpl="card"] input,
.acct-shell[data-acct-tpl="card"] select,
.acct-shell[data-acct-tpl="card"] textarea {
  border-radius: 14px;
  min-height: 44px;
}
.acct-shell[data-acct-tpl="card"] textarea { min-height: 96px; }

.acct-pass { padding-top: 0; }
.acct-pass-stripe {
  height: 38px;
  margin: 0 -26px 20px;
  background:
    repeating-linear-gradient(90deg, #141414 0 3px, #2a2a2a 3px 6px),
    linear-gradient(#1a1a1a, #0d0d0d);
}
.acct-pass-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.acct-pass-chip {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, #efe3c4 0%, #c9b07a 42%, #8d7344 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 12px rgba(0,0,0,.18);
  position: relative;
}
.acct-pass-chip:after {
  content: "";
  position: absolute;
  inset: 6px 5px;
  border: 1px solid color-mix(in srgb, #5a4318 35%, transparent);
  border-radius: 3px;
}
.acct-pass-no {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.acct-pass-no span { font-size: 11px; color: var(--muted); }
.acct-pass-no code { font-size: 12px; overflow-wrap: anywhere; }

.acct-shell[data-acct-tpl="platform"] .panel,
.acct-shell[data-acct-tpl="platform"] .acct-panel { border-radius: 10px; }
.acct-shell[data-acct-tpl="platform"] .btn { border-radius: 8px; letter-spacing: -0.03em; }
.acct-shell[data-acct-tpl="platform"] .acct-subnav a { border-radius: 8px; }
.acct-shell[data-acct-tpl="platform"] .wallet-hero {
  border-radius: 10px;
  background: var(--surface);
}
.acct-shell[data-acct-tpl="platform"] .wallet-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acct-shell[data-acct-tpl="platform"] .wallet-cta,
.acct-shell[data-acct-tpl="platform"] .invite-card { border-radius: 10px; background: var(--surface); }
.acct-shell[data-acct-tpl="platform"] .invite-card { padding: 18px; }
.acct-shell[data-acct-tpl="platform"] .invite-card .code { font-size: 28px; letter-spacing: 0; }

.acct-shell[data-acct-tpl="split"] .plans,
.acct-shell[data-acct-tpl="split"] .plans-split { grid-template-columns: 1fr; gap: 10px; }
.acct-shell[data-acct-tpl="split"] .plan-row {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  padding: 16px 16px 14px 18px;
  background: var(--surface);
  border-radius: 0;
}
.acct-shell[data-acct-tpl="split"] .plan-row.on { border-left-color: var(--primary); }
.acct-shell[data-acct-tpl="split"] .plan-row .btn,
.acct-shell[data-acct-tpl="split"] .acct-plan-act { width: 100%; }
.acct-shell[data-acct-tpl="split"] .panel,
.acct-shell[data-acct-tpl="split"] .acct-panel,
.acct-shell[data-acct-tpl="split"] .invite-card,
.acct-shell[data-acct-tpl="split"] .wallet-hero,
.acct-shell[data-acct-tpl="split"] .wallet-cta,
.acct-shell[data-acct-tpl="split"] .pay-page .pay-opt {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.acct-shell[data-acct-tpl="split"] .wallet-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acct-shell[data-acct-tpl="split"] .wallet-metrics a {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
}
.acct-shell[data-acct-tpl="split"] .btn { border-radius: 2px; min-height: 44px; }
.acct-shell[data-acct-tpl="split"] .btn-sm { min-height: 40px; border-radius: 2px; }
.acct-shell[data-acct-tpl="split"] .acct-side-out.btn {
  min-height: 40px;
  max-height: 40px;
  border-radius: 2px;
}
.acct-shell[data-acct-tpl="split"] .acct-subnav {
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acct-shell[data-acct-tpl="split"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="split"] .acct-subnav a {
  border-radius: 0;
  min-height: 40px;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="split"] .acct-subnav a.on {
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
}
.acct-shell[data-acct-tpl="split"] input,
.acct-shell[data-acct-tpl="split"] select,
.acct-shell[data-acct-tpl="split"] textarea {
  border-radius: 2px;
  min-height: 44px;
}
.acct-shell[data-acct-tpl="split"] textarea { min-height: 96px; }
.acct-shell[data-acct-tpl="split"] .acct-profile-form {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 18px 16px;
  border-radius: 0;
}

.acct-shell[data-acct-tpl="stack"] .plans,
.acct-shell[data-acct-tpl="stack"] .plans-stack { grid-template-columns: 1fr; }
.acct-shell[data-acct-tpl="stack"] .plan { border-radius: 28px; padding: 32px; }
.acct-shell[data-acct-tpl="stack"] .panel,
.acct-shell[data-acct-tpl="stack"] .wallet-hero,
.acct-shell[data-acct-tpl="stack"] .wallet-cta,
.acct-shell[data-acct-tpl="stack"] .invite-card { border-radius: 28px; }
.acct-shell[data-acct-tpl="stack"] .wallet-metrics { grid-template-columns: 1fr; }
.acct-shell[data-acct-tpl="stack"] .btn { border-radius: 999px; }
.acct-shell[data-acct-tpl="stack"] .acct-subnav { flex-direction: column; align-items: stretch; }
.acct-shell[data-acct-tpl="stack"] .acct-subnav a { border-radius: 16px; }

.acct-shell[data-acct-tpl="rail"] .plans,
.acct-shell[data-acct-tpl="rail"] .plans-rail { grid-template-columns: 1fr; gap: 10px; }
.acct-shell[data-acct-tpl="rail"] .panel,
.acct-shell[data-acct-tpl="rail"] .acct-panel { border-radius: 12px; }
.acct-shell[data-acct-tpl="rail"] .btn { border-radius: 10px; font-size: 13px; }
.acct-shell[data-acct-tpl="rail"] .acct-side-out.btn {
  min-height: 40px;
  max-height: 40px;
  border-radius: 10px;
}
.acct-shell[data-acct-tpl="rail"] .wallet-hero { border-radius: 14px; padding: 18px; }
.acct-shell[data-acct-tpl="rail"] .wallet-hero-main strong { font-size: 28px; }
.acct-shell[data-acct-tpl="rail"] .invite-card { border-radius: 14px; padding: 18px; }
.acct-shell[data-acct-tpl="rail"] .acct-subnav a { border-radius: 8px; font-size: 12px; }

.acct-shell[data-acct-tpl="compact"] .panel,
.acct-shell[data-acct-tpl="compact"] .acct-panel,
.acct-shell[data-acct-tpl="compact"] .wallet-hero,
.acct-shell[data-acct-tpl="compact"] .wallet-cta,
.acct-shell[data-acct-tpl="compact"] .invite-card,
.acct-shell[data-acct-tpl="compact"] .pay-page .pay-opt { border-radius: 8px; padding: 14px 16px; }
.acct-shell[data-acct-tpl="compact"] .wallet-hero-main strong { font-size: 26px; margin: 2px 0 6px; }
.acct-shell[data-acct-tpl="compact"] .wallet-metrics {
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acct-shell[data-acct-tpl="compact"] .wallet-metrics a { border-radius: 8px; padding: 12px; }
.acct-shell[data-acct-tpl="compact"] .wallet-metrics strong { font-size: 16px; }
.acct-shell[data-acct-tpl="compact"] .btn {
  border-radius: 6px;
  font-size: 13px;
  min-height: 40px;
  padding: 8px 12px;
}
.acct-shell[data-acct-tpl="compact"] .btn-sm,
.acct-shell[data-acct-tpl="compact"] .acct-compact-out {
  min-height: 36px;
  padding: 6px 12px;
}
.acct-shell[data-acct-tpl="compact"] .acct-subnav {
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acct-shell[data-acct-tpl="compact"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="compact"] .acct-subnav a {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
  min-height: 36px;
  white-space: nowrap;
}
.acct-shell[data-acct-tpl="compact"] .invite-card .code { font-size: 22px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.acct-shell[data-acct-tpl="compact"] .acct-plans-table { font-size: 13px; }
.acct-shell[data-acct-tpl="compact"] .plan-feat-cell { display: none; }
@media (min-width: 861px) {
  .acct-shell[data-acct-tpl="compact"] .acct-tab-ico { display: none; }
}

.acct-shell[data-acct-tpl="ledger"] .panel,
.acct-shell[data-acct-tpl="ledger"] .acct-panel,
.acct-shell[data-acct-tpl="ledger"] .wallet-hero,
.acct-shell[data-acct-tpl="ledger"] .wallet-cta,
.acct-shell[data-acct-tpl="ledger"] .invite-card,
.acct-shell[data-acct-tpl="ledger"] .wallet-metrics a,
.acct-shell[data-acct-tpl="ledger"] .pay-page .pay-opt {
  border-radius: 2px;
  box-shadow: none;
}
.acct-shell[data-acct-tpl="ledger"] .wallet-hero {
  background: var(--surface);
  padding: 18px 16px;
}
.acct-shell[data-acct-tpl="ledger"] .wallet-hero-main strong { font-size: 32px; font-family: var(--skin-display); font-style: normal; }
.acct-shell[data-acct-tpl="ledger"] .wallet-metrics {
  gap: 0;
  border: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acct-shell[data-acct-tpl="ledger"] .wallet-metrics a { border-radius: 0; border: 0; border-right: 1px solid var(--line); padding: 14px; }
.acct-shell[data-acct-tpl="ledger"] .wallet-metrics a:last-child { border-right: 0; }
.acct-shell[data-acct-tpl="ledger"] .invite-card { background: var(--surface); padding: 16px; }
.acct-shell[data-acct-tpl="ledger"] .invite-card .code { font-size: 26px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.acct-shell[data-acct-tpl="ledger"] .acct-subnav {
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="ledger"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="ledger"] .acct-subnav a {
  border-radius: 0;
  min-height: 40px;
  white-space: nowrap;
  padding: 8px 12px;
}
.acct-shell[data-acct-tpl="ledger"] .btn { border-radius: 2px; min-height: 40px; }
.acct-shell[data-acct-tpl="ledger"] .btn-sm,
.acct-shell[data-acct-tpl="ledger"] .acct-ledger-out { min-height: 36px; }
.acct-shell[data-acct-tpl="ledger"] input,
.acct-shell[data-acct-tpl="ledger"] select { border-radius: 2px; }
@media (min-width: 861px) {
  .acct-shell[data-acct-tpl="ledger"] .acct-tab-ico { display: none; }
}

.acct-shell[data-acct-tpl="lounge"] .plans,
.acct-shell[data-acct-tpl="lounge"] .plans-lounge { grid-template-columns: 1fr; gap: 8px; }
.acct-shell[data-acct-tpl="lounge"] .plan-edit {
  padding: 20px 4px 24px;
  border-bottom: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="lounge"] .plan-edit h3 {
  font-size: clamp(22px, 3.6vw, 36px);
  font-style: italic;
  margin: 0 0 10px;
}
.acct-shell[data-acct-tpl="lounge"] .plan-edit .btn,
.acct-shell[data-acct-tpl="lounge"] .acct-plan-act { width: min(100%, 16em); }
.acct-shell[data-acct-tpl="lounge"] .panel,
.acct-shell[data-acct-tpl="lounge"] .acct-panel,
.acct-shell[data-acct-tpl="lounge"] .invite-card,
.acct-shell[data-acct-tpl="lounge"] .wallet-hero,
.acct-shell[data-acct-tpl="lounge"] .wallet-cta,
.acct-shell[data-acct-tpl="lounge"] .pay-page .pay-opt {
  border: 0;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: none;
  border-radius: 28px;
  padding: 22px 22px 18px;
}
.acct-shell[data-acct-tpl="lounge"] .wallet-hero { padding: 24px 24px 20px; }
.acct-shell[data-acct-tpl="lounge"] .wallet-hero-main strong {
  font-size: clamp(32px, 5vw, 48px);
  font-style: italic;
  font-weight: 500;
}
.acct-shell[data-acct-tpl="lounge"] .wallet-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.acct-shell[data-acct-tpl="lounge"] .wallet-metrics a {
  border: 0;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-radius: 22px;
  padding: 16px;
}
.acct-shell[data-acct-tpl="lounge"] .invite-card .code {
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.acct-shell[data-acct-tpl="lounge"] .acct-subnav {
  border: 0;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acct-shell[data-acct-tpl="lounge"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="lounge"] .acct-subnav a {
  background: transparent;
  border-radius: 999px;
  font-family: var(--skin-display);
  font-style: italic;
  font-size: 16px;
  padding: 8px 14px;
  min-height: 40px;
  white-space: nowrap;
}
.acct-shell[data-acct-tpl="lounge"] .acct-subnav a.on { background: color-mix(in srgb, var(--text) 6%, transparent); opacity: 1; }
.acct-shell[data-acct-tpl="lounge"] .btn {
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 18px;
}
.acct-shell[data-acct-tpl="lounge"] .btn-sm { min-height: 36px; }
.acct-shell[data-acct-tpl="lounge"] p.banner {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 12px;
}

.acct-shell[data-acct-tpl="studio"] .plans,
.acct-shell[data-acct-tpl="studio"] .plans-studio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acct-shell[data-acct-tpl="studio"] .plan-sheet .btn,
.acct-shell[data-acct-tpl="studio"] .acct-plan-act { width: 100%; }
.acct-shell[data-acct-tpl="studio"] .panel,
.acct-shell[data-acct-tpl="studio"] .acct-panel,
.acct-shell[data-acct-tpl="studio"] .wallet-cta,
.acct-shell[data-acct-tpl="studio"] .invite-card { border-radius: 4px; }
.acct-shell[data-acct-tpl="studio"] .wallet-hero { border-radius: 4px; background: var(--surface); }
.acct-shell[data-acct-tpl="studio"] .wallet-hero-main strong { font-style: italic; font-weight: 500; }
.acct-shell[data-acct-tpl="studio"] .wallet-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acct-shell[data-acct-tpl="studio"] .btn { border-radius: 4px; min-height: 40px; }
.acct-shell[data-acct-tpl="studio"] .btn-sm,
.acct-shell[data-acct-tpl="studio"] .acct-studio-out { min-height: 36px; }
.acct-shell[data-acct-tpl="studio"] .acct-subnav {
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.acct-shell[data-acct-tpl="studio"] .acct-subnav::-webkit-scrollbar { display: none; }
.acct-shell[data-acct-tpl="studio"] .acct-subnav a {
  border-radius: 0;
  letter-spacing: 0;
  min-height: 40px;
  white-space: nowrap;
  padding: 8px 12px;
}
.acct-shell[data-acct-tpl="studio"] .invite-card .code { letter-spacing: 0.04em; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .plan-line { grid-template-columns: 1fr; align-items: stretch; }
  .acct-shell[data-acct-tpl="studio"] .plans-studio { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="ledger"] .wallet-metrics,
  .acct-shell[data-acct-tpl="platform"] .wallet-metrics { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="ledger"] .wallet-metrics a { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-feat-cell { display: none; }
}

.acct-tab-geom { display: block; background: currentColor; flex-shrink: 0; }
.acct-tab-geom.g-sq { width: 10px; height: 10px; }
.acct-tab-geom.g-dia { width: 9px; height: 9px; transform: rotate(45deg); }
.acct-tab-geom.g-bar { width: 3px; height: 14px; }
.acct-tab-geom.g-two { width: 6px; height: 6px; box-shadow: 9px 0 0 currentColor; }
.acct-tab-geom.g-slab { width: 14px; height: 5px; }
.acct-tab-ico-card svg { width: 15px; height: 15px; }
.acct-tab-ico-platform svg { width: 14px; height: 14px; }
.acct-tab-ico-split svg { width: 15px; height: 15px; }
.acct-tab-ico-rail svg { width: 22px; height: 22px; }
.acct-tab-ico-compact svg { width: 12px; height: 12px; }
.acct-tab-ico-lounge svg { width: 18px; height: 18px; opacity: 0.7; }
.acct-wmark {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--primary);
  background: currentColor;
}
.acct-wmark-simple { width: 36px; height: 2px; margin: 17px 0; }
.acct-wmark-platform {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 14px 14px no-repeat,
    linear-gradient(currentColor 0 0) 22px 0 / 14px 14px no-repeat,
    linear-gradient(currentColor 0 0) 0 22px / 14px 14px no-repeat,
    linear-gradient(currentColor 0 0) 22px 22px / 14px 14px no-repeat;
}
.acct-wmark-split {
  background: transparent;
  border: 0;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 2px, 2px 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.acct-wmark-stack { border-radius: 50%; width: 40px; height: 40px; }
.acct-wmark-rail { width: 6px; height: 36px; }
.acct-wmark-compact {
  width: 28px; height: 28px;
  background:
    radial-gradient(circle, currentColor 2.5px, transparent 2.6px) 0 0 / 10px 10px;
}
.acct-wmark-ledger {
  background: transparent;
  width: 28px;
  height: 28px;
  box-shadow:
    inset 0 6px 0 -4px currentColor,
    inset 0 12px 0 -4px currentColor,
    inset 0 18px 0 -4px currentColor,
    inset 0 24px 0 -4px currentColor;
}
.acct-wmark-lounge {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.acct-wmark-studio { width: 28px; height: 8px; border-radius: 2px; }
.wallet-ico-btn-simple,
.wallet-ico-btn-split,
.wallet-ico-btn-ledger,
.wallet-ico-btn-lounge,
.wallet-ico-btn-studio {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.acct-shell[data-acct-line] .panel,
.acct-shell[data-acct-line] .acct-panel,
.acct-shell[data-acct-line] .invite-card,
.acct-shell[data-acct-line] .wallet-hero,
.acct-shell[data-acct-line] .wallet-cta,
.acct-shell[data-acct-line] .wallet-metrics a,
.acct-shell[data-acct-line] .plan,
.acct-shell[data-acct-line] .plan-sheet,
.acct-shell[data-acct-line] .acct-facts,
.acct-shell[data-acct-line] .acct-idcard,
.acct-shell[data-acct-line] .acct-profile-form,
.acct-shell[data-acct-line] .pay-page .pay-opt,
.acct-shell[data-acct-line] .method-card {
  border-width: 1px;
  border-style: solid;
  border-color: var(--line);
}
.acct-shell[data-acct-line="none"] .panel,
.acct-shell[data-acct-line="none"] .acct-panel,
.acct-shell[data-acct-line="none"] .invite-card,
.acct-shell[data-acct-line="none"] .wallet-hero,
.acct-shell[data-acct-line="none"] .wallet-cta,
.acct-shell[data-acct-line="none"] .wallet-metrics a,
.acct-shell[data-acct-line="none"] .plan,
.acct-shell[data-acct-line="none"] .plan-sheet,
.acct-shell[data-acct-line="none"] .acct-facts,
.acct-shell[data-acct-line="none"] .acct-idcard,
.acct-shell[data-acct-line="none"] .acct-profile-form,
.acct-shell[data-acct-line="none"] .pay-page .pay-opt,
.acct-shell[data-acct-line="none"] .method-card,
.acct-shell[data-acct-line="none"] .acct-nav {
  border-style: none;
  box-shadow: none;
}
.acct-shell[data-acct-line="hair"] .panel,
.acct-shell[data-acct-line="hair"] .acct-panel,
.acct-shell[data-acct-line="hair"] .invite-card,
.acct-shell[data-acct-line="hair"] .wallet-hero,
.acct-shell[data-acct-line="hair"] .wallet-cta,
.acct-shell[data-acct-line="hair"] .wallet-metrics a,
.acct-shell[data-acct-line="hair"] .plan,
.acct-shell[data-acct-line="hair"] .acct-profile-form,
.acct-shell[data-acct-line="hair"] .pay-page .pay-opt {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.acct-shell[data-acct-line="dash"] .panel,
.acct-shell[data-acct-line="dash"] .acct-panel,
.acct-shell[data-acct-line="dash"] .invite-card,
.acct-shell[data-acct-line="dash"] .wallet-hero,
.acct-shell[data-acct-line="dash"] .wallet-cta,
.acct-shell[data-acct-line="dash"] .wallet-metrics a,
.acct-shell[data-acct-line="dash"] .acct-facts,
.acct-shell[data-acct-line="dash"] .acct-profile-form,
.acct-shell[data-acct-line="dash"] .pay-page .pay-opt,
.acct-shell[data-acct-line="dash"] .acct-nav,
.acct-shell[data-acct-line="dash"] td,
.acct-shell[data-acct-line="dash"] th {
  border-style: dashed;
}
.acct-shell[data-acct-line="dot"] .panel,
.acct-shell[data-acct-line="dot"] .acct-panel,
.acct-shell[data-acct-line="dot"] .invite-card,
.acct-shell[data-acct-line="dot"] .wallet-hero,
.acct-shell[data-acct-line="dot"] .wallet-cta,
.acct-shell[data-acct-line="dot"] .wallet-metrics a,
.acct-shell[data-acct-line="dot"] .acct-profile-form,
.acct-shell[data-acct-line="dot"] .pay-page .pay-opt,
.acct-shell[data-acct-line="dot"] .acct-nav {
  border-style: dotted;
}
.acct-shell[data-acct-line="thick"] .panel,
.acct-shell[data-acct-line="thick"] .acct-panel,
.acct-shell[data-acct-line="thick"] .invite-card,
.acct-shell[data-acct-line="thick"] .wallet-hero,
.acct-shell[data-acct-line="thick"] .wallet-cta,
.acct-shell[data-acct-line="thick"] .plan,
.acct-shell[data-acct-line="thick"] .acct-profile-form,
.acct-shell[data-acct-line="thick"] .pay-page .pay-opt {
  border-width: 2px;
  border-style: solid;
}
.acct-shell[data-acct-line="double"] .panel,
.acct-shell[data-acct-line="double"] .acct-panel,
.acct-shell[data-acct-line="double"] .invite-card,
.acct-shell[data-acct-line="double"] .wallet-hero,
.acct-shell[data-acct-line="double"] .wallet-cta,
.acct-shell[data-acct-line="double"] .plan-sheet,
.acct-shell[data-acct-line="double"] .acct-profile-form,
.acct-shell[data-acct-line="double"] .pay-page .pay-opt {
  border-style: double;
  border-width: 4px;
}
.acct-shell[data-acct-line="rule"] .panel,
.acct-shell[data-acct-line="rule"] .acct-panel,
.acct-shell[data-acct-line="rule"] .invite-card,
.acct-shell[data-acct-line="rule"] .wallet-hero,
.acct-shell[data-acct-line="rule"] .wallet-cta,
.acct-shell[data-acct-line="rule"] .wallet-metrics a,
.acct-shell[data-acct-line="rule"] .plan-row,
.acct-shell[data-acct-line="rule"] .acct-profile-form,
.acct-shell[data-acct-line="rule"] .pay-page .pay-opt {
  border: 0;
  border-left: 2px solid var(--text);
  border-radius: 0;
  box-shadow: none;
}
.acct-shell[data-acct-line="rule"] .acct-nav {
  border-bottom: 0;
  border-left: 2px solid var(--text);
}

.acct-nav-ico-top a,
.acct-shell[data-acct-ico="top"] .acct-nav a {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
}
.acct-nav-ico-end a { flex-direction: row; }
.acct-shell[data-acct-align="center"] .acct-mast,
.acct-shell[data-acct-align="center"] .acct-mast-copy,
.acct-shell[data-acct-align="center"] .acct-main,
.acct-shell[data-acct-align="center"] .acct-form-head,
.acct-shell[data-acct-align="center"] .acct-profile-form,
.acct-shell[data-acct-align="center"] .wallet-hero-main,
.acct-shell[data-acct-align="center"] .invite-card,
.acct-shell[data-acct-align="center"] .acct-plan-bar {
  text-align: center;
}
.acct-shell[data-acct-align="center"] .acct-nav,
.acct-shell[data-acct-align="center"] .acct-tabs,
.acct-shell[data-acct-align="center"] .acct-subnav,
.acct-shell[data-acct-align="center"] .acct-row,
.acct-shell[data-acct-align="center"] .acct-form-actions {
  justify-content: center;
}
.acct-shell[data-acct-align="center"] .acct-mast {
  flex-direction: column;
  align-items: center;
}
.acct-shell[data-acct-align="center"] .wallet-hero {
  grid-template-columns: 1fr;
  justify-items: center;
}
.acct-shell[data-acct-align="center"] .wallet-ico-btn { order: -1; }
.acct-shell[data-acct-align="center"] .btn { margin-left: auto; margin-right: auto; }
.acct-shell[data-acct-align="center"] .acct-form-actions .btn { margin: 0 auto; }

.acct-shell[data-acct-tpl="simple"] .acct-mast h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 650; letter-spacing: -0.03em; }
.acct-shell[data-acct-tpl="simple"] .lead,
.acct-shell[data-acct-tpl="simple"] .acct-main { font-size: 15px; }
.acct-shell[data-acct-tpl="simple"] h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.acct-shell[data-acct-tpl="simple"] .btn { font-weight: 500; text-transform: none; letter-spacing: 0; }
.acct-shell[data-acct-tpl="simple"] .wallet-hero-main strong { font-size: 32px; font-weight: 650; text-align: left; }
.acct-shell[data-acct-tpl="simple"] .wallet-ico-btn { justify-self: start; order: 0; }
@media (min-width: 861px) {
  .acct-shell[data-acct-tpl="simple"] .acct-tab-ico { display: none; }
}

.acct-shell[data-acct-tpl="card"] .acct-mast h1 { font-size: clamp(30px, 4.2vw, 46px); }
.acct-shell[data-acct-tpl="card"] .kicker,
.acct-shell[data-acct-tpl="card"] .acct-form-head p,
.acct-shell[data-acct-tpl="card"] .wallet-hero-main span { letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.acct-shell[data-acct-tpl="card"] .btn { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.acct-shell[data-acct-tpl="card"] .acct-tab-lab { font-size: 13px; }
.acct-shell[data-acct-tpl="card"] h3 { text-align: left; }

.acct-shell[data-acct-tpl="platform"] .kicker,
.acct-shell[data-acct-tpl="platform"] label,
.acct-shell[data-acct-tpl="platform"] .acct-form-head p,
.acct-shell[data-acct-tpl="platform"] .wallet-hero-main span,
.acct-shell[data-acct-tpl="platform"] .wallet-metrics span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 650; }
.acct-shell[data-acct-tpl="platform"] .btn { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 700; }
.acct-shell[data-acct-tpl="platform"] h3 { font-size: 18px; letter-spacing: -0.04em; text-transform: uppercase; }
.acct-shell[data-acct-tpl="platform"] .wallet-hero-main strong { font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.acct-shell[data-acct-tpl="platform"] .acct-table td { font-variant-numeric: tabular-nums; }
.acct-shell[data-acct-tpl="platform"] h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--primary);
  vertical-align: 1px;
}

.acct-shell[data-acct-tpl="split"] .acct-profile-form label,
.acct-shell[data-acct-tpl="split"] .acct-form label,
.acct-shell[data-acct-tpl="split"] .wallet-wd-form label {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.acct-shell[data-acct-tpl="split"] .acct-mast h1 {
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.04em;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
}
.acct-shell[data-acct-tpl="split"] h3 { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 650; }
.acct-shell[data-acct-tpl="split"] .acct-tab-lab { font-size: 13px; }
.acct-shell[data-acct-tpl="split"] .wallet-hero-main { text-align: left; }
.acct-shell[data-acct-tpl="split"] .wallet-hero { justify-items: stretch; grid-template-columns: 1fr auto; }
.acct-shell[data-acct-tpl="split"] .wallet-ico-btn { order: 0; }
@media (min-width: 861px) {
  .acct-shell[data-acct-tpl="split"] .acct-tab-ico { display: none; }
}

.acct-shell[data-acct-tpl="stack"] .acct-mast h1 { font-size: clamp(36px, 6vw, 58px); }
.acct-shell[data-acct-tpl="stack"] h3 { font-size: clamp(24px, 4vw, 32px); }
.acct-shell[data-acct-tpl="stack"] .acct-tab-n { font-size: 18px; display: block; }
.acct-shell[data-acct-tpl="stack"] .acct-nav a { align-items: baseline; gap: 6px; }
.acct-shell[data-acct-tpl="stack"] .lead { font-size: 18px; max-width: 22em; }
.acct-shell[data-acct-tpl="stack"] .btn { font-size: 15px; }

.acct-shell[data-acct-tpl="rail"] .acct-tab-lab { font-size: 13px; }
.acct-shell[data-acct-tpl="rail"] h3 { font-size: 16px; font-weight: 650; }
.acct-shell[data-acct-tpl="rail"] .acct-main { font-size: 14px; }
.acct-shell[data-acct-tpl="rail"] .wallet-ico-btn { order: 0; }

.acct-shell[data-acct-tpl="compact"] .acct-main { font-size: 14px; }
.acct-shell[data-acct-tpl="compact"] h3 { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 650; }
.acct-shell[data-acct-tpl="compact"] .acct-compact-head strong { font-size: 16px; }
.acct-shell[data-acct-tpl="compact"] .wallet-hero-main strong { font-size: 24px; }
.acct-shell[data-acct-tpl="compact"] label { font-size: 12px; letter-spacing: 0; }

.acct-shell[data-acct-tpl="ledger"] h3 { font-variant: normal; letter-spacing: 0; font-size: 16px; font-weight: 650; }
.acct-shell[data-acct-tpl="ledger"] .btn { font-variant: normal; letter-spacing: 0; }
.acct-shell[data-acct-tpl="ledger"] .lab,
.acct-shell[data-acct-tpl="ledger"] .kicker,
.acct-shell[data-acct-tpl="ledger"] .wallet-hero-main span { letter-spacing: 0.04em; }
.acct-shell[data-acct-tpl="ledger"] .acct-table td,
.acct-shell[data-acct-tpl="ledger"] .wallet-hero-main strong,
.acct-shell[data-acct-tpl="ledger"] .wallet-metrics strong { font-variant-numeric: tabular-nums; }
.acct-shell[data-acct-tpl="ledger"] .acct-table th { text-align: left; }
.acct-shell[data-acct-tpl="ledger"] h3::before { content: "§ "; color: var(--primary); }
.acct-shell[data-acct-tpl="ledger"] .wallet-hero {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.acct-shell[data-acct-tpl="lounge"] .acct-main { font-size: 16px; }
.acct-shell[data-acct-tpl="lounge"] h3 { font-size: clamp(22px, 3.4vw, 32px); font-style: italic; font-weight: 500; }
.acct-shell[data-acct-tpl="lounge"] .btn { font-style: italic; font-size: 15px; text-transform: none; letter-spacing: 0; }
.acct-shell[data-acct-tpl="lounge"] .acct-tab-lab { font-size: 15px; }
.acct-shell[data-acct-tpl="lounge"] label { font-size: 13px; }

.acct-shell[data-acct-tpl="studio"] .kicker,
.acct-shell[data-acct-tpl="studio"] .acct-led-cap,
.acct-shell[data-acct-tpl="studio"] .wallet-hero-main span { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.acct-shell[data-acct-tpl="studio"] .btn { letter-spacing: 0; text-transform: none; font-size: 13px; }
.acct-shell[data-acct-tpl="studio"] h3 { font-style: italic; font-weight: 500; }
.acct-shell[data-acct-tpl="studio"] .acct-tab-lab { font-size: 13px; }
.acct-shell[data-acct-tpl="studio"] .wallet-ico-btn { order: 0; align-self: start; }

.acct-shell[data-acct-tpl="classic"] .acct-aurora { display: none; }
.acct-nav-origin {
  border-bottom: 1px solid var(--line);
  gap: 10px;
  padding: 0 0 16px;
  margin-bottom: 20px;
}
.acct-nav-origin .acct-tabs { gap: 6px; }
.acct-nav-origin a {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.acct-nav-origin a:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.acct-nav-origin a.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.acct-shell[data-acct-tpl="classic"] .acct-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.acct-shell[data-acct-tpl="classic"] .acct-subnav a {
  border-radius: 10px;
  border-bottom: 0;
  padding: 6px 12px;
  margin: 0;
  font-weight: 600;
  background: transparent;
}
.acct-shell[data-acct-tpl="classic"] .acct-subnav a.on {
  color: var(--text);
  background: var(--surface);
  border-bottom: 0;
  font-weight: 600;
}
.acct-shell[data-acct-tpl="classic"] .wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 180px at 0% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    var(--surface);
}
.acct-shell[data-acct-tpl="classic"] .acct-panel,
.acct-shell[data-acct-tpl="classic"] .panel {
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 860px) {
  .acct-nav-text a {
    padding: 6px 2px 5px !important;
    text-decoration: none !important;
  }
  .acct-nav-text a.on { text-decoration: none !important; }
  .acct-nav-pills a {
    padding: 6px 2px 5px !important;
    border-radius: 14px !important;
    border: 0 !important;
    background: transparent;
  }
  .acct-nav-pills a.on {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    border: 0 !important;
  }
  .acct-nav-tiny a {
    padding: 6px 2px 5px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  .acct-nav-folio a {
    padding: 6px 2px 5px !important;
    min-height: 52px;
  }
  .acct-nav-folio .acct-tab-n { display: none; }
  .acct-nav-ghost a {
    padding: 6px 2px 5px !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-family: inherit !important;
    opacity: 1;
    min-height: 52px;
  }
  .acct-nav-mark a {
    padding: 6px 2px 5px !important;
    min-height: 52px;
  }
  .acct-shell[data-acct-tpl="studio"] .wallet-metrics { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="studio"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="studio"] .wallet-cta .btn,
  .acct-shell[data-acct-tpl="studio"] .plan-sheet .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="studio"] input,
  .acct-shell[data-acct-tpl="studio"] select,
  .acct-shell[data-acct-tpl="studio"] .btn:not(.btn-sm):not(.acct-studio-out) { min-height: 44px; }
  .acct-shell[data-acct-tpl="studio"] .acct-studio-out { margin-left: 0; }
  .acct-shell[data-acct-tpl="lounge"] .wallet-metrics { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="lounge"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="lounge"] .wallet-cta .btn,
  .acct-shell[data-acct-tpl="lounge"] .plan-edit .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="lounge"] .acct-mast { align-items: flex-start; }
  .acct-shell[data-acct-tpl="lounge"] .acct-user { width: 100%; }
  .acct-shell[data-acct-tpl="ledger"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="ledger"] .wallet-cta .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="ledger"] input,
  .acct-shell[data-acct-tpl="ledger"] select,
  .acct-shell[data-acct-tpl="ledger"] .btn:not(.btn-sm):not(.acct-ledger-out) { min-height: 44px; }
  .acct-shell[data-acct-tpl="ledger"] .acct-mast-who { width: 100%; justify-content: space-between; }
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table thead { display: none; }
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table,
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table tbody { display: block; width: 100%; }
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table tr {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    margin: 0 0 8px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table td { display: block; padding: 0; border: 0; text-align: left; }
  .acct-shell[data-acct-tpl="ledger"] .acct-plans-table .btn { width: 100%; }
  .acct-facts > div { grid-template-columns: 1fr; }
  .acct-facts .btn { width: fit-content; }
  .acct-shell[data-acct-tpl="compact"] .wallet-metrics { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="compact"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="compact"] .wallet-cta .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="compact"] input,
  .acct-shell[data-acct-tpl="compact"] select,
  .acct-shell[data-acct-tpl="compact"] .btn:not(.btn-sm):not(.acct-compact-out) { min-height: 44px; }
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table thead { display: none; }
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table,
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table tbody { display: block; width: 100%; }
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table tr {
    display: grid;
    gap: 6px;
    padding: 12px;
    margin: 0 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .acct-shell[data-acct-tpl="compact"] .acct-plans-table .btn { width: 100%; }
  .acct-shell[data-acct-tpl="card"] .plans,
  .acct-shell[data-acct-tpl="card"] .plans-card,
  .acct-shell[data-acct-tpl="card"] .wallet-metrics {
    grid-template-columns: 1fr;
  }
  .acct-shell[data-acct-tpl="card"] .acct-mast { align-items: flex-start; }
  .acct-shell[data-acct-tpl="card"] .acct-mast h1 {
    font-size: clamp(26px, 8vw, 34px);
    font-style: italic;
  }
  .acct-shell[data-acct-tpl="card"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="card"] .wallet-cta .btn,
  .acct-shell[data-acct-tpl="card"] .plan .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="card"] .acct-user { width: 100%; border-radius: 18px; }
  .acct-pass-no { width: 100%; }
  .acct-pass-no .btn { margin-left: auto; }
  .acct-shell[data-acct-tpl="simple"] .plans,
  .acct-shell[data-acct-tpl="simple"] .plans-simple,
  .acct-shell[data-acct-tpl="simple"] .wallet-metrics {
    grid-template-columns: 1fr;
  }
  .acct-shell[data-acct-tpl="simple"] .acct-plat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .acct-shell[data-acct-tpl="simple"] .acct-plat-tiles > div { padding: 12px 10px; }
  .acct-shell[data-acct-tpl="simple"] .acct-plat-tiles b { font-size: 13px; overflow-wrap: anywhere; }
  .acct-shell[data-acct-tpl="simple"] .acct-mast { align-items: flex-start; }
  .acct-shell[data-acct-tpl="simple"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="simple"] .wallet-cta .btn { width: 100%; min-width: 0; }
  .acct-nav-ico-top a,
  .acct-shell[data-acct-ico="top"] .acct-nav a {
    min-width: 4.2em;
  }
  .acct-shell[data-acct-tpl="split"] .acct-profile-form label,
  .acct-shell[data-acct-tpl="split"] .acct-form label,
  .acct-shell[data-acct-tpl="split"] .wallet-wd-form label {
    grid-template-columns: 1fr;
  }
  .acct-shell[data-acct-tpl="split"] .acct-nav a {
    border-left: 0 !important;
    padding: 6px 2px 5px !important;
    min-height: 52px;
    background: transparent;
  }
  .acct-shell[data-acct-tpl="split"] .acct-nav a.on {
    border-left-color: transparent !important;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
  }
  .acct-shell[data-acct-tpl="split"] .acct-side-who {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-width: 0;
  }
  .acct-shell[data-acct-tpl="split"] .acct-side-foot {
    margin: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
  }
  .acct-shell[data-acct-tpl="split"] .acct-side-out {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
  }
  .acct-shell[data-acct-tpl="split"] .wallet-metrics { grid-template-columns: 1fr; }
  .acct-shell[data-acct-tpl="split"] .acct-form-actions .btn,
  .acct-shell[data-acct-tpl="split"] .wallet-cta .btn,
  .acct-shell[data-acct-tpl="split"] .plan-row .btn { width: 100%; min-width: 0; }
  .acct-shell[data-acct-tpl="split"] .acct-nav { position: static; }
  .acct-shell[data-acct-tpl="split"] .acct-side { position: static; }
  .acct-shell[data-acct-tpl="rail"] .acct-nav a {
    border-left: 0 !important;
    padding: 6px 2px 5px !important;
    min-height: 52px;
    background: transparent;
  }
  .acct-shell[data-acct-tpl="rail"] .acct-nav a.on {
    border-left-color: transparent !important;
    border-bottom: 0 !important;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
  }
  .acct-shell[data-acct-tpl="ledger"] .wallet-hero-main,
  .acct-shell[data-acct-tpl="ledger"] .wallet-hero-main strong { text-align: left; }
  .acct-shell[data-acct-align="center"] .btn { margin-left: 0; margin-right: 0; }
  .acct-profile-classic { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  body.market-on .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 28px;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(16px);
  }
  body.market-on .nav-links {
    margin: 0;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  body.market-on .nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
  }
  body.market-on .nav-links a.active,
  body.market-on .nav-links a:hover {
    background: var(--primary);
    color: var(--bg);
  }
  body.market-on .nav-end { justify-self: end; }
}
body.market-on .mk-hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 48px 0 40px;
  overflow: hidden;
}
body.market-on .mk-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.market-on .mk-hero-slider .banner-track,
body.market-on .mk-hero-slider .banner-slide {
  position: absolute;
  inset: 0;
}
body.market-on .mk-hero-slider .banner-slide {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
body.market-on .mk-hero-slider .banner-slide.on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
body.market-on .mk-hero-slider .banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}
body.market-on .mk-hero-slider .banner-slide.on img { animation: mk-ken 16s ease-in-out infinite alternate; }
body.market-on .mk-slide-cap {
  position: absolute;
  right: 28px;
  bottom: 58px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #08110e 72%, transparent);
  color: #f4f1ea;
  font-size: 13px;
  letter-spacing: 0.02em;
}
body.market-on .mk-hero .banner-nav,
body.market-on .mk-hero .banner-dots { z-index: 4; }
body.market-on .mk-hero .banner-dots { left: auto; right: 28px; bottom: 22px; justify-content: flex-end; }
body.market-on .mk-hero-glow {
  position: absolute;
  inset: auto 8% 12% auto;
  width: min(42vw, 520px);
  height: 280px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%);
  filter: blur(8px);
  animation: mk-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes mk-ken { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes mk-glow { to { transform: translate3d(-24px, -18px, 0); opacity: 0.55; } }
@keyframes mk-float { 50% { transform: translateY(-10px); } }
@keyframes mk-reel {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  28% { opacity: 1; transform: scale(1); }
  34% { opacity: 0; }
  100% { opacity: 0; }
}
body.market-on .mk-stage { padding: 28px 0 8px; }
body.market-on .mk-devices {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 18px;
  align-items: end;
  min-height: 420px;
}
body.market-on a.mk-dev { color: inherit; text-decoration: none; display: block; }
body.market-on .mk-dev {
  position: relative;
  border-radius: 22px;
  background: #101614;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #2a3330);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: mk-float 7s ease-in-out infinite;
}
body.market-on .mk-dev-h5 { animation-delay: -2s; border-radius: 32px; }
body.market-on .mk-dev-app { animation-delay: -4s; border-radius: 32px; }
body.market-on .mk-dev-bar,
body.market-on .mk-dev-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #1a2220;
}
body.market-on .mk-dev-bar i,
body.market-on .mk-dev-dock i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, #fff);
  display: block;
}
body.market-on .mk-dev-bar em {
  margin-left: 10px;
  height: 8px;
  width: 42%;
  border-radius: 99px;
  background: #2c3532;
}
body.market-on .mk-dev-screen {
  height: auto;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: #e7ecea;
}
body.market-on .mk-dev-h5 .mk-dev-screen,
body.market-on .mk-dev-app .mk-dev-screen { aspect-ratio: 390 / 844; }
body.market-on .mk-dev-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
body.market-on .mk-dev-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 10px;
  margin-left: -36px;
  border-radius: 99px;
  background: #000;
  z-index: 2;
}
body.market-on .mk-dev-dock {
  justify-content: space-around;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 44px;
  border-radius: 16px;
  background: color-mix(in srgb, #1a2220 88%, transparent);
  z-index: 2;
}
body.market-on .mk-hero-copy {
  position: relative;
  left: 120px;
  z-index: 3;
  max-width: 640px;
  padding: 28px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  animation: mk-copy-float 6.5s ease-in-out infinite;
}
@keyframes mk-copy-float {
  0%, 100% { transform: translate3d(0, 18px, 0); }
  50% { transform: translate3d(36px, -72px, 0); }
}
body.market-on .mk-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  margin: 0 0 16px;
  max-width: 12em;
}
body.market-on .mk-hero .lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 38em;
}
body.market-on .mk-rail { padding: 28px 0 0; }
body.market-on .mk-rail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  background: var(--surface);
}
body.market-on .mk-rail-grid div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
body.market-on .mk-rail-grid div:last-child { border-right: 0; }
body.market-on .mk-rail-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  margin-bottom: 6px;
}
body.market-on .mk-rail-grid span { color: var(--muted); font-size: 14px; line-height: 1.45; }
body.market-on .mk-block { padding: 72px 0 8px; }
body.market-on .mk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body.market-on .mk-steps li {
  margin: 0;
  padding: 22px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}
body.market-on .mk-steps b {
  display: block;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 12px;
  margin-bottom: 12px;
}
body.market-on .mk-steps h3,
body.market-on .mk-feats h3 { margin: 0 0 8px; font-size: 20px; }
body.market-on .mk-steps p,
body.market-on .mk-feats p,
body.market-on .mk-note { margin: 0; color: var(--muted); line-height: 1.55; }
body.market-on .mk-note { margin: -12px 0 18px; }
body.market-on .mk-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}
body.market-on .mk-frame { margin: 0; display: block; color: inherit; }
body.market-on .mk-frame img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
body.market-on .mk-feats { display: grid; gap: 18px; }
body.market-on .mk-feats > div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
body.market-on .market-plans { margin-top: 8px; }
body.market-on .market-plans .plan { min-height: 100%; position: static; transform: none; }
body.market-on .market-plans .plan .btn { margin-top: auto; align-self: flex-start; }
body.market-on .market-price {
  font-family: var(--display);
  font-size: 32px;
  margin: 0;
}
body.market-on .mk-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.market-on .mk-tile-lead { grid-column: span 2; grid-row: span 2; }
body.market-on .mk-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
body.market-on .mk-tile-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
body.market-on .mk-tile-lead .mk-tile-shot { aspect-ratio: 16 / 11; min-height: 280px; }
body.market-on .mk-tile-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
body.market-on .mk-tile:hover .mk-tile-shot img { transform: scale(1.05); }
body.market-on .mk-tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
body.market-on .mk-tile-meta,
body.market-on .market-ex-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
}
body.market-on .mk-tile-meta span,
body.market-on .market-ex-meta span { color: var(--muted); font-size: 13px; }
body.market-on .mk-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
body.market-on .mk-band h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 8px;
  max-width: 14em;
}
body.market-on .mk-band p { margin: 0; color: var(--muted); max-width: 40em; }
body.market-on .mk-page { padding: 56px 0 72px; }
body.market-on .mk-page h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 12px;
}
body.market-on .mk-page .lead { color: var(--muted); max-width: 40em; margin: 0 0 28px; }
body.market-on .mk-page .acct-pager { margin-top: 22px; }
body.market-on .mk-guide {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 0;
}
body.market-on .mk-guide li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
body.market-on .mk-guide b {
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent);
}
body.market-on .mk-guide h2 { margin: 0 0 8px; font-size: 22px; }
body.market-on .mk-guide p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 46em; }
body.market-on .foot { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  body.market-on .mk-rail-grid,
  body.market-on .mk-steps,
  body.market-on .mk-split,
  body.market-on .mk-gallery { grid-template-columns: 1fr; }
  body.market-on .mk-rail-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  body.market-on .mk-tile-lead { grid-column: auto; grid-row: auto; }
  body.market-on .mk-tile-lead .mk-tile-shot { min-height: 0; aspect-ratio: 16 / 10; }
  body.market-on .mk-band { flex-direction: column; align-items: flex-start; padding: 22px; }
  body.market-on .market-plans .plan { transform: none; }
  body.market-on .mk-block { padding: 40px 0 4px; }
  body.market-on .mk-hero {
    min-height: 0;
    display: block;
    padding: 0 0 8px;
    overflow: visible;
  }
  body.market-on .mk-hero-slider {
    position: relative;
    height: 38vh;
    min-height: 200px;
    max-height: 320px;
  }
  body.market-on .mk-hero-glow,
  body.market-on .mk-slide-cap { display: none; }
  body.market-on .mk-hero-copy {
    display: block;
    left: 0;
    max-width: none;
    margin: 16px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: none;
    transform: none;
  }
  body.market-on .mk-hero h1 { font-size: clamp(30px, 8vw, 42px); max-width: none; }
  body.market-on .mk-hero .lead { font-size: 15px; max-width: none; }
  body.market-on .mk-devices {
    grid-template-columns: minmax(0, 1.35fr) minmax(72px, 0.72fr) minmax(72px, 0.72fr);
    gap: 10px;
    min-height: 0;
    align-items: end;
  }
  body.market-on .mk-dev { animation: none; border-radius: 16px; }
  body.market-on .mk-dev-h5,
  body.market-on .mk-dev-app { border-radius: 18px; }
  body.market-on .mk-dev-screen,
  body.market-on .mk-dev-web .mk-dev-screen { max-height: 220px; }
  body.market-on .mk-dev-h5 .mk-dev-screen,
  body.market-on .mk-dev-app .mk-dev-screen { max-height: 220px; aspect-ratio: 9 / 16; }
  body.market-on .mk-dev-bar,
  body.market-on .mk-dev-dock { height: 22px; padding: 0 8px; }
  body.market-on .mk-dev-notch { width: 36px; height: 6px; margin-left: -18px; top: 6px; }
}
@media (max-width: 480px) {
  body.market-on .mk-hero-slider { height: 26vh; min-height: 148px; max-height: 200px; }
  body.market-on .mk-hero h1 { font-size: 28px; }
  body.market-on .mk-hero .lead { font-size: 14px; margin-bottom: 14px; }
  body.market-on .mk-hero .hero-actions { display: grid; }
  body.market-on .mk-hero .hero-actions .btn { width: 100%; }
  body.market-on .mk-page { padding: 28px 0 40px; }
  body.market-on .mk-page h1 { font-size: 32px; }
  body.market-on .mk-guide li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  body.market-on .mk-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.market-on .mk-hero-slider .banner-slide,
  body.market-on .mk-hero-slider .banner-slide img,
  body.market-on .mk-hero-glow,
  body.market-on .mk-hero-copy,
  body.market-on .mk-dev { animation: none; }
}
