.ba-page {
    --ba-teal: #06938B;
    --ba-teal-h: #057A73;
    --ba-accent: #06938B;
    --ba-bg: #F8FAFC;
    --ba-card: #FFFFFF;
    --ba-soft: #F1F5F9;
    --ba-text: #0F172A;
    --ba-muted: #64748B;
    --ba-border: rgba(15, 23, 42, .08);
    --ba-dim: rgba(6, 147, 139, .1);
    --ba-shadow: 0 30px 60px -36px rgba(15, 23, 42, .3);
    padding: 32px 0 80px;
    background: var(--ba-bg);
    color: var(--ba-text);
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
}
html:not(.cf-light) .ba-page {
    --ba-accent: #2DD4BF;
    --ba-bg: #000000;
    --ba-card: #0b0c0e;
    --ba-soft: rgba(255, 255, 255, .05);
    --ba-text: #F1F5F9;
    --ba-muted: #94A3B8;
    --ba-border: rgba(255, 255, 255, .08);
    --ba-dim: rgba(45, 212, 191, .12);
    --ba-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);
}
.ba-page *, .ba-page *::before, .ba-page *::after { box-sizing: border-box; }
.ba-page a { text-decoration: none !important; }
.ba-page button { font-family: inherit; }
.ba-page em { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--ba-accent); }
.ba-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.ba-hero { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ba-title { margin: 0 0 14px; font-size: clamp(2.2rem, 5.6vw, 3.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; color: var(--ba-text); }
.ba-sub { max-width: 580px; margin: 0 auto 24px; font-size: 1rem; line-height: 1.75; color: var(--ba-muted); }
.ba-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ba-jump a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ba-card); border: 1px solid var(--ba-border); color: var(--ba-text) !important; font-size: .8rem; font-weight: 600; transition: background .25s, border-color .25s, color .25s; }
.ba-jump a:hover { background: var(--ba-teal); border-color: var(--ba-teal); color: #fff !important; }

.ba-group { margin-bottom: 56px; scroll-margin-top: 120px; }
.ba-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ba-border); }
.ba-h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--ba-text); }
.ba-head p { margin: 0; max-width: 480px; font-size: .78rem; line-height: 1.6; color: var(--ba-muted); }

