@font-face{font-family:Inter;src:url('/static/activity-fonts/inter-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/static/activity-fonts/inter-cyrillic-400-normal.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0400-052F,U+2116}
:root{font-family:Inter,Arial,sans-serif;color:#f5f5f5;background:#090909;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 80% -20%,#30201855,transparent 38%),#090909}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #272727;padding:0 max(28px,calc((100vw - 1120px)/2));background:#111}.brand,.top-actions{display:flex;align-items:center;gap:22px}.wordmark{position:relative;font-size:23px;font-weight:900;letter-spacing:.14em;line-height:1}.wordmark span{color:#fff}.wordmark i{position:absolute;width:9px;height:9px;background:#ff521d;clip-path:polygon(100% 0,0 65%,100% 100%);right:16px;top:-3px}.brand-divider{height:24px;width:1px;background:#383838}.brand>span:last-child{font-size:13px;color:#aaa}.bot-label{font-size:12px;color:#888;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{max-width:1120px;padding:44px 28px 90px;margin:auto}.intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}.eyebrow{color:#ff521d;font-size:11px;font-weight:800;letter-spacing:.18em;margin:0 0 12px}.intro h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.05em;line-height:1;margin:0 0 14px}.intro p:not(.eyebrow){color:#aaa;margin:0;max-width:650px;line-height:1.5}.intro a{color:#eee;text-decoration:none;white-space:nowrap;font-size:13px;border:1px solid #3b3b3b;padding:12px 16px;border-radius:5px}.intro a:hover,.ghost:hover{border-color:#ff521d;color:#fff}.toolbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;background:#090909ed;backdrop-filter:blur(12px);border-bottom:1px solid #262626;margin-bottom:20px}.language-tabs{display:flex;gap:5px}.language-tabs button,.ghost{color:#bbb;background:transparent;border:1px solid #343434;border-radius:5px;padding:11px 16px}.language-tabs button.active{color:#fff;background:#292929;border-color:#ff521d}.save-wrap{display:flex;align-items:center;gap:18px}.save-wrap span{font-size:12px;color:#777}.save-wrap span.changed{color:#ff8b61}.primary{background:#ff521d;color:#111;border:0;border-radius:4px;padding:12px 22px;font-weight:800}.primary:hover{background:#ff7045}.primary:disabled{opacity:.55;cursor:wait}.card{background:#171717;border:1px solid #2b2b2b;border-radius:8px;padding:26px 30px;margin:0 0 14px}.section-title{display:flex;align-items:center;gap:14px;margin-bottom:22px}.section-number{font-size:12px;color:#ff521d;font-weight:800;letter-spacing:.1em}.section-title h2{font-size:20px;letter-spacing:-.02em;margin:0}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:block;min-width:0}.field span,.login-card label{display:block;font-size:12px;font-weight:700;color:#a9a9a9;margin-bottom:9px}.field input,.login-card input{width:100%;height:46px;background:#101010;color:#f5f5f5;border:1px solid #3a3a3a;border-radius:4px;padding:0 14px;outline:none}.field input:focus,.login-card input:focus{border-color:#ff521d;box-shadow:0 0 0 2px #ff521d24}.field input::placeholder{color:#666}.help{color:#888;line-height:1.5;font-size:13px;margin:-4px 0 20px}.card .help:last-child{margin:18px 0 0}.login{display:grid;min-height:100vh;place-items:center;padding:24px}.login-card{width:min(100%,420px);border:1px solid #333;background:#171717;border-radius:8px;padding:36px}.login-card h1{font-size:32px;margin:0 0 28px}.login-card .eyebrow{margin-top:38px}.login-card .primary{width:100%;margin-top:18px}.error{color:#ff785c;min-height:20px;font-size:13px}#toast{position:fixed;right:24px;bottom:24px;z-index:10;background:#23382b;border:1px solid #477258;border-radius:5px;padding:14px 18px;color:#eaf5ed;box-shadow:0 15px 35px #0008}.error-toast{background:#46231e!important;border-color:#9c4a38!important}@media(max-width:700px){.topbar{padding:0 18px}.brand>span:last-child,.brand-divider,.bot-label{display:none}.main{padding:30px 16px 70px}.intro{display:block}.intro a{display:inline-block;margin-top:20px}.toolbar{align-items:stretch;flex-direction:column}.save-wrap{justify-content:space-between}.card{padding:23px 18px}.field-grid{grid-template-columns:1fr}}
.icon-button{height:40px;width:40px;display:inline-grid;place-items:center;border:1px solid #343434;border-radius:5px;color:#ddd;background:#1b1b1b}.icon-button:hover{border-color:#ff521d;color:#fff}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#settings-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,100%);height:100dvh;max-height:none;max-width:none;padding:0;border:0;border-left:1px solid #383838;background:#111;color:#f5f5f5;box-shadow:-25px 0 70px #0008}#settings-dialog::backdrop{background:#000b}.settings-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#161616;border-bottom:1px solid #303030;padding:26px 30px;z-index:1}.settings-header .eyebrow{margin-bottom:8px}.settings-header h2{font-size:26px;letter-spacing:-.04em;margin:0}.settings-header .icon-button{font-size:28px;line-height:1}.settings-body{padding:26px 30px 45px;overflow-y:auto;height:calc(100dvh - 103px)}.settings-section{border:1px solid #303030;background:#191919;border-radius:8px;padding:24px;margin-bottom:18px}.settings-section h3{font-size:19px;margin:0 0 14px}.settings-section .help{margin:0 0 22px}.settings-section .field-grid{gap:18px 14px}.settings-section .field input,.settings-section .field select{height:44px;width:100%;background:#101010;color:#f5f5f5;border:1px solid #3a3a3a;border-radius:4px;padding:0 12px;outline:none}.settings-section .field select:focus{border-color:#ff521d}.settings-section .field input::placeholder{color:#777}.check-row{display:flex;align-items:center;gap:12px;margin-top:22px;color:#ddd;font-size:14px}.check-row input{accent-color:#ff521d;width:17px;height:17px}.settings-actions{display:flex;align-items:center;gap:16px;margin-top:22px}.settings-actions span{font-size:12px;color:#aaa}@media(max-width:700px){.top-actions{gap:8px}.settings-header{padding:22px 18px}.settings-body{padding:18px;height:calc(100dvh - 90px)}.settings-section{padding:20px 16px}}
#settings-dialog{overflow:hidden}.settings-header{min-height:104px}.settings-body{height:calc(100dvh - 104px)}@media(max-width:700px){.settings-header{min-height:90px}.settings-body{height:calc(100dvh - 90px)}}

.toolbar{flex-wrap:wrap}.language-tabs{flex-wrap:wrap}.language-tabs button{white-space:nowrap}
.field textarea{display:block;width:100%;min-height:210px;resize:vertical;padding:15px 16px;border:1px solid #3a3a3a;border-radius:4px;background:#101010;color:#f5f5f5;font:inherit;font-size:15px;line-height:1.7;outline:none}.field textarea:focus{border-color:#ff521d;box-shadow:0 0 0 2px #ff521d24}.field textarea::placeholder{color:#666}.rules-preview-link{display:inline-flex;margin-top:18px;padding:10px 0;color:#ff794f;text-decoration:none;font-size:13px;font-weight:700}.rules-preview-link:hover{text-decoration:underline}
.rules-preview-link+.rules-preview-link{margin-left:24px}
.review-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:1px solid #ff521d;border-radius:5px;color:#fff;background:#ff521d1c;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.review-link:hover{background:#ff521d36}.review-link:focus-visible{outline:2px solid #ff8b61;outline-offset:2px}
.link-card{border-color:#5b3327;background:linear-gradient(110deg,#231914,#171717 58%)}.link-card .help{margin:0 0 18px}.link-actions{display:flex;align-items:center;gap:18px;margin-top:18px}.link-actions span{font-size:12px;color:#aaa}@media(max-width:700px){.link-actions{align-items:stretch;flex-direction:column;gap:10px}}

.editor-tabs{display:flex;gap:8px;border-bottom:1px solid #303030;margin-bottom:16px}.editor-tabs button{background:transparent;color:#aaa;border:0;border-bottom:3px solid transparent;padding:14px 18px;font-weight:700;font-size:14px}.editor-tabs button[aria-selected="true"]{color:#fff;border-bottom-color:#ff521d}.editor-tabs button:hover{color:#fff}.editor-tabs button:focus-visible,.language-tabs button:focus-visible{outline:2px solid #ff8b61;outline-offset:2px}.copy-search-label{display:block;color:#aaa;font-size:12px;font-weight:700;margin:4px 0 9px}.copy-search{width:min(100%,470px);height:44px;background:#171717;color:#f5f5f5;border:1px solid #3a3a3a;border-radius:5px;padding:0 14px;margin-bottom:20px;outline:none}.copy-search:focus{border-color:#ff521d;box-shadow:0 0 0 2px #ff521d24}.copy-search::placeholder{color:#777}.copy-section .section-title{justify-content:space-between}.copy-section .field-grid{align-items:start}.field-wide{grid-column:1/-1}.copy-section .field textarea{min-height:128px;line-height:1.5}.field-hint{display:block;margin-top:8px;color:#898989;font-size:12px;line-height:1.45}.field-count{color:#858585;font-size:12px;white-space:nowrap}.copy-empty{border:1px dashed #383838;border-radius:8px;padding:35px;color:#aaa;text-align:center}#rules-panel .link-card{margin-top:3px}
.editor-tabs button.has-unsaved::after{content:' •';color:#ff794f}
@media(max-width:700px){.editor-tabs{gap:0}.editor-tabs button{flex:1;padding:13px 8px;font-size:13px}.copy-section .section-title{align-items:flex-start;gap:10px}.field-wide{grid-column:auto}}
.reason-translation-group{border-top:1px solid #353535;margin-top:25px;padding-top:24px}.reason-translation-group h3{font-size:16px;margin:0 0 10px}.reason-translation-group .help{margin:0 0 20px}.reason-translation-group a{color:#ff8055}.reason-note{color:#a9a9a9;font-size:13px;margin:0}
.channel-editor .section-title{justify-content:space-between;gap:18px}.channel-editor .help{margin:0 0 18px}.channel-editor-state{color:#aaa;font-size:13px;min-height:20px;margin-bottom:16px}.channel-editor-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,1.3fr);gap:14px 20px;align-items:center;padding:18px 0;border-top:1px solid #353535}.channel-editor-original{display:grid;gap:7px;min-width:0}.channel-editor-original strong{font-size:15px;overflow-wrap:anywhere}.channel-editor-original small{color:#888;font-size:11px;overflow-wrap:anywhere}.channel-editor-row .field input{height:44px}.channel-editor-actions{grid-column:2;display:flex;gap:10px;flex-wrap:wrap}.channel-editor-actions button{min-height:40px;padding:8px 14px;font-size:12px}.channel-editor-preview{grid-column:1;color:#999;font-size:12px;margin:0}.channel-editor-preview strong{color:#eee}.channel-editor-row-state{grid-column:2;color:#ff9b76;font-size:12px;min-height:16px}.channel-editor-empty{color:#aaa;font-size:14px;line-height:1.5;padding:25px 0;margin:0}.channel-editor .ghost:disabled{opacity:.45;cursor:default}@media(max-width:700px){.channel-editor .section-title{align-items:flex-start;flex-direction:column}.channel-editor-row{grid-template-columns:1fr;gap:11px}.channel-editor-actions,.channel-editor-preview,.channel-editor-row-state{grid-column:1}}
.copy-group{margin:30px 2px 14px}.copy-group:first-child{margin-top:6px}.copy-group__title{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#ff521d;margin:0}.copy-group__desc{color:#9a9a9a;font-size:13px;line-height:1.5;margin:7px 0 0}.screen-badge{display:inline-flex;align-items:center;background:#ff521d;color:#111;font-size:11px;font-weight:800;letter-spacing:.04em;padding:3px 9px;border-radius:999px;margin-right:4px;vertical-align:middle}.copy-section .section-title h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#channel-editor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}#channel-editor-list .channel-editor-empty{grid-column:1/-1}.channel-card{background:#141414;border:1px solid #2b2b2b;border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}.channel-card.drag-over{border-color:#ff521d;box-shadow:0 0 0 2px #ff521d33}.channel-card.dragging{opacity:.5}.channel-card-head{display:flex;align-items:center;gap:8px}.channel-drag{cursor:grab;color:#9a9a9a;font-size:15px;line-height:1;padding:4px 7px;border:1px solid #343434;border-radius:5px;background:#1b1b1b;user-select:none}.channel-drag:active{cursor:grabbing}.channel-card-pos{flex:none;min-width:22px;height:22px;display:inline-grid;place-items:center;font-size:11px;font-weight:800;color:#111;background:#ff521d;border-radius:6px}.channel-card-name{flex:1;min-width:0;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-card-move{display:flex;gap:4px;flex:none}.channel-card-move button{min-height:0;padding:3px 9px;font-size:13px;line-height:1.2}.channel-card-source{color:#8a8a8a;font-size:11px;overflow-wrap:anywhere}.channel-card-field span{margin-bottom:6px}.channel-card-field input{height:42px}.channel-card-actions{display:flex;gap:8px}.channel-card-actions button{min-height:38px;padding:8px 14px;font-size:13px}@media(max-width:700px){#channel-editor-list{grid-template-columns:1fr}}
.rules-file-current{display:flex;align-items:center;gap:12px;background:#121212;border:1px solid #2f2f2f;border-radius:6px;padding:12px 14px;margin:0 0 16px}.rules-file-current>span{font-size:18px;color:#ff521d;line-height:1}.rules-file-meta{flex:1;min-width:0;display:grid;gap:3px}.rules-file-meta strong{font-size:14px;overflow-wrap:anywhere}.rules-file-meta small{color:#8a8a8a;font-size:12px}#rules-file-input{color:#ddd;font-size:13px;width:100%}#rules-file-input::file-selector-button{margin-right:12px;padding:9px 14px;border-radius:5px;border:1px solid #3b3b3b;background:#1b1b1b;color:#eee;cursor:pointer}#rules-file-input::file-selector-button:hover{border-color:#ff521d}
