/* ...existing styles... */
:root { --bg: #fff; --text: #111; --muted: #666; --border: #e5e5e5; --accent: #111; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.hidden { display: none; }

.topbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
h1 { font-size: 20px; margin: 0; }
.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
h2 { font-size: 16px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; }
input, select, textarea { border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 14px; outline: none; transition: border-color .15s ease; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: #bbb; }
textarea { min-height: 100px; resize: vertical; }

button { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: transform .08s ease, box-shadow .12s ease; }
button:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
button:active { transform: scale(0.98); }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.secondary { background: #fff; }

.list { display: grid; gap: 12px; }
.item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.item-head { display: flex; gap: 8px; align-items: center; }
.item-head input { flex: 1; }

.controls { display: flex; gap: 8px; }
.badge { font-size: 12px; color: var(--muted); }

.preview { background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow: auto; max-height: 240px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

.footer { border-top: 1px solid var(--border); padding: 16px 20px; text-align: center; color: var(--muted); font-size: 12px; }

.explorer { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
.tree { border: 1px solid var(--border); border-radius: 10px; padding: 10px; max-height: 320px; overflow: auto; }
.dir > summary { cursor: pointer; font-weight: 600; }
.file { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.file:hover { background: #f4f4f4; }
.viewer { display: grid; gap: 8px; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--muted); font-size: 12px; }
.codeview { min-height: 280px; font-family: Space Mono, ui-monospace, SFMono-Regular, Menlo, monospace; }