/* v1.9 Mission editor (js/editor.js) and community missions in the lobby (js/community.js). */
body.editor-open { overflow: hidden; }
.ed { position: fixed; inset: 0; z-index: 15; display: grid; grid-template-columns: 236px minmax(0, 1fr) 320px; grid-template-rows: 56px minmax(0, 1fr); grid-template-areas: "top top top" "tools stage side"; background: #070A08; color: var(--text); font-family: var(--body); height: var(--vh, 100vh); }
.ed.hidden { display: none; }
.ed button { font-family: inherit; }
.ed-btn { height: 34px; padding: 0 12px; border: 1px solid #2B3A2F; background: #0D1210; color: #D9E0DA; font-family: var(--mono) !important; font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ed-btn:hover:not(:disabled) { border-color: var(--muted); color: #fff; }
.ed-btn:disabled { opacity: 0.35; cursor: default; }
.ed-btn.icon { width: 34px; padding: 0; font-size: 16px; letter-spacing: 0; }
.ed-btn.green { background: var(--green); border-color: var(--green); color: #0B0F0C; font-weight: 600; }
.ed-btn.amber { border-color: rgba(242,181,68,0.6); color: var(--amber); }
.ed-btn.amber:hover { background: rgba(242,181,68,0.1); }
.ed-btn.red { border-color: rgba(224,83,61,0.5); color: #F08A78; }
.ed-btn.on { color: var(--green); border-color: var(--green-dim); }

/* top bar */
.ed-top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(7,10,8,0.98); border-bottom: 1px solid var(--line); min-width: 0; }
.ed-exit { color: var(--muted); }
.ed-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; max-width: 420px; }
.ed-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--green); }
#ed-name { background: transparent; border: none; border-bottom: 1px dashed transparent; color: #F3F6F2; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0; width: 100%; min-width: 0; outline: none; }
#ed-name:hover, #ed-name:focus { border-bottom-color: var(--green-dim); }
.ed-hist { display: flex; gap: 4px; margin-left: auto; }
.ed-status { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid; background: transparent; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.ed-status b { font-size: 12px; }
.ed-status.ok { color: var(--green); border-color: rgba(124,255,154,0.5); background: rgba(124,255,154,0.06); }
.ed-status.warn { color: var(--amber); border-color: rgba(242,181,68,0.45); }
.ed-status.bad { color: #F08A78; border-color: rgba(224,83,61,0.55); background: rgba(224,83,61,0.08); }
.ed-play { height: 38px; font-size: 12px; }
.ed-pub { height: 38px; font-size: 12px; padding: 0 16px; }

/* tools */
.ed-tools { grid-area: tools; overflow-y: auto; background: #0A0E0B; border-right: 1px solid var(--line); padding: 8px 8px 16px; }
.ed-groups { display: none; }
.ed-group { margin-bottom: 10px; }
.ed-group-name { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--muted); padding: 6px 2px; }
.ed-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ed-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; padding: 2px; background: #0F1612; border: 1px solid var(--line); color: #B4C0B6; }
.ed-tool:hover { border-color: #3A4F3E; color: #fff; }
.ed-tool.active { border-color: var(--green); background: #13201A; color: var(--green); box-shadow: inset 0 0 0 1px rgba(124,255,154,0.2); }
.ed-ico canvas { width: 36px; height: 36px; display: block; }
.ed-tl { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* stage */
.ed-stage { grid-area: stage; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #050705; }
#ed-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.ed-modebar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: rgba(9,22,13,0.96); border: 1px solid #2E7A47; box-shadow: 0 8px 30px rgba(0,0,0,0.5); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #CFE8D4; max-width: calc(100% - 20px); z-index: 2; }
.ed-modebar span { flex: 1; min-width: 0; }
.ed-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; z-index: 2; }
.ed-zoom .ed-btn { background: rgba(7,10,8,0.9); }
.ed-hint { position: absolute; left: 10px; bottom: 10px; max-width: min(560px, calc(100% - 200px)); padding: 6px 10px; background: rgba(7,10,8,0.85); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; line-height: 1.45; color: #B4C0B6; pointer-events: none; }
.ed-hint:empty { display: none; }
.ed-selbar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 6px; background: rgba(7,10,8,0.96); border: 1px solid #2E7A47; z-index: 3; overflow-x: auto; }
.ed-selbar { flex-wrap: wrap; }
.ed-selbar b { flex: 1 0 100%; font-size: 14px !important; min-width: 60px; font-family: var(--display); font-size: 16px; letter-spacing: 0.04em; color: #F3F6F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.ed-selbar .ed-btn { height: 40px; flex: 1 0 auto; }
.ed-selbar .ed-btn.icon { width: 40px; }

/* side panel */
.ed-side { grid-area: side; display: flex; flex-direction: column; min-height: 0; background: #0A0E0B; border-left: 1px solid var(--line); }
.ed-tabs { display: flex; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.ed-tabs button { flex: 1; height: 40px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.ed-tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.ed-tabs .ed-sheet-x { display: none; flex: 0 0 44px; font-size: 20px; }
.ed-side-body { flex: 1; overflow-y: auto; padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.ed-side-body h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.05em; color: #F3F6F2; }
.ed-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ed-f > span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); }
.ed-f input, .ed-f select, .ed-f textarea, #ed-obj-add { width: 100%; background: #0F1612; border: 1px solid #263428; color: #E6EBE4; font-family: var(--body); font-size: 14px; padding: 8px 9px; border-radius: 0; outline: none; }
.ed-f input:focus, .ed-f textarea:focus, .ed-f select:focus { border-color: var(--green-dim); }
.ed-f textarea { resize: vertical; line-height: 1.45; min-height: 90px; }
.ed-f input[type=range] { padding: 0; height: 28px; background: transparent; border: none; accent-color: var(--green); flex: 1; }
.ed-f input + input { margin-top: 4px; }
.ed-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-row2 .ed-f:first-child input[data-f=label] { text-transform: uppercase; }
.ed-seg { display: flex; flex-wrap: wrap; gap: 3px; }
.ed-seg button { flex: 1 1 auto; min-width: 44px; height: 32px; padding: 0 8px; background: #0F1612; border: 1px solid #263428; color: #9FAE9F; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.ed-seg button.active { background: #13201A; border-color: var(--green); color: var(--green); }
.ed-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #9FAE9F; }
.ed-note b { color: #D9E0DA; font-weight: 600; } .ed-note b.ok { color: var(--green); }
.ed-empty b { font-family: var(--display); font-size: 20px; color: #F3F6F2; letter-spacing: 0.04em; }
.ed-empty p { font-size: 13px; color: #9FAE9F; line-height: 1.5; margin: 8px 0 0; }
.ed-keys { font-family: var(--mono); font-size: 10.5px !important; }
.ed-doors { display: flex; flex-wrap: wrap; gap: 4px; }
.ed-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 0 0 8px; border: 1px solid rgba(242,181,68,0.4); color: var(--amber); font-family: var(--mono); font-size: 10px; }
.ed-chip button { width: 24px; height: 24px; border: none; background: transparent; color: var(--muted); font-size: 14px; }
.ed-probs { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid rgba(224,83,61,0.4); background: rgba(224,83,61,0.06); font-size: 12px; color: #F2B0A4; line-height: 1.4; }
.ed-plist { display: flex; flex-direction: column; gap: 4px; }
.ed-prob { text-align: left; padding: 8px 10px; background: rgba(224,83,61,0.06); border: 1px solid rgba(224,83,61,0.35); color: #F2B0A4; font-size: 12.5px; line-height: 1.4; }
.ed-prob:hover { border-color: #E0533D; color: #fff; }
.ed-plan { margin: 0; padding-left: 20px; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #B4C0B6; }
.ed-objs { display: flex; flex-direction: column; gap: 4px; }
.ed-obj { display: grid; grid-template-columns: 82px 1fr 30px 30px; gap: 4px; align-items: center; }
.ed-obj i { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--amber); }
.ed-obj input { padding: 6px 7px !important; font-size: 13px !important; }
.ed-obj .ed-btn.icon { width: 30px; height: 30px; font-size: 13px; }
.ed-obj.exfil { grid-template-columns: 82px 1fr; }
.ed-obj.exfil i { color: var(--green); } .ed-obj.exfil span { font-size: 12.5px; color: #9FAE9F; }
.ed-file { padding-top: 8px; border-top: 1px solid var(--line); }

/* modal + toast */
.ed-modal { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(4,6,5,0.78); padding: 16px; }
.ed-modal.hidden { display: none; }
.ed-modal-card { width: min(520px, 100%); max-height: calc(100% - 20px); overflow-y: auto; background: var(--panel-solid); border: 1px solid #2E7A47; box-shadow: 0 20px 60px rgba(0,0,0,0.6); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.ed-modal-card h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.05em; color: #F3F6F2; }
.ed-modal-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #B4C0B6; }
.ed-modal-card .ed-btn { height: 42px; font-size: 12px; }
.ed-mlist { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #F2B0A4; }
.ed-newopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-newopt { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; background: #0F1612; border: 1px solid #2B3A2F; color: #B4C0B6; font-size: 13px; line-height: 1.45; }
.ed-newopt b { font-family: var(--display); font-size: 20px; letter-spacing: 0.05em; color: #F3F6F2; }
.ed-newopt:first-child { border-color: rgba(124,255,154,0.5); }
.ed-newopt:hover { border-color: var(--green); background: #13201A; }
.ed-pubcard { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
.ed-pubcard canvas { width: 160px; height: 100px; border: 1px solid var(--line); }
.ed-pubcard div { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #9FAE9F; }
.ed-pubcard b { font-family: var(--display); font-size: 22px; color: #F3F6F2; letter-spacing: 0.04em; }
.ed-merr { color: #F08A78; font-size: 13px; }
.ed-merr:empty { display: none; }
.ed-code { font-family: var(--mono); font-size: 40px; letter-spacing: 0.3em; color: var(--green); text-align: center; padding: 8px; border: 1px dashed #2E7A47; }
.ed-link { width: 100%; background: #0F1612; border: 1px solid #263428; color: #D9E0DA; font-family: var(--mono); font-size: 12px; padding: 9px; }
.ed-toast { position: absolute; left: 50%; bottom: 64px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; padding: 9px 14px; background: rgba(9,22,13,0.97); border: 1px solid #2E7A47; font-family: var(--mono); font-size: 11.5px; color: #DDEFE1; transition: opacity 0.18s, transform 0.18s; z-index: 12; max-width: calc(100% - 24px); text-align: center; }
.ed-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ed-toast.bad { border-color: #E0533D; color: #F8C8BE; }

/* phones and small tablets: full-bleed map, bottom tool sheet, panels as a bottom drawer */
.ed.ed-mobile { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr) auto; grid-template-areas: "top" "stage" "tools"; }
.ed-mobile .ed-top { gap: 6px; padding: 0 6px; }
.ed-mobile .ed-exit span, .ed-mobile .ed-play span { display: none; }
.ed-mobile .ed-exit { width: 38px; padding: 0; font-size: 18px; }
.ed-mobile .ed-eyebrow { display: none; }
.ed-mobile #ed-name { font-size: 18px; }
.ed-mobile .ed-hist { margin-left: 0; }
.ed-mobile .ed-hist .ed-btn { width: 32px; }
.ed-mobile .ed-status { padding: 0 8px; height: 34px; }
.ed-mobile .ed-status span { display: none; }
.ed-mobile .ed-play { width: 40px; padding: 0; height: 34px; font-size: 14px; }
.ed-mobile .ed-pub { height: 34px; padding: 0 9px; font-size: 10px; letter-spacing: 0.08em; }
.ed-mobile .ed-tools { border-right: none; border-top: 1px solid var(--line); padding: 0 0 calc(4px + env(safe-area-inset-bottom)); overflow: visible; }
.ed-mobile .ed-groups { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ed-mobile .ed-groups::-webkit-scrollbar { display: none; }
.ed-mobile .ed-groups button { flex: 1 0 auto; height: 34px; padding: 0 10px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.ed-mobile .ed-groups button.active { color: var(--green); border-bottom-color: var(--green); }
.ed-mobile .ed-group { display: none; margin: 0; }
.ed-mobile .ed-group.active { display: block; }
.ed-mobile .ed-group-name { display: none; }
.ed-mobile .ed-tool-grid { display: flex; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ed-mobile .ed-tool-grid::-webkit-scrollbar { display: none; }
.ed-mobile .ed-tool { flex: 0 0 68px; height: 64px; }
.ed-mobile .ed-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 66%; height: 66%; border-left: none; border-top: 1px solid #2E7A47; box-shadow: 0 -16px 40px rgba(0,0,0,0.6); transform: translateY(105%); transition: transform 0.22s ease; padding-bottom: env(safe-area-inset-bottom); }
.ed-mobile.sheet-open .ed-side { transform: none; }
.ed-mobile .ed-tabs .ed-sheet-x { display: block; }
.ed-mobile .ed-hint { display: none; }
.ed-mobile .ed-zoom { top: 8px; right: 8px; bottom: auto; flex-direction: column; }
.ed-mobile .ed-zoom .ed-btn { width: 40px; height: 40px; }
.ed-mobile .ed-modebar { top: auto; bottom: 8px; left: 8px; right: 8px; transform: none; flex-wrap: wrap; font-size: 10.5px; }
.ed-mobile .ed-modebar .ed-btn { height: 40px; flex: 1 1 auto; }
.ed-mobile .ed-modebar span { flex: 1 0 100%; }
.ed-mobile .ed-f input, .ed-mobile .ed-f textarea, .ed-mobile .ed-f select { font-size: 16px; }
.ed-mobile .ed-seg button { height: 38px; }
.ed-mobile .ed-newopts { grid-template-columns: 1fr; }
.ed-mobile .ed-toast { bottom: 76px; }
@media (max-width: 420px) { .ed-mobile .ed-pub { display: none; } }

/* ---------- lobby: COMMUNITY section, MY MISSIONS, briefing / debrief extras ---------- */
.ugc-region .region-head { align-items: center; }
.ugc-build { margin-left: auto; height: 36px; padding: 0 14px; background: var(--green); border: 1px solid var(--green); color: #0B0F0C; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; }
.ugc-build:hover { filter: brightness(1.08); }
.ugc-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ugc-tabs { display: flex; gap: 2px; }
.ugc-tabs button { height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; }
.ugc-tabs button.active { color: var(--green); border-color: var(--green-dim); background: #0F1A13; }
.ugc-search, .ugc-code { display: flex; gap: 0; }
.ugc-search { flex: 1 1 220px; max-width: 360px; }
.ugc-search input, .ugc-code input { height: 34px; flex: 1; min-width: 0; background: #0F1612; border: 1px solid #263428; border-right: none; color: #E6EBE4; padding: 0 10px; font-size: 14px; outline: none; }
.ugc-code input { width: 92px; flex: 0 0 92px; font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.ugc-search button, .ugc-code button { height: 34px; padding: 0 12px; background: #13201A; border: 1px solid #2E7A47; color: var(--green); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; }
.ugc-card { min-height: 132px; }
.ugc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ugc-tint, #4A6A40); }
.ugc-mountain { --ugc-tint: #6E8A5A; } .ugc-desert { --ugc-tint: #B8955A; } .ugc-jungle { --ugc-tint: #3F8A46; } .ugc-urban { --ugc-tint: #8A8A84; } .ugc-arctic { --ugc-tint: #B9C8D0; }
.ugc-by { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.ugc-by b { color: #D9E0DA; font-weight: 500; }
.ugc-stars { display: inline-flex; gap: 1px; font-size: 13px; letter-spacing: 0; }
.ugc-stars i { font-style: normal; color: #2E3A31; }
.ugc-stars i.on { color: var(--amber); }
.ugc-stars i.half { background: linear-gradient(90deg, var(--amber) 50%, #2E3A31 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ugc-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--line2); color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ugc-mini { height: 32px; padding: 0 11px; background: transparent; border: 1px solid #2B3A2F; color: #D9E0DA; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; white-space: nowrap; }
.ugc-mini:hover:not(:disabled) { border-color: var(--muted); color: #fff; }
.ugc-mini.go { background: var(--green); border-color: var(--green); color: #0B0F0C; font-weight: 600; }
.ugc-mini.ghost { color: var(--muted); }
.ugc-mini:disabled { opacity: 0.5; }
.ugc-more { align-self: center; }
.ugc-mine { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ugc-mine-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ugc-mine-head .rg-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--green); }
.ugc-note { font-size: 13px; color: var(--muted); }
.ugc-mine-list { display: flex; flex-direction: column; gap: 6px; }
.ugc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; background: #0F1612; border: 1px solid var(--line); }
.ugc-row canvas { width: 96px; height: 60px; border: 1px solid var(--line); background: #1A2016; }
.ugc-row canvas.none { visibility: hidden; }
.ugc-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ugc-row-main b { font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; color: #F3F6F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ugc-chips i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line2); }
.ugc-chips i:empty { display: none; }
.ugc-chips i.ok { color: var(--green); border-color: rgba(124,255,154,0.35); }
.ugc-chips i.pub { color: var(--amber); border-color: rgba(242,181,68,0.4); }
.ugc-chips i.off { color: #9FAE9F; }
.ugc-row-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ugc-jump { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; background: transparent; border: 1px solid #2E7A47; color: var(--green); padding: 4px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.ugc-jump b { font-size: 14px; }
.ugc-brief { display: flex; flex-direction: column; gap: 10px; }
.ugc-brief p { margin: 0; font-size: 13px; color: #9FAE9F; line-height: 1.5; }
.ugc-brief-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #D9E0DA; }
.ugc-brief-top .ugc-stars { font-size: 18px; }
.ugc-brief-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ugc-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
.ugc-rate-btns { display: inline-flex; gap: 2px; }
.ugc-rate-btns button { width: 38px; height: 38px; background: transparent; border: 1px solid var(--line2); color: #3E4F42; font-size: 20px; }
.ugc-rate-btns button.on, .ugc-rate-btns button:hover { color: var(--amber); border-color: rgba(242,181,68,0.5); }
.ugc-debrief { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--panel-solid); border: 1px solid var(--line); }
.ugc-debrief p { margin: 0; font-size: 14px; color: #B4C0B6; line-height: 1.5; }
#ugc-toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; z-index: 30; padding: 10px 16px; background: rgba(9,22,13,0.97); border: 1px solid #2E7A47; font-family: var(--mono); font-size: 12px; color: #DDEFE1; transition: opacity 0.18s, transform 0.18s; max-width: calc(100% - 24px); text-align: center; }
#ugc-toast.show { opacity: 1; transform: translate(-50%, 0); }
#ugc-toast.bad { border-color: #E0533D; color: #F8C8BE; }
@media (max-width: 700px) {
  .ugc-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ugc-row canvas { width: 72px; height: 45px; }
  .ugc-row-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ugc-build { margin-left: 0; }
  .ugc-search { max-width: none; flex-basis: 100%; }
  .ugc-tabs { flex: 1 1 100%; } .ugc-tabs button { flex: 1; padding: 0 6px; font-size: 9.5px; }
}
