:root { color-scheme: dark; --bg: #14110f; --surface: #1f1a16; --surface-2: #241e19; --border: #3a332c; --text: #f2ede4; --text-muted: #a89a86; --accent: #c9a876; } * { box-sizing: border-box; } body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); } .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; } .topbar h1 { font-size: 1.05rem; margin: 0; } .topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; } .status { font-size: 0.8rem; color: var(--text-muted); min-width: 6rem; } .status.error { color: #f2b8b8; } .status.ok { color: #b8d9a8; } button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 0.5rem 0.9rem; } button:hover { border-color: var(--accent); } button:disabled { opacity: 0.5; cursor: not-allowed; } .btn-accent { background: var(--accent); color: #14110f; border-color: var(--accent); font-weight: 600; } .btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); } .layout { display: flex; align-items: flex-start; max-width: 1200px; margin: 0 auto; } .section-nav { position: sticky; top: 3.6rem; flex: 0 0 220px; display: flex; flex-direction: column; gap: 0.15rem; padding: 1.25rem 1rem; max-height: calc(100vh - 3.6rem); overflow-y: auto; } .section-nav .nav-group-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 1rem 0 0.3rem; padding: 0 0.6rem; } .section-nav .nav-group-label:first-child { margin-top: 0; } .section-nav button { display: block; width: 100%; text-align: left; font-size: 0.85rem; color: var(--text-muted); background: transparent; border: 1px solid transparent; padding: 0.45rem 0.6rem; border-radius: 6px; } .section-nav button:hover { color: var(--text); border-color: var(--border); } .section-nav button.active { color: var(--accent); background: var(--surface); border-color: var(--border); font-weight: 600; } main { flex: 1; min-width: 0; padding: 1.5rem 1.5rem 4rem; } .section-block { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; } .section-block[hidden] { display: none; } .section-block h2 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--accent); } @media (max-width: 820px) { .layout { flex-direction: column; } .section-nav { position: static; flex: none; width: 100%; max-height: none; flex-direction: row; flex-wrap: wrap; padding: 1rem 1.5rem 0; } .section-nav .nav-group-label { width: 100%; margin: 0.5rem 0 0.2rem; padding: 0; } .section-nav button { width: auto; } } .field { margin-bottom: 1rem; } .field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; } .field input[type="text"], .field input[type="email"], .field textarea { width: 100%; padding: 0.55rem 0.7rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 0.9rem; } .field textarea { resize: vertical; min-height: 4.5rem; } .field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; } .field-bool { display: flex; align-items: center; gap: 0.5rem; } .field-bool input { width: auto; } .field-bool label { margin: 0; } .field select { width: 100%; padding: 0.55rem 0.7rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 0.9rem; } .size-field { display: flex; align-items: center; gap: 0.75rem; } .size-field input[type="range"] { flex: 1; } .size-value { font-size: 0.8rem; color: var(--text-muted); min-width: 3.5rem; text-align: right; } .group-field { border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1rem 0.2rem; margin-bottom: 1rem; } .group-field legend { font-size: 0.8rem; color: var(--accent); padding: 0 0.4rem; } .color-field { display: flex; align-items: flex-start; gap: 0.9rem; flex-wrap: wrap; } .color-swatch { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--border); background-image: linear-gradient(45deg, #444 25%, transparent 25%), linear-gradient(-45deg, #444 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #444 75%), linear-gradient(-45deg, transparent 75%, #444 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; } .color-field-controls { display: flex; flex-direction: column; gap: 0.5rem; min-width: 220px; flex: 1; } .color-field-row { display: flex; gap: 0.5rem; align-items: center; } .color-field-row input[type="color"] { width: 2.5rem; height: 2.2rem; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; } .color-hex { width: 8rem; font-family: monospace; } .color-channels { display: grid; grid-template-columns: 1rem 1fr 2.4rem; gap: 0.35rem 0.5rem; align-items: center; } .channel-label { font-size: 0.72rem; color: var(--text-muted); } .channel-value { font-size: 0.75rem; color: var(--text-muted); text-align: right; } .richtext-toolbar { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.4rem; flex-wrap: wrap; } .rt-btn { padding: 0.3rem 0.65rem; font-size: 0.85rem; min-width: 2.1rem; } .rt-btn.rt-italic { font-style: italic; } .rt-btn.rt-underline { text-decoration: underline; } .rt-font-select { font-size: 0.8rem; padding: 0.3rem 0.5rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); max-width: 11rem; } .richtext-editable { width: 100%; min-height: 4.5rem; padding: 0.55rem 0.7rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 0.9rem; line-height: 1.5; } .richtext-editable:focus { outline: 2px solid var(--accent); outline-offset: -1px; } .image-field { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; } .image-preview { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 1px dashed var(--border); } .image-field-controls { display: flex; flex-direction: column; gap: 0.4rem; } .image-field-controls input[type="text"] { width: 220px; } .list-item-card { border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.75rem; background: var(--surface-2); } .list-item-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; } .list-item-card-header span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .list-string-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; } .list-string-row input { flex: 1; } .remove-btn { background: transparent; border-color: transparent; color: #d99; padding: 0.3rem 0.5rem; } .add-btn { font-size: 0.8rem; } .build-log[hidden] { display: none; } .build-log { position: fixed; inset: auto 1.5rem 1.5rem auto; width: min(560px, 90vw); max-height: 60vh; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; } .build-log-header { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); } .build-log pre { margin: 0; padding: 1rem; overflow: auto; font-size: 0.75rem; white-space: pre-wrap; }