:root { font-family: Arial, Helvetica, sans-serif; color: #20313a; background: #f3f5f2; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #387467; outline-offset: 3px; }
[hidden] { display: none !important; }
.topbar { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 4vw; background: white; border-bottom: 1px solid #dfe5e1; font-size: 14px; font-weight: 600; }
.back { color: #3c6159; text-decoration: none; font-weight: 500; }
main { max-width: 1450px; margin: auto; padding: 40px 4vw 80px; }
h1 { margin: 0 0 9px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1rem; }
p { color: #60716d; line-height: 1.5; }
button { border: 0; border-radius: 8px; min-height: 40px; padding: 9px 15px; font-size: 13px; font-weight: 600; }
.primary { background: #315b51; color: white; }
.primary:hover { background: #24483f; }
.secondary { color: #315b51; background: #e6eeea; }
.secondary:hover { background: #d8e6df; }
.quiet { background: transparent; color: #4d6860; }
.quiet:hover { background: #edf2ef; }
label { display: block; margin: 16px 0 0; font-size: 12px; font-weight: 700; color: #435a53; }
input:not([type=file]) { width: 100%; display: block; margin-top: 7px; min-height: 41px; border: 1px solid #cddbd3; border-radius: 7px; padding: 9px 11px; color: #20313a; background: #fff; font-size: 14px; font-weight: 400; }
input[type=file] { display: block; max-width: 100%; margin: 17px 0; font-size: 13px; }
.motion-settings { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e1e9e3; }
.motion-settings .checkbox-label { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; }
.motion-settings input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: #315b51; }
.motion-settings input[type=range] { display: block; width: 100%; margin: 12px 0 0; accent-color: #315b51; }
.motion-settings p { margin: 10px 0 0; font-size: 12px; }
.auth-panel { max-width: 430px; margin: 9vh auto 0; padding: 32px; border: 1px solid #dce5df; border-radius: 14px; background: white; box-shadow: 0 18px 50px rgb(35 58 48 / .06); }
.auth-panel form button { width: 100%; margin-top: 24px; }
.message { min-height: 24px; margin: 13px 0; font-size: 13px; font-weight: 600; color: #315b51; }
.message.error { color: #a53636; }
.editor-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.editor-header p { margin: 0; }
.editor-grid { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr); gap: 34px; align-items: start; }
.controls { display: grid; gap: 18px; }
.settings-section { padding: 23px; border: 1px solid #dce5df; border-radius: 12px; background: white; }
.settings-section > p { font-size: 13px; margin: 9px 0 0; }
.section-heading, .group-heading, .link-editor, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button-row { justify-content: flex-start; flex-wrap: wrap; }
.group-editor { margin-top: 18px; padding: 16px; border: 1px solid #dce5df; border-radius: 10px; background: #f9fbf9; }
.group-heading { align-items: end; }
.group-heading label { flex: 1; margin: 0; }
.group-actions { display: flex; gap: 4px; align-self: end; }
.group-actions button, .link-editor button { min-height: 38px; padding: 8px 9px; }
.link-editor { margin-top: 12px; align-items: end; }
.link-editor label { margin: 0; flex: 1; min-width: 0; }
.link-editor label:first-child { flex: .8; }
.add-link { margin-top: 15px; }
.preview-wrap { position: sticky; top: 22px; }
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.preview-head p { font-size: 12px; margin: 0; }
.preview { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #40565e url('/background.jpg') center / cover; box-shadow: 0 20px 50px rgb(22 42 38 / .14); }
.preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-shade { position: absolute; inset: 0; background: rgb(10 27 33 / .38); }
.preview-content { position: relative; width: min(100% - 32px, 690px); color: white; }
.preview-content h3 { text-align: center; margin: 0 0 30px; font: 400 clamp(2rem, 4vw, 3.3rem)/1 Georgia, serif; }
#preview-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview-category { min-width: 0; padding: 18px; border: 1px solid rgb(255 255 255 / .4); border-radius: 10px; background: rgb(20 39 48 / .48); backdrop-filter: blur(12px); }
.preview-category strong { display: block; margin-bottom: 13px; font: 400 1.25rem Georgia, serif; }
.preview-category span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 11px; font-size: 12px; }
@media(max-width: 1050px) { .editor-grid { grid-template-columns: 1fr; } .preview-wrap { position: static; order: -1; } }
@media(max-width: 600px) { .editor-header { align-items: start; flex-direction: column; } .editor-header .primary { width: 100%; } .settings-section { padding: 17px; } .group-heading { align-items: start; flex-wrap: wrap; } .group-actions { align-self: auto; } .link-editor { align-items: stretch; flex-wrap: wrap; } .link-editor label { flex: 1 1 100% !important; } .preview { min-height: 470px; } #preview-categories { grid-template-columns: 1fr; } .preview-category { padding: 12px 16px; } .preview-category span { display: inline-block; margin: 6px 10px 0 0; } }
