:root { --green:#367c2b; --green-d:#285d20; --yellow:#ffde00; --bg:#f5f6f2; --line:#dde0d6; --muted:#6b7064; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:#1d2119; }
header { display:flex; gap:14px; align-items:center; padding:12px 20px; background:var(--green); color:#fff; border-bottom:4px solid var(--yellow); }
header .brand { color:#fff; font-weight:700; font-size:18px; text-decoration:none; }
header .muted { color:#d6e6d2; }
.right { margin-left:auto; }
main { padding:20px; max-width:1500px; margin:0 auto; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px; margin-bottom:18px; }
h1,h2,h3 { margin:0 0 10px; }
.muted { color:var(--muted); }
.error { color:#b3261e; }
button, .btn { background:var(--green); color:#fff; border:0; border-radius:6px; padding:8px 14px; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover, .btn:hover { background:var(--green-d); }
button.link { background:none; color:inherit; text-decoration:underline; padding:0; }
button.danger { background:#b3261e; }
button.ghost { background:#fff; color:var(--green); border:1px solid var(--green); }
input[type=text], input[type=password] { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:6px; width:100%; }
.drop { border:2px dashed #a9b99f; border-radius:10px; padding:34px; text-align:center; background:#fafcf7; cursor:pointer; }
.drop.over { background:#eef6e9; border-color:var(--green); }
.progress { height:10px; background:#e7eae1; border-radius:5px; overflow:hidden; margin-top:12px; }
.progress > div { height:100%; width:0; background:var(--green); transition:width .2s; }
table { border-collapse:collapse; width:100%; font-size:13px; }
th, td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { background:#f0f2eb; position:sticky; top:0; }
tr.click { cursor:pointer; } tr.click:hover { background:#f3f8ef; }
.browser { display:grid; grid-template-columns:340px 1fr; gap:18px; align-items:start; }
.tree { max-height:75vh; overflow:auto; font-size:13px; padding:10px; }
.tree details { margin-left:10px; } .tree summary { cursor:pointer; padding:2px 0; font-weight:600; }
.tree .file { display:flex; justify-content:space-between; gap:8px; padding:3px 6px; margin-left:14px; border-radius:4px; cursor:pointer; }
.tree .file:hover { background:#eef6e9; } .tree .file.sel { background:var(--green); color:#fff; }
.tree .file .sz { color:var(--muted); font-size:11px; } .tree .file.sel .sz { color:#d6e6d2; }
.preview { min-width:0; }
.scroll { overflow:auto; max-height:70vh; border:1px solid var(--line); border-radius:6px; }
pre { margin:0; padding:12px; font-size:12px; white-space:pre; }
.tabs { display:flex; gap:6px; margin-bottom:14px; }
.tabs a { padding:7px 14px; border-radius:6px; text-decoration:none; color:var(--green); border:1px solid var(--green); }
.tabs a.on { background:var(--green); color:#fff; }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { background:#eef3e8; border:1px solid #cfdcc4; border-radius:14px; padding:3px 10px; font-size:13px; }
.chip b { color:var(--muted); font-weight:500; margin-left:4px; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.kv { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; font-size:14px; }
body.login { display:grid; place-items:center; min-height:100vh; }
.login-card { width:320px; display:grid; gap:12px; text-align:center; }
@media (max-width: 900px) { .browser { grid-template-columns:1fr; } }
