/* Public creation browser. All home rules are scoped away from the workspace. */
:root {
    --pd-bg: #141414;
    --pd-rail: #111111;
    --pd-surface: #222222;
    --pd-hover: #292929;
    --pd-text: #eceef2;
    --pd-secondary: #c4c8d0;
    --pd-muted: #a1a6af;
    --pd-line: #2b2b2b;
    --pd-accent: #6bdbc1;
    --pd-action: #f3f3f3;
    --pd-action-text: #171717;
}
html[data-theme="light"] {
    --pd-bg: #ffffff;
    --pd-rail: #f7f7f7;
    --pd-surface: #f1f2f3;
    --pd-hover: #e8eaec;
    --pd-text: #202124;
    --pd-secondary: #454b55;
    --pd-muted: #656b75;
    --pd-line: #e5e7e9;
    --pd-accent: #087f6a;
    --pd-action: #222222;
    --pd-action-text: #ffffff;
}
.pd-home, .showcase-page { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
body:is(.home-mode-public, .home-auth-pending) { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.pd-home { font-size: 14px; line-height: 1.65; font-weight: 400; }
.pd-home :is(h1, h2, h3, h4, strong, b) { font-family: inherit; }
.pd-home *, .showcase-page * { box-sizing: border-box; letter-spacing: 0; }
.pd-home a, .showcase-page a { text-decoration: none; }
.pd-home button, .pd-home input, .showcase-page button, .showcase-page input { font: inherit; letter-spacing: 0; }
.pd-home button, .showcase-page button { cursor: pointer; }
.pd-home svg, .showcase-page svg { width: 18px; height: 18px; flex-shrink: 0; }
.pd-home [hidden], .showcase-page [hidden] { display: none !important; }
.pd-home :focus-visible, .showcase-page :focus-visible { outline: 2px solid var(--pd-accent); outline-offset: 4px; }
body.home-mode-public, body.home-auth-pending { background: var(--pd-bg) !important; }
body.home-mode-public::before, body.home-mode-public::after, body.home-auth-pending::before, body.home-auth-pending::after { display: none !important; }
body.home-mode-public .public-shell, body.home-auth-pending .public-shell { grid-template-columns: 224px minmax(0, 1fr); max-width: none; background: var(--pd-bg); }
body.home-mode-public #home-brand-system.public-rail, body.home-auth-pending #home-brand-system.public-rail {
    display: flex; position: sticky; inset: auto; top: 0; width: 224px; height: 100dvh; padding: 16px 12px 12px; gap: 0;
    background: var(--pd-rail); border-right: 1px solid var(--pd-line); color: var(--pd-text); border-radius: 0; scrollbar-width: none;
}
body.home-mode-public .public-rail-brand, body.home-auth-pending .public-rail-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 10px; margin: 0; min-height: 40px; }
.public-rail-brand strong { color: var(--pd-text); font-size: 18px; line-height: 26px; font-weight: 700; }
body.home-mode-public .public-rail-brand img, body.home-auth-pending .public-rail-brand img { width: 26px; height: 26px; object-fit: contain; }
body.home-mode-public .public-rail-nav, body.home-auth-pending .public-rail-nav { display: grid; flex-shrink: 0; gap: 2px; margin: 0; }
body.home-mode-public .public-rail-label, body.home-auth-pending .public-rail-label { color: var(--pd-muted); margin: 8px 12px 2px; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0; }
body.home-mode-public .public-rail-nav a, body.home-auth-pending .public-rail-nav a {
    display: flex; gap: 12px; align-items: center; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 6px;
    font-size: 14px; font-weight: 400; line-height: 22px; color: var(--pd-secondary); background: transparent;
}
body.home-mode-public .public-rail-nav a:hover, body.home-mode-public .public-rail-nav a[aria-current="page"], body.home-auth-pending .public-rail-nav a[aria-current="page"] { color: var(--pd-text); background: var(--pd-surface); }
.public-rail-dot { display: none !important; }
.public-rail-nav svg { width: 17px; height: 17px; }
body.home-mode-public .public-rail-anchors, body.home-auth-pending .public-rail-anchors { display: grid; order: 0; flex: none; width: 100%; gap: 0; margin-top: 12px; padding: 0; border: 0; }
body.home-mode-public .public-rail-anchors .topbar-nav-link, body.home-auth-pending .public-rail-anchors .topbar-nav-link { display: flex; justify-content: flex-start; align-items: center; gap: 12px; color: var(--pd-secondary) !important; background: transparent; border: 0; min-height: 32px; padding: 5px 12px; font: 400 14px/22px "Noto Sans SC", "Microsoft YaHei", sans-serif; }
body:is(.home-mode-public, .home-auth-pending) .public-rail-anchors .topbar-nav-link svg { width: 17px; height: 17px; }
body.home-mode-public .public-rail-anchors .topbar-nav-link:hover { color: var(--pd-text) !important; background: var(--pd-surface) !important; }
body.home-mode-public .public-rail-footer, body.home-auth-pending .public-rail-footer { display: flex; align-items: stretch; flex-direction: column; align-self: stretch; width: 100%; gap: 4px; margin: auto 0 0; padding-top: 12px; border: 0; }
body:is(.home-mode-public, .home-auth-pending) .public-rail-footer .topbar-announcement-btn { min-height: 32px; padding: 4px 12px; line-height: 22px; }
body:is(.home-mode-public, .home-auth-pending) .public-rail-footer .home-version-entry { min-height: 36px; padding: 7px 12px !important; font-size: 14px !important; font-weight: 500; line-height: 22px; color: var(--pd-secondary) !important; }
body.home-mode-public .public-rail-footer button, body.home-mode-public .public-rail-footer a { color: var(--pd-muted); }
body.home-mode-public #home-main { padding: 0 !important; max-width: none !important; background: var(--pd-bg); }
body.home-mode-public .home-modern-surface { background: var(--pd-bg); }
.pd-home { max-width: 1760px; margin: 0 auto; padding: 0 28px; color: var(--pd-text); background: var(--pd-bg); }
.pd-toolbar { min-height: 80px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.pd-toolbar-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.pd-toolbar-actions > a:not(.pd-primary) { color: var(--pd-muted); }
.pd-toolbar-contact { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--pd-muted); font-size: 13px; line-height: 22px; white-space: nowrap; }
.pd-toolbar-contact:hover { color: var(--pd-text); }
.pd-toolbar-contact svg { width: 16px; height: 16px; }
.pd-primary, .showcase-page .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; background: var(--pd-action); color: var(--pd-action-text); padding: 10px 16px; font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.pd-primary:hover { opacity: .85; }
.pd-icon-button, .pd-rail-controls button { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; padding: 0; color: var(--pd-muted); border: 1px solid var(--pd-line); border-radius: 6px; background: transparent; }
.pd-rail-controls button:disabled { opacity: .3; cursor: default; }
.pd-create { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 8px; border: 1px solid var(--pd-line); background: var(--pd-surface); color: var(--pd-text); transition: background .18s, border-color .18s; }
.pd-create:hover { border-color: var(--pd-muted); background: var(--pd-hover); }
.pd-create-icon { display: flex; justify-content: center; align-items: center; width: 80px; height: 48px; border-radius: 8px; color: var(--pd-action-text); background: var(--pd-action); }
.pd-create-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.pd-create strong { font-size: 15px; line-height: 24px; font-weight: 600; }
.pd-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 28px 12px 0; margin: 0; }
.pd-tools a { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 11px; color: var(--pd-text); }
.pd-tools a > span { width: 100%; max-width: 150px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--pd-surface); border: 1px solid var(--pd-line); transition: background .18s; }
.pd-tools a:hover > span { background: var(--pd-hover); }
.pd-tools svg { width: 23px; height: 23px; stroke-width: 1.6; }
.pd-tools b { font-size: 14px; line-height: 22px; font-weight: 500; color: var(--pd-secondary); }
.pd-section { width: 100%; margin-top: 40px; padding: 0; min-width: 0; }
.pd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pd-section-head h2 { margin: 0; font-size: 20px; font-weight: 500; line-height: 30px; color: var(--pd-text); }
.pd-section-caption { font-size: 13px; color: var(--pd-muted); }
.pd-rail-controls { display: flex; gap: 6px; }
.pd-feature-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--pd-line) transparent; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.pd-card { min-width: 0; margin: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; scroll-snap-align: start; }
.pd-media { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--pd-line); border-radius: 8px; background: var(--pd-surface); padding: 0; color: #ffffff; }
.pd-feature .pd-media { aspect-ratio: 16 / 9; }
.pd-media img, .pd-media video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s; }
.pd-media:hover img { transform: scale(1.035); }
.pd-play, .pd-open { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); }
.pd-open { opacity: 0; transition: opacity .18s; }
.pd-media:hover .pd-open, .pd-media:focus-visible .pd-open { opacity: 1; }
.pd-demo { position: absolute; left: 8px; top: 8px; padding: 2px 6px; background: rgba(0,0,0,.5); color: #ffffff; font-size: 10px; line-height: 16px; border-radius: 3px; }
.pd-card-copy { padding: 11px 1px 0; }
.pd-card-title { display: flex; align-items: start; justify-content: space-between; gap: 6px; color: var(--pd-text); font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.pd-card-title svg { width: 14px; height: 14px; margin-top: 4px; color: var(--pd-muted); }
.pd-card-copy p { font-size: 13px; font-weight: 400; color: var(--pd-muted); line-height: 22px; margin: 5px 0 0; overflow-wrap: anywhere; }
.pd-feature .pd-card-copy p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pd-credit { display: block; margin-top: 8px; font-size: 11px; line-height: 18px; color: var(--pd-muted); }
.pd-gallery-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--pd-line); margin-bottom: 22px; }
.pd-tabs { display: flex; align-self: stretch; gap: 24px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pd-tabs button { flex: 0 0 auto; background: transparent; border: 0; border-radius: 0; border-bottom: 2px solid transparent; color: var(--pd-muted); font-size: 13px; font-weight: 400; line-height: 22px; padding: 11px 0 13px; }
.pd-tabs button[aria-selected="true"] { color: var(--pd-text); font-weight: 500; border-bottom-color: var(--pd-text); }
.pd-search { display: flex; gap: 8px; align-items: center; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; flex: 0 1 220px; min-width: 140px; color: var(--pd-muted); }
.pd-search svg { width: 15px; height: 15px; }
.pd-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--pd-text); font-size: 13px; line-height: 22px; }
.pd-search input::placeholder { color: var(--pd-muted); opacity: 1; }
.pd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.pd-empty { grid-column: 1 / -1; color: var(--pd-muted); font-size: 13px; text-align: center; padding: 40px 16px; }
.pd-explore { padding-top: 16px; border-top: 1px solid var(--pd-line); }
.pd-explore-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.pd-explore-links a { display: block; color: var(--pd-text); }
.pd-explore-links strong { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 14px; line-height: 24px; }
.pd-explore-links span { display: block; margin-top: 6px; font-size: 12px; line-height: 21px; color: var(--pd-muted); }
.pd-faq details { border-bottom: 1px solid var(--pd-line); padding: 16px 0; }
.pd-faq summary { font-size: 14px; cursor: pointer; }
.pd-faq p { margin: 12px 0 0; font-size: 13px; line-height: 24px; color: var(--pd-muted); }
.pd-faq a { color: var(--pd-accent); }
.pd-home .pd-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; background: none; border-top: 1px solid var(--pd-line); padding: 26px 0; margin-top: 48px; color: var(--pd-muted); font-size: 11px; }
.pd-footer a { color: var(--pd-muted); }
.pd-footer span { margin-left: auto; }
.pd-dialog { padding: 0; border: 1px solid var(--pd-line); border-radius: 8px; background: var(--pd-bg); color: var(--pd-text); width: min(960px, 94vw); max-height: 90dvh; overflow: auto; box-shadow: 0 24px 80px #0006; }
.pd-dialog::backdrop { background: rgba(0,0,0,.75); }
.pd-dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #ffffff50; border-radius: 6px; background: #181818d9; color: #ffffff; }
.pd-dialog-media { background: #0c0c0c; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.pd-dialog-media img, .pd-dialog-media video { display: block; max-width: 100%; max-height: 68dvh; object-fit: contain; }
.pd-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.pd-dialog-footer h2 { font-size: 18px; line-height: 28px; margin: 0; overflow-wrap: anywhere; }
.pd-dialog-footer p { font-size: 13px; line-height: 22px; margin: 6px 0 0; color: var(--pd-muted); overflow-wrap: anywhere; }
/* Shared public details retain their topic-specific searchable content. */
body.showcase-page { background: var(--pd-bg); color: var(--pd-text); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.showcase-page::before, .showcase-page::after { display: none; }
.showcase-page .site-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); width: 100%; max-width: none; margin: 0; }
.showcase-page .site-rail { position: sticky; inset: auto; top: 0; width: 224px; padding: 16px 12px 12px; gap: 0; height: 100dvh; border-radius: 0; border-right: 1px solid var(--pd-line); background: var(--pd-rail); color: var(--pd-text); box-shadow: none; overflow-y: auto; scrollbar-width: none; }
.showcase-page .site-rail > * { flex-shrink: 0; }
.showcase-page .rail-brand { min-height: 40px; padding: 0 10px 10px; gap: 9px; margin: 0; border-bottom: 1px solid var(--pd-line); }
.showcase-page .rail-brand img { width: 26px; height: 26px; }
.showcase-page .rail-brand strong { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--pd-text); }
.showcase-page .rail-brand span { display: none; }
.showcase-page .rail-nav { display: grid; gap: 2px; }
.showcase-page .rail-nav-label, .showcase-page .rail-section-label { font-size: 12px; line-height: 18px; font-weight: 400; margin: 8px 12px 2px; color: var(--pd-muted); }
.showcase-page .rail-nav a { min-height: 34px; padding: 6px 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; color: var(--pd-secondary); font-size: 14px; line-height: 22px; font-weight: 400; background: none; }
.showcase-page .rail-nav a[aria-current="page"], .showcase-page .rail-nav a:hover { color: var(--pd-text); background: var(--pd-surface); }
.showcase-page .rail-nav-dot { display: none; }
.showcase-page .rail-nav svg { width: 17px; height: 17px; }
.showcase-page .rail-index { border: 0; padding: 0; margin-top: 12px; gap: 0; }
.showcase-page .rail-index a { padding: 5px 12px; border: 0; border-radius: 6px; color: var(--pd-secondary); font-size: 12px; line-height: 20px; background: none; overflow-wrap: anywhere; }
.showcase-page .rail-index a:hover { background: var(--pd-surface); color: var(--pd-text); }
.showcase-page .rail-footer { margin-top: auto; border: 0; padding-top: 12px; }
.showcase-page .rail-footer a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px; color: var(--pd-muted); font-size: 12px; }
.showcase-page .rail-footer svg { width: 16px; height: 16px; }
.showcase-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.showcase-page .site-main { min-width: 0; background: var(--pd-bg); }
.showcase-page .main-inner { max-width: 1760px; padding: 0 28px 32px; margin: 0 auto; }
.showcase-page .breadcrumbs { min-height: 72px; margin: 0; align-items: center; color: var(--pd-muted); font-size: 12px; }
.showcase-page .breadcrumbs a { color: var(--pd-muted); }
.showcase-page .hero-grid { display: block; padding: 8px 0 28px; margin: 0; min-height: 0; border: 0; background: none; }
.showcase-page .hero-title { max-width: 900px; margin: 0; font-size: 26px; line-height: 1.5; font-weight: 600; color: var(--pd-text); overflow-wrap: anywhere; }
.showcase-page .hero-subtitle { margin: 12px 0 0; max-width: 850px; color: var(--pd-muted); font-size: 14px; line-height: 26px; }
.showcase-page .hero-actions { margin-top: 20px; }
.showcase-page .btn { border-radius: 6px; padding: 10px 16px; background: var(--pd-surface); border: 1px solid var(--pd-line); color: var(--pd-text); font-size: 13px; line-height: 20px; box-shadow: none; }
.showcase-page .btn-primary { background: var(--pd-action); color: var(--pd-action-text); border-color: transparent; }
.showcase-page .create-entry { display: flex; flex-direction: column; justify-content: center; min-height: 130px; gap: 12px; padding: 24px; margin: 0; border: 1px solid var(--pd-line); border-radius: 8px; background: var(--pd-surface); box-shadow: none; color: var(--pd-text); }
.showcase-page .create-entry-badge { width: 70px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--pd-action); color: var(--pd-action-text); }
.showcase-page .create-entry-copy { text-align: center; }
.showcase-page .create-entry-copy strong { color: var(--pd-text); font-size: 15px; line-height: 24px; }
.showcase-page .create-entry-copy > span { color: var(--pd-muted); font-size: 12px; line-height: 22px; }
.showcase-page .tool-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 24px 12px 0; }
.showcase-page .tool-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.showcase-page .tool-tile-icon { display: grid; place-items: center; height: 54px; width: 100%; max-width: 150px; background: var(--pd-surface); border: 1px solid var(--pd-line); color: var(--pd-text); border-radius: 8px; }
.showcase-page .tool-tile b { font-size: 13px; color: var(--pd-text); }
.showcase-page .tool-tile > span:last-child { display: none; }
.showcase-page .section { padding: 0; margin-top: 40px; background: none; border: 0; }
.showcase-page .section-title { font-size: 19px; color: var(--pd-text); }
.showcase-page .section-note { color: var(--pd-muted); font-size: 12px; line-height: 22px; }
.showcase-page .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.showcase-page .feature-card { background: none; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--pd-line); border-radius: 0; box-shadow: none; }
.showcase-page .chip { background: none; border: 0; color: var(--pd-accent); font-size: 11px; padding: 0; }
.showcase-page .feature-card h3, .showcase-page .item-card h3 { font-size: 15px; color: var(--pd-text); }
.showcase-page .feature-card p, .showcase-page .item-card p { color: var(--pd-muted); font-size: 13px; line-height: 24px; }
.showcase-page .flow-list { gap: 0; }
.showcase-page .flow-step { display: grid; grid-template-columns: 48px minmax(0,1fr); padding: 28px 0; border: 0; border-bottom: 1px solid var(--pd-line); border-radius: 0; background: none; gap: 16px; scroll-margin-top: 24px; }
.showcase-page .flow-num { background: none; border: 0; color: var(--pd-muted); padding: 0; justify-content: start; align-items: start; }
.showcase-page .flow-num span { background: none; color: var(--pd-muted); font-size: 20px; border: 0; }
.showcase-page .flow-body > h2 { color: var(--pd-text); font-size: 21px; line-height: 32px; }
.showcase-page .flow-body > p { color: var(--pd-muted); font-size: 13px; line-height: 25px; }
.showcase-page .item-grid { gap: 24px; }
.showcase-page .item-card { padding: 0; border: 0; border-radius: 0; background: none; }
.showcase-page .gallery-card-tag { color: var(--pd-accent); background: none; border: 0; padding: 0; }
.showcase-page .faq-list { gap: 0; }
.showcase-page .faq-item { padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--pd-line); border-radius: 0; }
.showcase-page .faq-item summary { font-size: 14px; color: var(--pd-text); }
.showcase-page .faq-item p { font-size: 13px; line-height: 24px; color: var(--pd-muted); }
.showcase-page .related-link { background: none; border: 0; border-bottom: 1px solid var(--pd-line); border-radius: 0; padding: 16px 0; }
.showcase-page .related-link strong { font-size: 14px; color: var(--pd-text); }
.showcase-page .related-link span { color: var(--pd-muted); }
.showcase-page .footer-cta { padding: 32px 0; margin-top: 32px; background: none; border: 0; border-top: 1px solid var(--pd-line); border-radius: 0; }
.showcase-page .footer-cta h2 { font-size: 24px; color: var(--pd-text); }
.showcase-page .footer-cta p, .showcase-page .page-footnote { font-size: 12px; color: var(--pd-muted); }
.showcase-page .footer-links { color: var(--pd-muted); border-color: var(--pd-line); font-size: 11px; }
.showcase-page .footer-links a { color: var(--pd-muted); }
.showcase-page .mobile-bar, .public-mobile-bar { background: var(--pd-rail); color: var(--pd-text); border-color: var(--pd-line); }
.showcase-page .mobile-menu, .public-mobile-menu { background: var(--pd-rail); border-color: var(--pd-line); }
.showcase-page .mobile-menu a, body.home-mode-public .public-mobile-menu a { color: var(--pd-text); }
.showcase-page .mobile-menu a[aria-current="page"], body.home-mode-public .public-mobile-menu a[aria-current="page"] { background: var(--pd-surface); color: var(--pd-text); }
@media (min-width: 801px) {
    body.showcase-page { overflow: hidden; }
    .showcase-page .site-shell { height: 100dvh; min-height: 0; }
    .showcase-page .site-rail { position: relative; height: 100%; }
    .showcase-page .site-main { height: 100%; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
    body:is(.home-mode-public, .home-auth-pending) { overflow: hidden; }
    body.home-mode-public .public-shell, body.home-auth-pending .public-shell { height: 100dvh; min-height: 0; }
    body:is(.home-mode-public, .home-auth-pending):has(> #home-promo-bar:not([hidden])) .public-shell { height: calc(100dvh - 61px); }
    body.home-mode-public #home-brand-system.public-rail, body.home-auth-pending #home-brand-system.public-rail { position: relative; height: 100%; }
    body:is(.home-mode-public, .home-auth-pending) .public-shell-main { height: 100%; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
    body.home-mode-public .public-mobile-bar, body.home-auth-pending .public-mobile-bar { display: none; }
    body.public-rail-open .public-shell-main > nav.public-mobile-menu { display: none; }
}
@media (min-width: 1600px) {
    .pd-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
    .pd-home { padding: 0 22px; }
    .pd-feature-rail { grid-auto-columns: calc((100% - 48px) / 4); }
    .pd-tools { gap: 16px; }
    .pd-tabs { gap: 18px; }
    .pd-gallery-toolbar { flex-wrap: wrap; gap: 8px; }
    .pd-search { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 800px) {
    body.home-mode-public .public-shell, body.home-auth-pending .public-shell, .showcase-page .site-shell { display: block; }
    body.home-mode-public #home-brand-system.public-rail, body.home-auth-pending #home-brand-system.public-rail, .showcase-page .site-rail { display: none; }
    .public-mobile-bar, .showcase-page .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; min-height: 58px; }
    .public-mobile-bar button, .showcase-page .mobile-bar button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid var(--pd-line); color: var(--pd-text); border-radius: 6px; }
    .public-shell-main > nav.public-mobile-menu { display: none; }
    body.public-rail-open .public-shell-main > nav.public-mobile-menu, .showcase-page.rail-open .mobile-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 12px 18px; }
    .pd-home { padding: 0 18px; }
    .pd-toolbar { min-height: 68px; gap: 10px; }
    .pd-toolbar-actions { gap: 10px; }
    .pd-toolbar-actions > a:not(.pd-primary) { display: none; }
    .pd-create { min-height: 144px; }
    .pd-tools { gap: 12px; padding: 22px 0 0; }
    .pd-tools a > span { height: 48px; }
    .pd-tools b { font-size: 12px; line-height: 20px; text-align: center; }
    .pd-tools svg { width: 20px; height: 20px; }
    .pd-section { margin-top: 32px; }
    .pd-section-head h2 { font-size: 18px; }
    .pd-section-caption { display: none; }
    .pd-feature-rail { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
    .pd-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 14px; }
    .pd-card-title { font-size: 14px; }
    .pd-card-copy p { font-size: 12px; }
    .pd-tabs { width: 100%; gap: 22px; }
    .pd-search { flex-basis: 100%; margin-bottom: 12px; }
    .pd-explore-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 16px; }
    .pd-dialog-footer { padding: 18px; flex-wrap: wrap; }
    .showcase-page .main-inner { padding: 0 18px 24px; }
    .showcase-page .breadcrumbs { min-height: 56px; }
    .showcase-page .hero-title { font-size: 24px; line-height: 1.6; }
    .showcase-page .tool-row { gap: 12px; margin: 22px 0 0; }
    .showcase-page .tool-tile b { font-size: 11px; }
    .showcase-page .tool-tile-icon { height: 48px; }
    .showcase-page .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
    .showcase-page .item-grid { grid-template-columns: 1fr; }
    .showcase-page .flow-step { grid-template-columns: 28px minmax(0,1fr); gap: 12px; }
    .showcase-page .flow-body > h2 { font-size: 19px; }
}
@media (max-width: 380px) {
    .pd-home { padding: 0 12px; }
    .pd-gallery { grid-template-columns: 1fr; }
    .pd-tools { gap: 8px; }
    .pd-tools b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-media img, .pd-create, .pd-tools a > span { transition: none; }
    .pd-media:hover img { transform: none; }
}
