/* Фрагменты настоящего кода — безопасный текст, без исполнения. */
.project-grid{align-items:start}.project-code{margin:17px 0 0;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;min-width:0}.project-code>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:13px 15px;cursor:pointer;font-size:12px;color:var(--text);user-select:none}.project-code>summary::-webkit-details-marker{display:none}.project-code>summary:focus-visible{outline:2px solid var(--lime-text);outline-offset:-3px}.code-symbol{font:14px monospace;color:var(--lime-text)}.code-toggle-icon{margin-left:auto;font-size:18px;font-weight:400;color:var(--muted);transition:transform .2s}.project-code[open] .code-toggle-icon{transform:rotate(45deg)}.project-code[open]>summary{border-bottom:1px solid var(--line)}.project-code-body{padding:20px;min-width:0}.code-feature-title{font-size:18px;line-height:1.4;margin:0 0 10px!important}.code-explanation{font-size:12px!important;color:var(--muted);line-height:1.8!important;margin:0 0 16px!important}.code-filebar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #354739;border-bottom:0;background:#19251f;padding:10px 12px;border-radius:10px 10px 0 0;color:#aabcae;font:10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.code-filebar>span{overflow-wrap:anywhere}.code-filebar button{font:10px system-ui,sans-serif;color:#c8e8bb;background:#273d2b;border:1px solid #496347;padding:6px 10px;border-radius:6px;cursor:pointer;min-height:32px}.code-scroll{margin:0;padding:13px 0;overflow:auto;max-height:390px;background:#0b1511;color:#dce9df;border:1px solid #354739;border-radius:0 0 10px 10px;tab-size:2;font:12px/1.85 ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;text-align:left;counter-reset:code-line}.code-scroll>code{display:block;min-width:max-content}.code-line{display:block;white-space:pre;padding:0 17px 0 12px;min-height:1.85em}.code-line:before{counter-increment:code-line;content:counter(code-line);display:inline-block;width:25px;margin-right:17px;text-align:right;color:#647c6b;user-select:none;font-size:10px}.code-token-keyword{color:#bfa4ec}.code-token-string{color:#badf94}.code-token-number{color:#e7b57e}.code-token-comment{color:#799686}.code-token-function{color:#8cced9}.code-walkthrough{padding:0;margin:20px 0 15px;list-style:none;counter-reset:code-step}.code-walkthrough li{position:relative;padding:0 0 12px 31px;margin:0;color:var(--muted);font-size:12px;line-height:1.75}.code-walkthrough li:before{counter-increment:code-step;content:counter(code-step);position:absolute;left:0;top:1px;background:var(--bg);color:var(--lime-text);border:1px solid var(--line);border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:9px}.code-source-note{font-size:10px!important;line-height:1.8!important;color:var(--muted);margin:12px 0!important}.code-panel-footer{display:flex;align-items:center;gap:15px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:13px}.code-panel-footer a,.code-panel-footer button{font-size:11px;color:var(--lime-text)}.code-panel-footer button{background:none;border:0;padding:7px 0;cursor:pointer;font-family:inherit}.code-copy-status{font-size:10px;color:var(--lime-text);min-height:16px;margin:8px 0}.case-code-block{margin:30px 0 35px}.case-code-block .project-code-body{padding:28px}.case-code-block .code-feature-title{font-size:25px}.case-code-block .code-explanation{font-size:14px!important;max-width:780px}.case-code-block .code-scroll{font-size:13px;max-height:480px}.case-code-block .code-walkthrough{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.featured-build>.project-code{margin-top:23px}.code-loading{color:var(--muted);font-size:12px;margin:0}.code-error-retry{font:inherit;font-size:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:8px;padding:8px 12px;cursor:pointer}@media(max-width:760px){.project-code-body{padding:16px}.project-code>summary{font-size:11px;padding:12px}.code-scroll{font-size:11px;max-height:340px}.code-line{padding-left:5px;padding-right:12px}.code-line:before{width:20px;margin-right:12px}.case-code-block .project-code-body{padding:19px}.case-code-block .code-feature-title{font-size:22px}.case-code-block .code-walkthrough{grid-template-columns:1fr;gap:0}.code-filebar{font-size:9px}.case-code-block .code-scroll{font-size:11px;max-height:380px}}@media(prefers-reduced-motion:reduce){.code-toggle-icon{transition:none}}
.code-scroll{scrollbar-width:thin;scrollbar-color:#58725c #101d15}.code-scroll::-webkit-scrollbar{width:8px;height:8px}.code-scroll::-webkit-scrollbar-track{background:#101d15}.code-scroll::-webkit-scrollbar-thumb{background:#58725c;border:2px solid #101d15;border-radius:8px}.code-scroll::-webkit-scrollbar-corner{background:#101d15}
