*{box-sizing:border-box}
body{margin:0;font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#eceff1;color:#1d2125}
a{color:#1a5fb4}
.bar{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;padding:.7rem 1.2rem;background:#263238;color:#fff}
.bar a{color:#fff;text-decoration:none}
.bar nav{display:flex;gap:1.1rem;flex:1;flex-wrap:wrap}
.bar nav a:hover{text-decoration:underline}
.brand{font-weight:700}
.link-btn{background:none;border:0;color:#fff;cursor:pointer;font:inherit}
.box{width:min(1000px,100% - 2rem);margin:1.6rem auto 3rem}
h1{font-size:1.6rem;margin:0 0 1rem}
.head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.head h1{margin:0}
.card{background:#fff;border:1px solid #cfd8dc;padding:1.2rem;margin-bottom:1.2rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1rem;font:inherit;font-weight:600;color:#fff;background:#2e7d32;border:0;cursor:pointer;text-decoration:none}
.btn:hover{background:#256528}
.btn-sm{padding:.3rem .65rem;font-size:.9rem;background:#455a64}
.btn-sm:hover{background:#37474f}
.btn-danger{background:#c62828}
.btn-danger:hover{background:#a51f1f}
.btn-ghost{background:transparent;color:#1d2125;border:1px solid #90a4ae}
.btn-ghost:hover{background:#dfe5e8}
.actions{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.4rem}
.stat{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.stat strong{font-size:2.2rem}
.table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #cfd8dc;margin-bottom:1.4rem}
.table th,.table td{padding:.6rem .8rem;border-bottom:1px solid #e3e8ea;text-align:left;vertical-align:middle}
.table th{background:#f5f7f8;font-size:.85rem;text-transform:uppercase;letter-spacing:.04em}
.row-actions{display:flex;gap:.4rem;justify-content:flex-end}
.row-actions form{margin:0}
.editor label,.login label{display:grid;gap:.3rem;margin-bottom:1rem;font-weight:600;font-size:.92rem}
.editor input,.editor select,.editor textarea,.login input{font:inherit;font-weight:400;padding:.55rem .65rem;border:1px solid #90a4ae;background:#fff;width:100%}
.editor input:focus,.editor select:focus,.editor textarea:focus,.login input:focus{outline:2px solid #1a73e8;outline-offset:0}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.cover-row{display:grid;grid-template-columns:1fr auto auto;gap:.8rem;align-items:end}
.thumb{width:44px;height:44px;object-fit:cover;border:1px solid #cfd8dc;margin-bottom:1rem;background:#fff}
.thumb[hidden]{display:none}
.cover-row .btn{margin-bottom:1rem}
.check{display:flex!important;align-items:center;gap:.5rem}
.check input{width:auto}
.md-tools{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:.6rem;font-size:.9rem}
.md-tools[hidden]{display:none}
.editor textarea{font-family:ui-monospace,Menlo,Consolas,monospace;margin-bottom:1rem}
.login{max-width:380px;margin:4rem auto}
.login h1{display:flex;gap:.6rem;align-items:center}
.flash{padding:.7rem 1rem;margin:0 0 1rem;font-weight:600}
.flash-ok{background:#c8e6c9;color:#1b5e20}
.flash-error{background:#ffcdd2;color:#b71c1c}
.msg header{display:flex;flex-direction:column;margin-bottom:.5rem}
.msg header span{font-size:.88rem;color:#546e7a}
.msg p{white-space:pre-wrap;margin:0 0 .8rem}
.msg.is-new{border-left:5px solid #1a73e8}
.msg form{margin:0}
@media (max-width:640px){.cols,.cover-row{grid-template-columns:1fr}}
.lang-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem}
.lang-tab{padding:.45rem .9rem;border:1px solid #90a4ae;background:#fff;color:#1d2125;text-decoration:none;font-weight:600}
.lang-tab.is-on{background:#1a73e8;border-color:#1a73e8;color:#fff}
.lang-tab:not(.has-version){border-style:dashed}
.lang-tab small{font-weight:400}
.lang-note{margin:0 0 1rem;color:#5f6b73;font-size:.9rem}
.pill{display:inline-block;min-width:2rem;margin-right:.2rem;padding:.1rem .35rem;text-align:center;border:1px solid #90a4ae;color:#90a4ae;font-size:.75rem;font-weight:600}
.pill.is-on{background:#1b5e20;border-color:#1b5e20;color:#fff}

.searchbar{position:relative;margin-bottom:1rem}
.searchbar i{position:absolute;left:.8rem;top:50%;transform:translateY(-50%);color:#546e7a}
.searchbar input{width:100%;padding:.6rem .7rem .6rem 2.3rem;font:inherit;border:1px solid #90a4ae;background:#fff}
.searchbar input:focus{outline:2px solid #1a73e8}
.more-row{text-align:center;margin:1.2rem 0}
[hidden]{display:none!important}
.mc-sm{vertical-align:middle}
.tox .mcp .mcp-bar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.tox .mcp .mcp-q{flex:1;min-width:220px;padding:8px 10px;font:inherit;border:1px solid #90a4ae}
.tox .mcp .mcp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px;max-height:55vh;overflow:auto;padding:4px}
.tox .mcp .mcp-item{padding:6px;background:#f1f3f4;border:1px solid #cfd8dc;cursor:pointer}
.tox .mcp .mcp-item:hover{background:#c8e6c9;border-color:#2e7d32}
.tox .mcp .mcp-item img{display:block;width:32px;height:32px;margin:0 auto;image-rendering:pixelated}
.tox .mcp .mcp-count{margin:8px 0 0;color:#546e7a;font-size:13px}
.lang-box{border:1px solid #cfd8dc;margin:0 0 1rem;padding:.8rem 1rem 0}
.lang-box legend{font-weight:700;padding:0 .4rem}

.brand{display:inline-flex;align-items:center;gap:.7rem;color:#fff;text-decoration:none}
.brand-img{display:inline-grid;place-items:center;flex:none;width:58px;height:64px;padding:2px;background:#a9d8ff;border:2px solid #0006}
.brand-img img{position:relative;left:-2px;display:block;max-width:100%;max-height:100%;image-rendering:pixelated}
.brand-name{font-weight:800;font-size:1.25rem;letter-spacing:.01em}
.brand-img-lg{width:170px;height:188px;padding:6px}
.hero-brand{display:flex;align-items:center;justify-content:center;gap:1.4rem;flex-wrap:wrap;margin:0 0 .6rem;color:#fff}
.hero-brand .brand-name{font-size:clamp(2rem,6vw,3.6rem);text-shadow:3px 3px 0 #000}
.site-state{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap}
.site-state p{margin:.3rem 0 0}
.site-state form{margin:0}

.plugin-cell{display:flex;align-items:center;gap:.7rem}
.plugin-cell .thumb{margin:0}
.thumb-lg{width:72px;height:72px}
.check-row{display:flex;gap:1.2rem;flex-wrap:wrap;margin-bottom:.6rem}
.check-row .check{margin-bottom:0}
.gallery-box{padding-bottom:1rem}
.gallery-row{display:grid;grid-template-columns:72px 1fr auto auto auto;gap:.6rem;align-items:center;margin-bottom:.6rem}
.gallery-row input{margin:0}
.gallery-thumb{width:72px;height:48px;object-fit:cover;border:1px solid #cfd8dc}
.editor input[type=file]{padding:.4rem}
@media (max-width:640px){.gallery-row{grid-template-columns:72px 1fr}}
