:root { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #252a30; background: #f3f5f6; font-size: 15px; letter-spacing: 0; --accent: #126d60; --border: #cbd3d8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.admin-header { min-height: 76px; padding: 16px 32px; display: flex; align-items: center; gap: 24px; background: #fafcfd; border-bottom: 1px solid var(--border); }
.brand img { width: 110px; height: 34px; object-fit: contain; }
h1 { font-size: 20px; margin: 0; font-weight: 650; }
h2 { font-size: 17px; margin: 0; }
nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1600px; margin: 0 auto; padding: 24px 32px; }
#message { min-height: 24px; margin: 0 0 24px; color: #37534e; overflow-wrap: anywhere; }
#message.error { color: #a32a2a; }
.editor { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; }
.settings { padding-right: 28px; border-right: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-heading span, .field-meta, .published-at { color: #5a656f; font-size: 13px; }
label { display: block; margin-bottom: 8px; font-weight: 550; font-size: 14px; }
input, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="color"]), textarea { width: 100%; border: 1px solid #aebbc4; border-radius: 4px; background: #fafcfd; color: #252a30; padding: 10px 12px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field-meta { display: block; text-align: right; margin: 5px 0 20px; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 20px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
input[type="color"] { width: 52px; height: 44px; padding: 4px; border: 1px solid #aebbc4; border-radius: 4px; background: #fafcfd; cursor: pointer; }
fieldset { border: 0; border-top: 1px solid var(--border); padding: 20px 0 0; margin: 28px 0; }
legend { padding: 0 12px 0 0; font-weight: 600; }
.style-row { display: grid; grid-template-columns: 56px 80px 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.style-row label { margin: 0; }
.style-row output { font-size: 13px; color: #5a656f; }
button { min-height: 44px; padding: 10px 15px; border: 1px solid #aebbc4; border-radius: 4px; color: #252a30; background: #fafcfd; cursor: pointer; font-weight: 550; }
button:hover { background: #e9eeef; }
button.primary { color: #f6fcfa; background: var(--accent); border-color: var(--accent); }
button.primary:hover { background: #0d584e; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #c58a27; outline-offset: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.settings .actions { display: grid; grid-template-columns: 1fr; }
.restore { margin-top: 20px; width: 100%; }
.preview-viewport { height: auto; aspect-ratio: 16 / 9; border: 1px solid #b3bdc7; }
.published-at { margin-top: 16px; line-height: 1.6; }
.login-panel { max-width: 400px; margin: 60px auto; }
.login-panel h2 { margin-bottom: 28px; }
.login-panel input { margin-bottom: 24px; }
.login-panel .primary { width: 100%; }
dialog { max-width: min(480px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: 6px; padding: 28px; color: #252a30; background: #fafcfd; }
dialog::backdrop { background: rgba(18, 25, 30, .55); }
dialog p { line-height: 1.7; margin: 20px 0; }
dialog .actions { justify-content: flex-end; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; gap: 28px; } .settings { border-right: 0; padding-right: 0; } .preview-section { grid-row: 1; } .settings .actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .admin-header { flex-wrap: wrap; gap: 12px; padding: 16px; } .brand img { width: 90px; } h1 { font-size: 18px; } nav { width: 100%; justify-content: flex-end; } main { padding: 20px 16px; } .settings .actions { grid-template-columns: 1fr; } }
