.rs-components-gallery {
    --cg-bg: #0b0f12;
    --cg-bg-soft: #111820;
    --cg-panel: #17212b;
    --cg-panel-hover: #1c2935;
    --cg-line: rgba(224, 232, 240, .18);
    --cg-text: #f7fafc;
    --cg-text-soft: #c7d0dc;
    --cg-text-muted: #a8b4c4;
    --cg-accent: #d7f59a;
    --cg-ink: #101820;
    min-height: 100dvh;
    color: var(--cg-text);
    background: var(--cg-bg);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.rs-components-gallery [hidden] {
    display: none !important;
}

.rs-cg-shell {
    width: min(100% - clamp(32px, 6vw, 96px), 1460px);
    margin-inline: auto;
}

.rs-cg-mobile-discovery,
.rs-cg-control-anchor {
    display: none;
}

.rs-cg-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(96px, 12vw, 176px) 0 clamp(76px, 9vw, 132px);
    background:
        radial-gradient(circle at 14% 12%, rgba(215, 245, 154, .17), transparent 27%),
        radial-gradient(circle at 88% 34%, rgba(125, 153, 142, .16), transparent 31%),
        linear-gradient(145deg, #0b0f12 0%, #111820 55%, #0a0e12 100%);
    border-bottom: 1px solid var(--cg-line);
}

.rs-cg-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image: radial-gradient(rgba(247, 250, 252, .28) .7px, transparent .7px);
    background-size: 16px 16px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.rs-cg-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .62fr);
    align-items: end;
    gap: clamp(48px, 8vw, 120px);
}

.rs-cg-hero-copy {
    max-width: 940px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rs-cg-kicker,
.rs-cg-eyebrow {
    margin: 0;
    color: var(--cg-accent);
    font-family: "Geist Mono", "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.rs-cg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rs-cg-kicker span {
    width: 9px;
    height: 9px;
    display: inline-block;
    background: var(--cg-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(215, 245, 154, .11);
}

.rs-cg-title {
    max-width: 940px;
    margin: 0;
    color: var(--cg-text);
    font-family: "Outfit", "Pretendard Variable", Pretendard, sans-serif;
    font-size: clamp(54px, 7.8vw, 112px);
    font-weight: 720;
    line-height: .94;
    letter-spacing: -.065em;
}

.rs-cg-title em {
    color: var(--cg-accent);
    font-style: normal;
}

.rs-cg-lead {
    max-width: 720px;
    margin: 0;
    color: var(--cg-text-soft);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.75;
    letter-spacing: -.018em;
}

.rs-cg-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    background: var(--cg-line);
    border: 1px solid var(--cg-line);
    border-radius: 22px;
    box-shadow: 0 24px 72px rgba(2, 12, 18, .36);
}

.rs-cg-stats div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 24px 18px;
    background: rgba(23, 33, 43, .92);
}

