@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171717;background:#fff;font-synthesis:none;--muted:#6b6b6b;--subtle:#fafafa;--soft:#f5f5f5;--line:#e7e7e7;--strong-line:#d4d4d4;--alpha-banner-height:38px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:0;padding-top:var(--alpha-banner-height)}
button,input,select{font:inherit;color:inherit}
button,select{cursor:pointer}
button{border:0;background:none}
a{color:inherit;text-decoration:none}
h1,h2,p,pre{margin:0}
h1,h2{font-weight:600;letter-spacing:-.025em}
p{line-height:1.55}
.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}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,pre:focus-visible,[tabindex]:focus-visible{outline:2px solid #111;outline-offset:2px}
.skip-link{position:fixed;top:-80px;left:12px;z-index:50;padding:10px 14px;background:#111;color:#fff;border-radius:6px;font-size:13px}
.skip-link:focus{top:12px}
.alpha-banner{height:var(--alpha-banner-height);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:0 24px;background:#171717;color:#f5f5f2;border-bottom:1px solid #000;font-size:11px;letter-spacing:.01em;position:fixed;inset:0 0 auto;z-index:21}
.alpha-banner p{min-width:0;line-height:1.3;color:#d8d8d4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alpha-banner strong{color:#fff;font-weight:650}
.alpha-badge{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border:1px solid #ffffff42;border-radius:999px;background:#ffffff0d;color:#fff;font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.alpha-edition{color:#969691;font:9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}

.site-header{height:64px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:auto auto minmax(220px,520px) 1fr;align-items:center;gap:26px;padding:0 24px;position:sticky;top:var(--alpha-banner-height);background:#fffc;backdrop-filter:blur(14px);z-index:20}
.wordmark{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:700;letter-spacing:-.04em;white-space:nowrap}
.brand-mark{position:relative;width:20px;height:20px;display:block}
.brand-mark i{position:absolute;width:13px;height:13px;border:1.5px solid #111;border-radius:2px;background:#fff}
.brand-mark i:first-child{left:1px;top:1px}
.brand-mark i:last-child{right:1px;bottom:1px;background:#111}
.site-header nav{height:100%;display:flex}
.site-header nav a{display:flex;align-items:center;gap:7px;height:100%;font-size:13px;font-weight:550;position:relative}
.site-header nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#111}
.nav-count{font-size:11px;color:#666;background:var(--soft);border:1px solid var(--line);border-radius:999px;min-width:19px;text-align:center;padding:1px 5px}
.global-search{height:36px;border:1px solid var(--line);background:var(--subtle);border-radius:7px;display:flex;align-items:center;padding:0 9px;gap:8px;min-width:0;transition:border-color .15s,box-shadow .15s}
.global-search:focus-within{border-color:#a3a3a3;box-shadow:0 0 0 3px #00000008}
.global-search svg{width:16px;height:16px;fill:none;stroke:#737373;stroke-width:1.6}
.global-search input{border:0;outline:0;background:transparent;min-width:0;flex:1;font-size:13px}
.global-search input::placeholder{color:#858585}
.global-search kbd{font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#666;background:white;border:1px solid var(--line);box-shadow:0 1px 0 #ddd;border-radius:4px;padding:2px 5px;white-space:nowrap}
.header-actions{justify-self:end;display:flex;align-items:center;gap:18px}
.header-link{font-size:12px;color:#555;white-space:nowrap}
.header-link:hover{color:#111}
.selected-screens span{margin-left:3px;color:#8d8d8d}

.library-shell{min-height:calc(100vh - 64px - var(--alpha-banner-height));display:grid;grid-template-columns:216px minmax(0,1fr)}
.library-sidebar{border-right:1px solid var(--line);padding:26px 14px 20px;position:sticky;top:calc(64px + var(--alpha-banner-height));height:calc(100vh - 64px - var(--alpha-banner-height));display:flex;flex-direction:column;align-self:start;background:white}
.sidebar-section{margin-bottom:28px}
.sidebar-label{display:block;padding:0 10px 9px;font-size:12px;font-weight:600;color:#666}
.category-list{display:grid;gap:2px}
.category-list button,.sidebar-resources a,.sidebar-resources button{min-height:34px;width:100%;padding:7px 10px;border-radius:6px;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:13px;color:#545454}
.category-list button:hover,.sidebar-resources a:hover,.sidebar-resources button:hover{background:var(--soft);color:#111}
.category-list button[aria-pressed=true]{background:#f0f0f0;color:#111;font-weight:550}
.category-list b{font-size:11px;font-weight:500;color:#666}
.framework-section select{width:calc(100% - 20px);margin:0 10px;height:36px;border:1px solid var(--line);border-radius:6px;background:white;padding:0 28px 0 9px;font-size:12px;color:#666}
.sidebar-resources{padding-top:20px;border-top:1px solid var(--line)}
.review-note{margin-top:auto;padding:0 10px;color:#666;font-size:11px;display:flex;align-items:center;gap:7px}
.review-note>span:first-child,.workbench-footer i{width:6px;height:6px;border-radius:50%;background:#45a35b;box-shadow:0 0 0 3px #45a35b18;display:inline-block}

.gallery-page,.component-detail{width:100%;max-width:1480px;margin:0 auto;padding:38px 40px 72px;min-width:0}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-bottom:28px}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#666;font-weight:650}
.page-heading h1,.detail-heading h1{font-size:30px;line-height:1.15;margin:7px 0 8px}
.page-heading>div>p:last-child{font-size:13px;color:var(--muted)}
.result-count{font-size:12px;color:#666;padding-bottom:2px}
.component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}
.library-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s}
.library-card:hover{border-color:#c8c8c8;box-shadow:0 12px 32px #0000000a;transform:translateY(-1px)}
.card-link{display:block}
.card-preview{position:relative;aspect-ratio:1.44;overflow:hidden;background:#f3f3f3;border-bottom:1px solid var(--line)}
.card-preview iframe{position:absolute;inset:0;width:1440px;height:1000px;border:0;transform-origin:top left;pointer-events:none;background:#f5f5f5}
.card-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:17px 18px 16px;min-height:126px}
.card-body h2{font-size:15px;letter-spacing:-.015em}
.card-body p{font-size:13px;color:var(--muted);margin-top:6px;max-width:500px}
.card-meta{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.card-meta span,.tag{font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.06em;color:#595959;padding:6px 7px;border:1px solid var(--line);border-radius:4px;background:#fafafa}
.card-meta b{font-size:15px;margin-left:4px;font-weight:400}
.empty-state{border:1px dashed var(--strong-line);border-radius:10px;text-align:center;padding:80px 20px;color:var(--muted)}
.empty-state>span{font-size:30px}
.empty-state h2{font-size:16px;color:#222;margin:12px 0 5px}
.empty-state p{font-size:13px}
.empty-state button{margin-top:18px;height:36px;padding:0 14px;border:1px solid var(--strong-line);border-radius:6px;background:white;font-size:12px;font-weight:550}

.component-detail{max-width:1500px}
.back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#656565;padding:4px 0;margin-bottom:30px}
.back-link:hover{color:#111}
.detail-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:26px}
.detail-heading>div:first-child{max-width:760px}
.detail-heading h1{font-size:32px}
.detail-heading>div>p:last-child{font-size:13px;color:var(--muted);max-width:660px}
.detail-heading-actions{display:flex;align-items:center;gap:10px}
.button{height:36px;padding:0 12px;border:1px solid var(--strong-line);border-radius:6px;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:550;background:white}
.button:hover{background:var(--soft)}
.button[aria-disabled=true],.download[aria-disabled=true],button:disabled,select:disabled{opacity:.48;cursor:not-allowed}

.workbench{border:1px solid var(--strong-line);border-radius:10px;overflow:hidden;background:#fff}
.toolbar{height:55px;display:flex;align-items:center;justify-content:space-between;background:white;padding:8px 10px 8px 12px;border-bottom:1px solid var(--line);gap:12px}
.view-tabs{display:flex;background:var(--soft);border-radius:6px;padding:3px}
.view-tabs button{min-height:31px;padding:0 13px;border-radius:4px;font-size:13px;color:#666}
.view-tabs button[aria-pressed=true]{background:white;color:#171717;box-shadow:0 1px 3px #0001;border:1px solid #e2e2e2}
.preview-options{display:flex;align-items:center;gap:7px;min-width:0}
.preview-options select,.code-toolbar select{height:34px;border:1px solid var(--line);border-radius:6px;background:white;padding:0 27px 0 9px;font-size:12px;max-width:100%}
.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;background:white}
.icon-button:hover{background:var(--soft)}
.icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.preview-panel{max-width:100%;overflow:auto;background:#f3f3f3;padding:22px;min-height:520px}
.preview-canvas{width:100%;min-width:0;margin:0 auto;background:white;box-shadow:0 1px 6px #0000000c}
.preview-canvas iframe{display:block;border:0;width:100%;height:920px;background:white}
.workbench-footer{min-height:43px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 15px;border-top:1px solid var(--line);background:white;color:#666;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.workbench-footer>span{display:flex;align-items:center;gap:7px}
.download{font-size:12px;color:#333;text-transform:none;letter-spacing:0;font-weight:550}
.download span{font-size:14px;margin-left:4px}
.code-panel{background:#171717;color:#efefef}
.code-toolbar{min-height:52px;display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid #333;font-size:12px}
.code-toolbar select{background:#242424;color:white;border-color:#3d3d3d;max-width:300px}
.code-spacer{flex:1}
.code-toolbar button{height:32px;padding:0 11px;border:1px solid #404040;border-radius:5px;color:#ddd;font-size:12px}
.code-toolbar button:hover{background:#292929}
.code-panel pre{padding:24px 26px;max-height:660px;overflow:auto;font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:2;white-space:pre}
.file-hash{font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;padding:12px 26px;border-top:1px solid #333;color:#bdbdbd}
.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:8%;padding:40px 4px 0}
.detail-meta h2{font-size:16px;margin:8px 0 9px}
.detail-meta p:not(.eyebrow){font-size:13px;color:var(--muted);max-width:570px;white-space:pre-line}
.detail-meta pre{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:12px 0;color:#444}
.source-link{display:block;margin-top:10px;font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#444}
.workbench.is-loading .preview-canvas{min-height:420px;background:linear-gradient(100deg,#ededed 20%,#f8f8f8 40%,#ededed 60%);background-size:220% 100%;animation:loading 1.4s ease-in-out infinite}
.workbench.is-loading .preview-canvas iframe{visibility:hidden}
@keyframes loading{to{background-position:-220% 0}}

dialog{width:min(620px,calc(100vw - 32px));border:1px solid var(--strong-line);border-radius:10px;padding:25px;box-shadow:0 24px 80px #0003;color:#222}
dialog::backdrop{background:#0005;backdrop-filter:blur(2px)}
.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}
.dialog-heading h2{font-size:21px;margin-top:6px}
.dialog-heading .icon-button{font-size:21px;font-weight:300}
dialog>p{font-size:13px;color:var(--muted);margin-top:16px;max-width:500px}
dialog pre{margin-top:18px;background:#171717;color:#eee;border-radius:7px;padding:18px;overflow:auto;font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace}
.dialog-note{font-size:11px!important;text-transform:uppercase;letter-spacing:.08em}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#171717;color:white;padding:10px 16px;border-radius:6px;font-size:12px;z-index:50;box-shadow:0 8px 30px #0003}
.toast:empty{display:none}

@media(max-width:1050px){
  .site-header{grid-template-columns:auto auto minmax(180px,1fr) auto;gap:20px}
  .selected-screens{display:none}
  .library-shell{display:block}
  .library-sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px 24px;display:flex;flex-direction:row;align-items:center;gap:14px;overflow-x:auto}
  .sidebar-section{margin:0}
  .sidebar-label{display:none}
  .category-section{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:4px;margin:-4px}
  .framework-section{flex:none}
  .category-list{display:flex;gap:4px;width:max-content;padding-right:4px}
  .category-list button{min-height:36px;width:auto;gap:11px;white-space:nowrap}
  .framework-section select{width:auto;margin:0;height:36px}
  .sidebar-resources,.review-note{display:none}
  .gallery-page,.component-detail{padding-top:32px}
  .component-grid{grid-template-columns:1fr}
  .card-preview{aspect-ratio:1.68}
  .card-preview iframe{height:860px}
}

@media(max-width:680px){
  :root{--alpha-banner-height:44px}
  .alpha-banner{grid-template-columns:auto minmax(0,1fr);gap:10px;padding:0 14px}
  .alpha-banner p{font-size:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .alpha-banner strong{display:block}
  .alpha-edition{display:none}
  .site-header{height:64px;grid-template-columns:auto minmax(90px,1fr) auto;gap:12px;padding:0 14px}
  .site-header nav{display:none}
  .global-search{height:44px}
  .global-search kbd{display:none}
  .global-search input{font-size:12px}
  .global-search input::placeholder{color:#737373}
  .header-actions{gap:0}
  .header-link{min-width:44px;min-height:44px;display:grid;place-items:center}
  .selected-screens{display:none}
  .library-shell{min-height:calc(100vh - 64px - var(--alpha-banner-height))}
  .library-sidebar{padding:9px 14px 11px;gap:10px;overflow-x:visible;flex-wrap:wrap}
  .category-section{width:100%;overflow-x:visible;padding:0;margin:0}
  .category-list{display:flex;flex-wrap:wrap;width:100%;padding-right:0}
  .category-list button{min-height:44px;flex:1 1 auto;width:auto;padding:8px;gap:7px}
  .category-list::after{content:"";flex:999 1 0}
  .framework-section{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}
  .framework-section .sidebar-label{display:block;padding:0;font-size:11px}
  .framework-section select{height:44px;max-width:none;width:100%;margin:0}
  .gallery-page,.component-detail{padding:25px 16px 52px}
  .page-heading{align-items:start;padding-bottom:21px}
  .page-heading h1,.detail-heading h1{font-size:25px}
  .page-heading>div>p:last-child{font-size:12px}
  .result-count{display:none}
  .component-grid{gap:18px}
  .card-preview{aspect-ratio:1.25}
  .card-preview iframe{height:1152px}
  .card-body{display:block;min-height:0;padding:15px}
  .card-meta{justify-content:flex-start;margin-top:12px}
  .back-link{min-height:44px;margin:-8px 0 18px}
  .detail-heading{display:block;margin-bottom:20px}
  .detail-heading-actions{margin-top:16px}
  .button{min-height:44px}
  .toolbar{height:auto;min-height:56px;align-items:stretch;flex-direction:column;padding:9px}
  .view-tabs{display:flex}
  .view-tabs button{min-height:44px;flex:1}
  .preview-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
  .preview-options select{height:44px;min-width:0;padding-left:7px}
  .icon-button{width:44px;height:44px}
  .preview-panel{padding:8px;min-height:400px}
  .preview-canvas iframe{height:1180px}
  .workbench-footer{padding:7px 10px;min-height:47px}
  .workbench-footer>span{font-size:11px}
  .download{font-size:11px;white-space:nowrap;min-height:44px;display:flex;align-items:center}
  .detail-meta{grid-template-columns:1fr;gap:30px;padding-top:30px}
  .code-toolbar{align-items:stretch;flex-wrap:wrap}
  .code-toolbar label{display:none}
  .code-toolbar select{width:100%;max-width:none;height:44px}
  .code-spacer{display:none}
  .code-toolbar button{height:44px;flex:1}
  .code-panel pre{padding:18px 14px}
  .file-hash{padding:12px 14px}
  .empty-state{padding:55px 16px}
  .empty-state button{min-height:44px}
  dialog{padding:20px}
  dialog pre{margin-inline:-6px;padding:14px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .library-card,.global-search{transition:none}
  .workbench.is-loading .preview-canvas{animation:none}
}
