:root { color-scheme: dark; --bg: #07080a; --shell: rgba(10, 10, 14, 0.96); --sidebar: rgba(7, 8, 11, 0.9); --surface: rgba(255, 255, 255, 0.034); --surface-strong: rgba(255, 255, 255, 0.062); --field: rgba(255, 255, 255, 0.045); --text: rgba(255, 255, 255, 0.93); --muted: rgba(255, 255, 255, 0.58); --faint: rgba(255, 255, 255, 0.36); --accent: #b9ff4a; --accent-text: #071005; --danger: #ff6f6f; --radius-lg: 1.35rem; --radius-md: 1.1rem; } * { box-sizing: border-box; } html { min-height: 100%; background: var(--bg); } body { margin: 0; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 14% 78%, rgba(185, 255, 74, 0.22), transparent 24rem), radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.08), transparent 18rem), linear-gradient(145deg, #090a0c 0%, #050608 60%, #0b0c0f 100%); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } button, input, textarea { font: inherit; } button { appearance: none; } .admin-backdrop { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%), rgba(0, 0, 0, 0.58); backdrop-filter: blur(26px); } .admin-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 296px minmax(0, 1fr); width: min(88rem, calc(100vw - 7.5rem)); height: min(88vh, 920px); margin: 6vh auto; overflow: hidden; border-radius: 1.65rem; background: var(--shell); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42); } .sidebar { min-height: 0; overflow: auto; padding: 1rem 0.75rem 1.25rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 26rem), var(--sidebar); box-shadow: inset -1px 0 rgba(255, 255, 255, 0.035); } .sidebar-head { display: grid; gap: 1rem; padding: 0.25rem 0 1.15rem; } .back-link { display: inline-flex; align-items: center; gap: 0.75rem; width: max-content; padding: 0.45rem 0.65rem; color: var(--text); font-size: 0.98rem; text-decoration: none; } .workspace-card { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); align-items: center; gap: 0.85rem; min-height: 4rem; padding: 0.75rem; border-radius: 1.35rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)), rgba(255, 255, 255, 0.035); } .workspace-logo, .empty-icon { display: grid; place-items: center; width: 2.9rem; aspect-ratio: 1; border-radius: 1rem; background: #050608; color: var(--accent); font-size: 0.78rem; font-weight: 800; } .workspace-name { overflow: hidden; color: var(--text); font-size: 0.98rem; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; } .workspace-role, .breadcrumb, .panel-note, .field-path, .block-meta, .group-desc, .status, .empty-state p { color: var(--muted); } .workspace-role { margin-top: 0.12rem; font-size: 0.82rem; } .regions { display: grid; gap: 1.45rem; padding-bottom: 2rem; } .region-title { margin: 0 0 0.55rem; padding: 0 0.65rem; color: rgba(255, 255, 255, 0.64); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; } .block-list { display: grid; gap: 0.45rem; } .block-btn { display: grid; width: 100%; min-height: 3rem; border: 0; border-radius: var(--radius-md); background: transparent; color: rgba(255, 255, 255, 0.74); cursor: pointer; gap: 0.22rem; padding: 0.72rem 0.85rem; text-align: left; } .block-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); } .block-btn.active { background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(255, 255, 255, 0.05); color: var(--accent); box-shadow: inset 2px 0 var(--accent); } .block-btn.disabled { color: rgba(255, 255, 255, 0.3); } .block-name { overflow: hidden; font-size: 0.94rem; font-weight: 780; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; } .block-meta { overflow: hidden; font-size: 0.74rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; } .editor { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; padding: 1.6rem 1.9rem 1.5rem; } .editor-head, .actions, .button-row, .toggle-row, .card-head, .panel-head, .group-head { display: flex; align-items: center; } .editor-head { justify-content: space-between; gap: 1rem; padding: 0 0 1.25rem; } h1, h2, h3 { margin: 0; letter-spacing: 0; } .editor-head h1 { color: rgba(255, 255, 255, 0.86); font-size: 1.2rem; font-weight: 820; line-height: 1.2; } .breadcrumb { margin-top: 0.4rem; font-size: 0.75rem; line-height: 1.3; } .editor-head h2 { margin-top: 1.35rem; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 740; line-height: 1.02; } .actions, .button-row { gap: 0.55rem; flex-wrap: wrap; justify-content: flex-end; } .primary-btn, .ghost-btn, .danger-btn, .icon-btn { min-height: 2.75rem; border: 0; border-radius: 1.25rem; cursor: pointer; padding: 0.72rem 1.08rem; text-decoration: none; transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease; } .primary-btn { min-width: 12rem; background: var(--accent); color: var(--accent-text); font-weight: 760; } .ghost-btn, .icon-btn { background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(255, 255, 255, 0.045); color: var(--text); font-weight: 700; } .danger-btn { background: rgba(255, 111, 111, 0.12); color: #ffd2d2; font-weight: 740; } .icon-btn { width: 2.75rem; padding: 0; } .primary-btn:hover, .ghost-btn:hover, .danger-btn:hover, .icon-btn:hover { transform: translateY(-1px); } .primary-btn:disabled, .ghost-btn:disabled, .danger-btn:disabled, .icon-btn:disabled, input:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.42; transform: none; } .empty-state { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-self: start; gap: 1rem; max-width: 44rem; margin-top: 1.4rem; padding: 1.25rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)), var(--surface); backdrop-filter: blur(18px); } .empty-state h3 { font-size: 1.05rem; line-height: 1.25; } .empty-state p { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.45; } .block-form { min-height: 0; overflow: auto; display: grid; gap: 1.15rem; padding: 0 0.1rem 5rem; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; } .hidden { display: none !important; } .settings-card, .content-panel, .json-details { border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)), var(--surface); backdrop-filter: blur(18px); } .settings-card { padding: 1.25rem; } .block-meta-card { margin-top: 0.1rem; } .card-head, .panel-head, .group-head { justify-content: space-between; gap: 1rem; } .card-head h3, .panel-head h3, .group-head h3 { color: rgba(255, 255, 255, 0.9); font-size: 1rem; font-weight: 820; line-height: 1.2; } .section-kicker { margin-bottom: 0.35rem; color: rgba(255, 255, 255, 0.58); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.22em; text-transform: uppercase; } .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.2rem; } .content-panel { display: grid; gap: 1rem; padding: 1.2rem; } .panel-note { max-width: 22rem; font-size: 0.8rem; line-height: 1.35; text-align: right; } .content-fields { display: grid; gap: 1rem; } .content-group { display: grid; gap: 1rem; padding: 1.1rem; border-radius: 1.25rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)), rgba(255, 255, 255, 0.026); } .group-desc { margin: 0.2rem 0 0; font-size: 0.78rem; line-height: 1.35; } .group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; } .field-control { display: grid; gap: 0.45rem; min-width: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; font-weight: 730; } .field-control.wide { grid-column: 1 / -1; } .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; } .field-label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .field-kind { flex: 0 0 auto; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.52); font-size: 0.68rem; font-weight: 820; letter-spacing: 0.04em; padding: 0.2rem 0.45rem; text-transform: uppercase; } .field-path { overflow: hidden; font-size: 0.68rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } input, textarea { width: 100%; border: 0; outline: 0; border-radius: 1.18rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)), var(--field); color: var(--text); padding: 0.88rem 0.95rem; } input:focus, textarea:focus { box-shadow: inset 0 0 0 1px rgba(185, 255, 74, 0.3), 0 0 0 4px rgba(185, 255, 74, 0.055); } textarea { min-height: 8rem; resize: vertical; } .toggle-row { justify-content: flex-start; gap: 0.65rem; color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; font-weight: 780; } .toggle-row input { width: 2.7rem; height: 1.45rem; margin: 0; appearance: none; border-radius: 999px; background: rgba(255, 255, 255, 0.14); padding: 0.18rem; } .toggle-row input::before { display: block; width: 1.08rem; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.82); content: ""; transition: transform 0.16s ease; } .toggle-row input:checked { background: var(--accent); } .toggle-row input:checked::before { background: #050608; transform: translateX(1.22rem); } .empty-note { color: var(--muted); font-size: 0.9rem; line-height: 1.42; } .json-details { padding: 1rem 1.2rem; } .json-details summary { cursor: pointer; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; font-weight: 800; } .json-field { display: grid; gap: 0.7rem; margin-top: 1rem; color: var(--muted); font-size: 0.82rem; font-weight: 720; } .json-field textarea { min-height: 24rem; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; line-height: 1.45; } .status { min-height: 1.25rem; margin: 1rem 0 0; overflow: hidden; font-size: 0.78rem; line-height: 1.35; text-overflow: ellipsis; white-space: pre-wrap; } @media (max-width: 1100px) { body { overflow: auto; } .admin-shell { grid-template-columns: 1fr; width: min(100vw - 1.5rem, 58rem); height: auto; min-height: calc(100vh - 1.5rem); margin: 0.75rem auto; } .sidebar { max-height: 38vh; box-shadow: inset 0 -1px rgba(255, 255, 255, 0.035); } .editor { min-height: 62vh; } .editor-head { align-items: flex-start; flex-direction: column; } .actions { justify-content: flex-start; } } @media (max-width: 720px) { .admin-shell { width: 100vw; min-height: 100vh; margin: 0; border-radius: 0; } .editor { padding: 1.1rem; } .field-grid, .group-grid { grid-template-columns: 1fr; } .panel-head, .card-head { align-items: flex-start; flex-direction: column; } .panel-note { text-align: left; } }