:root{color-scheme:light;--ink:#202124;--muted:#687078;--line:#e7e9eb;--soft:#f5f7f8;--accent:#176b87;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);line-height:1.65}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
.site-header,.site-footer{max-width:1100px;margin:auto;padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;align-items:center}.site-header nav{display:flex;gap:18px;flex-wrap:wrap}.brand{font-weight:800;color:var(--ink)}.container{max-width:1000px;min-height:70vh;margin:auto;padding:48px 24px 72px}.site-footer{border-top:1px solid var(--line);border-bottom:0;color:var(--muted);font-size:.9rem}
h1{font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.12;letter-spacing:-.04em;margin:.2em 0 .4em}h2{line-height:1.25}.subtitle{font-size:1.18rem;color:var(--muted);max-width:760px}.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:700}.hero{padding:24px 0 40px}.button-link{display:inline-block;background:var(--ink);color:white;padding:10px 16px;border-radius:8px}.series-list,.article-list,.idea-list{list-style:none;padding:0}.series-card,.article-card,.idea-card{padding:20px 0;border-bottom:1px solid var(--line)}.series-card h2,.article-card h2{margin:4px 0}.muted,.article-meta{color:var(--muted);font-size:.9rem}.tag-list{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tag{background:var(--soft);padding:4px 10px;border-radius:30px;font-size:.82rem}.cover{width:100%;max-height:440px;object-fit:cover;border-radius:12px;margin:22px 0}.article-content{font-size:1.06rem}.article-content h2{margin-top:2em}.article-content img{max-width:100%;height:auto}.article-content pre{overflow:auto;background:#f3f4f5;padding:16px;border-radius:9px}.article-content code{font-family:ui-monospace,Consolas,monospace}.article-content .mermaid{background:white;text-align:center;overflow:auto}.article-nav{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:24px 0;margin-top:40px}.status{font-size:.75rem;border-radius:20px;padding:3px 8px;background:#eee;color:#333}.status-ready{background:#e5f2fb;color:#15577a}.status-imported{background:#fff2d7;color:#805500}.status-published{background:#e3f5e9;color:#176238}.status-draft{background:#eee}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:24px 0}.stats div{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column}.stats strong{font-size:1.8rem}.stats span{font-size:.85rem;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.queue-item{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.queue-item p,.idea-card p{margin:4px 0;color:var(--muted)}.notice{background:var(--soft);border-left:3px solid var(--accent);padding:14px;margin-top:30px}.share-panel{margin-top:30px;padding:16px;background:var(--soft);border-radius:10px}.share-panel textarea{width:100%;min-height:150px;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}.copy-button{margin-top:8px;padding:9px 14px;border:0;border-radius:7px;background:var(--ink);color:white;cursor:pointer}
@media(max-width:650px){.site-header{align-items:flex-start;flex-direction:column}.container{padding-top:32px}.queue-item{flex-direction:column}}

.studio-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0}.studio-controls select,.studio-controls button{padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:white;font:inherit}.studio-controls button{cursor:pointer;background:var(--ink);color:white}.diagram-preview{border:1px solid var(--line);border-radius:10px;padding:20px;overflow:auto;min-height:180px}.diagram-preview svg{max-width:100%}#diagram-source{width:100%;min-height:280px;padding:14px;border:1px solid var(--line);border-radius:9px;font:14px/1.5 ui-monospace,Consolas,monospace}.error{color:#a22}
