body { font-size: 16px; }
.side { width: 184px; position: sticky; top: 0; height: 100vh; }
.brand { padding: 10px 8px 26px; }
.brand b { font-size: 26px; letter-spacing: -.8px; }
.side nav a { padding: 11px 12px; margin: 4px 0; font-size: 14px; }
.side-note { position: absolute; bottom: 22px; left: 20px; color: #94a3b8; font-size: 12px; line-height: 1.8; }
.bar { height: 76px; }
.bar h2 { font-size: 22px; }
.hint, .tag, label, button, input, select, textarea, td, th { font-size: 14px; }
button { min-height: 34px; }
button:hover:not(:disabled) { border-color: var(--brand); }
label { margin-bottom: 14px; }
select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.wordmark { font-size: 30px; font-weight: 750; color: #0f172a; }
.wordmark span { color: #64748b; font-size: 11px; letter-spacing: 2px; }
.login-card { max-width: 400px; padding: 34px; }
.login-card h1 { font-size: 22px; margin: 22px 0 8px; }
.tools { gap: 8px; }
.grow { flex: 1; }
.badge { background: #e8efff; color: #2352ac; padding: 3px 8px; border-radius: 5px; font-size: 12px; }
.config-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 18px; }
.config-card { background: white; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.config-card.default { border-top: 3px solid #2563eb; }
.config-card h3 { margin: 10px 0; font-size: 19px; }
.config-card p { color: #64748b; font-size: 14px; }
.config-card .tools { margin-bottom: 0; }
.editor-toolbar { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 0; }
.editor { display: grid; grid-template-columns: 224px minmax(350px,1fr) 310px; gap: 12px; align-items: start; }
.editor-column { border: 1px solid var(--line); background: white; border-radius: 10px; min-width: 0; overflow: auto; max-height: calc(100vh - 195px); }
.column-head { position: sticky; top: 0; z-index: 1; background: white; border-bottom: 1px solid var(--line); padding: 14px; font-weight: 600; }
.tree-content, .properties { padding: 12px; }
.tree-content button { width: 100%; text-align: left; border: 0; margin-bottom: 2px; padding: 7px; background: transparent; display: flex; align-items: center; gap: 6px; }
.tree-content button.selected { color: #1d4ed8; background: #eaf1ff; }
.tree-content .depth1 { padding-left: 18px; }
.tree-content .depth2 { padding-left: 30px; }
.tree-content .depth3 { padding-left: 40px; font-size: 13px; }
[draggable=true] { cursor: grab; }
.drop-over { outline: 2px dashed #2563eb; outline-offset: -2px; }
.properties h3 { font-size: 16px; margin: 3px 0 16px; }
.properties details { border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0; }
.properties summary { font-size: 14px; cursor: pointer; margin-bottom: 10px; }
.properties .tools button { flex: 1; padding: 5px 7px; }
.field-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.field-row label { margin: 0; flex: 1; min-width: 0; }
.field-row input[type=checkbox] { width: auto; }
.field-row .hint { margin: 2px 0; font-size: 12px; }
.field-row button { flex: none; }
.preview-wrap { overflow: auto; min-height: 360px; background: #e7ecf3; padding: 14px; border-radius: 10px; }
.preview { --apk-bg:#061428; --apk-border:#274566; --apk-card:#143055; --apk-cyan:#5ee0ff; --apk-gold:#e8c872; background:var(--apk-bg); color:#e8f2ff; border:2px solid var(--apk-border); border-radius:12px; min-height:340px; display:flex; flex-direction:column; overflow:hidden; }
.preview-title { color:var(--apk-gold); padding:10px 15px; border-bottom:1px solid var(--apk-border); font-size:14px; }
.preview-body { display:flex; flex:1; min-height:280px; }
.preview-nav { width:100px; flex:none; border-right:1px solid var(--apk-border); padding:8px; }
.preview button { background:var(--apk-card); color:#e8f2ff; border-color:var(--apk-border); font-size:12px; min-height:30px; }
.preview-nav button { width:100%; margin-bottom:8px; padding:8px 3px; }
.preview .active { color:var(--apk-cyan); border-color:var(--apk-cyan); }
.preview-content { flex:1; padding:12px; min-width:0; max-height:500px; overflow:auto; }
.preview-content h4 { margin:4px 0 10px; color:var(--apk-gold); font-size:14px; }
.apk-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.apk-card { min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:4px; padding:8px; background:var(--apk-card); border-radius:5px; }
.apk-card input { width:13px; margin:0; accent-color:var(--apk-cyan); }
.apk-card > button { border:0; padding:3px; }
.apk-card .apk-task-title { display:flex; align-items:center; gap:6px; flex:1; min-width:45px; text-align:left; }
.apk-card .atlas-icon { width:28px; height:28px; }
.apk-card small { flex-basis:100%; }
.apk-card small { font-size:11px; color:#93a9bd; }
.preview .field-row { border-color:var(--apk-border); }
.preview label { color:#e8f2ff; font-size:12px; }
.preview input,.preview select { background:#0a1938; border-color:var(--apk-border); color:#e8f2ff; font-size:12px; }
.preview-footer { border-top:1px solid var(--apk-border); display:flex; align-items:center; justify-content:space-between; padding:10px; font-size:11px; color:#93a9bd; }
.preview-footer button { color:var(--apk-cyan); }
.atlas-icon { display:inline-block; width:36px; height:36px; flex:none; background-image:url('/admin/assets/task-atlas.png'); background-size:600% 400%; background-repeat:no-repeat; vertical-align:middle; }
.file-icon { width:36px; height:36px; object-fit:contain; }
.icon-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.icon-grid button { display:flex; flex-direction:column; align-items:center; padding:8px; font-size:11px; }
dialog { border:1px solid #d3dbe5; border-radius:14px; padding:0; width:min(760px,94vw); max-height:88vh; color:#1f2937; box-shadow:0 24px 80px #0f172a35; }
dialog::backdrop { background:#0f172a70; }
.dialog-head { display:flex; align-items:center; gap:14px; padding:18px 22px; border-bottom:1px solid var(--line); }
.dialog-head h3 { margin:0; flex:1; font-size:19px; }
.dialog-body { padding:22px; overflow:auto; max-height:67vh; }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:14px 22px; border-top:1px solid var(--line); }
.plain { white-space:pre-wrap; overflow-wrap:anywhere; }
.diff { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.diff pre { max-height:400px; overflow:auto; background:#f5f7fb; font-size:12px; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.subkeys { max-height:280px; overflow:auto; border:1px solid var(--line); padding:10px; border-radius:6px; }
.subkeys label { padding:7px; border-bottom:1px solid var(--line); margin:0; }
.stack { display:flex; flex-direction:column; gap:12px; }
.help-layout { display:grid; grid-template-columns:300px 1fr; gap:18px; }
.list-item { width:100%; text-align:left; margin-bottom:7px; padding:12px; }
.status { color:#64748b; font-size:14px; }
.status.dirty { color:#9a5b00; }
#message .msg { display:flex; gap:12px; align-items:start; }
#message .msg span { flex:1; white-space:pre-wrap; }
@media (max-width:1350px) { .editor { grid-template-columns:190px minmax(300px,1fr) 270px; } .side { width:160px; } main { padding-left:14px; padding-right:14px; } }
@media (max-width:1100px) { .editor { grid-template-columns:190px 1fr; } .editor > .editor-column:last-child { grid-column:1 / -1; max-height:none; } .properties { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; } .properties h3,.properties > .tools,.properties > details,.properties > .hint { grid-column:1/-1; } }
@media (max-width:760px) { .side { height:100vh; position:fixed; } .editor { grid-template-columns:1fr; } .editor-column { max-height:380px; } .help-layout { grid-template-columns:1fr; } .properties { display:block; } .who { font-size:12px; } }
