:root,[data-theme=light]{--st-font-ui:"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--st-font-mono:"JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;--st-bg-body:#f2f0ed;--st-bg-surface:#faf9f7;--st-bg-elevated:#eae8e4;--st-bg-code:#1e1e2e;--st-border:#d5d0c8;--st-text-primary:#2c2c2c;--st-text-secondary:#6b6560;--st-text-code:#cdd6f4;--st-accent:#d97706;--st-accent-hover:#b45309;--st-glow:#d9770659;--st-error:#dc2626;--st-success:#16a34a;--st-nav-bg:#1a1a28;--st-nav-text:#c8c8d0;--st-nav-brand:#d97706;--st-shadow-sm:0 1px 2px #0000000f;--st-shadow-md:0 4px 12px #00000014;--st-shadow-lg:0 8px 24px #0000001f;--st-transition-fast:.15s ease;--st-transition-default:.25s ease;--st-radius:8px;--st-scanline:repeating-linear-gradient(0deg, transparent, transparent 2px, #ffffff04 2px, #ffffff04 4px)}[data-theme=dark]{--st-bg-body:#0f0f17;--st-bg-surface:#1a1a28;--st-bg-elevated:#232336;--st-bg-code:#13131d;--st-border:#2a2a3c;--st-text-primary:#e0e0e8;--st-text-secondary:#8888a0;--st-text-code:#cdd6f4;--st-accent:#4ade80;--st-accent-hover:#22c55e;--st-glow:#4ade804d;--st-error:#f87171;--st-success:#4ade80;--st-nav-bg:#0a0a12;--st-nav-text:#a0a0b8;--st-nav-brand:#4ade80;--st-shadow-sm:0 1px 2px #0003;--st-shadow-md:0 4px 12px #0000004d;--st-shadow-lg:0 8px 24px #0006;--st-scanline:repeating-linear-gradient(0deg, transparent, transparent 2px, #4ade8005 2px, #4ade8005 4px)}.st-theme-toggle{color:var(--st-nav-text);cursor:pointer;width:2.2rem;height:2.2rem;transition:transform var(--st-transition-fast), border-color var(--st-transition-fast), background var(--st-transition-fast);background:#ffffff14;border:1px solid #ffffff1f;border-radius:9999px;justify-content:center;align-items:center;font-size:1rem;line-height:1;display:inline-flex}.st-theme-toggle:hover{border-color:var(--st-accent);transform:scale(1.08)}.st-theme-toggle:active{transform:scale(.95)}.st-theme-toggle .st-theme-icon-system,.st-theme-toggle .st-theme-icon-light,.st-theme-toggle .st-theme-icon-dark{display:none}html:not([data-theme-mode]) .st-theme-icon-system,html[data-theme-mode=system] .st-theme-icon-system,html[data-theme-mode=light] .st-theme-icon-light,html[data-theme-mode=dark] .st-theme-icon-dark{display:inline}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{height:100%}body{background:var(--st-bg-body);height:100%;color:var(--st-text-primary);font-family:var(--st-font-ui);flex-direction:column;line-height:1.5;display:flex;overflow:hidden}a{color:var(--st-accent);text-decoration:none}a:hover{text-decoration:underline}a:visited{color:var(--st-accent-hover)}main{scroll-behavior:smooth;flex-direction:column;flex:1;min-height:0;padding:1rem;display:flex;overflow-y:auto}.st-nav{background:var(--st-nav-bg);height:48px;box-shadow:var(--st-shadow-md);z-index:10;align-items:center;gap:1.5rem;padding:0 1.5rem;display:flex;position:relative}.st-nav:after{content:"";background:var(--st-scanline);pointer-events:none;position:absolute;inset:0}.st-nav-brand{font-size:1.15rem;font-weight:700;font-family:var(--st-font-mono);letter-spacing:-.02em;text-shadow:0 0 8px var(--st-glow);color:var(--st-nav-brand)!important;text-decoration:none!important}.st-nav-brand:visited{color:var(--st-nav-brand)!important}.st-nav-links{gap:.25rem;display:flex}.st-nav-links a{color:var(--st-nav-text);transition:background var(--st-transition-fast), color var(--st-transition-fast);border-radius:9999px;padding:.3rem .75rem;font-size:.9rem;text-decoration:none}.st-nav-links a:hover{color:#fff;background:#ffffff14}.st-nav-links a:visited{color:var(--st-nav-text)}.st-nav-toggle-input{appearance:none;opacity:0;pointer-events:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;display:none!important}.st-nav-hamburger{display:none}.st-nav-collapse,.st-nav-right{display:contents}.st-nav-spacer{flex:1}.st-nav-center{pointer-events:auto;position:absolute;left:50%;transform:translate(-50%)}@media (width<=1024px){.st-nav-hamburger{cursor:pointer;z-index:2;flex-direction:column;justify-content:center;gap:5px;margin-left:auto;padding:.4rem;display:flex}.st-nav-hamburger span{background:var(--st-nav-text);border-radius:1px;width:22px;height:2px;transition:transform .25s,opacity .25s;display:block}.st-nav-toggle-input:checked~.st-nav-hamburger span:first-child{transform:translateY(7px)rotate(45deg)}.st-nav-toggle-input:checked~.st-nav-hamburger span:nth-child(2){opacity:0}.st-nav-toggle-input:checked~.st-nav-hamburger span:nth-child(3){transform:translateY(-7px)rotate(-45deg)}.st-nav-collapse{background:var(--st-nav-bg);box-shadow:var(--st-shadow-md);z-index:9;flex-direction:column;gap:.5rem;padding:.75rem 1rem;display:none;position:absolute;top:48px;left:0;right:0}.st-nav-collapse:after{content:"";background:var(--st-scanline);pointer-events:none;position:absolute;inset:0}.st-nav-toggle-input:checked~.st-nav-collapse{display:flex}.st-nav-links{flex-direction:column;gap:0}.st-nav-links a{border-radius:4px;padding:.5rem .75rem}.st-nav-spacer{display:none}.st-nav-center{position:static;transform:none}.st-nav-right{flex-direction:column;gap:.5rem;width:100%;display:flex}.st-nav-right>*{flex-wrap:wrap}}.st-footer{background:var(--st-bg-elevated);border-top:1px solid var(--st-border);align-items:center;padding:.5rem 1rem;font-size:.8rem;display:flex}.st-footer a{color:var(--st-text-secondary)}.st-footer a:hover{color:var(--st-accent)}.st-footer a:visited{color:var(--st-text-secondary)}.st-footer-legal{gap:1rem;display:flex}.st-footer-brand{margin-left:auto}@media (width<=600px){.st-nav{padding:0 .75rem}}.st-code-textarea{background:var(--st-bg-code);width:100%;color:var(--st-text-code);border:1px solid var(--st-border);border-radius:var(--st-radius);font-family:var(--st-font-mono);resize:none;transition:box-shadow var(--st-transition-fast);outline:none;flex:1;padding:.75rem;font-size:14px;line-height:1.6}.st-code-textarea:focus{border-color:var(--st-accent);box-shadow:0 0 0 2px var(--st-glow)}.st-code-textarea::placeholder{color:var(--st-text-secondary)}.st-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.25rem;display:grid}.st-gallery-card{background:var(--st-bg-surface);border:1px solid var(--st-border);border-radius:var(--st-radius);box-shadow:var(--st-shadow-sm);transition:transform var(--st-transition-fast), box-shadow var(--st-transition-fast), border-color var(--st-transition-fast);padding:1.25rem}.st-gallery-card:hover{box-shadow:var(--st-shadow-md), 0 0 0 1px var(--st-glow);border-color:var(--st-accent);transform:translateY(-2px)}.st-gallery-card h3{color:var(--st-text-primary);margin-bottom:.5rem;font-size:1.1rem}.st-gallery-card a{color:var(--st-accent);margin-top:.5rem;display:inline-block}.st-gallery-card a:hover{text-decoration:underline}.st-gallery-preview{background:var(--st-bg-code);color:var(--st-text-code);border:1px solid var(--st-border);font-family:var(--st-font-mono);white-space:pre;border-radius:4px;max-height:7em;padding:.75rem;font-size:.8rem;line-height:1.4;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,#0000 100%);mask-image:linear-gradient(#000 60%,#0000 100%)}.st-help-page{gap:1.5rem;width:100%;max-width:1100px;margin:0 auto;display:flex}.st-help-sidebar{background:var(--st-bg-surface);border:1px solid var(--st-border);border-radius:var(--st-radius);width:200px;box-shadow:var(--st-shadow-sm);flex-shrink:0;align-self:flex-start;padding:1rem;position:sticky;top:1rem}.st-help-sidebar h3{color:var(--st-text-secondary);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem;font-size:.8rem;font-weight:600}.st-help-sidebar ul{list-style:none}.st-help-sidebar ul li{margin-bottom:.15rem}.st-help-sidebar ul a{color:var(--st-text-primary);transition:background var(--st-transition-fast), color var(--st-transition-fast);border-radius:9999px;padding:.25rem .5rem;font-size:.85rem;text-decoration:none;display:block}.st-help-sidebar ul a:hover{background:var(--st-glow);color:var(--st-accent)}.st-help-sidebar ul a:visited{color:var(--st-text-primary)}.st-help-content{scroll-behavior:smooth;flex:1;min-width:0;line-height:1.6}.st-help-content h2{border-bottom:1px solid var(--st-border);margin-top:2rem;margin-bottom:.75rem;padding-bottom:.5rem}.st-help-content h2:first-child{margin-top:0}.st-help-content p{margin-bottom:.75rem}.st-help-content pre{background:var(--st-bg-code);color:var(--st-text-code);border:1px solid var(--st-border);border-radius:var(--st-radius);font-family:var(--st-font-mono);margin-bottom:1rem;padding:.75rem;font-size:.85rem;overflow-x:auto}.st-help-table{border-collapse:collapse;width:100%;margin-bottom:1.5rem;font-size:.9rem}.st-help-table th{background:var(--st-bg-elevated);color:var(--st-text-primary);text-align:left;font-weight:600}.st-help-table th,.st-help-table td{border:1px solid var(--st-border);padding:.4rem .6rem}.st-help-table td:first-child{font-family:var(--st-font-mono);white-space:nowrap;font-size:.85rem}.st-help-table tr:nth-child(2n){background:var(--st-bg-elevated)}@media (width<=768px){.st-help-page{flex-direction:column}.st-help-sidebar{width:100%;position:static}}.st-about-page{width:100%;max-width:700px;margin:0 auto;line-height:1.6}.st-about-page h1{margin-bottom:1rem}.st-about-page h2{margin-top:1.5rem;margin-bottom:.75rem}.st-about-page p{margin-bottom:.75rem}.st-about-page ul{margin-bottom:1rem;padding-left:1.5rem}.st-about-page ul li{margin-bottom:.35rem}.st-about-page strong{color:var(--st-text-primary)}.st-about-footer{border-top:1px solid var(--st-border);color:var(--st-text-secondary);margin-top:2rem;padding-top:1rem;font-size:.9rem}.st-terms-page{width:100%;max-width:800px;margin:0 auto;line-height:1.6}.st-terms-page h1{margin-bottom:.5rem}.st-terms-page h2{margin-top:1.5rem;margin-bottom:.75rem}.st-terms-page p{margin-bottom:.75rem}.st-terms-page ul{margin-bottom:1rem;padding-left:1.5rem}.st-terms-page ul li{margin-bottom:.35rem}.st-terms-effective{color:var(--st-text-secondary);font-size:.9rem;margin-bottom:1.5rem!important}.st-terms-footer{border-top:1px solid var(--st-border);color:var(--st-text-secondary);margin-top:2rem;padding-top:1rem;font-size:.9rem}.st-privacy-page{width:100%;max-width:800px;margin:0 auto;line-height:1.6}.st-privacy-page h1{margin-bottom:.5rem}.st-privacy-page h2{margin-top:1.5rem;margin-bottom:.75rem}.st-privacy-page h3{margin-top:1rem;margin-bottom:.5rem}.st-privacy-page p{margin-bottom:.75rem}.st-privacy-page ul{margin-bottom:1rem;padding-left:1.5rem}.st-privacy-page ul li{margin-bottom:.35rem}.st-privacy-effective{color:var(--st-text-secondary);font-size:.9rem;margin-bottom:1.5rem!important}.st-privacy-footer{border-top:1px solid var(--st-border);color:var(--st-text-secondary);margin-top:2rem;padding-top:1rem;font-size:.9rem}.admin-users{max-width:1200px;margin:0 auto;padding:1rem}.admin-users h1{margin-bottom:1rem}.admin-users__search{gap:.5rem;margin-bottom:1rem;display:flex}.admin-users__search input{border:1px solid var(--st-border);background:var(--st-bg-surface);color:var(--st-text-primary);border-radius:4px;flex:1;padding:.5rem;font-family:inherit;font-size:.875rem}.admin-users__search input::placeholder{color:var(--st-text-secondary);opacity:.6}.admin-users__search input:focus{border-color:var(--st-accent);outline:none}.admin-users__search button{background:var(--st-bg-elevated);color:var(--st-text-primary);border:1px solid var(--st-border);cursor:pointer;border-radius:4px;padding:.5rem 1rem;font-size:.875rem}.admin-users__search button:hover{background:var(--st-accent);color:var(--st-bg-body);border-color:var(--st-accent)}.admin-users__table{border-collapse:collapse;width:100%;font-size:.875rem}.admin-users__table th,.admin-users__table td{text-align:left;border-bottom:1px solid var(--st-border);padding:.5rem}.admin-users__table th{color:var(--st-text-secondary);font-weight:600}.admin-users__table tr:hover td{background:var(--st-bg-elevated)}.admin-users__roles{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.admin-users__role-chip{background:color-mix(in srgb, var(--st-accent) 20%, transparent);color:var(--st-accent);text-transform:uppercase;letter-spacing:.03em;border-radius:999px;align-items:center;gap:.2rem;padding:.15rem .5rem;font-size:.7rem;font-weight:600;display:inline-flex}.admin-users__role-remove{cursor:pointer;color:inherit;opacity:.6;background:0 0;border:none;padding:0;font-size:.75rem;line-height:1}.admin-users__role-remove:hover{opacity:1}.admin-users__role-add{background:var(--st-bg-surface);color:var(--st-text-secondary);border:1px solid var(--st-border);cursor:pointer;border-radius:4px;padding:.15rem .3rem;font-size:.75rem}.admin-users__actions{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.admin-users__reset-inline{align-items:center;gap:.25rem;display:inline-flex}.admin-users__reset-inline input{background:var(--st-bg-surface);width:120px;color:var(--st-text-primary);border:1px solid var(--st-border);border-radius:4px;padding:.25rem;font-size:.75rem}.badge{border-radius:4px;padding:.125rem .5rem;font-size:.75rem;font-weight:500;display:inline-block}.badge--enabled{background:color-mix(in srgb, var(--st-success) 15%, transparent);color:var(--st-success);border:1px solid color-mix(in srgb, var(--st-success) 30%, transparent)}.badge--disabled{background:color-mix(in srgb, var(--st-error) 15%, transparent);color:var(--st-error);border:1px solid color-mix(in srgb, var(--st-error) 30%, transparent)}.badge--verified{background:color-mix(in srgb, var(--st-success) 15%, transparent);color:var(--st-success);border:1px solid color-mix(in srgb, var(--st-success) 30%, transparent)}.badge--unverified{background:color-mix(in srgb, var(--st-accent) 15%, transparent);color:var(--st-accent);border:1px solid color-mix(in srgb, var(--st-accent) 30%, transparent)}.btn--small{background:var(--st-bg-elevated);color:var(--st-text-primary);border:1px solid var(--st-border);cursor:pointer;border-radius:4px;padding:.25rem .5rem;font-size:.75rem}.btn--small:hover{border-color:var(--st-accent);color:var(--st-accent)}.btn--danger{background:var(--st-error);color:#fff;border:1px solid var(--st-error);cursor:pointer;border-radius:4px}.btn--danger:hover{opacity:.85}.search-bar{gap:.5rem;display:flex}.search-bar input[type=search]{border:1px solid var(--st-border);background:var(--st-bg-surface);color:var(--st-text-primary);border-radius:4px;flex:1;padding:.4rem .8rem;font-size:.875rem}.search-bar button{border:1px solid var(--st-accent);background:var(--st-accent);color:var(--st-bg-body);cursor:pointer;border-radius:4px;padding:.4rem .8rem}.search-results{margin-top:1rem}.search-result{border-bottom:1px solid var(--st-border);padding:.75rem}.search-result a{color:var(--st-accent);text-decoration:none}.search-result a:hover{text-decoration:underline}.search-result .snippet{color:var(--st-text-secondary);margin-top:.25rem;font-size:.875rem}.search-result .snippet mark{background:color-mix(in srgb, var(--st-accent) 20%, transparent)}.favorite-btn{cursor:pointer;color:var(--st-text-secondary);vertical-align:middle;background:0 0;border:none;padding:0 .4rem;font-size:1.25rem;line-height:1;transition:color .15s;display:inline-block}.favorite-btn:hover{color:var(--st-accent)}.favorite-btn.active{color:#e25555}.favorite-btn:disabled{opacity:.5;cursor:not-allowed}.favorites-page .favorites-groups{grid-template-columns:repeat(3,1fr);gap:2rem;display:grid}@media (width<=600px){.favorites-page .favorites-groups{grid-template-columns:1fr}}.favorites-page .favorites-group{margin-bottom:2rem}.favorites-page .favorites-group h2{border-bottom:1px solid var(--st-border);margin-bottom:.75rem;padding-bottom:.5rem}.favorites-page .favorites-list{margin:0;padding:0;list-style:none}.favorites-page .favorites-list li{border-bottom:1px solid var(--st-border);padding:.5rem 0}.favorites-page .favorites-list li:last-child{border-bottom:none}.favorites-page .favorites-list a{color:var(--st-accent);text-decoration:none}.favorites-page .favorites-list a:hover{text-decoration:underline}.auth-form{background:var(--st-bg-surface);border:1px solid var(--st-border);border-radius:8px;max-width:400px;margin:3rem auto;padding:2rem}.auth-form h2{text-align:center;margin-bottom:1.5rem}.auth-form .form-group{margin-bottom:1.25rem}.auth-form .form-group label{color:var(--st-text-secondary);margin-bottom:.35rem;font-size:.875rem;font-weight:500;display:block}.auth-form .form-group input[type=email],.auth-form .form-group input[type=password],.auth-form .form-group input[type=text]{background:var(--st-bg-body);border:1px solid var(--st-border);width:100%;color:var(--st-text-primary);border-radius:4px;padding:.6rem .75rem;font-size:1rem}.auth-form .form-group input[type=email]:focus,.auth-form .form-group input[type=password]:focus,.auth-form .form-group input[type=text]:focus{border-color:var(--st-accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--st-accent) 20%, transparent);outline:none}.auth-form .btn{background:var(--st-accent);color:#fff;cursor:pointer;border:none;border-radius:6px;width:100%;padding:.7rem 1rem;font-size:1rem;font-weight:500;display:block}.auth-form .btn:hover{opacity:.9}.auth-form .error{background:color-mix(in srgb, var(--st-error) 12%, transparent);border:1px solid var(--st-error);color:var(--st-error);border-radius:4px;margin-top:1rem;padding:.6rem .75rem;font-size:.875rem}.auth-form .success{background:color-mix(in srgb, var(--st-success) 12%, transparent);border:1px solid var(--st-success);color:var(--st-success);border-radius:4px;margin-top:1rem;padding:.6rem .75rem;font-size:.875rem}.auth-form .auth-link{text-align:center;color:var(--st-text-secondary);margin-top:1.25rem;font-size:.9rem}.auth-form .auth-link a{color:var(--st-accent)}.filter-bar{flex-direction:column;gap:.5rem;margin-bottom:1.5rem;display:flex}.filter-group label{color:var(--st-text-secondary);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.25rem;font-size:.75rem;font-weight:600;display:block}.filter-group input[type=text]{border:1px solid var(--st-border);background:var(--st-bg-surface);color:var(--st-text-primary);border-radius:4px;outline:none;min-width:160px;padding:.4rem .8rem;font-family:inherit;font-size:.875rem}.filter-group input[type=text]::placeholder{color:var(--st-text-secondary);opacity:.6}.filter-group input[type=text]:focus{border-color:var(--st-accent);box-shadow:0 0 0 2px rgba(var(--st-accent-rgb,100, 149, 237), .15)}.filter-btn{border:1px solid var(--st-border);background:var(--st-bg-surface);color:var(--st-text-secondary);cursor:pointer;border-radius:4px;padding:.4rem .8rem;font-size:.875rem}.filter-btn.active{background:var(--st-accent);color:var(--st-bg-body);border-color:var(--st-accent)}.card{border:1px solid var(--st-border);background:var(--st-bg-surface);border-radius:8px;padding:1rem}.card h3{margin:0 0 .5rem}.card a{color:var(--st-text-primary);text-decoration:none}.card a:hover{color:var(--st-accent)}.tags,.characteristics-tags{flex-wrap:wrap;gap:.35rem;margin-top:.5rem;display:flex}.tag{background:var(--st-bg-elevated);color:var(--st-text-secondary);border:1px solid var(--st-border);border-radius:3px;padding:.15rem .5rem;font-size:.75rem;display:inline-block}.card-meta{align-items:center;gap:.5rem;margin-bottom:.25rem;display:flex}.card-details{color:var(--st-text-secondary);font-size:.875rem}.data-table{border-collapse:collapse;width:100%;margin-top:1rem}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--st-border);padding:.5rem .75rem}.data-table th{color:var(--st-text-secondary);font-size:.875rem;font-weight:600}.data-table td a{color:var(--st-accent);text-decoration:none}.data-table td a:hover{text-decoration:underline}.data-table .role-note{color:var(--st-text-secondary);font-size:.8125rem}.table-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}.related-section{border:1px solid var(--st-border);background:var(--st-bg-surface);border-radius:8px;margin-top:2rem;padding:1rem}.related-section h2{margin-top:0;margin-bottom:.75rem;font-size:1.125rem}.related-links{flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.related-links li{display:inline-block}.related-links a{border:1px solid var(--st-border);color:var(--st-accent);border-radius:4px;padding:.3rem .6rem;font-size:.875rem;text-decoration:none;display:inline-block}.related-links a:hover{background:var(--st-bg-elevated);text-decoration:underline}.resource-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.resource-card .resource-badges{flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem;display:flex}.resource-card .manufacturer-badge,.resource-card .file-size-badge{background:var(--st-bg-elevated);color:var(--st-text-secondary);border:1px solid var(--st-border);border-radius:4px;padding:.2rem .5rem;font-size:.75rem;display:inline-block}.resource-card .resource-title{color:var(--st-text-primary);text-decoration:none}.resource-card .resource-title:hover{color:var(--st-accent)}.resource-card .resource-title h3{margin:0 0 .5rem}.resource-card .resource-description{color:var(--st-text-secondary);font-size:.875rem;line-height:1.5}.resource-card .resource-source{color:var(--st-text-secondary);margin-top:.5rem;font-size:.8125rem;font-style:italic}.page h2{margin-top:2.5rem;margin-bottom:.75rem}.page>p{max-width:65ch;margin-bottom:1rem;line-height:1.6}.page ul,.page ol{margin-bottom:1.25rem;padding-left:1.5rem;line-height:1.7}.page ul li,.page ol li{margin-bottom:.4rem}.page{width:100%;max-width:960px;margin-left:auto;margin-right:auto;padding:1rem}.access-denied{text-align:center;color:var(--st-text-secondary,#888);padding:3rem}.edit-link,.new-link{background:var(--st-accent,#4a9eff);color:#fff;border-radius:4px;margin-left:1rem;padding:.3rem 1rem;font-size:.85rem;text-decoration:none;display:inline-block}.edit-link:visited,.new-link:visited{color:#fff}.edit-link:hover,.new-link:hover{opacity:.9;color:#fff}.admin-form{max-width:100%;margin:2rem auto}.admin-form .form-group{margin-bottom:1.2rem}.admin-form .form-group label{margin-bottom:.3rem;font-weight:500;display:block}.admin-form .form-group input,.admin-form .form-group select,.admin-form .form-group textarea{background:var(--st-bg-surface,#1a1a1a);width:100%;color:var(--st-text-primary,#e0e0e0);border:1px solid #444;border-radius:4px;padding:.5rem;font-size:1rem}.admin-form .form-group textarea{resize:vertical;min-height:250px}.admin-form .form-group select{cursor:pointer}.admin-form .submit-btn{background:var(--st-accent,#4a9eff);color:#fff;cursor:pointer;border:none;border-radius:4px;padding:.7rem 2rem;font-size:1rem}.admin-form .submit-btn:hover{opacity:.9}.admin-form .submit-btn:disabled{opacity:.6;cursor:not-allowed}.admin-form .error-msg{color:var(--st-error,#f44);margin-top:1rem}.form-row{gap:1rem;display:flex}.form-row .form-group{flex:1}.form-actions{gap:.75rem;margin-top:1rem;display:flex}.cancel-btn{border:1px solid var(--st-border);color:var(--st-text-primary);cursor:pointer;background:0 0;border-radius:4px;padding:.7rem 2rem;font-size:1rem}.cancel-btn:hover{background:var(--st-bg-elevated)}.delete-btn{border:1px solid var(--st-error,#f44);color:var(--st-error,#f44);cursor:pointer;background:0 0;border-radius:4px;padding:.25rem .5rem;font-size:.8rem}.delete-btn:hover{background:color-mix(in srgb, var(--st-error) 10%, transparent)}.nav-link,.nav-user{color:var(--st-nav-text,silver);padding:.25rem .5rem;font-size:.85rem;text-decoration:none}.nav-link:hover,.nav-user:hover{color:#fff}.nav-logout{cursor:pointer;color:var(--st-nav-text);background:0 0;border:none;padding:.25rem .5rem;font-size:.85rem}.nav-logout:hover{background:var(--st-bg-elevated);color:var(--st-text-primary)}@media (width<=1024px){.search-bar{width:100%}.nav-link,.nav-logout{text-align:left;border-radius:4px;width:100%;padding:.5rem .75rem;display:block}}@media (width<=600px){.page{padding:.75rem}.filter-bar{gap:.35rem;margin-bottom:1rem}.filter-btn{padding:.35rem .6rem;font-size:.8rem}.filter-group input[type=text]{width:100%;min-width:0}.resource-list{grid-template-columns:1fr;gap:.75rem}.table-scroll{margin-left:-.75rem;margin-right:-.75rem;padding-left:.75rem;padding-right:.75rem}.data-table{font-size:.8125rem}.data-table th,.data-table td{white-space:nowrap;padding:.4rem .5rem}.search-bar{flex-direction:column}.search-bar input[type=search],.search-bar button{width:100%}.admin-form{max-width:100%;margin:1rem auto}.admin-form .submit-btn{width:100%}.form-row{flex-direction:column;gap:0}h1{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.edit-link,.new-link{margin-left:0;font-size:.8rem}.related-section{padding:.75rem}.related-links{gap:.4rem}.search-result{padding:.5rem 0}}@media (width>=601px) and (width<=1024px){.page{padding:1rem 1.5rem}.resource-list{grid-template-columns:repeat(2,1fr)}.admin-form{max-width:100%}}main:has(.editor-page){padding:0;overflow:hidden}.editor-page{flex-direction:column;flex:1;display:flex;overflow:hidden}.toolbar{background:var(--st-bg-elevated);border-bottom:1px solid var(--st-border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem .75rem;display:flex}.toolbar .toolbar-left,.toolbar .toolbar-right{align-items:center;gap:.5rem;display:flex}.toolbar .speed-control{align-items:center;gap:.3rem;font-size:.85rem;display:flex}.toolbar .speed-control input[type=range]{width:80px}.toolbar .speed-control .speed-value{text-align:right;min-width:3em;font-family:var(--st-font-mono);font-size:.8rem}.toolbar .cell-selector,.toolbar .mode-toggle,.toolbar .hex-toggle{align-items:center;gap:.25rem;font-size:.85rem;display:flex}.toolbar .cell-selector select,.toolbar .mode-toggle select,.toolbar .hex-toggle select{border:1px solid var(--st-border);background:var(--st-bg-surface);color:var(--st-text-primary);border-radius:4px;padding:.2rem .4rem;font-size:.85rem}.status-bar{color:var(--st-text-secondary);background:var(--st-bg-surface);border-bottom:1px solid var(--st-border);font-size:.8rem;font-family:var(--st-font-mono);justify-content:space-between;padding:.2rem .75rem;display:flex}.btn{border:1px solid var(--st-border);cursor:pointer;background:var(--st-bg-surface);color:var(--st-text-primary);border-radius:4px;padding:.25rem .6rem;font-size:.85rem}.btn:hover{background:var(--st-bg-elevated)}.btn.btn-run{background:var(--st-success);color:#fff;border-color:var(--st-success)}.btn.btn-run:hover{opacity:.9}.btn.btn-save{background:var(--st-accent);color:#fff;border-color:var(--st-accent)}.btn.btn-save:hover{opacity:.9}.share-link{font-size:.85rem}.share-link a{color:var(--st-accent)}.main-layout{background:var(--st-border);flex:1;grid-template-rows:2fr auto 1.5fr;gap:1px;display:grid;overflow:hidden}.editor-panel{background:var(--st-bg-surface);flex-direction:column;min-height:0;display:flex}.editor-panel .st-code-textarea{border:none;border-radius:0}.editor-panel .st-code-textarea:focus{border-color:#0000}.tape-panel{background:var(--st-bg-surface);min-height:0}.tape-display h3{color:var(--st-text-secondary);background:var(--st-bg-elevated);border-bottom:1px solid var(--st-border);margin:0;padding:.3rem .75rem;font-size:.8rem;font-weight:600}.tape-display .tape-strip{justify-content:center;gap:2px;padding:.5rem;display:flex;overflow-x:auto}.tape-cell{border:1px solid var(--st-border);background:var(--st-bg-surface);min-width:2.5rem;font-family:var(--st-font-mono);border-radius:3px;flex-direction:column;align-items:center;padding:.2rem .3rem;font-size:.75rem;display:flex}.tape-cell .cell-index{color:var(--st-text-secondary);font-size:.6rem}.tape-cell .cell-value{color:var(--st-text-primary);font-size:.85rem;font-weight:600}.tape-cell .cell-pointer{color:var(--st-accent);font-size:.7rem;line-height:1}.tape-cell.tape-cell-current{background:var(--st-accent);color:#fff;border-color:var(--st-accent)}.tape-cell.tape-cell-current .cell-index{color:#ffffffb3}.tape-cell.tape-cell-current .cell-value,.tape-cell.tape-cell-current .cell-pointer{color:#fff}.io-section{background:var(--st-bg-surface);min-height:0;overflow:hidden}.io-panel{background:var(--st-border);gap:1px;height:100%;display:flex}.io-panel .io-input-section,.io-panel .io-output-section{background:var(--st-bg-surface);flex-direction:column;flex:1;min-width:0;display:flex}.io-panel h3{color:var(--st-text-secondary);background:var(--st-bg-elevated);border-bottom:1px solid var(--st-border);margin:0;padding:.3rem .75rem;font-size:.8rem;font-weight:600}.io-panel .input-buffer{resize:none;font-family:var(--st-font-mono);background:var(--st-bg-code);color:var(--st-text-code);border:none;outline:none;flex:1;padding:.5rem .75rem;font-size:.85rem}.io-panel .interactive-input{padding:.5rem .75rem}.io-panel .input-prompt{align-items:center;gap:.5rem;display:flex}.io-panel .input-prompt .prompt-label{color:var(--st-accent);font-family:var(--st-font-mono);font-size:.85rem}.io-panel .input-prompt .char-input{border:1px solid var(--st-accent);width:3rem;font-family:var(--st-font-mono);background:var(--st-bg-code);color:var(--st-text-code);text-align:center;border-radius:4px;outline:none;padding:.25rem .4rem;font-size:.85rem}.io-panel .mode-label{color:var(--st-text-secondary);font-size:.85rem;font-style:italic}.io-panel .output-text{font-family:var(--st-font-mono);white-space:pre-wrap;word-wrap:break-word;color:var(--st-text-code);background:var(--st-bg-code);flex:1;margin:0;padding:.5rem .75rem;font-size:.85rem;overflow-y:auto}.placeholder-text{color:var(--st-text-secondary);text-align:center;padding:2rem}.gallery-page{width:100%;max-width:1100px;margin:0 auto;padding:2rem 1.5rem}.gallery-page h1{margin-bottom:1rem}main:has(.sim-page){padding:0;overflow:hidden}.sim-page{flex-direction:column;flex:1;display:flex;overflow:hidden}.sim-toolbar{background:var(--st-bg-elevated);border-bottom:1px solid var(--st-border);justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem .75rem;display:flex}.sim-toolbar .sim-toolbar-left,.sim-toolbar .sim-toolbar-right{align-items:center;gap:.5rem;display:flex}.sim-toolbar .epoch-counter{font-family:var(--st-font-mono);font-size:.85rem}.sim-main{flex:1;display:flex;overflow:hidden}.sim-canvas-area{background:#111;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;position:relative}.sim-canvas-area canvas{max-width:100%;max-height:100%;image-rendering:pixelated}.sim-canvas-area .overlay-buttons{gap:.25rem;display:flex;position:absolute;top:.5rem;left:.5rem}.sim-canvas-area .overlay-buttons .btn{opacity:.7;padding:.15rem .4rem;font-size:.75rem}.sim-canvas-area .overlay-buttons .btn.active{opacity:1;background:var(--st-accent);color:#fff;border-color:var(--st-accent)}.sim-canvas-placeholder{color:#666;text-align:center}.sim-canvas-placeholder .config-summary{font-family:var(--st-font-mono);font-size:.85rem}.sim-side-panel{background:var(--st-bg-surface);border-left:1px solid var(--st-border);flex-shrink:0;width:280px;padding:.75rem;overflow-y:auto}.sim-side-panel h3{color:var(--st-text-secondary);margin:0 0 .5rem;font-size:.85rem;font-weight:600}.sim-side-panel h3:not(:first-child){margin-top:1rem}.sim-stats .stat-row{justify-content:space-between;padding:.2rem 0;font-size:.85rem;display:flex}.sim-stats .stat-row .stat-label{color:var(--st-text-secondary)}.sim-stats .stat-row .stat-value{font-family:var(--st-font-mono);color:var(--st-text-primary)}.species-row{align-items:center;gap:.4rem;padding:.15rem 0;font-size:.8rem;display:flex}.species-row .species-swatch{border-radius:2px;flex-shrink:0;width:12px;height:12px}.species-row .species-hash{font-family:var(--st-font-mono);color:var(--st-text-secondary)}.species-row .species-count{font-family:var(--st-font-mono);color:var(--st-text-primary);margin-left:auto}.no-data{color:var(--st-text-secondary);font-size:.85rem;font-style:italic}.sim-presets-page{width:100%;max-width:1100px;margin:0 auto;padding:2rem 1.5rem}.sim-presets-page h1{margin-bottom:.5rem}.sim-presets-page .presets-intro{color:var(--st-text-secondary);margin-bottom:1.5rem}.presets-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.preset-card{background:var(--st-bg-surface);border:1px solid var(--st-border);border-radius:8px;padding:1.25rem}.preset-card h3{margin:0 0 .5rem;font-size:1.1rem}.preset-card .preset-desc{color:var(--st-text-secondary);margin-bottom:.75rem;font-size:.9rem}.preset-card .preset-meta{color:var(--st-text-secondary);font-size:.8rem;font-family:var(--st-font-mono);gap:.75rem;margin-bottom:1rem;display:flex}.preset-card .btn-run{width:100%}.sim-config-summary .config-item{justify-content:space-between;padding:.2rem 0;font-size:.8rem;display:flex}.sim-config-summary .config-item .config-label{color:var(--st-text-secondary)}.sim-config-summary .config-item .config-value{font-family:var(--st-font-mono);color:var(--st-text-primary)}@media (width<=768px){main:has(.editor-page){overflow-y:auto}.editor-page{height:auto;min-height:100vh}.main-layout{grid-template-rows:minmax(200px,1fr) auto minmax(200px,1fr)}.toolbar{gap:.3rem;padding:.3rem .5rem}.io-panel,.sim-main{flex-direction:column}.sim-side-panel{border-left:none;border-top:1px solid var(--st-border);width:100%;max-height:40vh}}@media (width<=480px){.toolbar .speed-control input[type=range]{width:60px}}