.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-card { position: relative; display: flex; align-items: center; justify-content: center; height: 125px; padding: 16px; border-radius: 14px; overflow: visible; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ba-canvas-dark { background-color: #0D0F14; border: 1px solid rgba(255, 255, 255, .08); background-image: linear-gradient(45deg, #12151B 25%, transparent 25%), linear-gradient(-45deg, #12151B 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #12151B 75%), linear-gradient(-45deg, transparent 75%, #12151B 75%); }
.ba-canvas-light { background-color: #FFFFFF; border: 1px solid rgba(0, 0, 0, .08); background-image: linear-gradient(45deg, #F8FAFC 25%, transparent 25%), linear-gradient(-45deg, #F8FAFC 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F8FAFC 75%), linear-gradient(-45deg, transparent 75%, #F8FAFC 75%); }
.ba-img { display: block; width: auto; height: 48px; max-width: 72%; object-fit: contain; pointer-events: none; transition: transform .25s ease; }
.ba-card.is-square .ba-img { height: 56px; }

.ba-tag { position: absolute; top: 10px; left: 10px; padding: 2.5px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.ba-canvas-dark .ba-tag { background: rgba(255, 255, 255, .1); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .15); }
.ba-canvas-light .ba-tag { background: rgba(15, 23, 42, .06); color: #0F172A; border: 1px solid rgba(15, 23, 42, .1); }

.ba-actions { position: absolute; right: 10px; bottom: 10px; z-index: 25; display: flex; align-items: center; gap: 3px; padding: 3.5px 4px; border-radius: 9px; background: #252A34; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.ba-card.is-active .ba-actions, .ba-card:focus-within .ba-actions { opacity: 1; transform: none; pointer-events: auto; }
.ba-card.is-active, .ba-card:focus-visible { border-color: var(--ba-teal); }
@media (hover: hover) {
    .ba-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, .12); border-color: var(--ba-teal); }
    .ba-card:hover .ba-img { transform: scale(1.03); }
    .ba-card:hover .ba-actions { opacity: 1; transform: none; pointer-events: auto; }
}

.ba-btn { width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #F1F5F9; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ba-btn:hover, .ba-btn:active { background: var(--ba-teal); color: #fff; }
.ba-btn:focus-visible, .ba-menu button:focus-visible, .ba-color:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 1px; }

.ba-split { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; background: var(--ba-teal); }
.ba-split .ba-btn { color: #fff; }
.ba-split .ba-dl { width: auto; gap: 5px; padding: 0 8px; border-radius: 6px 0 0 6px; white-space: nowrap; }
.ba-fmt { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.ba-split.is-single .ba-dl { border-radius: 6px; }
.ba-actions { max-width: calc(100% - 20px); }
.ba-dl-more { width: 24px; border-left: 1px solid rgba(255, 255, 255, .25); border-radius: 0 6px 6px 0; font-size: 9.5px; }
.ba-dl:hover, .ba-dl-more:hover, .ba-split.is-open .ba-dl-more { background: var(--ba-teal-h); }
.ba-dl-more i { transition: transform .2s; }
.ba-split.is-open .ba-dl-more i { transform: rotate(180deg); }

.ba-menu { position: absolute; right: 0; bottom: calc(100% + 9px); z-index: 1000; display: none; flex-direction: column; min-width: 170px; padding: 5px; border-radius: 10px; background: #181B22; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 36px rgba(0, 0, 0, .65); animation: baMenu .18s cubic-bezier(.34, 1.56, .64, 1); }
.ba-menu::after { content: ''; position: absolute; right: 10px; bottom: -5px; width: 9px; height: 9px; background: #181B22; border-right: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); transform: rotate(45deg); }
.ba-menu.is-down { top: calc(100% + 9px); bottom: auto; }
.ba-menu.is-down::after { top: -5px; bottom: auto; transform: rotate(-135deg); }
.ba-split.is-open .ba-menu { display: flex; }
.ba-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border: 0; border-radius: 6px; background: transparent; color: #E2E8F0; font-size: 11.5px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.ba-menu button small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ba-menu button > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ba-menu button > span i { width: 12px; font-size: 10px; color: #2DD4BF; opacity: 0; }
.ba-menu button.is-sel > span i { opacity: 1; }
.ba-menu button.is-sel { background: rgba(45, 212, 191, .1); color: #fff; }
.ba-menu button:hover { background: var(--ba-teal); color: #fff; }
.ba-menu button:hover > span i { color: #fff; }
@keyframes baMenu { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ba-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ba-color { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border-radius: 18px; background: var(--ba-card); border: 1px solid var(--ba-border); color: var(--ba-text); text-align: left; cursor: pointer; transition: border-color .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ba-color:hover { border-color: rgba(6, 147, 139, .45); transform: translateY(-2px); }
.ba-swatch { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1); }
.ba-color-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ba-color-text strong { font-size: .9rem; font-weight: 700; }
.ba-color-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 600; color: var(--ba-accent); }
.ba-color-text small { margin-top: 2px; font-size: .72rem; color: var(--ba-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-color-copy { position: absolute; top: 12px; right: 14px; font-size: 13px; color: var(--ba-muted); opacity: 0; transition: opacity .2s; }
.ba-color:hover .ba-color-copy, .ba-color:focus-visible .ba-color-copy { opacity: 1; }

.ba-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-font { position: relative; display: flex; align-items: center; gap: 20px; min-width: 0; padding: 20px; border-radius: 20px; background: var(--ba-card); border: 1px solid var(--ba-border); color: var(--ba-text) !important; transition: border-color .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ba-font:hover { border-color: rgba(6, 147, 139, .45); transform: translateY(-2px); }
.ba-font-sample { width: 88px; height: 88px; flex-shrink: 0; border-radius: 16px; background: var(--ba-soft); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; line-height: 1; color: var(--ba-text); }
.ba-font-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ba-font-text small { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ba-accent); }
.ba-font-text strong { margin: 2px 0 4px; font-size: 1.3rem; font-weight: 700; color: var(--ba-text); }
.ba-font-text span { font-size: .78rem; color: var(--ba-muted); }
.font-poppins { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; }
.font-serif { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400 !important; }
.ba-font-go { position: absolute; top: 18px; right: 18px; font-size: 12px; color: var(--ba-muted); transition: color .25s; }
.ba-font:hover .ba-font-go { color: var(--ba-accent); }

.ba-rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba-rule { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--ba-card); border: 1px solid var(--ba-border); font-size: .86rem; line-height: 1.6; color: var(--ba-text); }
.ba-rule i { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.ba-rule-do i { background: var(--ba-teal); }
.ba-rule-dont i { background: #DE5246; }
.ba-note { margin: 0; font-size: .86rem; color: var(--ba-muted); }
.ba-note a { color: var(--ba-accent) !important; font-weight: 600; }

.ba-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100000; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 9px 18px 9px 10px; border-radius: 999px; background: #0F172A; color: #fff; font-family: 'Poppins', system-ui, sans-serif; font-size: .82rem; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .22s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ba-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ba-toast-ico { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: #06938B; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.ba-toast.is-error .ba-toast-ico { background: #DE5246; }

@media (max-width: 960px) {
    .ba-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ba-grid, .ba-fonts, .ba-rules { grid-template-columns: 1fr; }
    .ba-grid { gap: 11px; }
    .ba-card { height: 98px; padding: 12px; border-radius: 12px; }
    .ba-tag { top: 8px; left: 8px; font-size: 8.5px; padding: 2px 6px; }
    .ba-img { height: 40px; max-width: 66%; }
    .ba-card.is-square .ba-img { height: 46px; }
    .ba-actions { right: 8px; bottom: 8px; border-radius: 8px; }
    .ba-btn { width: 27px; height: 27px; font-size: 11px; }
    .ba-split .ba-dl { width: auto; gap: 4px; padding: 0 7px; }
    .ba-fmt { font-size: 9px; }
    .ba-dl-more { width: 23px; font-size: 9px; }
    .ba-menu { min-width: 180px; padding: 4px; }
    .ba-menu button { padding: 7px 10px; font-size: 11px; }
}
@media (max-width: 560px) {
    .ba-page { padding: 24px 0 56px; }
    .ba-wrap { padding: 0 16px; }
    .ba-hero { margin-bottom: 36px; }
    .ba-title { font-size: 2.1rem; }
    .ba-sub { font-size: .9rem; }
    .ba-jump { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
    .ba-jump::-webkit-scrollbar { display: none; }
    .ba-jump a { flex-shrink: 0; height: 36px; padding: 0 14px; font-size: .78rem; }
    .ba-group { margin-bottom: 44px; }
    .ba-head p { font-size: .74rem; line-height: 1.55; }
    .ba-colors { grid-template-columns: 1fr; gap: 10px; }
    .ba-swatch { width: 56px; height: 56px; }
    .ba-color-copy { opacity: 1; }
    .ba-font { gap: 16px; padding: 16px; }
    .ba-font-sample { width: 72px; height: 72px; font-size: 2rem; }
    .ba-font-text strong { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ba-page *, .ba-toast { transition: none !important; animation: none !important; }
}