*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}:root{--ui-text: #e0e0e0;--ui-muted: #aeb8cc;--ui-bg-panel: rgba(18, 20, 28, .92);--ui-bg-topbar: rgba(20, 20, 30, .85);--ui-bg-button: rgba(40, 40, 55, .8);--ui-bg-button-hover: rgba(60, 60, 80, .9);--ui-bg-button-active: rgba(80, 120, 200, .5);--ui-border-soft: rgba(255, 255, 255, .12);--ui-focus: rgba(120, 170, 255, .95);--ui-shadow-panel: 0 8px 22px rgba(0, 0, 0, .34);--ui-motion-fast: .14s;--ui-motion-mid: .18s}html,body{width:100%;height:100%;overflow:hidden;background:#000;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#e0e0e0;user-select:none;-webkit-user-select:none}#game-container{position:relative;width:100vw;height:100vh;overflow:hidden}#game-canvas{position:absolute;top:0;left:0;width:100%;height:100%;display:block}#ui-overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:10}#ui-overlay>*{pointer-events:auto}#top-bar{position:absolute;top:0;left:0;width:100%;height:40px;background:#14141ed9;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.08);font-size:16px;z-index:20}#bottom-toolbar{position:absolute;bottom:0;left:0;width:100%;height:68px;background:linear-gradient(180deg,#161b27f2,#0e121ef5);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 12px;border-top:1px solid rgba(153,180,230,.28);box-shadow:0 -8px 24px #02081480;z-index:20;overflow-x:auto}#inspect-panel{position:absolute;top:50px;right:10px;width:220px;max-height:300px;background:#14141eeb;backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:10px;font-size:14px;overflow-y:auto;z-index:25}.inspect-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-weight:600}#event-log{position:absolute;left:10px;top:50px;width:min(300px,calc(100vw - 20px));max-height:200px;overflow-y:auto;background:#12141cd6;border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:8px;font-size:13px;z-index:24}#event-log .log-toolbar{flex-wrap:wrap}#top-bar.compact{height:32px;font-size:14px}#top-bar.compact .stat{font-size:13px}#top-bar.compact .time-btn{width:24px;height:24px;font-size:14px}.log-toolbar{display:flex;gap:6px;margin-bottom:6px}#event-log .log-toolbar .set-btn{width:auto;margin-bottom:0;padding:4px 8px}.log-hint{flex:1;font-size:12px;color:#9faac0;display:flex;align-items:center}.log-select,.log-input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.12);background:#10121aeb;color:#dce4f2;border-radius:4px;padding:4px 6px;font-size:12px}.log-list{max-height:138px;overflow-y:auto}#kingdom-relations-panel{position:absolute;right:10px;top:50px;width:220px;max-height:220px;overflow-y:auto;background:#12141ce6;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:8px;z-index:24}#management-panel{position:absolute;right:240px;top:50px;width:320px;max-height:260px;overflow-y:auto;background:#12141ceb;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:8px;z-index:24}#minimap{position:absolute;right:10px;bottom:84px;width:180px;height:180px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:#0f121aeb;z-index:24}#overlay-legend{position:absolute;left:10px;top:258px;width:300px;background:#12141ce6;border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:8px;z-index:24}#settings-panel{position:absolute;right:10px;top:280px;width:min(280px,calc(100vw - 20px));max-height:calc(100vh - 364px);overflow-y:auto;background:#12141ceb;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:8px;z-index:24}#debug-panel{position:absolute;left:320px;top:50px;width:260px;max-height:240px;overflow-y:auto;background:#12141ceb;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:8px;z-index:24}.set-title,.dbg-title{font-size:13px;color:#d4dceb;font-weight:600;margin-bottom:6px}.set-btn{width:100%;margin-bottom:6px;border:1px solid rgba(255,255,255,.12);background:#282837cc;color:#dce3f0;border-radius:4px;padding:6px;font-size:13px;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,transform .14s ease}.set-btn:hover{background:#3c3c50e6}.set-btn:active,.time-btn:active,.tool-btn:active{transform:translateY(1px)}.set-btn:focus-visible,.time-btn:focus-visible,.tool-btn:focus-visible,.log-select:focus-visible,.log-input:focus-visible,.set-input:focus-visible{outline:2px solid rgba(120,170,255,.95);outline-offset:1px}.set-slot{border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:6px;margin-bottom:6px}.set-slot-title{font-size:12px;color:#d8e1f0;font-weight:700}.set-slot-info{font-size:12px;color:#aeb8cc;margin:4px 0 6px}.set-row{display:block;font-size:13px;color:#d2dbeb;margin:6px 0}.set-input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);background:#10121ae6;color:#dce4f2;border-radius:4px;padding:5px 6px;margin-bottom:6px;font-size:13px}.tutorial-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:320px;background:#0c0e14f0;border:1px solid rgba(255,255,255,.16);border-radius:8px;padding:12px;z-index:80}.tutorial-title{color:#e3ebf9;font-size:16px;font-weight:700;margin-bottom:8px}.tutorial-line{color:#c9d3e8;font-size:13px;margin-bottom:4px}.dbg-line{font-size:13px;color:#c7d0df;padding:1px 0}.mg-title{font-size:13px;font-weight:600;color:#d4dceb;margin:4px 0}.mg-line{font-size:13px;color:#c7d0df;padding:1px 0}.rel-title{font-size:13px;color:#cfd7e4;margin-bottom:6px;font-weight:600}.rel-row{display:flex;justify-content:space-between;font-size:13px;padding:2px 0}.rel-ally{color:#81d885}.rel-neutral{color:#d3d8e4}.rel-enemy{color:#e78383}.log-entry{color:#d7deea;padding:2px 0;border-bottom:1px dashed rgba(255,255,255,.08)}.log-entry.active{background:#76a0e62e}.log-entry.log-warn{color:#f0cb7a}.log-entry.log-critical{color:#f28f8f}.log-tag{display:inline-block;padding:0 4px;margin-right:4px;border:1px solid rgba(255,255,255,.16);border-radius:3px;color:#c5cfdf;font-size:11px}.legend-title{font-size:13px;color:#d8e1f0;font-weight:700;margin-bottom:6px}.legend-note{font-size:12px;color:#aeb8cc;margin-bottom:6px}#overlay-legend .panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}#overlay-legend .legend-collapse{cursor:pointer;padding:2px 8px;height:24px;font-size:12px}.legend-body{animation:panel-enter var(--ui-motion-mid) ease}.legend-collapsed .legend-body{display:none}.legend-disabled .legend-row{opacity:.55}.legend-disabled .legend-row:hover{background:transparent}.legend-row{display:flex;align-items:center;gap:6px;font-size:13px;color:#c7d0df;padding:2px 0;cursor:pointer}.legend-row.active{color:#eef4ff}.legend-row:focus-visible,.log-entry:focus-visible{outline:2px solid rgba(120,170,255,.95);outline-offset:1px}.legend-dot{width:10px;height:10px;border-radius:2px;display:inline-block}.legend-name{flex:1}.legend-state{font-size:12px;opacity:.9}.panel-header{font-size:13px;color:#d8e1f0;font-weight:700;margin:-2px -2px 8px;padding:2px 2px 6px;border-bottom:1px solid rgba(255,255,255,.1);cursor:move}.log-list,.set-slot-info,.mg-line,.rel-row,.dbg-line,.stat{user-select:text;-webkit-user-select:text}.hidden{display:none}.panel-draggable{touch-action:pan-x pan-y}.panel-dragging{opacity:.94;cursor:move}.panel-resizable{position:absolute}.panel-resizing{opacity:.96}.panel-resize-handle{position:absolute;right:0;bottom:0;width:14px;height:14px;cursor:nwse-resize;border-right:2px solid rgba(195,214,240,.8);border-bottom:2px solid rgba(195,214,240,.8);border-radius:0 0 6px;background:#789bd22e}.panel-resize-handle:hover{background:#789bd247}.tool-btn{width:48px;height:40px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:linear-gradient(180deg,#363e54f2,#252c41f2);color:#ccc;font-size:25px;cursor:pointer;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}.tool-btn:hover{background:linear-gradient(180deg,#454f6cf2,#2d364ef2);border-color:#a5c0f38c;box-shadow:0 0 0 1px #789ce040 inset}.tool-btn.active{background:linear-gradient(180deg,#5a85d6b8,#4068b7b8);border-color:#7fadffe0;color:#fff}.tool-btn .label{font-size:12px;margin-top:0;line-height:1}.category-btn{width:62px;height:50px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:2px 4px;flex:0 0 auto}.category-btn .icon{font-size:19px;line-height:1}.category-btn .label{font-size:12px;color:#d7e0f0;line-height:1}.toolbar-spacer{flex:1 1 auto;min-width:6px}.tool-panel-head{width:100%;margin-bottom:6px}.tool-search{width:100%;border:1px solid rgba(255,255,255,.12);background:#10121aeb;color:#dce4f2;border-radius:4px;padding:4px 6px;font-size:13px}.tool-favorites,.tool-list,.tool-recents{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:6px}.tool-recents{display:flex;flex-wrap:nowrap;overflow-x:auto}.tool-recents .tool-item{flex:0 0 108px;width:108px}.tool-favorites{margin-bottom:4px}.tool-fav-title{width:100%;font-size:12px;color:#c6d1e2}.tool-item{width:100%;min-width:0;height:36px;padding:0 10px;justify-content:flex-start;font-size:18px}.tool-item .label{font-size:13px;color:#e3ebfb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tool-star-wrap{margin-left:auto}.tool-star{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:3px;border:1px solid rgba(255,255,255,.14);color:#8f98a8}.tool-star:hover,.tool-star:focus-visible,.tool-star.active{color:#ffce66;border-color:#ffce66cc;background:#ffce6629}.top-left,.top-center,.top-right{display:flex;align-items:center;gap:10px}.top-center{position:absolute;left:50%;transform:translate(-50%)}.time-btn{width:28px;height:28px;border:1px solid rgba(255,255,255,.12);border-radius:4px;background:#282837cc;color:#aaa;font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .14s ease}.time-btn:hover{background:#3c3c50e6;color:#fff}.time-btn.active{background:#5078c880;color:#fff}.time-btn:disabled{opacity:.45;cursor:not-allowed}.stat{font-size:15px;color:#aaa}.stat-value{color:#e0e0e0;font-weight:600}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:2px}.tool-category-panel{position:absolute;bottom:74px;left:50%;transform:translate(-50%);width:min(1100px,calc(100vw - 20px));max-height:min(44vh,340px);background:linear-gradient(180deg,#131823f5,#0d121cf5);backdrop-filter:blur(6px);border:1px solid rgba(160,186,236,.3);border-radius:8px;padding:10px;display:flex;flex-wrap:wrap;gap:8px;overflow-y:auto;z-index:22;transition:opacity .18s ease,transform .18s ease}.brush-size{font-size:14px;color:#cfd8ec;min-width:24px}.brush-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding-left:10px;border-left:1px solid rgba(160,186,236,.24)}.brush-label{font-size:13px;color:#d3ddf3}.brush-btn-group{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.brush-btn{width:auto;min-width:34px;height:30px;padding:0 10px;font-size:13px;border-radius:5px}.kbd-conflict-hint{font-size:11px;color:var(--ui-muted);margin-left:8px;white-space:nowrap}.panel-art{height:32px;border-radius:6px;margin-bottom:8px;border:1px solid rgba(255,255,255,.12);opacity:.9}.panel-art-settings{background:linear-gradient(120deg,#7296ff47,#41548438)}.panel-art-management{background:linear-gradient(120deg,#ffb26038,#8854323d)}.panel-art-relations{background:linear-gradient(120deg,#a0dcff33,#587ab83d)}html,body{color:var(--ui-text)}#top-bar{background:var(--ui-bg-topbar)}#inspect-panel,#event-log,#kingdom-relations-panel,#management-panel,#overlay-legend,#settings-panel,#debug-panel,.tutorial-panel{background:var(--ui-bg-panel);border-color:var(--ui-border-soft);box-shadow:var(--ui-shadow-panel);animation:panel-enter var(--ui-motion-mid) ease}.set-btn,.time-btn{border-color:var(--ui-border-soft);background:var(--ui-bg-button);transition:background-color var(--ui-motion-mid) ease,border-color var(--ui-motion-mid) ease,color var(--ui-motion-mid) ease,transform var(--ui-motion-fast) ease,box-shadow var(--ui-motion-mid) ease}.set-btn:hover,.time-btn:hover{background:var(--ui-bg-button-hover)}.time-btn.active{background:var(--ui-bg-button-active)}.set-btn:focus-visible,.time-btn:focus-visible,.tool-btn:focus-visible,.log-select:focus-visible,.log-input:focus-visible,.set-input:focus-visible{outline-color:var(--ui-focus)}.tool-category-panel{animation:panel-enter var(--ui-motion-mid) ease}@keyframes panel-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1024px){#top-bar{height:36px;font-size:14px;padding:0 8px}#bottom-toolbar{justify-content:flex-start;overflow-x:auto;padding:0 8px;gap:6px}.category-btn{width:58px;height:46px}.tool-category-panel{width:calc(100vw - 16px)}.tool-favorites,.tool-list,.tool-recents{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}#management-panel{right:10px;top:92px;width:min(320px,calc(100vw - 20px));max-height:220px}#settings-panel{width:min(280px,calc(100vw - 20px));top:324px;max-height:calc(100vh - 400px)}#minimap{width:160px;height:160px;bottom:76px}}@media(max-width:768px){#top-bar{height:34px;font-size:13px;gap:6px}.top-left,.top-center,.top-right{gap:6px}.stat{font-size:13px}.top-center{position:static;transform:none;margin-left:auto}#bottom-toolbar{height:60px;gap:5px;padding:0 6px}.toolbar-spacer{min-width:0;width:0;flex:0 0 0}.brush-controls{padding-left:6px;gap:6px}.kbd-conflict-hint{display:none}.brush-btn{min-width:30px;height:28px;padding:0 8px}#event-log,#overlay-legend,#debug-panel,#management-panel,#kingdom-relations-panel,#inspect-panel,#settings-panel{left:8px;right:8px;width:auto;max-width:none}#event-log{top:42px;max-height:156px}#overlay-legend{top:206px}#kingdom-relations-panel{top:332px;max-height:160px}#management-panel{top:42px;max-height:220px}#settings-panel{top:270px;max-height:calc(100vh - 330px)}#debug-panel{top:42px;max-height:180px}#minimap{right:8px;bottom:60px;width:132px;height:132px}.tool-category-panel{left:8px;right:8px;bottom:58px;transform:none;max-width:none}}.history-ui-root{position:absolute;inset:0;pointer-events:none;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;z-index:20}.history-ui-root>*{pointer-events:auto}.history-panel{position:absolute;background:var(--ui-bg-panel);border:1px solid var(--ui-border-soft);border-radius:8px;box-shadow:var(--ui-shadow-panel);color:var(--ui-text);padding:10px 12px;font-size:12px;line-height:1.5;overflow:hidden}.history-panel-header{font-size:13px;color:#d8e1f0;font-weight:700;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.1)}.history-panel-body{display:flex;flex-direction:column;gap:4px}.history-topbar{position:absolute;top:0;left:0;width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#14141ed9;backdrop-filter:blur(4px);border-bottom:1px solid rgba(255,255,255,.08);padding:0 12px;color:var(--ui-text);z-index:20}.history-top-left,.history-top-right{display:flex;align-items:center;gap:8px}.history-top-center{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px}.history-title{font-weight:700;color:#d8e1f0;font-size:14px}.history-year{font-family:monospace;font-size:14px;color:#ffd76a;min-width:90px;text-align:center}.history-btn{border:1px solid var(--ui-border-soft);background:var(--ui-bg-button);color:var(--ui-text);border-radius:5px;padding:3px 10px;font-size:12px;cursor:pointer;transition:background-color var(--ui-motion-mid) ease,border-color var(--ui-motion-mid) ease}.history-btn:hover{background:var(--ui-bg-button-hover)}.history-icon-btn{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:16px}.history-speed-bar{display:flex;gap:4px}.history-speed-btn.active{background:var(--ui-bg-button-active);border-color:var(--ui-focus)}.history-topbar.compact .history-year{min-width:60px;font-size:12px}.history-topbar.compact .history-speed-btn{padding:2px 6px;font-size:11px}.history-settings-panel{position:absolute;top:50px;right:12px;width:240px;z-index:30}.history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;font-size:13px}.history-row select{background:var(--ui-bg-button);border:1px solid var(--ui-border-soft);border-radius:4px;color:var(--ui-text);padding:3px 6px;font-size:12px;font-family:inherit}.history-row-check{justify-content:flex-start;gap:6px;cursor:pointer}.timeline-panel{position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:620px;max-width:calc(100% - 40px)}.timeline-controls{display:flex;align-items:center;gap:8px}.timeline-play-btn.active{background:var(--ui-bg-button-active);border-color:var(--ui-focus)}.timeline-slider-wrap{position:relative;flex:1;height:20px}.timeline-slider{position:absolute;inset:0;width:100%;margin:0;accent-color:var(--ui-focus)}.timeline-markers{position:absolute;top:0;left:0;right:0;height:100%;pointer-events:none}.timeline-marker{position:absolute;top:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:#e0a83c;border:1px solid rgba(0,0,0,.4);box-shadow:0 0 4px #e0a83c99}.timeline-year{min-width:70px;text-align:center}.nation-panel{top:60px;right:20px;width:280px}.nation-name{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#d8e1f0;margin-bottom:6px}.nation-color-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto}.nation-row{display:flex;justify-content:space-between;gap:8px}.nation-row span:first-child{color:var(--ui-muted)}.nation-row span:last-child{text-align:right;color:var(--ui-text)}.event-log-panel{top:60px;left:20px;width:340px;max-height:260px;display:flex;flex-direction:column}.history-event-list{overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:2px}.history-event-row{display:flex;gap:6px;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-event-year{color:var(--ui-muted);font-family:monospace;flex:0 0 auto}.history-event-type{flex:0 0 auto}.history-event-title{color:var(--ui-text);overflow:hidden;text-overflow:ellipsis}.ranking-panel{top:60px;left:380px;width:250px}.history-sort-bar{display:flex;gap:4px;margin-bottom:6px}.history-sort-btn{border:1px solid var(--ui-border-soft);background:var(--ui-bg-button);color:var(--ui-muted);border-radius:4px;padding:2px 8px;font-size:11px;cursor:pointer}.history-sort-btn.active{background:var(--ui-bg-button-active);color:var(--ui-text)}.history-ranking-table{display:flex;flex-direction:column;gap:2px}.history-rank-row{display:flex;gap:8px;font-size:11px}.history-rank-row>span:first-child{width:18px;color:var(--ui-muted);text-align:right}.history-rank-row>span:nth-child(2){flex:1;display:flex;align-items:center;gap:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-rank-row>span:last-child{width:70px;text-align:right;font-family:monospace;color:var(--ui-text)}.history-rank-head{color:var(--ui-muted);font-weight:600;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:2px}.world-stats-panel{top:60px;left:650px;width:220px}.history-row{display:flex;justify-content:space-between;gap:8px}.history-row span:first-child{color:var(--ui-muted)}.history-row span:last-child{font-family:monospace;color:var(--ui-text);text-align:right}.intervention-panel{bottom:20px;right:20px;width:220px;display:flex;flex-direction:column;gap:6px}.history-intervention-hint{font-size:10px;color:var(--ui-muted)}.history-target-select{background:var(--ui-bg-button);border:1px solid var(--ui-border-soft);color:var(--ui-text);border-radius:5px;padding:3px 6px;font-size:11px;max-width:100%}.history-intervention-status{font-size:11px;color:var(--ui-muted);min-height:16px}.history-intervention-status.error{color:#d64545}.history-intervention-status.success{color:#5cb85c}@media(max-width:768px){.history-topbar{top:0;left:0;right:0;transform:none;justify-content:flex-start;flex-wrap:nowrap;height:40px;padding:0 8px}.history-year{min-width:72px;font-size:12px}.history-speed-btn{padding:2px 6px;font-size:11px}.nation-panel,.event-log-panel,.ranking-panel,.world-stats-panel{left:8px;right:8px;width:auto;max-width:none}.event-log-panel{top:96px;max-height:160px}.nation-panel,.ranking-panel,.world-stats-panel{top:268px}}.launcher-root{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at 50% 30%,#1a1f2e,#0d0f16 70%);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:var(--ui-text);padding:16px;overflow-y:auto}.launcher-header{text-align:center;margin-bottom:2px}.launcher-title{font-size:28px;font-weight:800;letter-spacing:1px;color:#e6ecf7;text-shadow:0 0 24px rgba(120,170,255,.35)}.launcher-subtitle{margin-top:4px;font-size:13px;color:var(--ui-muted)}.launcher-mode-cards{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}.launcher-card{width:230px;padding:14px 16px;background:var(--ui-bg-panel);border:1px solid var(--ui-border-soft);border-radius:12px;color:var(--ui-text);cursor:pointer;text-align:left;transition:border-color var(--ui-motion-mid),transform var(--ui-motion-mid),box-shadow var(--ui-motion-mid);font-family:inherit}.launcher-card:hover{border-color:var(--ui-focus);transform:translateY(-2px);box-shadow:var(--ui-shadow-panel)}.launcher-card.active{border-color:var(--ui-focus);background:var(--ui-bg-button-active);box-shadow:0 0 0 1px var(--ui-focus)}.launcher-card-icon{font-size:26px;margin-bottom:6px}.launcher-card-name{font-size:16px;font-weight:700;margin-bottom:4px}.launcher-card-desc{font-size:11px;color:var(--ui-muted);line-height:1.4}.launcher-config{display:flex;flex-direction:column;gap:10px;width:300px;max-width:90vw}.launcher-config-row{display:flex;flex-direction:column;gap:4px}.launcher-config-row.hidden{display:none}.launcher-label{font-size:13px;color:var(--ui-muted)}.launcher-input{padding:9px 12px;background:var(--ui-bg-button);border:1px solid var(--ui-border-soft);border-radius:6px;color:var(--ui-text);font-size:14px;font-family:inherit;outline:none}.launcher-input:focus{border-color:var(--ui-focus)}.launcher-template-list{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;max-height:200px;overflow-y:auto;padding-right:4px}.launcher-template-list::-webkit-scrollbar{width:8px}.launcher-template-list::-webkit-scrollbar-thumb{background:var(--ui-border-soft);border-radius:4px}.launcher-template-btn{flex:none;width:100%;padding:8px 10px;text-align:left;background:var(--ui-bg-button);border:1px solid var(--ui-border-soft);border-radius:6px;color:var(--ui-text);font-size:13px;cursor:pointer;font-family:inherit;transition:background var(--ui-motion-fast),border-color var(--ui-motion-fast)}.launcher-template-btn:hover{background:var(--ui-bg-button-hover)}.launcher-template-btn.active{background:var(--ui-bg-button-active);border-color:var(--ui-focus)}.launcher-size-group{display:flex;gap:8px}.launcher-size-btn{flex:1;padding:9px 0;background:var(--ui-bg-button);border:1px solid var(--ui-border-soft);border-radius:6px;color:var(--ui-text);font-size:13px;cursor:pointer;font-family:inherit;transition:background var(--ui-motion-fast),border-color var(--ui-motion-fast)}.launcher-size-btn:hover{background:var(--ui-bg-button-hover)}.launcher-size-btn.active{background:var(--ui-bg-button-active);border-color:var(--ui-focus)}.launcher-import-row{padding-top:2px}.launcher-import-controls{display:flex;flex-direction:column;gap:6px}.launcher-map-status{font-size:12px;color:var(--ui-warn);min-height:16px}.launcher-map-status.ok{color:var(--ok-color, #6fbf6f)}.launcher-enter-btn{margin-top:2px;padding:10px 44px;background:var(--ui-bg-button-active);border:1px solid var(--ui-focus);border-radius:8px;color:#fff;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:background var(--ui-motion-mid),transform var(--ui-motion-mid)}.launcher-enter-btn:hover{background:var(--ui-focus);transform:translateY(-1px)}