.rs-cg-stats dt {
    color: var(--cg-text-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rs-cg-stats dd {
    margin: 0;
    color: var(--cg-text);
    font-family: "Outfit", sans-serif;
    font-size: clamp(32px, 3vw, 50px);
    font-weight: 700;
    line-height: 1;
}

.rs-cg-library {
    padding: clamp(80px, 9vw, 136px) 0;
    background: var(--cg-bg-soft);
}

.rs-cg-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    align-items: end;
    gap: 42px;
    margin-bottom: 36px;
}

.rs-cg-section-head > div,
.rs-cg-generator-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rs-cg-section-title {
    margin: 0;
    color: var(--cg-text);
    font-family: "Outfit", "Pretendard Variable", Pretendard, sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.055em;
}

.rs-cg-section-head > p,
.rs-cg-generator-copy > p:last-child {
    margin: 0;
    color: var(--cg-text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.rs-cg-style-switcher {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1.58fr);
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: 18px;
    background: #17212b;
    border: 1px solid var(--cg-line);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(2, 12, 18, .22);
}

.rs-cg-style-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rs-cg-style-label,
.rs-cg-style-copy p {
    margin: 0;
}

.rs-cg-style-label {
    color: var(--cg-accent);
    font-family: "Geist Mono", "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
}

.rs-cg-style-copy p:last-child {
    color: var(--cg-text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.rs-cg-style-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.rs-cg-style-button {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--cg-text-soft);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(224, 232, 240, .15);
    border-radius: 13px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rs-cg-style-button:hover {
    color: var(--cg-text);
    background: rgba(255, 255, 255, .085);
    transform: translateY(-1px);
}

.rs-cg-style-button.is-active {
    color: var(--cg-ink);
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    box-shadow: 0 8px 24px rgba(2, 12, 18, .22);
}

.rs-cg-style-swatch {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(2, 12, 18, .24);
}

[data-gallery-style="glassmorphism"] .rs-cg-style-swatch {
    background: linear-gradient(135deg, rgba(215, 245, 154, .9), rgba(57, 132, 171, .55));
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

[data-gallery-style="material"] .rs-cg-style-swatch {
    background: #6750a4;
    border-radius: 10px;
}

[data-gallery-style="brutalism"] .rs-cg-style-swatch {
    background: #ff5a36;
    border: 2px solid #121212;
    border-radius: 0;
    box-shadow: 3px 3px 0 #121212;
}

[data-gallery-style="neumorphism"] .rs-cg-style-swatch {
    background: #e9eef5;
    border: 0;
    border-radius: 6px;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(74, 85, 104, .32);
}

[data-gallery-style="claymorphism"] .rs-cg-style-swatch {
    background: #ff8a5b;
    border-radius: 9px;
    box-shadow: inset 3px 3px 5px rgba(255, 255, 255, .48), inset -3px -3px 5px rgba(67, 58, 54, .18), 0 3px 5px rgba(67, 58, 54, .28);
}

[data-gallery-style="fluent"] .rs-cg-style-swatch {
    background: linear-gradient(135deg, rgba(255, 255, 255, .78), #0f6cbd);
    border-radius: 4px;
}

.rs-cg-toolbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px, .58fr) auto;
    align-items: center;
    gap: 14px 22px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(11, 15, 18, .86);
    border: 1px solid var(--cg-line);
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(2, 12, 18, .3);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.rs-cg-search {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    color: var(--cg-text-soft);
    background: var(--cg-panel);
    border: 1px solid rgba(224, 232, 240, .16);
    border-radius: 14px;
}

.rs-cg-search input {
    min-width: 0;
    width: 100%;
    color: var(--cg-text);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 15px;
}

.rs-cg-search input::placeholder {
    color: #8e9bab;
    opacity: 1;
}

.rs-cg-search:focus-within {
    border-color: var(--cg-accent);
    box-shadow: 0 0 0 3px rgba(215, 245, 154, .14);
}

.rs-cg-count {
    color: var(--cg-text-soft);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.rs-cg-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rs-cg-filter {
    min-height: 42px;
    padding: 0 14px;
    color: var(--cg-text-soft);
    background: transparent;
    border: 1px solid rgba(224, 232, 240, .16);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 780;
    cursor: pointer;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.rs-cg-filter:hover {
    color: var(--cg-text);
    background: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.rs-cg-filter.is-active {
    color: var(--cg-ink);
    background: var(--cg-accent);
    border-color: var(--cg-accent);
}

.rs-cg-filter:focus-visible,
.rs-cg-style-button:focus-visible,
.rs-cg-generator-links a:focus-visible,
.rs-cg-card-action:focus-visible {
    outline: 3px solid var(--cg-accent);
    outline-offset: 4px;
}

.rs-cg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rs-cg-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cg-panel);
    border: 1px solid var(--cg-line);
    border-radius: 26px;
    box-shadow: 0 20px 58px rgba(2, 12, 18, .22);
    transition: transform 350ms cubic-bezier(.16, 1, .3, 1), border-color 250ms ease, background 250ms ease;
}

.rs-cg-card:hover {
    background: var(--cg-panel-hover);
    border-color: rgba(215, 245, 154, .42);
    transform: translateY(-4px);
}

.rs-cg-card--large {
    grid-column: span 2;
}

.rs-cg-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--cg-line);
}

.rs-cg-card-index {
    color: var(--cg-accent);
    font-family: "Geist Mono", monospace;
    font-size: 11px;
    font-weight: 800;
}

.rs-cg-card-title {
    margin: 0;
    color: var(--cg-text);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.rs-cg-card-category {
    padding: 6px 9px;
    color: var(--cg-text-soft);
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(224, 232, 240, .13);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .04em;
}

.rs-cg-stage {
    position: relative;
    height: 330px;
    display: grid;
    place-items: center;
    overflow: auto;
    box-sizing: border-box;
    padding: 58px 28px 34px;
    background:
        radial-gradient(circle at 18% 24%, rgba(215, 245, 154, .56), transparent 24%),
        radial-gradient(circle at 83% 72%, rgba(62, 129, 164, .62), transparent 30%),
        linear-gradient(145deg, #12242d, #101820 54%, #18251e);
}

.rs-cg-stage::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}

.rs-cg-card--large .rs-cg-stage {
    height: 440px;
    padding-inline: clamp(28px, 6vw, 90px);
}

.rs-cg-preview {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    place-items: center;
}

.rs-cg-preview-placeholder {
    max-width: 30ch;
    margin: 0;
    color: #f7fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.rs-cg-preview .rocos-glass {
    color: var(--rocos-text-color, #f7fafc);
    background: rgba(17, 24, 32, .78);
    border-style: solid;
    border-color: rgba(247, 250, 252, .25);
    border-radius: 22px;
    box-shadow: 0 24px 58px rgba(2, 12, 18, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

/* Shared transitions let the full library change design language as one surface. */
.rs-cg-preview .rocos-ui,
.rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, border-radius 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Glassmorphism */
.rs-components-gallery[data-preview-style="glassmorphism"] .rs-cg-stage {
    background: radial-gradient(circle at 18% 24%, rgba(215, 245, 154, .56), transparent 24%), radial-gradient(circle at 83% 72%, rgba(62, 129, 164, .62), transparent 30%), linear-gradient(145deg, #12242d, #101820 54%, #18251e);
}

/* Material */
.rs-components-gallery[data-preview-style="material"] .rs-cg-stage {
    background: radial-gradient(circle at 76% 18%, rgba(103, 80, 164, .18), transparent 30%), linear-gradient(145deg, #f5f0fa, #e9e4ef);
}

.rs-components-gallery[data-preview-style="material"] .rs-cg-preview .rocos-ui {
    color: #1d1b20;
    background: #fffbfe;
    border: 1px solid #cac4d0;
    border-radius: 28px;
    box-shadow: 0 2px 6px rgba(29, 27, 32, .16), 0 8px 22px rgba(29, 27, 32, .1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rs-components-gallery[data-preview-style="material"] .rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    color: #1d1b20;
    background: #f3edf7;
    border-color: #cac4d0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(29, 27, 32, .12);
}

.rs-components-gallery[data-preview-style="material"] .rs-cg-preview .rocos-ui :is(.rocos-ui-button--accent, .is-active, [aria-selected="true"], [aria-pressed="true"], .rocos-ui-icon, .rocos-sidebar__brand) {
    color: #fff;
    background: #6750a4;
    border-color: #6750a4;
    box-shadow: 0 2px 5px rgba(103, 80, 164, .28);
}

.rs-components-gallery[data-preview-style="material"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track, .rocos-switch__track, .rocos-scroll-area__bar) {
    background: #e7e0ec;
}

.rs-components-gallery[data-preview-style="material"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track > span, .rocos-chart__bars span) {
    background: #6750a4;
}

/* Brutalism */
.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-stage {
    background-color: #f3ebdd;
    background-image: linear-gradient(rgba(18, 18, 18, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 18, 18, .09) 1px, transparent 1px);
    background-size: 24px 24px;
}

.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-preview .rocos-ui {
    color: #121212;
    background: #fffdf7;
    border: 3px solid #121212;
    border-radius: 0;
    box-shadow: 8px 8px 0 #121212;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    color: #121212;
    background: #fffdf7;
    border: 3px solid #121212;
    border-radius: 0;
    box-shadow: 4px 4px 0 #121212;
}

.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-button--accent, .is-active, [aria-selected="true"], [aria-pressed="true"], .rocos-ui-icon, .rocos-sidebar__brand),
.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track > span, .rocos-chart__bars span) {
    color: #121212;
    background: #ff5a36;
    border-color: #121212;
}

.rs-components-gallery[data-preview-style="brutalism"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track, .rocos-switch__track, .rocos-scroll-area__bar) {
    background: #fffdf7;
    border: 3px solid #121212;
    border-radius: 0;
}

/* Neumorphism */
.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-stage {
    background: #e9eef5;
}

.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-preview .rocos-ui {
    color: #4a5568;
    background: #eef3fa;
    border-color: rgba(74, 85, 104, .05);
    border-radius: 24px;
    box-shadow: -10px -10px 24px rgba(255, 255, 255, .94), 10px 10px 24px rgba(74, 85, 104, .2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    color: #4a5568;
    background: #eef3fa;
    border-color: transparent;
    border-radius: 16px;
    box-shadow: -5px -5px 12px rgba(255, 255, 255, .94), 5px 5px 12px rgba(74, 85, 104, .18);
}

.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-button--accent, .is-active, [aria-selected="true"], [aria-pressed="true"], .rocos-ui-icon, .rocos-sidebar__brand),
.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track > span, .rocos-chart__bars span) {
    color: #fff;
    background: #6f8cff;
}

.rs-components-gallery[data-preview-style="neumorphism"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track, .rocos-switch__track, .rocos-scroll-area__bar) {
    background: #eef3fa;
    box-shadow: inset 4px 4px 9px rgba(74, 85, 104, .17), inset -4px -4px 9px rgba(255, 255, 255, .94);
}

/* Claymorphism */
.rs-components-gallery[data-preview-style="claymorphism"] .rs-cg-stage {
    background: radial-gradient(circle at 20% 20%, #ffd4c2, transparent 30%), radial-gradient(circle at 82% 76%, #c8f3dd, transparent 34%), #f7ebdd;
}

.rs-components-gallery[data-preview-style="claymorphism"] .rs-cg-preview .rocos-ui {
    color: #433a36;
    background: #fff7f0;
    border: 2px solid rgba(255, 255, 255, .66);
    border-radius: 32px;
    box-shadow: inset -8px -8px 20px rgba(67, 58, 54, .09), inset 8px 8px 18px rgba(255, 255, 255, .82), 0 18px 30px rgba(67, 58, 54, .2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rs-components-gallery[data-preview-style="claymorphism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    color: #433a36;
    background: #fff7f0;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    box-shadow: inset -5px -5px 12px rgba(67, 58, 54, .08), inset 5px 5px 12px rgba(255, 255, 255, .78), 0 8px 15px rgba(67, 58, 54, .16);
}

.rs-components-gallery[data-preview-style="claymorphism"] .rs-cg-preview .rocos-ui :is(.rocos-ui-button--accent, .is-active, [aria-selected="true"], [aria-pressed="true"], .rocos-ui-icon, .rocos-sidebar__brand),
.rs-components-gallery[data-preview-style="claymorphism"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track > span, .rocos-chart__bars span) {
    color: #2a211e;
    background: #ff8a5b;
}

/* Fluent */
.rs-components-gallery[data-preview-style="fluent"] .rs-cg-stage {
    background: radial-gradient(circle at 20% 25%, rgba(83, 176, 255, .88), transparent 30%), radial-gradient(circle at 82% 70%, rgba(123, 82, 232, .76), transparent 34%), linear-gradient(145deg, #dceeff, #eef3fa);
}

.rs-components-gallery[data-preview-style="fluent"] .rs-cg-preview .rocos-ui {
    color: #1f2328;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(31, 35, 40, .14);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 35, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
}

.rs-components-gallery[data-preview-style="fluent"] .rs-cg-preview .rocos-ui :is(.rocos-ui-item, .rocos-ui-input, .rocos-ui-button, .rocos-input-group, .rocos-otp input, .rocos-resizable__panel, .rocos-popover__panel, .rocos-hover-card__panel, .rocos-ui-menu, [role="tab"], [role="menuitem"], .rocos-ui-chip, kbd) {
    color: #1f2328;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(31, 35, 40, .14);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(31, 35, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .58);
}

.rs-components-gallery[data-preview-style="fluent"] .rs-cg-preview .rocos-ui :is(.rocos-ui-button--accent, .is-active, [aria-selected="true"], [aria-pressed="true"], .rocos-ui-icon, .rocos-sidebar__brand),
.rs-components-gallery[data-preview-style="fluent"] .rs-cg-preview .rocos-ui :is(.rocos-progress__track > span, .rocos-chart__bars span) {
    color: #fff;
    background: #0f6cbd;
    border-color: #0f6cbd;
}

.rs-cg-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 18px;
}

.rs-cg-card-foot p {
    margin: 0;
    color: var(--cg-text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.rs-cg-card-action {
    flex: 0 0 auto;
    padding: 0;
    color: var(--cg-accent);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.rs-cg-card-action:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rs-cg-empty {
    margin: 24px 0 0;
    padding: 48px 24px;
    color: var(--cg-text-soft);
    text-align: center;
    background: var(--cg-panel);
    border: 1px dashed var(--cg-line);
    border-radius: 22px;
}

.rs-cg-generators {
    padding: clamp(80px, 9vw, 132px) 0;
    background: #0a0f14;
    border-top: 1px solid var(--cg-line);
}

.rs-cg-generator-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(560px, 1.2fr);
    gap: clamp(52px, 8vw, 120px);
    align-items: start;
}

.rs-cg-generator-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--cg-line);
}

.rs-cg-generator-links a {
    min-height: 76px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 0 18px;
    color: var(--cg-text);
    border-bottom: 1px solid var(--cg-line);
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    transition: color 220ms ease, background 220ms ease, padding 300ms cubic-bezier(.16, 1, .3, 1);
}

.rs-cg-generator-links a:nth-child(odd) {
    border-right: 1px solid var(--cg-line);
}

.rs-cg-generator-links a:hover {
    color: var(--cg-ink);
    background: var(--cg-accent);
    padding-inline: 22px 14px;
}

.rs-cg-generator-links span {
    color: var(--cg-text-muted);
    font-family: "Geist Mono", monospace;
    font-size: 10px;
}

.rs-cg-generator-links a:hover span {
    color: #3f4c2b;
}

.rs-cg-generator-links b {
    font-size: 17px;
}

.rs-cg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1119px) {
    .rs-cg-hero-layout,
    .rs-cg-generator-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-stats {
        max-width: 660px;
    }

    .rs-cg-generator-copy {
        max-width: 760px;
    }

    .rs-cg-style-switcher {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-style-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .rs-cg-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-card--large {
        grid-column: auto;
    }

    .rs-cg-section-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .rs-cg-mobile-discovery {
        display: block;
        padding: 20px 0 0;
        background: var(--cg-bg);
        border-bottom: 1px solid var(--cg-line);
    }

    .rs-cg-mobile-discovery .rs-cg-toolbar {
        margin-bottom: 14px;
    }

    .rs-cg-mobile-discovery .rs-cg-style-switcher {
        margin-bottom: 20px;
    }

    .rs-cg-title br {
        display: none;
    }

    .rs-cg-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-stats div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 17px 20px;
    }

    .rs-cg-stats dd {
        font-size: 32px;
    }

    .rs-cg-toolbar {
        position: relative;
        top: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-count {
        justify-self: start;
    }

    .rs-cg-filters {
        grid-column: auto;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .rs-cg-filter {
        flex: 0 0 auto;
    }

    .rs-cg-style-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-cg-stage,
    .rs-cg-card--large .rs-cg-stage {
        height: 360px;
        padding: 58px 18px 28px;
    }

    .rs-cg-card-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .rs-cg-generator-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-cg-generator-links a:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 479px) {
    .rs-cg-shell {
        width: min(100% - 24px, 1460px);
    }

    .rs-cg-hero {
        padding-top: 76px;
    }

    .rs-cg-title {
        font-size: clamp(46px, 15vw, 64px);
    }

    .rs-cg-toolbar,
    .rs-cg-style-switcher,
    .rs-cg-card {
        border-radius: 18px;
    }

    .rs-cg-style-button {
        justify-content: flex-start;
        padding-inline: 12px;
    }

    .rs-cg-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .rs-cg-card-category {
        grid-column: 2;
        width: max-content;
    }

    .rs-cg-stage,
    .rs-cg-card--large .rs-cg-stage {
        min-height: 340px;
        padding-inline: 12px;
    }

    .rs-cg-preview .rocos-glass {
        --rocos-padding: 16px !important;
        --rocos-gap: 9px !important;
        --rocos-font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-cg-card,
    .rs-cg-filter,
    .rs-cg-style-button,
    .rs-cg-generator-links a {
        transition-duration: .01ms;
    }
}

/* Unified editorial brand system: component library shell */
html[data-rocos-theme] body .rs-components-gallery {
    --cg-bg: var(--rs-ui-bg);
    --cg-bg-soft: var(--rs-ui-bg);
    --cg-panel: var(--rs-ui-panel);
    --cg-panel-hover: var(--rs-ui-panel-strong);
    --cg-line: var(--rs-ui-line);
    --cg-text: var(--rs-ui-text);
    --cg-text-soft: var(--rs-ui-muted);
    --cg-text-muted: var(--rs-ui-muted);
    --cg-accent: var(--rs-ui-accent);
    --cg-ink: var(--rs-ui-accent-ink);
    color: var(--rs-ui-text);
    background: var(--rs-ui-bg);
    font-family: var(--rs-font);
}

html[data-rocos-theme] body .rs-cg-hero,
html[data-rocos-theme] body .rs-cg-library,
html[data-rocos-theme] body .rs-cg-generators {
    color: var(--rs-ui-text);
    background: var(--rs-ui-bg);
    background-image: none;
    border-color: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-hero::after {
    display: none;
}

html[data-rocos-theme] body .rs-cg-hero-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: end;
}

html[data-rocos-theme] body .rs-cg-hero-copy {
    grid-column: span 8;
    min-width: 0;
}

html[data-rocos-theme] body .rs-cg-kicker,
html[data-rocos-theme] body .rs-cg-eyebrow,
html[data-rocos-theme] body .rs-cg-style-label {
    color: var(--rs-ui-muted);
    font-family: var(--rs-mono);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .12em;
}

html[data-rocos-theme] body .rs-cg-kicker span {
    width: 38px;
    height: 8px;
    background: var(--rs-ui-accent);
    border-radius: 0;
    box-shadow: none;
}

html[data-rocos-theme] body .rs-cg-title,
html[data-rocos-theme] body .rs-cg-section-title {
    color: var(--rs-ui-text);
    font-family: var(--rs-font);
    font-weight: 800;
    letter-spacing: -.055em;
}

html[data-rocos-theme] body .rs-cg-title {
    font-size: clamp(54px, 7vw, 96px);
}

html[data-rocos-theme] body .rs-cg-title em {
    color: var(--rs-ui-accent);
}

html[data-rocos-theme] body .rs-cg-lead,
html[data-rocos-theme] body .rs-cg-section-head > p,
html[data-rocos-theme] body .rs-cg-generator-copy > p:last-child,
html[data-rocos-theme] body .rs-cg-style-copy p:last-child,
html[data-rocos-theme] body .rs-cg-count,
html[data-rocos-theme] body .rs-cg-card-foot p {
    color: var(--rs-ui-muted);
}

html[data-rocos-theme] body .rs-cg-stats {
    grid-column: span 4;
    align-self: stretch;
    background: var(--rs-ui-line);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-rocos-theme] body .rs-cg-stats div {
    justify-content: flex-end;
    min-height: 150px;
    background: var(--rs-ui-panel);
}

html[data-rocos-theme] body .rs-cg-stats dt {
    color: var(--rs-ui-muted);
}

html[data-rocos-theme] body .rs-cg-stats dd {
    color: var(--rs-ui-text);
    font-family: var(--rs-font);
}

html[data-rocos-theme] body .rs-cg-library {
    border-bottom: 1px solid var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-section-head,
html[data-rocos-theme] body .rs-cg-generator-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

html[data-rocos-theme] body .rs-cg-section-head > div,
html[data-rocos-theme] body .rs-cg-generator-copy {
    grid-column: span 8;
    min-width: 0;
}

html[data-rocos-theme] body .rs-cg-section-head > p {
    grid-column: span 4;
}

html[data-rocos-theme] body .rs-cg-style-switcher {
    grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
    gap: 1px;
    padding: 1px;
    background: var(--rs-ui-line);
    border: 0;
    border-left: 8px solid var(--rs-ui-accent);
    border-radius: 0;
    box-shadow: none;
}

html[data-rocos-theme] body .rs-cg-style-copy {
    align-self: stretch;
    justify-content: center;
    padding: 18px 20px;
    background: var(--rs-ui-panel);
}

html[data-rocos-theme] body .rs-cg-style-options {
    align-self: stretch;
    gap: 1px;
    padding: 0;
    background: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-style-button {
    min-height: 64px;
    color: var(--rs-ui-muted);
    background: var(--rs-ui-panel);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-rocos-theme] body .rs-cg-style-button:hover {
    color: var(--rs-ui-text);
    background: var(--rs-ui-panel-strong);
    transform: none;
}

html[data-rocos-theme] body .rs-cg-style-button.is-active {
    color: var(--rs-ui-accent-ink);
    background: var(--rs-ui-accent);
    border-color: transparent;
    box-shadow: none;
}

html[data-rocos-theme] body .rs-cg-toolbar {
    top: 12px;
    gap: 1px;
    padding: 1px;
    background: var(--rs-ui-line);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html[data-rocos-theme] body .rs-cg-search {
    min-height: 54px;
    color: var(--rs-ui-muted);
    background: var(--rs-ui-panel);
    border: 0;
    border-radius: 0;
}

html[data-rocos-theme] body .rs-cg-search input {
    color: var(--rs-ui-text);
}

html[data-rocos-theme] body .rs-cg-search input::placeholder {
    color: var(--rs-ui-muted);
}

html[data-rocos-theme] body .rs-cg-search:focus-within {
    box-shadow: inset 0 -3px 0 var(--rs-ui-accent);
}

html[data-rocos-theme] body .rs-cg-count {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    background: var(--rs-ui-panel);
}

html[data-rocos-theme] body .rs-cg-filters {
    gap: 1px;
    padding-top: 1px;
    background: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-filter {
    min-height: 44px;
    color: var(--rs-ui-muted);
    background: var(--rs-ui-panel);
    border: 0;
    border-radius: 0;
}

html[data-rocos-theme] body .rs-cg-filter:hover {
    color: var(--rs-ui-text);
    background: var(--rs-ui-panel-strong);
    transform: none;
}

html[data-rocos-theme] body .rs-cg-filter.is-active {
    color: var(--rs-ui-accent-ink);
    background: var(--rs-ui-accent);
    border-color: transparent;
}

html[data-rocos-theme] body .rs-cg-filter:focus-visible,
html[data-rocos-theme] body .rs-cg-style-button:focus-visible,
html[data-rocos-theme] body .rs-cg-generator-links a:focus-visible,
html[data-rocos-theme] body .rs-cg-card-action:focus-visible {
    outline: 3px solid var(--rs-ui-accent);
    outline-offset: 4px;
    border-radius: 0;
}

html[data-rocos-theme] body .rs-cg-grid {
    gap: 1px;
    padding: 1px;
    background: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-card {
    background: var(--rs-ui-panel);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background-color 180ms ease;
}

html[data-rocos-theme] body .rs-cg-card:hover {
    background: var(--rs-ui-panel-strong);
    border-color: transparent;
    transform: none;
}

html[data-rocos-theme] body .rs-cg-card-head {
    min-height: 72px;
    border-color: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-card-index,
html[data-rocos-theme] body .rs-cg-card-action {
    color: var(--rs-ui-accent);
}

html[data-rocos-theme] body .rs-cg-card-title {
    color: var(--rs-ui-text);
    font-family: var(--rs-font);
}

html[data-rocos-theme] body .rs-cg-card-category {
    color: var(--rs-ui-muted);
    background: var(--rs-ui-panel-strong);
    border: 1px solid var(--rs-ui-line);
    border-radius: 0;
}

html[data-rocos-theme] body .rs-cg-card-foot {
    min-height: 70px;
    border-top: 1px solid var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-card-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

html[data-rocos-theme] body .rs-cg-empty {
    color: var(--rs-ui-muted);
    background: var(--rs-ui-panel);
    border: 1px solid var(--rs-ui-line);
    border-radius: 0;
}

html[data-rocos-theme] body .rs-cg-generator-copy {
    grid-column: span 5;
}

html[data-rocos-theme] body .rs-cg-generator-links {
    grid-column: 7 / -1;
    background: var(--rs-ui-line);
    border-color: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-generator-links a {
    min-height: 82px;
    color: var(--rs-ui-text);
    background: var(--rs-ui-panel);
    border-color: var(--rs-ui-line);
}

html[data-rocos-theme] body .rs-cg-generator-links a:hover {
    color: var(--rs-ui-accent-ink);
    background: var(--rs-ui-accent);
}

html[data-rocos-theme] body .rs-cg-generator-links span {
    color: var(--rs-ui-muted);
}

html[data-rocos-theme] body .rs-cg-generator-links a:hover span {
    color: var(--rs-ui-accent-ink);
}

@media (max-width: 1119px) {
    html[data-rocos-theme] body .rs-cg-hero-layout,
    html[data-rocos-theme] body .rs-cg-generator-layout {
        grid-template-columns: 1fr;
    }

    html[data-rocos-theme] body .rs-cg-hero-copy,
    html[data-rocos-theme] body .rs-cg-stats,
    html[data-rocos-theme] body .rs-cg-generator-copy,
    html[data-rocos-theme] body .rs-cg-generator-links {
        grid-column: auto;
    }

    html[data-rocos-theme] body .rs-cg-style-switcher {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    html[data-rocos-theme] body .rs-cg-section-head {
        grid-template-columns: 1fr;
    }

    html[data-rocos-theme] body .rs-cg-section-head > div,
    html[data-rocos-theme] body .rs-cg-section-head > p {
        grid-column: auto;
    }

    html[data-rocos-theme] body .rs-cg-title {
        font-size: clamp(44px, 13vw, 64px);
        overflow-wrap: anywhere;
    }

    html[data-rocos-theme] body .rs-cg-toolbar {
        grid-template-columns: 1fr;
    }

    html[data-rocos-theme] body .rs-cg-count {
        min-height: 44px;
        justify-content: flex-start;
    }

    html[data-rocos-theme] body .rs-cg-grid {
        grid-template-columns: 1fr;
    }

    html[data-rocos-theme] body .rs-cg-card--large {
        grid-column: auto;
    }
}

@media (max-width: 479px) {
    html[data-rocos-theme] body .rs-cg-toolbar,
    html[data-rocos-theme] body .rs-cg-style-switcher,
    html[data-rocos-theme] body .rs-cg-card {
        border-radius: 0;
    }

    html[data-rocos-theme] body .rs-cg-style-options {
        grid-template-columns: 1fr;
    }

    html[data-rocos-theme] body .rs-cg-style-button {
        justify-content: flex-start;
        min-height: 52px;
        padding-inline: 14px;
    }
}
