/* CVGAME V1239 — Desktop Theme 2: «Пустоши»
 * Один файл визуального слоя. Активируется только на ПК через body.cv-desktop-theme2.
 * Мобильный интерфейс не изменяется.
 */
@media (min-width: 1000px){
html{background:#07090b}
body.cv-desktop-theme2{
  --cv-bg:#090b0d;--cv-panel:#12171b;--cv-panel2:#181f24;--cv-edge:#596167;
  --cv-rust:#a54819;--cv-orange:#ff8a22;--cv-amber:#ffc34b;--cv-red:#d83a2e;
  --cv-green:#45d56d;--cv-blue:#3e9fe8;--cv-text:#edf1f3;--cv-muted:#9fa9af;
  margin:0;color:var(--cv-text);background:
   radial-gradient(circle at 72% 4%,rgba(255,111,24,.12),transparent 28%),
   radial-gradient(circle at 16% 12%,rgba(84,118,132,.10),transparent 25%),
   linear-gradient(rgba(0,0,0,.36),rgba(0,0,0,.72)),
   repeating-linear-gradient(135deg,#0d1114 0 12px,#0a0d0f 12px 24px);
  font-family:"Segoe UI",Arial,sans-serif;letter-spacing:.01em;
}
body.cv-desktop-theme2:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.22;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}
body.cv-desktop-theme2 .wrap{width:min(1680px,calc(100vw - 28px));max-width:none;padding:12px 14px 28px}
body.cv-desktop-theme2 .cv-shell{max-width:none!important;width:100%;padding:10px 12px 30px;font-size:100%}
body.cv-desktop-theme2 #app{max-width:none}

/* Металлические панели */
body.cv-desktop-theme2 .card,
body.cv-desktop-theme2 .cv-detail-card,
body.cv-desktop-theme2 .cv-management-card,
body.cv-desktop-theme2 .cv-building,
body.cv-desktop-theme2 .cv-country-detail-row,
body.cv-desktop-theme2 .cv-player-country,
body.cv-desktop-theme2 .cv-clan-admin,
body.cv-desktop-theme2 .cv-management-content{
 background:linear-gradient(180deg,rgba(28,35,40,.98),rgba(12,16,19,.98))!important;
 border:1px solid #505960!important;border-radius:5px!important;
 box-shadow:inset 0 1px rgba(255,255,255,.05),inset 0 -12px 30px rgba(0,0,0,.28),0 6px 18px rgba(0,0,0,.38)!important;
}
body.cv-desktop-theme2 .cv-detail-card{position:relative;padding:14px 16px}
body.cv-desktop-theme2 .cv-detail-card:before,body.cv-desktop-theme2 .cv-management-card:before{content:"";position:absolute;left:8px;right:8px;top:5px;height:1px;background:linear-gradient(90deg,transparent,#7d858a,transparent);opacity:.45;pointer-events:none}
body.cv-desktop-theme2 h1,body.cv-desktop-theme2 h2,body.cv-desktop-theme2 h3{color:#f4f0e9;text-shadow:0 1px 1px #000;letter-spacing:.02em}
body.cv-desktop-theme2 .muted{color:#9aa5ab}

/* Верхняя ресурсная панель */
body.cv-desktop-theme2 .cv-resbar{grid-template-columns:repeat(8,minmax(110px,1fr));gap:0;padding:0;background:linear-gradient(180deg,#20272b,#0d1114)!important;border:1px solid #666d71!important;border-radius:4px!important;box-shadow:0 5px 18px #0009,inset 0 1px #ffffff12!important;overflow:hidden}
body.cv-desktop-theme2 .cv-resitem{padding:10px 12px;border-right:1px solid #3f474c!important;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.12))}
body.cv-desktop-theme2 .cv-resitem:last-child{border-right:0!important}
body.cv-desktop-theme2 .cv-resicon{font-size:23px;filter:drop-shadow(0 2px 2px #000)}
body.cv-desktop-theme2 .cv-resvalue{font-size:16px;color:#fff;font-weight:800}
body.cv-desktop-theme2 .cv-resrate{color:#82d46e;font-size:11px}
body.cv-desktop-theme2 .cv-profile{margin-top:7px;border:1px solid #4c555a!important;border-radius:4px!important;background:linear-gradient(180deg,#20272c,#101519)!important;box-shadow:inset 0 1px #ffffff10!important}
body.cv-desktop-theme2 .cv-profile-avatar{border-radius:3px;border-color:#aa5628;box-shadow:0 0 0 1px #24150e,0 0 12px #ff7a2520}
body.cv-desktop-theme2 .cv-profile-sub{color:#dca853}.cv-desktop-theme2 .cv-clock{color:#e8c673}

/* Главное меню — командная панель */
body.cv-desktop-theme2 .cv-nav{grid-template-columns:repeat(11,minmax(70px,1fr));gap:4px;margin:7px 0 10px;padding:5px;background:#080b0d;border:1px solid #3f474c;border-radius:4px;box-shadow:0 4px 15px #0008}
body.cv-desktop-theme2 .cv-nav button{height:47px;border:1px solid #4d565b!important;border-radius:3px!important;background:linear-gradient(180deg,#2a3136,#151a1e)!important;color:#e7ebed;font-size:20px;box-shadow:inset 0 1px #ffffff0f!important;transition:.14s transform,.14s filter,.14s border-color}
body.cv-desktop-theme2 .cv-nav button:hover{transform:translateY(-1px);filter:brightness(1.18);border-color:#c06a31!important}
body.cv-desktop-theme2 .cv-nav button:active{transform:translateY(1px)}
body.cv-desktop-theme2 .cv-msg-nav.has-unread,body.cv-desktop-theme2 .cv-notify-nav.has-unread{background:linear-gradient(180deg,#8d2925,#3d1110)!important;border-color:#e75043!important}

/* Вкладки */
body.cv-desktop-theme2 .cv-tabs{border:1px solid #4a5257;border-radius:4px;background:#0c1013;gap:3px;padding:3px;overflow:visible}
body.cv-desktop-theme2 .cv-tab{height:43px!important;border:1px solid #3d454a!important;border-radius:2px!important;background:linear-gradient(180deg,#242b30,#13181c)!important;color:#cbd2d5}
body.cv-desktop-theme2 .cv-tab.active{background:linear-gradient(180deg,#8d4c24,#4c2714)!important;border-color:#d37836!important;color:#fff5de;box-shadow:inset 0 0 12px #ff8a2220!important}

/* Кнопки */
body.cv-desktop-theme2 button,body.cv-desktop-theme2 .button{border-radius:3px!important;border:1px solid #626b70!important;background:linear-gradient(180deg,#394248,#20272c)!important;color:#f5f7f8!important;box-shadow:inset 0 1px #ffffff14,0 2px 5px #0006!important;font-weight:750}
body.cv-desktop-theme2 button:hover,body.cv-desktop-theme2 .button:hover{filter:brightness(1.14);border-color:#d07136!important}
body.cv-desktop-theme2 button.danger,body.cv-desktop-theme2 .danger{background:linear-gradient(180deg,#a73b32,#5a1715)!important;border-color:#d95a4d!important}
body.cv-desktop-theme2 .ok{color:#63dd82}
body.cv-desktop-theme2 .cv-page-back{background:linear-gradient(180deg,#353d42,#1b2024)!important;border-color:#525b60!important}

/* Поля и таблицы */
body.cv-desktop-theme2 input,body.cv-desktop-theme2 select,body.cv-desktop-theme2 textarea{border-radius:3px!important;border:1px solid #505b61!important;background:#0d1215!important;color:#f2f5f6!important;box-shadow:inset 0 2px 7px #0008!important}
body.cv-desktop-theme2 input:focus,body.cv-desktop-theme2 select:focus,body.cv-desktop-theme2 textarea:focus{outline:none;border-color:#c66a34!important;box-shadow:0 0 0 2px #d46b2c28,inset 0 2px 7px #000!important}
body.cv-desktop-theme2 table{border-collapse:collapse;width:100%;background:#0e1316}
body.cv-desktop-theme2 th{background:linear-gradient(180deg,#343c41,#1d2327);color:#eac692;border:1px solid #4a5358;padding:9px}
body.cv-desktop-theme2 td{border:1px solid #343c41;padding:8px;background:#11171a}
body.cv-desktop-theme2 tr:hover td{background:#192126}

/* Здания */
body.cv-desktop-theme2 .cv-building-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
body.cv-desktop-theme2 .cv-building{overflow:hidden;transition:.16s transform,.16s box-shadow}
body.cv-desktop-theme2 .cv-building:hover{transform:translateY(-2px);box-shadow:0 9px 24px #0009,0 0 0 1px #9a542c!important}
body.cv-desktop-theme2 .cv-building-img{height:142px;background:#080d10}
body.cv-desktop-theme2 .cv-building-img:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 40%,#07090be8 100%)}
body.cv-desktop-theme2 .cv-building-img img{transform:scale(1);filter:saturate(.86) contrast(1.07)}
body.cv-desktop-theme2 .cv-building-title{font-size:14px;background:linear-gradient(180deg,transparent,#07090bef)}
body.cv-desktop-theme2 .cv-level-badge{border-radius:2px;background:linear-gradient(180deg,#728544,#34451d);border-color:#a6b76d;box-shadow:0 2px 6px #0008}
body.cv-desktop-theme2 .cv-building.resource{border-color:#6b563d!important}.cv-desktop-theme2 .cv-building.warehouse{border-color:#65605b!important}

/* Армия / списки */
body.cv-desktop-theme2 .unit{border-color:#343c41;padding:12px;background:linear-gradient(180deg,#151b1f,#0c1114);margin:5px 0;border:1px solid #343c41;border-radius:3px}
body.cv-desktop-theme2 .cv-unit-art{border-radius:3px;filter:saturate(.82) contrast(1.08);box-shadow:0 3px 10px #0008}
body.cv-desktop-theme2 .badge{background:#252c31;border:1px solid #454e53;color:#dec69d;border-radius:3px}
body.cv-desktop-theme2 .progress{background:#06090b;border:1px solid #343b3f;height:9px}.cv-desktop-theme2 .bar{background:linear-gradient(90deg,#8e401e,#f29238)}

/* Карта */
body.cv-desktop-theme2 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 300px;gap:10px}
body.cv-desktop-theme2 .cv-world-main{height:min(72vh,820px)!important;min-height:610px;border:1px solid #6b5f52;border-radius:3px;background:#0a0e10;box-shadow:inset 0 0 35px #000,0 8px 25px #0008}
body.cv-desktop-theme2 .cv-world-sidebar{border-radius:3px;border:1px solid #4a5358;background:linear-gradient(180deg,#191f23,#0b0f12);box-shadow:0 5px 18px #0007}
body.cv-desktop-theme2 .cv-world-minimap{border-color:#554c43;background:#090d0f}
body.cv-desktop-theme2 .cv-map-marker{filter:drop-shadow(0 3px 3px #000)}
body.cv-desktop-theme2 .cv-world-controls button{background:linear-gradient(180deg,#383f44,#1c2226)!important;border-color:#50595e!important}

/* Управление */
body.cv-desktop-theme2 .cv-management-page{max-width:1500px;margin:0 auto}
body.cv-desktop-theme2 .cv-management-body{display:grid;grid-template-columns:310px minmax(0,1fr);gap:12px;padding:12px}
body.cv-desktop-theme2 .cv-management-list{gap:5px;align-content:start}
body.cv-desktop-theme2 .cv-management-item{min-height:50px;border-radius:3px!important;background:linear-gradient(180deg,#232a2f,#151a1e)!important;border:1px solid #414a4f!important}
body.cv-desktop-theme2 .cv-management-item.active{background:linear-gradient(180deg,#75401f,#3a1e10)!important;border-color:#c56c32!important;box-shadow:inset 3px 0 #ff9b44!important}
body.cv-desktop-theme2 .cv-management-icon{border-radius:2px;background:#0d1114;border-color:#41494e}
body.cv-desktop-theme2 .cv-management-head{background:linear-gradient(180deg,#2d3439,#181d21);border-bottom:1px solid #51595e}

/* Выбор темы */
body.cv-desktop-theme2 .cv-theme-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
body.cv-desktop-theme2 .cv-theme-option{display:block;padding:0!important;text-align:left!important;overflow:hidden;border:1px solid #555e63!important;background:#0c1013!important}
body.cv-desktop-theme2 .cv-theme-preview{height:120px;display:grid;place-items:center;font-size:36px;background:linear-gradient(135deg,#152636,#071019);border-bottom:1px solid #41494e}
body.cv-desktop-theme2 .cv-theme-option[data-theme="wasteland"] .cv-theme-preview{background:radial-gradient(circle at 70% 30%,#b85b22 0 4%,transparent 5%),linear-gradient(145deg,#3b2b20,#14191c 50%,#080a0c);color:#ff9b3c}
body.cv-desktop-theme2 .cv-theme-option.active{border-color:#e07939!important;box-shadow:0 0 0 1px #e07939,0 0 18px #ff79252c!important}
body.cv-desktop-theme2 .cv-theme-option strong{display:block;padding:10px 12px 2px;color:#fff}.cv-desktop-theme2 .cv-theme-option small{display:block;padding:0 12px 12px;color:#9ea7ac;line-height:1.4}

/* Кланы / сообщения / события */
body.cv-desktop-theme2 .cv-clan-banner,body.cv-desktop-theme2 .cv-player-profile-head{border-radius:3px!important;border-color:#4a5358!important;background:linear-gradient(180deg,#222a2f,#111619)!important}
body.cv-desktop-theme2 .cv-clan-member,body.cv-desktop-theme2 .cv-clan-row,body.cv-desktop-theme2 .cv-clan-invite,body.cv-desktop-theme2 .cv-player-row{border-radius:3px!important;border-color:#3f484d!important;background:#12181b!important}
body.cv-desktop-theme2 .cv-player-row:hover,body.cv-desktop-theme2 .cv-clan-row:hover{background:#1b2429!important}
body.cv-desktop-theme2 .cv-server-alert{border-radius:3px!important;background:linear-gradient(90deg,#6c1e18,#23100e)!important;border-color:#a94437!important}

/* Scrollbar */
body.cv-desktop-theme2 *{scrollbar-width:thin;scrollbar-color:#5e493b #0b0f12}
body.cv-desktop-theme2 ::-webkit-scrollbar{width:10px;height:10px}body.cv-desktop-theme2 ::-webkit-scrollbar-track{background:#0b0f12}body.cv-desktop-theme2 ::-webkit-scrollbar-thumb{background:linear-gradient(#655044,#3b312b);border:2px solid #0b0f12;border-radius:3px}

/* Турнир сохраняет свою семантику, но в теме 2 получает металлический слой */
body.cv-desktop-theme2.cv-tournament-mode .cv-resbar,body.cv-desktop-theme2.cv-tournament-mode .cv-profile{border-color:#704e82!important;background:linear-gradient(180deg,#26202d,#121017)!important}

/* 1366px — чуть компактнее */
@media (max-width:1450px){
 body.cv-desktop-theme2 .cv-shell{padding:7px}
 body.cv-desktop-theme2 .cv-resbar{grid-template-columns:repeat(4,1fr)}
 body.cv-desktop-theme2 .cv-nav{grid-template-columns:repeat(8,1fr)}
 body.cv-desktop-theme2 .cv-building-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.cv-desktop-theme2 .cv-management-body{grid-template-columns:260px minmax(0,1fr)}
}
}

/* Базовый вид переключателя темы в текущем (Стиль 1) интерфейсе на ПК. */
@media (min-width:1000px){
.cv-theme-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.cv-theme-option{padding:0!important;overflow:hidden;text-align:left!important;border:1px solid #2e5d82!important;background:#071727!important}
.cv-theme-option.active{border-color:#45b9ff!important;box-shadow:0 0 0 1px #45b9ff,0 0 16px rgba(30,150,255,.18)!important}
.cv-theme-preview{height:105px;display:grid;place-items:center;font-size:34px;background:linear-gradient(135deg,#0b3f77,#061a2e);border-bottom:1px solid rgba(90,180,240,.28)}
.cv-theme-option[data-theme="wasteland"] .cv-theme-preview{background:linear-gradient(145deg,#4a2c1e,#171c1f 55%,#090b0d);color:#ff9a42}
.cv-theme-option strong,.cv-theme-option small{display:block;padding-left:12px;padding-right:12px}.cv-theme-option strong{padding-top:10px}.cv-theme-option small{padding-top:4px;padding-bottom:12px;color:#9fc3df;line-height:1.45}
}

/* ========================================================================== */
/* CVGAME V1240 — Desktop Theme 3: «Пустоши Modern»                           */
/* Весь визуальный слой стиля 3 остаётся в ЭТОМ ЖЕ одном CSS-файле.           */
/* ========================================================================== */
@media (min-width:1000px){
body.cv-desktop-theme3{
  --m-bg:#071017;--m-bg2:#0a151e;--m-panel:rgba(11,24,33,.94);--m-panel2:rgba(16,34,45,.96);
  --m-edge:#28485a;--m-edge2:#3b687f;--m-cyan:#23c8e8;--m-blue:#2387d9;--m-green:#22d47f;
  --m-red:#ef4a4a;--m-amber:#f5a83b;--m-text:#eaf7fb;--m-muted:#88a8b6;
  margin:0;color:var(--m-text);font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 50% -15%,rgba(38,160,205,.18),transparent 38%),
    radial-gradient(circle at 90% 8%,rgba(245,139,48,.10),transparent 23%),
    linear-gradient(180deg,#08131b 0,#050b10 55%,#03070a 100%);
  letter-spacing:.005em;
}
body.cv-desktop-theme3:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(60,160,190,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(60,160,190,.06) 1px,transparent 1px);background-size:36px 36px}
body.cv-desktop-theme3 .wrap{width:calc(100vw - 12px);max-width:none!important;padding:6px!important;margin:0 auto}
body.cv-desktop-theme3 .cv-shell{max-width:none!important;width:100%!important;padding:6px 7px 16px!important;font-size:100%}
body.cv-desktop-theme3 #app{max-width:none!important;width:100%}

/* Панели — современный графит/стекло */
body.cv-desktop-theme3 .card,
body.cv-desktop-theme3 .cv-detail-card,
body.cv-desktop-theme3 .cv-management-card,
body.cv-desktop-theme3 .cv-building,
body.cv-desktop-theme3 .cv-country-detail-row,
body.cv-desktop-theme3 .cv-player-country,
body.cv-desktop-theme3 .cv-clan-admin,
body.cv-desktop-theme3 .cv-management-content{
 background:linear-gradient(180deg,rgba(18,38,49,.96),rgba(7,17,24,.98))!important;
 border:1px solid var(--m-edge)!important;border-radius:8px!important;
 box-shadow:inset 0 1px rgba(135,220,245,.055),0 7px 22px rgba(0,0,0,.38)!important;
 backdrop-filter:blur(8px);
}
body.cv-desktop-theme3 h1,body.cv-desktop-theme3 h2,body.cv-desktop-theme3 h3{color:#f3fbff;text-shadow:0 1px 8px rgba(0,0,0,.45);font-weight:750}
body.cv-desktop-theme3 .muted{color:var(--m-muted)}

/* Верхняя строка ресурсов — ниже и плотнее, чтобы отдать место карте */
body.cv-desktop-theme3 .cv-resbar{grid-template-columns:repeat(8,minmax(98px,1fr));gap:3px;padding:4px;background:rgba(4,12,18,.95)!important;border:1px solid #1e4154!important;border-radius:8px!important;box-shadow:0 5px 20px #0008,inset 0 1px rgba(105,210,245,.05)!important}
body.cv-desktop-theme3 .cv-resitem{padding:7px 9px!important;border:1px solid rgba(52,102,125,.45)!important;border-radius:6px!important;background:linear-gradient(180deg,rgba(27,53,67,.78),rgba(9,24,33,.88))!important}
body.cv-desktop-theme3 .cv-resicon{font-size:20px;filter:drop-shadow(0 2px 4px #000)}
body.cv-desktop-theme3 .cv-resvalue{font-size:14px!important;font-weight:800;color:#f5fbfe}
body.cv-desktop-theme3 .cv-resrate{font-size:10px;color:#66d99b}
body.cv-desktop-theme3 .cv-profile{margin-top:4px!important;border:1px solid #24495b!important;border-radius:8px!important;background:linear-gradient(180deg,rgba(18,40,52,.94),rgba(7,18,25,.96))!important;box-shadow:0 5px 18px #0007!important}
body.cv-desktop-theme3 .cv-profile-avatar{border-radius:6px!important;border-color:#2d7897!important;box-shadow:0 0 0 1px #07141c,0 0 14px rgba(35,200,232,.14)}
body.cv-desktop-theme3 .cv-profile-sub{color:#80cce4}.cv-desktop-theme3 .cv-clock{color:#a7ddea}

/* Главное меню — компактная современная панель */
body.cv-desktop-theme3 .cv-nav{grid-template-columns:repeat(11,minmax(62px,1fr));gap:3px;margin:4px 0 6px!important;padding:3px;background:#050d12;border:1px solid #1f4051;border-radius:7px;box-shadow:0 4px 14px #0008}
body.cv-desktop-theme3 .cv-nav button{height:40px!important;border:1px solid #244859!important;border-radius:5px!important;background:linear-gradient(180deg,#153143,#0b1c27)!important;color:#dbeff5!important;font-size:18px!important;box-shadow:inset 0 1px rgba(115,211,240,.06)!important;transition:.12s ease}
body.cv-desktop-theme3 .cv-nav button:hover{transform:translateY(-1px);background:linear-gradient(180deg,#1b4860,#0c2634)!important;border-color:#2ba9d2!important;box-shadow:0 0 12px rgba(35,200,232,.10)!important}
body.cv-desktop-theme3 .cv-msg-nav.has-unread,body.cv-desktop-theme3 .cv-notify-nav.has-unread{background:linear-gradient(180deg,#7f292d,#331114)!important;border-color:#df4b51!important;box-shadow:0 0 12px rgba(239,74,74,.20)!important}

/* Вкладки и кнопки */
body.cv-desktop-theme3 .cv-tabs{border:1px solid #21465a;border-radius:7px;background:#061118;gap:3px;padding:3px;overflow:visible}
body.cv-desktop-theme3 .cv-tab{height:38px!important;border:1px solid #23485a!important;border-radius:5px!important;background:linear-gradient(180deg,#163243,#0c1e29)!important;color:#b8d2dc!important}
body.cv-desktop-theme3 .cv-tab.active{background:linear-gradient(180deg,#16627b,#0c3b4e)!important;border-color:#2ec5e8!important;color:#effcff!important;box-shadow:inset 0 0 14px rgba(35,200,232,.08),0 0 10px rgba(35,200,232,.08)!important}
body.cv-desktop-theme3 button,body.cv-desktop-theme3 .button{border-radius:6px!important;border:1px solid #31566a!important;background:linear-gradient(180deg,#1c3d50,#102936)!important;color:#edf9fc!important;box-shadow:inset 0 1px rgba(130,220,245,.07),0 2px 7px #0007!important;font-weight:700}
body.cv-desktop-theme3 button:hover,body.cv-desktop-theme3 .button:hover{filter:brightness(1.12);border-color:#30b6df!important}
body.cv-desktop-theme3 button.danger,body.cv-desktop-theme3 .danger{background:linear-gradient(180deg,#96363c,#47171c)!important;border-color:#dc4c54!important}
body.cv-desktop-theme3 .ok{color:#56e396}

/* Поля / таблицы */
body.cv-desktop-theme3 input,body.cv-desktop-theme3 select,body.cv-desktop-theme3 textarea{border-radius:6px!important;border:1px solid #285166!important;background:#06131b!important;color:#effaff!important;box-shadow:inset 0 2px 6px #0007!important}
body.cv-desktop-theme3 input:focus,body.cv-desktop-theme3 select:focus,body.cv-desktop-theme3 textarea:focus{outline:none;border-color:#25b9df!important;box-shadow:0 0 0 2px rgba(35,200,232,.12),inset 0 2px 6px #000!important}
body.cv-desktop-theme3 table{border-collapse:separate!important;border-spacing:0 3px!important;width:100%;background:transparent!important}
body.cv-desktop-theme3 th{background:#0d2532!important;color:#9ed8e8!important;border:0!important;border-bottom:1px solid #2a5569!important;padding:8px!important}
body.cv-desktop-theme3 td{border:0!important;border-top:1px solid rgba(46,87,106,.55)!important;border-bottom:1px solid rgba(46,87,106,.35)!important;padding:8px!important;background:rgba(9,24,33,.82)!important}
body.cv-desktop-theme3 tr:hover td{background:rgba(18,46,59,.92)!important}

/* Карточки зданий */
body.cv-desktop-theme3 .cv-building-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px!important}
body.cv-desktop-theme3 .cv-building{overflow:hidden;transition:.14s transform,.14s border-color,.14s box-shadow}
body.cv-desktop-theme3 .cv-building:hover{transform:translateY(-2px);border-color:#2d8fae!important;box-shadow:0 8px 22px #0008,0 0 0 1px rgba(35,200,232,.08)!important}
body.cv-desktop-theme3 .cv-building-img{height:132px!important;background:#061118}
body.cv-desktop-theme3 .cv-building-img img{filter:saturate(.92) contrast(1.04)}
body.cv-desktop-theme3 .cv-building-title{font-size:13px!important;background:linear-gradient(180deg,transparent,#061017ef)}
body.cv-desktop-theme3 .cv-level-badge{border-radius:4px!important;background:linear-gradient(180deg,#267c5c,#154835)!important;border-color:#42bc89!important;box-shadow:0 2px 6px #0008}

/* Армия / списки */
body.cv-desktop-theme3 .unit{border-color:#21485a!important;padding:10px!important;background:linear-gradient(180deg,#102834,#091923)!important;margin:4px 0!important;border:1px solid #21485a!important;border-radius:6px!important}
body.cv-desktop-theme3 .cv-unit-art{border-radius:6px!important;filter:saturate(.95) contrast(1.04);box-shadow:0 3px 9px #0008}
body.cv-desktop-theme3 .badge{background:#102a38!important;border:1px solid #2c5568!important;color:#b9dbe5!important;border-radius:5px!important}
body.cv-desktop-theme3 .progress{background:#03090d!important;border:1px solid #244a5c!important;height:8px!important}.cv-desktop-theme3 .bar{background:linear-gradient(90deg,#1a9e79,#2acbe6)!important}

/* МИРОВАЯ КАРТА — максимально крупная на ПК */
body.cv-desktop-theme3 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 285px!important;gap:7px!important;width:100%!important;max-width:none!important}
body.cv-desktop-theme3 .cv-world-main{height:calc(100vh - 235px)!important;min-height:690px!important;max-height:none!important;border:1px solid #2a5e74!important;border-radius:7px!important;background:#050c11!important;box-shadow:inset 0 0 28px #000,0 7px 22px #0009,0 0 0 1px rgba(35,200,232,.03)!important}
body.cv-desktop-theme3 .cv-world-sidebar{width:285px!important;border-radius:7px!important;border:1px solid #285266!important;background:linear-gradient(180deg,rgba(13,33,44,.97),rgba(5,15,21,.99))!important;box-shadow:0 5px 18px #0008!important}
body.cv-desktop-theme3 .cv-world-minimap{border-color:#2f6177!important;background:#061119!important}
body.cv-desktop-theme3 .cv-map-marker{filter:drop-shadow(0 3px 4px #000)}
body.cv-desktop-theme3 .cv-world-controls button{background:linear-gradient(180deg,#17384a,#0b222e)!important;border-color:#2e5b70!important}

/* Управление */
body.cv-desktop-theme3 .cv-management-page{max-width:1700px!important;margin:0 auto}
body.cv-desktop-theme3 .cv-management-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:9px;padding:9px}
body.cv-desktop-theme3 .cv-management-list{gap:4px;align-content:start}
body.cv-desktop-theme3 .cv-management-item{min-height:46px!important;border-radius:6px!important;background:linear-gradient(180deg,#153141,#0b1d27)!important;border:1px solid #274b5d!important}
body.cv-desktop-theme3 .cv-management-item.active{background:linear-gradient(180deg,#14536a,#0b3343)!important;border-color:#2ab8df!important;box-shadow:inset 3px 0 #38ccea!important}
body.cv-desktop-theme3 .cv-management-icon{border-radius:5px!important;background:#07151d!important;border-color:#284a5b!important}
body.cv-desktop-theme3 .cv-management-head{background:linear-gradient(180deg,#173746,#0d222d)!important;border-bottom:1px solid #29546a!important}

/* Переключатель тем — три карточки */
body.cv-desktop-theme3 .cv-theme-chooser{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:12px}
body.cv-desktop-theme3 .cv-theme-option{display:block;padding:0!important;text-align:left!important;overflow:hidden;border:1px solid #28566c!important;background:#07151d!important}
body.cv-desktop-theme3 .cv-theme-preview{height:105px!important;display:grid;place-items:center;font-size:34px;background:linear-gradient(135deg,#0b3f77,#061a2e);border-bottom:1px solid #2c5669}
body.cv-desktop-theme3 .cv-theme-option[data-theme="wasteland"] .cv-theme-preview{background:linear-gradient(145deg,#4a2c1e,#171c1f 55%,#090b0d);color:#ff9a42}
body.cv-desktop-theme3 .cv-theme-option[data-theme="modern"] .cv-theme-preview{background:radial-gradient(circle at 70% 25%,rgba(35,200,232,.32),transparent 20%),linear-gradient(145deg,#12384a,#07161f 58%,#040a0e);color:#52d9f4;text-shadow:0 0 18px rgba(35,200,232,.45)}
body.cv-desktop-theme3 .cv-theme-option.active{border-color:#2ac8e9!important;box-shadow:0 0 0 1px #2ac8e9,0 0 18px rgba(35,200,232,.13)!important}
body.cv-desktop-theme3 .cv-theme-option strong{display:block;padding:9px 11px 2px;color:#fff}.cv-desktop-theme3 .cv-theme-option small{display:block;padding:0 11px 11px;color:#8eb4c1;line-height:1.4}

/* Кланы / игроки / уведомления */
body.cv-desktop-theme3 .cv-clan-banner,body.cv-desktop-theme3 .cv-player-profile-head{border-radius:7px!important;border-color:#285267!important;background:linear-gradient(180deg,#173442,#0b1c25)!important}
body.cv-desktop-theme3 .cv-clan-member,body.cv-desktop-theme3 .cv-clan-row,body.cv-desktop-theme3 .cv-clan-invite,body.cv-desktop-theme3 .cv-player-row{border-radius:6px!important;border-color:#23495b!important;background:#0b202a!important}
body.cv-desktop-theme3 .cv-player-row:hover,body.cv-desktop-theme3 .cv-clan-row:hover{background:#12313e!important}
body.cv-desktop-theme3 .cv-server-alert{border-radius:6px!important;background:linear-gradient(90deg,#54252a,#180d10)!important;border-color:#9b3c43!important}

/* Scrollbar */
body.cv-desktop-theme3 *{scrollbar-width:thin;scrollbar-color:#2a6076 #061017}
body.cv-desktop-theme3 ::-webkit-scrollbar{width:9px;height:9px}body.cv-desktop-theme3 ::-webkit-scrollbar-track{background:#061017}body.cv-desktop-theme3 ::-webkit-scrollbar-thumb{background:linear-gradient(#2a6d83,#194252);border:2px solid #061017;border-radius:8px}

/* Турнир — отдельная семантика сохраняется */
body.cv-desktop-theme3.cv-tournament-mode .cv-resbar,body.cv-desktop-theme3.cv-tournament-mode .cv-profile{border-color:#51528a!important;background:linear-gradient(180deg,rgba(31,35,64,.96),rgba(10,15,28,.98))!important}

@media (max-width:1450px){
 body.cv-desktop-theme3 .cv-shell{padding:4px!important}
 body.cv-desktop-theme3 .cv-resbar{grid-template-columns:repeat(4,1fr)}
 body.cv-desktop-theme3 .cv-nav{grid-template-columns:repeat(8,1fr)}
 body.cv-desktop-theme3 .cv-building-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 body.cv-desktop-theme3 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 250px!important}
 body.cv-desktop-theme3 .cv-world-sidebar{width:250px!important}
 body.cv-desktop-theme3 .cv-world-main{height:calc(100vh - 250px)!important;min-height:610px!important}
 body.cv-desktop-theme3 .cv-management-body{grid-template-columns:245px minmax(0,1fr)}
}
}

/* Переключатель из Стиля 1 и Стиля 2 тоже показывает все 3 темы. */
@media (min-width:1000px){
.cv-theme-chooser{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.cv-theme-option[data-theme="modern"] .cv-theme-preview{background:radial-gradient(circle at 70% 25%,rgba(35,200,232,.30),transparent 20%),linear-gradient(145deg,#12384a,#07161f 58%,#040a0e);color:#52d9f4}
}

/* CVGAME V1241 — Desktop Theme 4: «Командный центр»
 * Единый CSS-файл. Боевой постапокалиптический интерфейс, только ПК.
 */
@media (min-width:1000px){
body.cv-desktop-theme4{--cmd-bg:#0b0d0d;--cmd-panel:#15191a;--cmd-edge:#6c5a3e;--cmd-sand:#c5ad7d;--cmd-amber:#e6a632;--cmd-orange:#c86a20;--cmd-text:#eee7d8;--cmd-muted:#aaa08e;background:radial-gradient(circle at 70% 0,rgba(214,124,39,.13),transparent 28%),linear-gradient(180deg,#171717,#090a0a 45%,#050606);color:var(--cmd-text);font-family:"Segoe UI",Arial,sans-serif}
body.cv-desktop-theme4 .wrap,body.cv-desktop-theme4 .cv-shell{width:calc(100vw - 12px)!important;max-width:none!important;margin:0 auto!important;padding:6px!important}
body.cv-desktop-theme4 #app{max-width:none!important}
body.cv-desktop-theme4 .card,body.cv-desktop-theme4 .cv-detail-card,body.cv-desktop-theme4 .cv-management-card,body.cv-desktop-theme4 .cv-management-content,body.cv-desktop-theme4 .cv-building{background:linear-gradient(180deg,#1c2020,#0d1011)!important;border:1px solid #5d503b!important;border-radius:3px!important;box-shadow:inset 0 1px #ffffff0b,inset 0 -16px 28px #0005,0 4px 12px #0008!important}
body.cv-desktop-theme4 h1,body.cv-desktop-theme4 h2,body.cv-desktop-theme4 h3{color:#f2e8d2;text-shadow:0 1px #000}
body.cv-desktop-theme4 .muted{color:#aaa18f!important}
body.cv-desktop-theme4 .cv-resbar{grid-template-columns:repeat(8,minmax(105px,1fr));gap:1px!important;padding:2px!important;background:#070909!important;border:1px solid #6a593e!important;border-radius:3px!important;box-shadow:0 4px 12px #000b!important}
body.cv-desktop-theme4 .cv-resitem{padding:8px 10px!important;background:linear-gradient(180deg,#242625,#111414)!important;border-right:1px solid #4b4233!important}
body.cv-desktop-theme4 .cv-resvalue{color:#fff4d7!important;font-weight:800}.cv-desktop-theme4 .cv-resrate{color:#b7cf78!important}.cv-desktop-theme4 .cv-resicon{filter:drop-shadow(0 2px 2px #000)}
body.cv-desktop-theme4 .cv-profile{background:linear-gradient(180deg,#252725,#111313)!important;border:1px solid #66563e!important;border-radius:3px!important;box-shadow:0 3px 10px #0009!important}
body.cv-desktop-theme4 .cv-nav{gap:2px!important;padding:2px!important;background:#080a0a!important;border:1px solid #584b38!important;border-radius:3px!important}
body.cv-desktop-theme4 .cv-nav button,body.cv-desktop-theme4 .cv-nav a{min-height:44px!important;background:linear-gradient(180deg,#262927,#111414)!important;border:1px solid #494337!important;border-radius:2px!important;color:#ddd4c3!important}
body.cv-desktop-theme4 .cv-nav button:hover,body.cv-desktop-theme4 .cv-nav a:hover{border-color:#c88a30!important;background:linear-gradient(180deg,#393328,#191714)!important;color:#fff!important}
body.cv-desktop-theme4 .cv-nav .active{border-color:#e3a438!important;background:linear-gradient(180deg,#5a421d,#211a10)!important;color:#fff3cf!important;box-shadow:inset 3px 0 #f0b03c,0 0 9px #d6812529!important}
body.cv-desktop-theme4 .cv-tabs{background:#0b0d0d!important;border:1px solid #62543f!important;border-radius:3px!important;padding:2px!important;gap:2px!important}
body.cv-desktop-theme4 .cv-tab{height:39px!important;border:1px solid #514735!important;border-radius:2px!important;background:linear-gradient(#292b29,#151716)!important;color:#d8cfbd!important}
body.cv-desktop-theme4 .cv-tab.active{background:linear-gradient(#725125,#302112)!important;border-color:#dda03a!important;color:#fff0ca!important;box-shadow:inset 0 -2px #e5a438!important}
body.cv-desktop-theme4 button,body.cv-desktop-theme4 .button{border-radius:3px!important;border:1px solid #66563e!important;background:linear-gradient(#34332e,#191a18)!important;color:#eee5d2!important;box-shadow:inset 0 1px #ffffff10,0 2px 5px #0008!important}
body.cv-desktop-theme4 button:hover,body.cv-desktop-theme4 .button:hover{border-color:#d79a38!important;filter:brightness(1.08)}
body.cv-desktop-theme4 button.danger,body.cv-desktop-theme4 .danger{background:linear-gradient(#87382d,#391713)!important;border-color:#bd5543!important}
body.cv-desktop-theme4 input,body.cv-desktop-theme4 select,body.cv-desktop-theme4 textarea{background:#0b0d0d!important;color:#eee5d2!important;border:1px solid #65583f!important;border-radius:2px!important;box-shadow:inset 0 2px 5px #0009!important}
body.cv-desktop-theme4 input:focus,body.cv-desktop-theme4 select:focus,body.cv-desktop-theme4 textarea:focus{outline:none;border-color:#dda13d!important;box-shadow:0 0 0 2px #dda13d20,inset 0 2px 5px #000!important}
body.cv-desktop-theme4 table{border-collapse:separate!important;border-spacing:0 2px!important}body.cv-desktop-theme4 th{background:#292720!important;color:#e3c991!important;border-bottom:1px solid #806b48!important}body.cv-desktop-theme4 td{background:#151817!important;border-color:#39362e!important}body.cv-desktop-theme4 tr:hover td{background:#24231e!important}
body.cv-desktop-theme4 .cv-building-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px!important}
body.cv-desktop-theme4 .cv-building{overflow:hidden;transition:.14s transform,.14s border-color}.cv-desktop-theme4 .cv-building:hover{transform:translateY(-2px);border-color:#d59b3c!important}.cv-desktop-theme4 .cv-building-img{height:142px!important;background:#0b0c0b}.cv-desktop-theme4 .cv-building-title{background:linear-gradient(transparent,#0b0c0bea)!important;color:#f4ead5!important}.cv-desktop-theme4 .cv-level-badge{background:linear-gradient(#625321,#30280f)!important;border:1px solid #d2ad42!important;border-radius:2px!important;color:#fff4c8!important}
body.cv-desktop-theme4 .unit{background:linear-gradient(#222521,#111412)!important;border:1px solid #514a39!important;border-radius:3px!important}.cv-desktop-theme4 .badge{background:#26251f!important;border:1px solid #665c45!important;color:#e4d9c3!important}.cv-desktop-theme4 .progress{background:#070808!important;border:1px solid #514b3d!important;height:9px!important}.cv-desktop-theme4 .bar{background:linear-gradient(90deg,#8d7d28,#e0a632)!important}
/* Главный акцент: максимально большая карта/игровое поле */
body.cv-desktop-theme4 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 300px!important;gap:6px!important;width:100%!important;max-width:none!important}
body.cv-desktop-theme4 .cv-world-main{height:calc(100vh - 205px)!important;min-height:720px!important;max-height:none!important;border:1px solid #756142!important;border-radius:3px!important;background:#090a09!important;box-shadow:inset 0 0 30px #000,0 5px 18px #000b!important}
body.cv-desktop-theme4 .cv-world-sidebar{width:300px!important;background:linear-gradient(#242521,#101211)!important;border:1px solid #69583e!important;border-radius:3px!important;box-shadow:0 4px 14px #0009!important}.cv-desktop-theme4 .cv-world-minimap{border-color:#796443!important;background:#0b0d0c!important}
body.cv-desktop-theme4 .cv-management-page{max-width:1800px!important;margin:auto}.cv-desktop-theme4 .cv-management-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:7px;padding:7px}.cv-desktop-theme4 .cv-management-item{border-radius:2px!important;background:linear-gradient(#292b28,#151716)!important;border:1px solid #504837!important}.cv-desktop-theme4 .cv-management-item.active{background:linear-gradient(#5c4525,#271c10)!important;border-color:#d59b3a!important;box-shadow:inset 3px 0 #e7aa3d!important}
body.cv-desktop-theme4 .cv-theme-chooser{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.cv-desktop-theme4 .cv-theme-option{padding:0!important;overflow:hidden;text-align:left!important}.cv-desktop-theme4 .cv-theme-preview{height:92px!important;display:grid;place-items:center;font-size:32px;background:linear-gradient(145deg,#39352b,#111311)!important;border-bottom:1px solid #685a42!important}.cv-desktop-theme4 .cv-theme-option[data-theme="command"] .cv-theme-preview{background:radial-gradient(circle at 60% 30%,#d994342d,transparent 25%),linear-gradient(145deg,#554329,#171713 60%,#090a09)!important;color:#f0b14a}.cv-desktop-theme4 .cv-theme-option.active{border-color:#dfa43f!important;box-shadow:0 0 0 1px #dfa43f,0 0 15px #d58d2924!important}.cv-desktop-theme4 .cv-theme-option strong{display:block;padding:8px 10px 2px}.cv-desktop-theme4 .cv-theme-option small{display:block;padding:0 10px 10px;color:#aaa08c;line-height:1.35}
body.cv-desktop-theme4 *{scrollbar-width:thin;scrollbar-color:#725d3d #0b0d0c}body.cv-desktop-theme4 ::-webkit-scrollbar{width:9px;height:9px}body.cv-desktop-theme4 ::-webkit-scrollbar-track{background:#0b0d0c}body.cv-desktop-theme4 ::-webkit-scrollbar-thumb{background:linear-gradient(#806943,#493c29);border:2px solid #0b0d0c}
}
@media (min-width:1000px){.cv-theme-chooser{grid-template-columns:repeat(4,minmax(0,1fr))!important}.cv-theme-option[data-theme="command"] .cv-theme-preview{background:radial-gradient(circle at 60% 30%,rgba(222,157,54,.25),transparent 25%),linear-gradient(145deg,#554329,#171713 60%,#090a09);color:#f0b14a}}

/* CVGAME V1242 — Theme 4 «Командный центр»: полный Desktop UI
 * Реальная компоновка игры, не макет-картинка. Только >=1000px.
 * Главная, стройка, наука, карта и остальные игровые страницы используют один стиль.
 */
@media (min-width:1000px){
body.cv-desktop-theme4{background:#090b0c!important;color:#e9e2d5!important}
body.cv-desktop-theme4 .cv-shell{position:relative;padding:88px 318px 18px 210px!important;min-height:100vh;box-sizing:border-box;background:
 radial-gradient(circle at 66% -10%,rgba(232,139,43,.18),transparent 27%),
 linear-gradient(180deg,rgba(41,33,24,.96) 0 78px,#090b0c 78px)!important}
body.cv-desktop-theme4 .cv-shell:before{content:"ПРАВИТЕЛИ  ПУСТОШЕЙ";position:absolute;left:14px;top:10px;width:360px;height:58px;display:flex;align-items:center;padding-left:18px;box-sizing:border-box;color:#f2e7d0;font-size:28px;font-weight:1000;letter-spacing:1.5px;text-shadow:0 2px 0 #000,0 0 18px #d67e272b;border:1px solid #786345;background:linear-gradient(180deg,#252522,#101313);box-shadow:inset 0 0 0 2px #111,0 5px 18px #000a;clip-path:polygon(0 0,94% 0,100% 50%,94% 100%,0 100%)}
body.cv-desktop-theme4 .cv-shell:after{content:"СТРАТЕГИЯ В НОВОМ МИРЕ";position:absolute;left:31px;top:51px;color:#bcad91;font-size:10px;letter-spacing:2.2px;font-weight:800}

/* Верхняя ресурсная панель */
body.cv-desktop-theme4 .cv-resbar{position:absolute!important;left:390px;right:320px;top:11px;height:56px;display:grid!important;grid-template-columns:repeat(8,minmax(90px,1fr))!important;z-index:3;border-color:#806847!important;background:#080a0a!important}
body.cv-desktop-theme4 .cv-resitem{min-width:0!important;padding:7px 9px!important;display:flex;flex-direction:column;justify-content:center}
body.cv-desktop-theme4 .cv-resline{gap:6px!important}.cv-desktop-theme4 .cv-resvalue{font-size:13px!important}.cv-desktop-theme4 .cv-resrate{font-size:9px!important}
body.cv-desktop-theme4 .cv-profile{position:absolute!important;right:14px;top:10px;width:292px;height:58px;box-sizing:border-box;z-index:4;padding:6px 10px!important;display:flex!important;align-items:center!important;background:linear-gradient(#242725,#101313)!important}
body.cv-desktop-theme4 .cv-profile-avatar{width:43px!important;height:43px!important}.cv-desktop-theme4 .cv-profile-name{font-size:14px!important}.cv-desktop-theme4 .cv-profile-sub{font-size:10px!important}.cv-desktop-theme4 .cv-clock{font-size:13px!important}

/* Постоянное левое меню */
body.cv-desktop-theme4 .cv-nav{position:absolute!important;left:10px;top:88px;width:190px;display:flex!important;flex-direction:column!important;gap:2px!important;padding:4px!important;z-index:5;max-height:calc(100vh - 104px);overflow:auto;background:linear-gradient(180deg,#171b1c,#080a0b)!important;border:1px solid #716046!important}
body.cv-desktop-theme4 .cv-nav button{width:100%!important;height:41px!important;min-height:41px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:0 12px!important;font-size:19px!important;overflow:hidden!important}
body.cv-desktop-theme4 .cv-nav button:after{content:attr(title);font-size:12px;font-weight:700;white-space:nowrap;color:#d9d1c2}
body.cv-desktop-theme4 .cv-nav button:hover:after{color:#fff0cb}

/* Правая командная колонка на главной */
body.cv-desktop-theme4 .cv-command-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:8px;align-items:start}
body.cv-desktop-theme4 .cv-command-village{min-width:0;border:1px solid #786343;background:linear-gradient(#111515,#090b0b);box-shadow:0 5px 20px #000a,inset 0 0 40px #0007}
body.cv-desktop-theme4 .cv-command-village-head{min-height:48px;padding:7px 10px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #715f43;background:linear-gradient(#29261f,#151512)}
body.cv-desktop-theme4 .cv-command-village-head b{display:block;font-size:16px;color:#fff0ce}.cv-desktop-theme4 .cv-command-village-head span{display:block;font-size:11px;color:#aaa18f;margin-top:2px}.cv-desktop-theme4 .cv-command-quick{display:flex;gap:5px}.cv-desktop-theme4 .cv-command-quick button{padding:7px 10px!important;font-size:11px!important}
body.cv-desktop-theme4 .cv-command-side{display:flex;flex-direction:column;gap:7px;position:relative}
body.cv-desktop-theme4 .cv-command-side section{background:linear-gradient(#202321,#0e1111);border:1px solid #6b5a41;box-shadow:0 4px 12px #0008}
body.cv-desktop-theme4 .cv-command-side h3{font-size:13px;margin:0;padding:8px 10px;background:linear-gradient(#363126,#1d1b16);border-bottom:1px solid #756142;color:#f4e5c6}
body.cv-desktop-theme4 .cv-cmd-stat{display:flex;justify-content:space-between;padding:5px 9px;border-bottom:1px solid #2e302b;font-size:11px}.cv-desktop-theme4 .cv-cmd-stat b{color:#ffe4a7}
body.cv-desktop-theme4 .cv-cmd-storage{padding:5px 9px;border-bottom:1px solid #2e302b}.cv-desktop-theme4 .cv-cmd-storage>div{display:flex;justify-content:space-between;font-size:10px}.cv-desktop-theme4 .cv-cmd-storage i{display:block;height:5px;background:#080a09;margin-top:4px;border:1px solid #444;border-radius:2px;overflow:hidden}.cv-desktop-theme4 .cv-cmd-storage em{display:block;height:100%;background:linear-gradient(90deg,#90611f,#e7ad3b)}
body.cv-desktop-theme4 .cv-cmd-army-list{max-height:190px;overflow:auto}.cv-desktop-theme4 .cv-cmd-army-unit{display:flex;justify-content:space-between;padding:5px 9px;border-bottom:1px solid #2d302c;font-size:11px}.cv-desktop-theme4 .cv-command-side section>button{margin:7px;width:calc(100% - 14px)}
body.cv-desktop-theme4 .cv-command-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
body.cv-desktop-theme4 .cv-cmd-queue{min-height:112px;border:1px solid #6a5941;background:linear-gradient(#1d2120,#0c0f10);box-shadow:0 4px 12px #0008}.cv-desktop-theme4 .cv-cmd-queue h3{font-size:12px;margin:0;padding:8px 10px;color:#f3dfba;background:linear-gradient(#302b21,#181714);border-bottom:1px solid #6c593d}.cv-desktop-theme4 .cv-cmd-queue>div{padding:7px 10px;border-bottom:1px solid #2e302d;display:flex;justify-content:space-between;gap:8px;font-size:10px}.cv-desktop-theme4 .cv-cmd-queue>div b{font-size:11px}

/* Здания: центральное поселение из реальных карточек */
body.cv-desktop-theme4 .cv-command-village .cv-building-grid{padding:8px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;background:
 radial-gradient(circle at 50% 42%,rgba(174,111,40,.14),transparent 33%),
 repeating-linear-gradient(0deg,rgba(255,255,255,.013) 0 1px,transparent 1px 31px),
 linear-gradient(#111413,#090b0b)!important}
body.cv-desktop-theme4 .cv-command-village .cv-building{min-height:132px!important;border-color:#574d3d!important;background:#0b0e0e!important;position:relative}.cv-desktop-theme4 .cv-command-village .cv-building-img{height:132px!important}.cv-desktop-theme4 .cv-command-village .cv-building-img img{width:100%!important;height:100%!important;object-fit:cover!important;filter:saturate(.92) contrast(1.08) brightness(.88)}
body.cv-desktop-theme4 .cv-command-village .cv-building:hover .cv-building-img img{filter:saturate(1.12) contrast(1.1) brightness(1.02)}
body.cv-desktop-theme4 .cv-command-village .cv-building-title{font-size:11px!important;padding:22px 6px 5px!important;text-align:center;font-weight:800!important}
body.cv-desktop-theme4 .cv-command-village .cv-level-badge{top:5px!important;left:5px!important;font-size:12px!important;padding:2px 6px!important;z-index:2}.cv-desktop-theme4 .cv-command-village .cv-level-max{top:8px!important;left:34px!important;font-size:9px!important;color:#ddd!important;z-index:2}

/* Низ главной */
body.cv-desktop-theme4 .cv-bottom{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:8px!important}.cv-desktop-theme4 .cv-bottom .cv-panel{min-height:82px!important;padding:10px!important;border:1px solid #685740!important;background:linear-gradient(#1c201e,#0d1010)!important}.cv-desktop-theme4 .cv-panel-title{color:#f1dfbd!important}.cv-desktop-theme4 .cv-main-online{margin-top:7px!important;border-color:#4c654f!important;background:#101a14!important}

/* Любая внутренняя страница в стиле 4 */
body.cv-desktop-theme4 .cv-detail-card{margin-bottom:8px!important;padding:12px!important}.cv-desktop-theme4 .cv-page-back{margin-bottom:8px!important}.cv-desktop-theme4 .cv-detail-card>h2,.cv-desktop-theme4 .cv-detail-card>h3{margin-top:0;padding-bottom:8px;border-bottom:1px solid #62533e;color:#f0dfbe!important}
body.cv-desktop-theme4 .notice{border:1px solid #6f5b3f!important;background:#1e1c15!important;color:#ddceb1!important}.cv-desktop-theme4 .err{color:#ff7c68!important}.cv-desktop-theme4 .ok{color:#8fe19d!important}

/* Стройка / экран здания */
html[data-cv-page="building"] body.cv-desktop-theme4 .cv-building-detail{max-width:none!important;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
body.cv-desktop-theme4 .cv-building-back{justify-self:start}.cv-desktop-theme4 .cv-detail-head{display:grid!important;grid-template-columns:minmax(0,1fr) 265px!important;gap:8px!important;background:linear-gradient(#1b1f1e,#0d1010)!important;border:1px solid #705e43!important;padding:8px!important}
body.cv-desktop-theme4 .cv-detail-cover{min-height:270px!important;border:1px solid #705f45!important;background:#080a0a!important}.cv-desktop-theme4 .cv-detail-cover img{width:100%!important;height:270px!important;object-fit:cover!important;filter:saturate(.92) contrast(1.08) brightness(.9)}.cv-desktop-theme4 .cv-detail-title{background:linear-gradient(transparent,#080a0af0)!important;padding-top:55px!important}.cv-desktop-theme4 .cv-detail-title h1{font-size:25px!important}.cv-desktop-theme4 .cv-detail-actions{display:flex!important;flex-direction:column!important;gap:7px!important;justify-content:flex-end!important;padding:10px!important;border:1px solid #594d3b!important;background:linear-gradient(#25241f,#111311)!important}
body.cv-desktop-theme4 .cv-unit-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.cv-desktop-theme4 .cv-unit-card{background:linear-gradient(#1f2322,#0c0f10)!important;border:1px solid #5e513f!important;border-radius:2px!important}.cv-desktop-theme4 .cv-unit-card:hover{border-color:#d09a3c!important}.cv-desktop-theme4 .cv-unit-art{background:#090b0b!important}

/* Наука: отдельный визуальный центр исследований */
html[data-cv-page="science"] body.cv-desktop-theme4 .cv-shell{padding-right:18px!important}
html[data-cv-page="science"] body.cv-desktop-theme4 #scienceList{min-height:calc(100vh - 190px);background:linear-gradient(#131817,#090c0d)!important}
body.cv-desktop-theme4 .cv-tech-toolbar{padding:10px!important;border:1px solid #6a5940;background:linear-gradient(#29261e,#121512)!important}.cv-desktop-theme4 .cv-tech-viewport{min-height:560px!important;height:calc(100vh - 330px)!important;background:
 radial-gradient(circle at 50% 45%,rgba(0,145,170,.09),transparent 32%),
 linear-gradient(rgba(25,34,34,.75),rgba(8,11,12,.95)),
 repeating-linear-gradient(0deg,transparent 0 39px,#35404433 40px),repeating-linear-gradient(90deg,transparent 0 39px,#35404433 40px)!important;border:1px solid #66583f!important;box-shadow:inset 0 0 45px #000!important}
body.cv-desktop-theme4 .cv-tech-node{background:linear-gradient(#252a28,#111514)!important;border:1px solid #655a47!important;color:#e6dfd0!important;box-shadow:0 3px 9px #0009!important}.cv-desktop-theme4 .cv-tech-node.open{border-color:#a57938!important;box-shadow:0 0 0 1px #6b4d25,0 0 12px #b1732830!important}.cv-desktop-theme4 .cv-tech-node.done{border-color:#4e875c!important;background:linear-gradient(#1e3524,#101711)!important}.cv-desktop-theme4 .cv-tech-node.selected{border-color:#f0ad42!important;box-shadow:0 0 0 1px #f0ad42,0 0 18px #f0ad4242!important}.cv-desktop-theme4 .cv-tech-node.locked{filter:grayscale(.8) brightness(.65)}.cv-desktop-theme4 .cv-tech-line{stroke:#5a554a!important}.cv-desktop-theme4 .cv-tech-line.open{stroke:#b18042!important}.cv-desktop-theme4 .cv-tech-line.done{stroke:#55a86b!important}
body.cv-desktop-theme4 .cv-science-detail{border:1px solid #6a5941!important;background:linear-gradient(#1d211f,#0c0f10)!important;padding:10px!important}.cv-desktop-theme4 .cv-science-detail-box{background:#121514!important;border:1px solid #50483a!important}

/* Мировая карта: максимум экрана, компактная правая панель */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-shell{padding-right:286px!important;padding-bottom:8px!important}
body.cv-desktop-theme4 .cv-world-map-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 274px!important;gap:7px!important;width:100%!important;max-width:none!important}
body.cv-desktop-theme4 .cv-world-main{height:calc(100vh - 112px)!important;min-height:760px!important;max-height:none!important;border:1px solid #7a6445!important;background:#070909!important;box-shadow:inset 0 0 45px #000,0 6px 22px #000b!important}
body.cv-desktop-theme4 .cv-world-sidebar{width:274px!important;max-height:calc(100vh - 112px)!important;overflow:auto;background:linear-gradient(#1f2321,#0b0e0f)!important;border:1px solid #6d5a41!important}
body.cv-desktop-theme4 .cv-world-toolbar,body.cv-desktop-theme4 .cv-world-filters{background:linear-gradient(#252821,#121514)!important;border-color:#67583f!important}.cv-desktop-theme4 .cv-world-minimap{box-shadow:inset 0 0 25px #000!important}.cv-desktop-theme4 .cv-world-country-panel,.cv-desktop-theme4 .cv-world-object-panel{background:linear-gradient(#1d211f,#0c0f0f)!important;border-color:#60513c!important}

/* Армия / рынок / клан / сообщения / настройки и т.д. */
html[data-cv-page="army"] body.cv-desktop-theme4 .cv-detail-card,html[data-cv-page="train"] body.cv-desktop-theme4 .cv-detail-card{max-width:none!important}
body.cv-desktop-theme4 .cv-train-unit{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;gap:10px!important}.cv-desktop-theme4 .cv-train-unit .cv-unit-art{width:110px!important;height:88px!important;object-fit:cover!important}
body.cv-desktop-theme4 .cv-chat-page,body.cv-desktop-theme4 .cv-messages-page{max-width:none!important}.cv-desktop-theme4 .cv-chat-card,.cv-desktop-theme4 .cv-message-card{border:1px solid #68583f!important;background:linear-gradient(#171b1a,#090c0d)!important}
body.cv-desktop-theme4 .cv-management-page{max-width:none!important}.cv-desktop-theme4 .cv-management-content{min-height:620px!important}

/* Стиль 4 на узких desktop ноутбуках */
@media (max-width:1365px){
 body.cv-desktop-theme4 .cv-shell{padding-left:174px!important;padding-right:258px!important}
 body.cv-desktop-theme4 .cv-nav{width:156px!important}.cv-desktop-theme4 .cv-nav button:after{font-size:10px}.cv-desktop-theme4 .cv-resbar{left:330px;right:258px;grid-template-columns:repeat(4,1fr)!important;height:auto}.cv-desktop-theme4 .cv-profile{width:238px}.cv-desktop-theme4 .cv-command-layout{grid-template-columns:minmax(0,1fr) 240px}.cv-desktop-theme4 .cv-command-village .cv-building-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.cv-desktop-theme4 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 230px!important}.cv-desktop-theme4 .cv-world-sidebar{width:230px!important}
}
}


/* V1243 — structural hardening for Command Center.
   These rules deliberately duplicate the critical grid properties at the end of the file,
   so older generic layout rules cannot collapse the right rail under the village. */
@media (min-width:1000px){
 body.cv-desktop-theme4 .cv-command-layout{
   display:grid!important;
   grid-template-columns:minmax(0,1fr) 300px!important;
   grid-template-areas:"village side"!important;
   align-items:start!important;
   gap:8px!important;
   width:100%!important;
   min-width:0!important;
 }
 body.cv-desktop-theme4 .cv-command-village{grid-area:village!important;min-width:0!important;width:auto!important}
 body.cv-desktop-theme4 .cv-command-side{
   grid-area:side!important;
   display:flex!important;
   flex-direction:column!important;
   position:sticky!important;
   top:82px!important;
   width:300px!important;
   min-width:300px!important;
   max-height:calc(100vh - 100px)!important;
   overflow:auto!important;
   box-sizing:border-box!important;
 }
 body.cv-desktop-theme4 .cv-command-side section{
   display:block!important;width:100%!important;box-sizing:border-box!important;
   border:1px solid #6b593f!important;background:linear-gradient(#20231f,#0c0f0f)!important;
   color:#e9e1d2!important;margin:0!important;padding:0 0 7px!important;
 }
 body.cv-desktop-theme4 .cv-command-side section>h3{
   display:block!important;margin:0 0 5px!important;padding:8px 10px!important;
   background:linear-gradient(#342e23,#171713)!important;border-bottom:1px solid #705c40!important;
   color:#f4e3c1!important;font-size:12px!important;
 }
 body.cv-desktop-theme4 .cv-command-queues{
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
   width:100%!important;gap:8px!important;margin:8px 0 0!important;clear:both!important;
 }
 body.cv-desktop-theme4 .cv-cmd-production,
 body.cv-desktop-theme4 .cv-cmd-storage,
 body.cv-desktop-theme4 .cv-cmd-army-unit{font-size:11px!important;line-height:1.35!important}
 body.cv-desktop-theme4 .cv-bottom{clear:both!important;width:100%!important}
}
@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4 .cv-command-layout{grid-template-columns:minmax(0,1fr) 240px!important}
 body.cv-desktop-theme4 .cv-command-side{width:240px!important;min-width:240px!important}
}

/* CVGAME V1244 — Theme 4 hard military pass.
   Полностью убираем ярко-синий интерфейс из Command Center и делаем карту жёстче:
   графит / оружейная сталь / бронза / ржавчина / тёмная олива. */
@media (min-width:1000px){
body.cv-desktop-theme4{
  --cmd-black:#070807;
  --cmd-gun:#111412;
  --cmd-gun2:#1a1d19;
  --cmd-steel:#272921;
  --cmd-bronze:#7b6340;
  --cmd-bronze2:#a57a3d;
  --cmd-rust:#8e4324;
  --cmd-amber:#e2a13b;
  --cmd-olive:#26351f;
  --cmd-olive2:#334529;
  --cmd-paper:#ded1b8;
}

/* Старые синие панели/карточки в Theme 4 — принудительно в общую военную палитру. */
body.cv-desktop-theme4 .block1,
body.cv-desktop-theme4 .block2,
body.cv-desktop-theme4 .block6,
body.cv-desktop-theme4 .cv-panel,
body.cv-desktop-theme4 .cv-box,
body.cv-desktop-theme4 .cv-card,
body.cv-desktop-theme4 .cv-detail-card,
body.cv-desktop-theme4 .cv-shop-card,
body.cv-desktop-theme4 .cv-reward-card,
body.cv-desktop-theme4 .cv-notification-card,
body.cv-desktop-theme4 .cv-chat-card,
body.cv-desktop-theme4 .cv-message-card,
body.cv-desktop-theme4 .cv-help-section,
body.cv-desktop-theme4 .cv-management-content{
  background:linear-gradient(180deg,#1c1f1b 0%,#101310 58%,#090b0a 100%)!important;
  border-color:#655239!important;
  color:#e7ddcb!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 4px 14px rgba(0,0,0,.62)!important;
}
body.cv-desktop-theme4 .cv-panel-head,
body.cv-desktop-theme4 .cv-box-head,
body.cv-desktop-theme4 .cv-card-head,
body.cv-desktop-theme4 .cv-section-title,
body.cv-desktop-theme4 .cv-notification-head,
body.cv-desktop-theme4 .cv-shop-head{
  background:linear-gradient(180deg,#342d22,#1b1a15)!important;
  border-color:#7b6340!important;
  color:#f0dfbd!important;
}

/* Табы без синего. */
body.cv-desktop-theme4 .cv-tabs,
body.cv-desktop-theme4 .tabs,
body.cv-desktop-theme4 .tabbar{
  background:#0a0c0a!important;
  border-color:#63523b!important;
}
body.cv-desktop-theme4 .cv-tab,
body.cv-desktop-theme4 .tabs button,
body.cv-desktop-theme4 .tabbar button{
  background:linear-gradient(#2b2c26,#151713)!important;
  border-color:#574a38!important;
  color:#d9cfbd!important;
}
body.cv-desktop-theme4 .cv-tab.active,
body.cv-desktop-theme4 .tabs button.active,
body.cv-desktop-theme4 .tabbar button.active{
  background:linear-gradient(#6e4c24,#2d1d10)!important;
  border-color:#d49a3a!important;
  color:#fff0cb!important;
  box-shadow:inset 0 -2px #d99b38!important;
}

/* WORLD MAP — отдельный жёсткий визуальный слой. */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-shell{
  background:#080a08!important;
  border:1px solid #6f5838!important;
  border-radius:2px!important;
  box-shadow:0 10px 28px #000c,inset 0 0 0 1px #1c1a14!important;
  overflow:hidden!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-title{
  min-height:44px!important;
  padding:9px 13px!important;
  background:
    linear-gradient(90deg,rgba(139,69,31,.34),transparent 32%),
    linear-gradient(180deg,#302a21,#171813)!important;
  border:0!important;
  border-bottom:1px solid #8b6b3e!important;
  color:#f0dfbd!important;
  text-transform:uppercase;
  letter-spacing:.45px;
  box-shadow:inset 0 -1px #090a08!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-title span{font-size:14px!important;text-shadow:0 1px #000,0 0 10px #b66a2a33!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-title small{color:#aa9c82!important;text-transform:none!important;letter-spacing:0!important}

html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-grid-jump{
  background:linear-gradient(180deg,#171a15,#0d100d)!important;
  border-bottom:1px solid #574934!important;
  color:#d7c8aa!important;
  padding:8px 10px!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-grid-jump input{
  background:#070907!important;border-color:#6c593c!important;color:#f2e6cd!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-grid-jump button{
  background:linear-gradient(#5b4527,#2b2115)!important;border-color:#927243!important;color:#ffe6b4!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-grid-jump span{color:#92866f!important}

html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-layer-switch{
  padding:7px 10px!important;
  background:linear-gradient(180deg,#141713,#0b0d0b)!important;
  border-top:0!important;border-bottom:1px solid #594a35!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-layer-switch button{
  min-height:34px!important;
  background:linear-gradient(#292b25,#141612)!important;
  border:1px solid #5d503d!important;
  border-radius:2px!important;
  color:#d8cdb9!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04)!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-layer-switch button:hover{border-color:#b07b3e!important;color:#fff0d1!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-layer-switch button.active{
  background:linear-gradient(#694621,#302013)!important;
  border-color:#d59b42!important;
  color:#fff0c8!important;
  box-shadow:inset 0 -2px #d99c3c,0 0 10px rgba(196,112,37,.18)!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-layer-switch .cv-layer-note{color:#948874!important}

/* Большое поле карты: темнее, грубее, без яркой зелёной подложки. */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-main{
  border:1px solid #7d623c!important;
  background:
    radial-gradient(circle at 50% 35%,rgba(132,92,43,.08),transparent 38%),
    linear-gradient(180deg,#10150f,#080a08)!important;
  box-shadow:inset 0 0 60px #000,0 7px 24px #000c!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-main-inner{
  filter:saturate(.72) sepia(.12) contrast(1.12) brightness(.83)!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-own-cell{box-shadow:inset 0 0 0 2px rgba(179,142,73,.48),inset 0 0 22px rgba(88,117,54,.18)!important}

/* Правая колонка карты — бронза/оружейная сталь вместо синего. */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-sidebar{
  background:#090b09!important;
  border-color:#6a5537!important;
  box-shadow:0 5px 18px #000a!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-mini-box{
  border:1px solid #6b5537!important;
  border-radius:2px!important;
  background:linear-gradient(180deg,#181b16,#0d100d)!important;
  box-shadow:inset 0 0 20px rgba(0,0,0,.38)!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-mini-head{
  padding:8px 10px!important;
  background:linear-gradient(180deg,#342d22,#1a1914)!important;
  border-bottom:1px solid #725a39!important;
  color:#e9d7b6!important;
  text-transform:uppercase;
  letter-spacing:.35px;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-minimap{
  border:2px solid #80643b!important;
  background:#242d1c!important;
  box-shadow:inset 0 0 25px #000b,0 2px 7px #0008!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-minimap-inner{
  background:#303a24!important;
  filter:saturate(.66) sepia(.12) contrast(1.08) brightness(.83)!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-mini-controls-v1066 button,
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-main-zoom-v1066 button{
  background:linear-gradient(#312c23,#161713)!important;
  border-color:#6b573a!important;
  color:#e9dbc1!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-mini-nav-info,
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-coords{color:#9d917b!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-legend{color:#cfc3ae!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-legend span{border-color:#3c3b31!important}

/* Контекстные окна карты. */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-country-panel,
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-object-panel,
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-territory-placement-panel{
  background:linear-gradient(180deg,#20231d,#0d100d)!important;
  border-color:#765d3b!important;
  color:#e7dbc5!important;
  box-shadow:0 7px 22px #000c!important;
}

/* Карточки уведомлений/магазина/наград/справки, которые раньше оставались синими. */
body.cv-desktop-theme4 [class*="notification"],
body.cv-desktop-theme4 [class*="reward-card"],
body.cv-desktop-theme4 [class*="shop-card"],
body.cv-desktop-theme4 [class*="help-card"]{
  border-color:#665239!important;
}
}


/* CVGAME V1245 — Theme 4 full-width map + no-blue sweep + clean logo + chat profile logos. */
.cv-chat-avatar{overflow:hidden}
.cv-chat-avatar-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.cv-online-pill{display:inline-flex;align-items:center;gap:5px}
.cv-online-logo{width:18px;height:18px;object-fit:cover;border-radius:50%;border:1px solid rgba(255,255,255,.34);flex:0 0 18px}

@media (min-width:1000px){
/* Чистый, ровный логотип темы 4: без обрезания и наложения букв. */
body.cv-desktop-theme4 .cv-shell:before{
  content:"ПРАВИТЕЛИ\AПУСТОШЕЙ"!important;
  white-space:pre!important;
  left:12px!important;top:10px!important;width:270px!important;height:58px!important;
  padding:5px 18px 4px!important;display:flex!important;align-items:center!important;
  font-family:Impact,"Arial Narrow",sans-serif!important;font-size:20px!important;line-height:1.02!important;
  letter-spacing:1.7px!important;color:#f0e3ca!important;text-align:left!important;
  border:1px solid #725a3a!important;border-radius:2px!important;clip-path:none!important;
  background:linear-gradient(180deg,#292924,#101312)!important;
  box-shadow:inset 0 0 0 2px #111,0 4px 16px #000a!important;
  text-shadow:0 2px 0 #000,0 0 10px rgba(184,111,38,.20)!important;
}
body.cv-desktop-theme4 .cv-shell:after{
  content:"СТРАТЕГИЯ В НОВОМ МИРЕ"!important;left:30px!important;top:50px!important;
  font-size:8px!important;letter-spacing:1.5px!important;color:#b6a489!important;
}
body.cv-desktop-theme4 .cv-resbar{left:294px!important}

/* Карта занимает ВСЮ доступную ширину desktop-контента. Правая колонка остаётся рядом, а не отъедает внешний отступ. */
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-shell{padding-right:14px!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-page,
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-shell{
  width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-layout{
  width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr) 285px!important;gap:8px!important;
}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-main{width:100%!important;min-width:0!important}
html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-sidebar{width:285px!important;min-width:285px!important;max-width:285px!important}

/* Полный отказ от синих контейнеров в Theme 4. */
body.cv-desktop-theme4 .cv-detail-card,
body.cv-desktop-theme4 .cv-center-card,
body.cv-desktop-theme4 .cv-message-item,
body.cv-desktop-theme4 .cv-chat-card,
body.cv-desktop-theme4 .cv-chat-head,
body.cv-desktop-theme4 .cv-chat-message,
body.cv-desktop-theme4 .cv-chat-compose,
body.cv-desktop-theme4 .cv-chat-rule,
body.cv-desktop-theme4 .cv-shop-topbox,
body.cv-desktop-theme4 .cv-shop-card,
body.cv-desktop-theme4 .cv-reward-card,
body.cv-desktop-theme4 .cv-player-row,
body.cv-desktop-theme4 .cv-player-profile-head,
body.cv-desktop-theme4 .cv-player-resource,
body.cv-desktop-theme4 .cv-player-gold,
body.cv-desktop-theme4 .cv-player-country,
body.cv-desktop-theme4 .cv-management-note,
body.cv-desktop-theme4 .cv-notification-row,
body.cv-desktop-theme4 .cv-help-section,
body.cv-desktop-theme4 [class*="cv-help-"],
body.cv-desktop-theme4 [class*="cv-reward-"],
body.cv-desktop-theme4 [class*="cv-shop-"],
body.cv-desktop-theme4 [class*="cv-progress-"],
body.cv-desktop-theme4 [class*="cv-season-"],
body.cv-desktop-theme4 [class*="cv-forum-"],
body.cv-desktop-theme4 [class*="cv-news-"],
body.cv-desktop-theme4 [class*="cv-promo-"],
body.cv-desktop-theme4 [class*="cv-referral-"],
body.cv-desktop-theme4 [class*="cv-world-chronicle-"],
body.cv-desktop-theme4 [class*="cv-server-battle-"],
body.cv-desktop-theme4 [class*="cv-alert-"]{
  background:linear-gradient(180deg,#1d201c,#0f120f)!important;
  border-color:#6c5739!important;color:#e9dfcc!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 3px 12px rgba(0,0,0,.5)!important;
}
body.cv-desktop-theme4 .cv-message-item:hover,
body.cv-desktop-theme4 .cv-chat-message:hover,
body.cv-desktop-theme4 .cv-player-row:hover{
  background:linear-gradient(180deg,#2a281f,#151611)!important;border-color:#a2773e!important;
}
body.cv-desktop-theme4 .cv-message-item.unread{
  border-color:#c98d35!important;box-shadow:inset 3px 0 0 #e4a23e,0 0 10px rgba(196,127,43,.14)!important;
}
body.cv-desktop-theme4 .cv-message-icon,
body.cv-desktop-theme4 .cv-chat-avatar{
  background:linear-gradient(180deg,#4b3b25,#211b13)!important;border-color:#8b693c!important;color:#f4dfb7!important;
}
body.cv-desktop-theme4 .cv-message-time,
body.cv-desktop-theme4 .cv-chat-time,
body.cv-desktop-theme4 .cv-chat-sub,
body.cv-desktop-theme4 .cv-center-sub,
body.cv-desktop-theme4 .cv-shop-topbox-title span,
body.cv-desktop-theme4 .cv-notification-main small{color:#aa9d87!important}

/* Уведомления: заголовок, категории и карточки — бронза/графит. */
body.cv-desktop-theme4 #notificationsCard>h1,
body.cv-desktop-theme4 #notificationsCard>h2,
body.cv-desktop-theme4 #notificationsCard>h3{
  background:linear-gradient(180deg,#342d22,#1a1914)!important;border-color:#705838!important;color:#f0ddba!important;
}
body.cv-desktop-theme4 .cv-notification-tabs button,
body.cv-desktop-theme4 .cv-chat-tab,
body.cv-desktop-theme4 .cv-shop-tabs button,
body.cv-desktop-theme4 .cv-message-tab{
  background:linear-gradient(180deg,#2a2b25,#151713)!important;border:1px solid #5e4f3a!important;color:#ded3bf!important;
}
body.cv-desktop-theme4 .cv-notification-tabs button.active,
body.cv-desktop-theme4 .cv-chat-tab.active,
body.cv-desktop-theme4 .cv-shop-tabs button.active,
body.cv-desktop-theme4 .cv-message-tab.active{
  background:linear-gradient(180deg,#704b22,#302012)!important;border-color:#d49a3b!important;color:#fff0ca!important;
  box-shadow:inset 0 -2px #db9e3b,0 0 10px rgba(193,113,39,.14)!important;
}

/* Чат Theme 4 без синей подложки. Лого игрока работает во ВСЕХ стилях отдельными общими правилами выше. */
body.cv-desktop-theme4 .cv-chat-head{border-bottom-color:#6f5839!important}
body.cv-desktop-theme4 .cv-chat-online{border-bottom-color:#4e4434!important;color:#b9aa90!important}
body.cv-desktop-theme4 .cv-chat-compose{border-top-color:#544834!important}
body.cv-desktop-theme4 .cv-chat-compose textarea{background:#090b09!important;border-color:#635039!important}
body.cv-desktop-theme4 .cv-online-pill{background:#1b1d18!important;border-color:#5c4c38!important;color:#ddd2be!important}
body.cv-desktop-theme4 .cv-chat-ignore{background:#2b2922!important;border-color:#67543b!important;color:#d7ccb7!important}

/* Магазин/награды/центры: убираем оставшийся синий из вложенных блоков. */
body.cv-desktop-theme4 .cv-shop-category-nav,
body.cv-desktop-theme4 .cv-center-grid,
body.cv-desktop-theme4 .cv-message-list{background:transparent!important}
body.cv-desktop-theme4 .cv-shop-category-nav button,
body.cv-desktop-theme4 .cv-center-card button{border-color:#6a563d!important}

/* Синий разрешён только как цвет ресурса кристаллов и специальных игровых маркеров, не как фон интерфейса. */
body.cv-desktop-theme4 .cv-resitem [data-modern-res="gold"],
body.cv-desktop-theme4 .cv-resitem:has([data-modern-res="gold"]) .cv-resicon{filter:drop-shadow(0 0 4px rgba(55,177,255,.45))!important}
}

@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4 .cv-shell:before{width:230px!important;font-size:17px!important}
 body.cv-desktop-theme4 .cv-resbar{left:250px!important}
 html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-map-layout{grid-template-columns:minmax(0,1fr) 250px!important}
 html[data-cv-page="world_map"] body.cv-desktop-theme4 .cv-world-sidebar{width:250px!important;min-width:250px!important;max-width:250px!important}
}

/* CVGAME V1246 — Theme 4 polish: metallic logo, illustrated army, citadel/artifact no-blue sweep. */
@media (min-width:1000px){
/* Более цельный фирменный логотип темы 4. */
body.cv-desktop-theme4 .cv-shell:before{
  content:"ПРАВИТЕЛИ\AПУСТОШЕЙ"!important;
  white-space:pre!important;
  left:12px!important;top:8px!important;width:278px!important;height:62px!important;
  padding:5px 17px 5px 19px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  font-family:Impact,"Arial Narrow","Segoe UI Black",sans-serif!important;
  font-size:21px!important;line-height:.92!important;letter-spacing:2px!important;
  color:#f4e7c7!important;
  background:
    linear-gradient(90deg,rgba(207,126,40,.10),transparent 45%),
    linear-gradient(180deg,#2d2c27 0%,#171917 55%,#0a0c0c 100%)!important;
  border:1px solid #8a6b43!important;
  border-left:4px solid #c38432!important;
  border-radius:2px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),inset 0 -12px 25px rgba(0,0,0,.35),0 5px 18px #000b!important;
  text-shadow:0 2px 0 #000,0 0 1px #000,0 0 12px rgba(213,139,54,.22)!important;
  clip-path:polygon(0 0,94% 0,100% 50%,94% 100%,0 100%)!important;
  overflow:hidden!important;
}
body.cv-desktop-theme4 .cv-shell:after{
  content:"БРАУЗЕРНАЯ ВОЕННАЯ СТРАТЕГИЯ"!important;
  left:31px!important;top:51px!important;
  font-size:7px!important;line-height:1!important;letter-spacing:1.55px!important;
  color:#c5aa7a!important;font-weight:900!important;
  text-shadow:0 1px 0 #000!important;
}
body.cv-desktop-theme4 .cv-resbar{left:300px!important}

/* Армия на ПК — карточки с реальными изображениями подразделений. */
body.cv-desktop-theme4 .cv-army-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #66543a}
body.cv-desktop-theme4 .cv-army-page-head h2{margin:0 0 3px!important;font-size:22px!important;text-transform:uppercase;letter-spacing:.7px}
body.cv-desktop-theme4 .cv-army-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px}
body.cv-desktop-theme4 .cv-army-card{position:relative;overflow:hidden;min-width:0;border:1px solid #68563c;border-radius:3px;background:linear-gradient(180deg,#20231f,#0e1110);box-shadow:inset 0 1px rgba(255,255,255,.035),0 4px 12px #0009;transition:.14s transform,.14s border-color,.14s filter}
body.cv-desktop-theme4 .cv-army-card:hover{transform:translateY(-2px);border-color:#d09641;filter:brightness(1.07)}
body.cv-desktop-theme4 .cv-army-art-wrap{position:relative;height:150px;background:#090b0b;overflow:hidden;border-bottom:1px solid #564933}
body.cv-desktop-theme4 .cv-army-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.86) contrast(1.1) brightness(.9)}
body.cv-desktop-theme4 .cv-army-art-wrap:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(4,5,5,.16) 60%,rgba(4,5,5,.93) 100%);pointer-events:none}
body.cv-desktop-theme4 .cv-army-count{position:absolute;z-index:2;right:8px;bottom:8px;min-width:54px;padding:4px 7px;text-align:center;font-size:16px;font-weight:900;color:#fff1ca;background:linear-gradient(#5a421d,#24190d);border:1px solid #c58c35;box-shadow:0 2px 7px #000c}
body.cv-desktop-theme4 .cv-army-info{padding:9px 10px 10px;display:flex;align-items:center;justify-content:space-between;gap:9px}
body.cv-desktop-theme4 .cv-army-info>b{font-size:14px;color:#f1e6d1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cv-desktop-theme4 .cv-army-info>span{font-size:10px;color:#9f957f;white-space:nowrap}.cv-desktop-theme4 .cv-army-info strong{color:#d9b46f}

/* Цитадель, артефакты и старые игровые карточки: полностью убрать базовый синий слой. */
body.cv-desktop-theme4 .cv-citadel-section,
body.cv-desktop-theme4 .cv-citadel-item,
body.cv-desktop-theme4 .cv-citadel-action,
body.cv-desktop-theme4 .cv-citadel-stats>div,
body.cv-desktop-theme4 .cv-citadel-empty,
body.cv-desktop-theme4 .cv-unit-card,
body.cv-desktop-theme4 .cv-detail-resource .resbox,
body.cv-desktop-theme4 .cv-detail-head,
body.cv-desktop-theme4 .cv-detail-actions,
body.cv-desktop-theme4 .cv-artifact-card,
body.cv-desktop-theme4 .cv-artifact-item,
body.cv-desktop-theme4 [class*="artifact-card"],
body.cv-desktop-theme4 [class*="artifact-item"]{
  background:linear-gradient(180deg,#1e211d,#0d100e)!important;
  border-color:#6a573b!important;
  color:#e9dfcc!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 3px 11px rgba(0,0,0,.45)!important;
}
body.cv-desktop-theme4 .cv-citadel-section p,
body.cv-desktop-theme4 .cv-citadel-item span,
body.cv-desktop-theme4 .cv-citadel-action small,
body.cv-desktop-theme4 .cv-citadel-stats span,
body.cv-desktop-theme4 .cv-detail-resource .rescap,
body.cv-desktop-theme4 .cv-unit-meta,
body.cv-desktop-theme4 .cv-unit-cost{color:#aaa08c!important}
body.cv-desktop-theme4 .cv-citadel-tab{background:linear-gradient(#292b27,#151714)!important;border-color:#5b4e39!important;color:#ddd2bd!important;box-shadow:none!important}
body.cv-desktop-theme4 .cv-citadel-tab.active{background:linear-gradient(#694a22,#2d2012)!important;border-color:#d79d3e!important;color:#fff0c8!important;box-shadow:inset 0 -2px #d79d3e,0 0 10px rgba(187,113,36,.14)!important}
body.cv-desktop-theme4 .cv-building-back{background:linear-gradient(#4f3b22,#21180f)!important;border-color:#8d6a3d!important;color:#f3e4c7!important}
body.cv-desktop-theme4 .cv-unit-art{border-color:#67553c!important;background:#0a0c0b!important}
body.cv-desktop-theme4 .cv-citadel-empty{border-style:dashed!important;color:#9e927e!important}
body.cv-desktop-theme4 .cv-artifact-parts .cv-bar{background:#080a08!important;border:1px solid #51442f!important}
body.cv-desktop-theme4 .cv-artifact-parts .cv-bar>span{background:linear-gradient(90deg,#7d6727,#d59b36)!important}
}

@media (min-width:1000px) and (max-width:1450px){
 body.cv-desktop-theme4 .cv-army-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}
}

/* CVGAME V1247 — Theme 4: user card instead of logo, no duplicate queue, illustrated home army, no-blue dialogs. */
@media (min-width:1000px){
/* Вместо декоративного логотипа в левом верхнем блоке показываем реальную карточку игрока. */
body.cv-desktop-theme4 .cv-shell:before,
body.cv-desktop-theme4 .cv-shell:after{content:none!important;display:none!important}
body.cv-desktop-theme4 .cv-profile{
  left:14px!important;right:auto!important;top:10px!important;width:282px!important;height:58px!important;
  padding:6px 9px!important;background:linear-gradient(180deg,#292820,#111310)!important;
  border:1px solid #8a6a3f!important;border-left:4px solid #c48635!important;
  box-shadow:inset 0 1px rgba(255,255,255,.05),0 4px 15px rgba(0,0,0,.72)!important;
  clip-path:polygon(0 0,95% 0,100% 50%,95% 100%,0 100%)!important;
}
body.cv-desktop-theme4 .cv-profile-main{min-width:0!important;flex:1!important}
body.cv-desktop-theme4 .cv-profile-name{color:#f4e7cc!important;font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cv-desktop-theme4 .cv-profile-sub{color:#d5ad67!important}
body.cv-desktop-theme4 .cv-clock{color:#ffd05f!important;font-weight:900!important;margin-left:6px!important}
body.cv-desktop-theme4 .cv-resbar{left:310px!important;right:14px!important}

/* Армия справа на главной: изображения подразделений вместо строк. */
body.cv-desktop-theme4 .cv-cmd-army-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
body.cv-desktop-theme4 .cv-cmd-army-unit-art{position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:7px!important;align-items:center!important;min-height:44px!important;padding:4px!important;overflow:hidden!important;background:linear-gradient(180deg,#20211c,#0d0f0d)!important;border:1px solid #5f4f36!important}
body.cv-desktop-theme4 .cv-cmd-army-unit-art img{grid-row:1/3;width:42px;height:42px;object-fit:cover;border:1px solid #80643d;background:#080a09;filter:saturate(.88) contrast(1.08)}
body.cv-desktop-theme4 .cv-cmd-army-unit-art span{font-size:9px!important;color:#e9dec8!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cv-desktop-theme4 .cv-cmd-army-unit-art b{font-size:11px!important;color:#e2b35c!important;text-align:left!important}

/* Все информационные/модальные окна темы 4 без базового синего. */
body.cv-desktop-theme4 .cv-modal-box,
body.cv-desktop-theme4 .cv-attack-modal-box,
body.cv-desktop-theme4 .cv-country-action-box,
body.cv-desktop-theme4 .cv-country-panel,
body.cv-desktop-theme4 .cv-world-target-box,
body.cv-desktop-theme4 .cv-countries-box,
body.cv-desktop-theme4 [role="dialog"] .cv-detail-card{
  background:linear-gradient(180deg,#23231d,#0d100e)!important;
  border-color:#80623c!important;color:#eee2cb!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 12px 35px rgba(0,0,0,.78)!important;
}
body.cv-desktop-theme4 .cv-modal-box h2,
body.cv-desktop-theme4 .cv-attack-modal-box h2,
body.cv-desktop-theme4 .cv-country-action-box h2,
body.cv-desktop-theme4 .cv-country-panel h2{color:#f1dfbc!important}
body.cv-desktop-theme4 .cv-attack-modal-info,
body.cv-desktop-theme4 .cv-target-meta,
body.cv-desktop-theme4 .cv-attack-estimate,
body.cv-desktop-theme4 .notice,
body.cv-desktop-theme4 .cv-tutorial-tip{
  background:linear-gradient(180deg,#25251e,#121410)!important;
  border-color:#695437!important;color:#d8ccb6!important;
}
body.cv-desktop-theme4 .cv-modal-close{background:linear-gradient(#49351e,#21170e)!important;border-color:#98703e!important;color:#f5e5c6!important}
body.cv-desktop-theme4 .cv-modal-close:hover{background:linear-gradient(#77451f,#30190d)!important;border-color:#d3913e!important}

/* Универсальный финальный проход по синим legacy-карточкам в стиле 4. */
body.cv-desktop-theme4 .cv-detail-card[style*="#0"],
body.cv-desktop-theme4 .cv-panel[style*="#0"],
body.cv-desktop-theme4 .unit,
body.cv-desktop-theme4 .cv-artifact-card,
body.cv-desktop-theme4 .cv-science-detail,
body.cv-desktop-theme4 .cv-science-detail-box{
  background:linear-gradient(180deg,#1e211c,#0c0f0d)!important;
  border-color:#67543a!important;
}
}

@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4 .cv-profile{width:230px!important}
 body.cv-desktop-theme4 .cv-resbar{left:252px!important;right:10px!important}
 body.cv-desktop-theme4 .cv-cmd-army-list{grid-template-columns:1fr!important}
}

/* CVGAME V1248 — финальная геометрия Style 4 по утверждённому макету. */
@media (min-width:1000px){
/* Узкий фирменный верхний баннер. Это реальный CSS-интерфейс, не картинка-макет. */
body.cv-desktop-theme4 .cv-shell{padding-top:128px!important}
body.cv-desktop-theme4 .cv-shell:before{
  content:"ПРАВИТЕЛИ ПУСТОШЕЙ"!important;display:flex!important;
  position:absolute!important;left:0!important;right:0!important;top:0!important;width:auto!important;height:50px!important;
  box-sizing:border-box!important;align-items:center!important;justify-content:center!important;padding:0 18px!important;
  clip-path:none!important;border:0!important;border-bottom:1px solid #76532f!important;border-radius:0!important;
  font-family:Impact,"Arial Narrow","Segoe UI Black",sans-serif!important;font-size:27px!important;line-height:1!important;
  letter-spacing:2.1px!important;color:#ead8b8!important;white-space:nowrap!important;
  background:
    linear-gradient(90deg,rgba(0,0,0,.68),transparent 24%,transparent 76%,rgba(0,0,0,.68)),
    repeating-linear-gradient(112deg,transparent 0 56px,rgba(8,8,7,.62) 57px 62px,transparent 63px 102px),
    linear-gradient(180deg,#6d452c 0%,#38291e 45%,#151713 100%)!important;
  box-shadow:inset 0 -12px 22px rgba(0,0,0,.52),0 3px 12px rgba(0,0,0,.72)!important;
  text-shadow:0 2px 0 #000,0 0 2px #000,0 0 12px rgba(230,151,65,.22)!important;z-index:2!important;
}
body.cv-desktop-theme4 .cv-shell:after{content:none!important;display:none!important}
/* Карточка игрока и ресурсы — ровно под логотипом, вертикально по центру. */
body.cv-desktop-theme4 .cv-profile{top:57px!important;left:14px!important;right:auto!important;width:292px!important;height:58px!important;align-items:center!important}
body.cv-desktop-theme4 .cv-resbar{top:57px!important;left:318px!important;right:14px!important;height:58px!important}
body.cv-desktop-theme4 .cv-nav{top:128px!important;max-height:none!important;height:auto!important;overflow:visible!important;scrollbar-width:none!important}
body.cv-desktop-theme4 .cv-nav::-webkit-scrollbar{display:none!important}
/* Главная занимает весь доступный правый край. Правая колонка является частью сетки. */
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-shell{padding-right:14px!important}
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-layout{grid-template-columns:minmax(0,1fr) 300px!important;width:100%!important}
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-side{width:300px!important;min-width:300px!important;overflow:visible!important;max-height:none!important}
/* Низ строго такой же ширины, как область зданий: правая колонка остаётся свободной. */
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-queues,
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-bottom,
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-main-online{
  width:calc(100% - 308px)!important;max-width:calc(100% - 308px)!important;box-sizing:border-box!important;margin-right:308px!important;
}
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-queues,
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-bottom{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html[data-cv-page="home"] body.cv-desktop-theme4 .cv-bottom .cv-panel{min-width:0!important;width:auto!important}
}
@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4 .cv-profile{width:230px!important}
 body.cv-desktop-theme4 .cv-resbar{left:252px!important;right:10px!important}
 html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-layout{grid-template-columns:minmax(0,1fr) 240px!important}
 html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-side{width:240px!important;min-width:240px!important}
 html[data-cv-page="home"] body.cv-desktop-theme4 .cv-command-queues,
 html[data-cv-page="home"] body.cv-desktop-theme4 .cv-bottom,
 html[data-cv-page="home"] body.cv-desktop-theme4 .cv-main-online{width:calc(100% - 248px)!important;max-width:calc(100% - 248px)!important;margin-right:248px!important}
}

/* CVGAME V1249 — Style 4: реальный верхний логотип + жёсткая геометрия главной. */
.cv-command-brand{display:none}
@media (min-width:1000px){
 body.cv-desktop-theme4 .cv-command-brand{
   display:flex!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:50px!important;
   align-items:center!important;justify-content:center!important;z-index:3!important;pointer-events:none!important;overflow:hidden!important;
   border-bottom:1px solid #76532f!important;
   background:
     linear-gradient(90deg,rgba(0,0,0,.72),transparent 24%,transparent 76%,rgba(0,0,0,.72)),
     repeating-linear-gradient(112deg,transparent 0 56px,rgba(8,8,7,.58) 57px 62px,transparent 63px 102px),
     linear-gradient(180deg,#70472d 0%,#39291e 45%,#151713 100%)!important;
   box-shadow:inset 0 -12px 22px rgba(0,0,0,.55),0 3px 12px rgba(0,0,0,.72)!important;
 }
 body.cv-desktop-theme4 .cv-command-brand span{
   font-family:Impact,"Arial Narrow","Segoe UI Black",sans-serif!important;font-size:27px!important;line-height:1!important;
   letter-spacing:2.1px!important;color:#ead8b8!important;text-shadow:0 2px 0 #000,0 0 2px #000,0 0 12px rgba(230,151,65,.22)!important;
 }
 /* Псевдо-логотип больше не используется: исключаем конфликт со старым V1246/V1248. */
 body.cv-desktop-theme4 .cv-shell:before,body.cv-desktop-theme4 .cv-shell:after{content:none!important;display:none!important}

 /* На главной определяем режим по фактическому наличию Command Center, а не по data-cv-page. */
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-shell{padding-top:128px!important;padding-right:14px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-profile{top:57px!important;left:14px!important;width:292px!important;height:58px!important;align-items:center!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-resbar{
   top:57px!important;left:318px!important;right:14px!important;height:58px!important;
   grid-template-columns:repeat(8,minmax(0,1fr))!important;box-sizing:border-box!important;
 }
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-nav{top:128px!important;max-height:none!important;height:auto!important;overflow:visible!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-layout{grid-template-columns:minmax(0,1fr) 300px!important;width:100%!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-side{width:300px!important;min-width:300px!important;overflow:visible!important;max-height:none!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-queues,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-bottom,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-main-online{
   width:calc(100% - 308px)!important;max-width:calc(100% - 308px)!important;margin-right:308px!important;box-sizing:border-box!important;
 }
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-queues,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-bottom{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
}
@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-profile{width:230px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-resbar{left:252px!important;right:10px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-layout{grid-template-columns:minmax(0,1fr) 240px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-side{width:240px!important;min-width:240px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-queues,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-bottom,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-main-online{width:calc(100% - 248px)!important;max-width:calc(100% - 248px)!important;margin-right:248px!important}
}


/* CVGAME V1250 — Style 4 final geometry pass from real browser screenshots.
 * Critical fix: legacy desktop shell had zoom:.85, so previous geometry could never
 * reach the right edge even when widths were correct. Theme 4 now renders at 100%.
 */
@media (min-width:1000px){
  body.cv-desktop-theme4 .wrap{
    width:100%!important;max-width:none!important;margin:0!important;padding:0 12px 18px!important;box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-shell{
    zoom:1!important;
    width:100%!important;max-width:none!important;margin:0!important;
    padding:126px 12px 18px 188px!important;
    box-sizing:border-box!important;position:relative!important;min-height:100vh!important;
  }

  /* Real compact logo bar above player/resources. */
  body.cv-desktop-theme4 .cv-command-brand{
    display:flex!important;position:absolute!important;
    left:0!important;right:0!important;top:0!important;height:46px!important;
    align-items:center!important;justify-content:center!important;z-index:5!important;
    overflow:hidden!important;pointer-events:none!important;
    border:0!important;border-bottom:1px solid #72502f!important;
    background:
      linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.18) 23%,rgba(0,0,0,.10) 77%,rgba(0,0,0,.78)),
      repeating-linear-gradient(115deg,transparent 0 64px,rgba(12,9,7,.38) 65px 70px,transparent 71px 110px),
      linear-gradient(180deg,#5a3b28 0%,#2e241c 54%,#111412 100%)!important;
    box-shadow:inset 0 -12px 22px rgba(0,0,0,.52),0 3px 14px rgba(0,0,0,.72)!important;
  }
  body.cv-desktop-theme4 .cv-command-brand span{
    font-family:Impact,"Arial Narrow","Segoe UI Black",sans-serif!important;
    font-size:25px!important;line-height:1!important;letter-spacing:2px!important;
    color:#ead9bb!important;text-shadow:0 2px 0 #000,0 0 2px #000,0 0 11px rgba(220,142,57,.22)!important;
  }
  body.cv-desktop-theme4 .cv-shell:before,
  body.cv-desktop-theme4 .cv-shell:after{content:none!important;display:none!important}

  /* Second row: player card + compact 8-resource strip, ending exactly at right shell edge. */
  body.cv-desktop-theme4 .cv-profile{
    position:absolute!important;top:54px!important;left:12px!important;
    width:300px!important;height:58px!important;min-height:58px!important;margin:0!important;
    padding:6px 10px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
  }
  body.cv-desktop-theme4 .cv-profile-main{display:flex!important;align-items:center!important;min-width:0!important}
  body.cv-desktop-theme4 .cv-profile-avatar{width:42px!important;height:42px!important;flex:0 0 42px!important}
  body.cv-desktop-theme4 .cv-resbar{
    position:absolute!important;top:54px!important;left:322px!important;right:12px!important;
    height:58px!important;min-height:58px!important;margin:0!important;padding:1px!important;
    display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:0!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  body.cv-desktop-theme4 .cv-resitem{
    min-width:0!important;height:54px!important;padding:6px 8px!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
  }
  body.cv-desktop-theme4 .cv-resline{gap:6px!important;min-width:0!important}
  body.cv-desktop-theme4 .cv-resvalue{font-size:13px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.cv-desktop-theme4 .cv-resicon{font-size:17px!important;flex:0 0 auto!important}
  body.cv-desktop-theme4 .cv-resrate{font-size:8px!important;padding-left:23px!important;margin-top:1px!important}

  /* Compact left rail without its own scrollbar. */
  body.cv-desktop-theme4 .cv-nav{
    position:absolute!important;left:12px!important;top:126px!important;width:164px!important;
    max-height:none!important;height:auto!important;overflow:visible!important;margin:0!important;padding:2px!important;
    scrollbar-width:none!important;
  }
  body.cv-desktop-theme4 .cv-nav::-webkit-scrollbar{display:none!important}
  body.cv-desktop-theme4 .cv-nav button,
  body.cv-desktop-theme4 .cv-nav a{
    min-height:31px!important;height:31px!important;padding:0 8px!important;font-size:13px!important;line-height:1!important;
  }
  body.cv-desktop-theme4 .cv-nav button:after{font-size:9px!important}

  /* Main content: exact two-column geometry. Right rail reaches same right edge as resource row. */
  body.cv-desktop-theme4 .cv-tabs,
  body.cv-desktop-theme4 .cv-village-tabs{width:100%!important;box-sizing:border-box!important}
  body.cv-desktop-theme4 .cv-command-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr) 292px!important;
    grid-template-areas:"village side"!important;gap:8px!important;align-items:start!important;
    width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-village{grid-area:village!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
  body.cv-desktop-theme4 .cv-command-side{
    grid-area:side!important;width:292px!important;min-width:292px!important;max-width:292px!important;
    position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-side section{width:100%!important;box-sizing:border-box!important}

  /* Buildings: 5 equal columns, no ragged width. Last incomplete row starts at left naturally. */
  body.cv-desktop-theme4 .cv-command-village .cv-building-grid{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;padding:7px!important;width:100%!important;box-sizing:border-box!important;align-items:stretch!important;
  }
  body.cv-desktop-theme4 .cv-command-village .cv-building{width:100%!important;min-width:0!important;min-height:128px!important}
  body.cv-desktop-theme4 .cv-command-village .cv-building-img{height:128px!important}

  /* Both lower rows are exactly the village width, never under the right rail. */
  body.cv-desktop-theme4 .cv-command-queues,
  body.cv-desktop-theme4 .cv-bottom,
  body.cv-desktop-theme4 .cv-main-online{
    width:calc(100% - 300px)!important;max-width:calc(100% - 300px)!important;
    margin-right:300px!important;margin-left:0!important;box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-queues,
  body.cv-desktop-theme4 .cv-bottom{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;
  }
  body.cv-desktop-theme4 .cv-command-queues{margin-top:8px!important}
  body.cv-desktop-theme4 .cv-bottom{margin-top:8px!important}
  body.cv-desktop-theme4 .cv-main-online{margin-top:7px!important}
  body.cv-desktop-theme4 .cv-bottom .cv-panel,
  body.cv-desktop-theme4 .cv-command-queues .cv-cmd-queue{min-width:0!important;width:auto!important;box-sizing:border-box!important}
}

/* Laptop fallback: still full-width, only reduce fixed side columns. */
@media (min-width:1000px) and (max-width:1365px){
  body.cv-desktop-theme4 .cv-shell{zoom:1!important;padding-left:166px!important}
  body.cv-desktop-theme4 .cv-profile{width:250px!important}
  body.cv-desktop-theme4 .cv-resbar{left:272px!important;right:10px!important}
  body.cv-desktop-theme4 .cv-nav{left:10px!important;width:146px!important}
  body.cv-desktop-theme4 .cv-command-layout{grid-template-columns:minmax(0,1fr) 240px!important}
  body.cv-desktop-theme4 .cv-command-side{width:240px!important;min-width:240px!important;max-width:240px!important}
  body.cv-desktop-theme4 .cv-command-village .cv-building-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.cv-desktop-theme4 .cv-command-queues,
  body.cv-desktop-theme4 .cv-bottom,
  body.cv-desktop-theme4 .cv-main-online{width:calc(100% - 248px)!important;max-width:calc(100% - 248px)!important;margin-right:248px!important}
}

/* V1251 — dark village previous/next controls for Style 4 */
body.cv-desktop-theme4 .cv-village-title-wrap{display:flex;align-items:center;gap:8px;min-width:0}
body.cv-desktop-theme4 .cv-village-title{min-width:0}
body.cv-desktop-theme4 .cv-village-nav{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;margin:0!important;border:1px solid #665637!important;border-radius:3px!important;background:linear-gradient(180deg,#24231e 0%,#111310 100%)!important;color:#d7c28d!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 1px 2px #000!important;font-size:13px!important;line-height:28px!important;text-align:center!important}
body.cv-desktop-theme4 .cv-village-nav:hover{background:linear-gradient(180deg,#302c22 0%,#171712 100%)!important;border-color:#a77a27!important;color:#ffd66b!important}
body.cv-desktop-theme4 .cv-village-nav:active{transform:translateY(1px);background:#11110e!important}

/* V1252 — lower home blocks are anchored to the village/building column.
 * The independent right-side production/storage/army rail can grow vertically
 * without moving construction, training, science and lower navigation panels.
 */
@media (min-width:1000px){
  body.cv-desktop-theme4 .cv-command-village > .cv-command-queues,
  body.cv-desktop-theme4 .cv-command-village > .cv-bottom,
  body.cv-desktop-theme4 .cv-command-village > .cv-main-online{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-village > .cv-command-queues,
  body.cv-desktop-theme4 .cv-command-village > .cv-bottom{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.cv-desktop-theme4 .cv-command-village > .cv-command-queues{margin-top:8px!important}
  body.cv-desktop-theme4 .cv-command-village > .cv-bottom{margin-top:8px!important}
  body.cv-desktop-theme4 .cv-command-village > .cv-main-online{margin-top:7px!important}
  body.cv-desktop-theme4 .cv-command-layout{align-items:start!important}
  body.cv-desktop-theme4 .cv-command-side{align-self:start!important}
}

/* V1253 — lower village panels keep their vertical anchor under buildings,
 * but visually extend through the right rail to the common outer edge. */
@media (min-width:1366px){
  body.cv-desktop-theme4 .cv-command-village > .cv-command-queues,
  body.cv-desktop-theme4 .cv-command-village > .cv-bottom,
  body.cv-desktop-theme4 .cv-command-village > .cv-main-online{
    width:calc(100% + 278px)!important;
    max-width:none!important;
    position:relative!important;
    z-index:2!important;
  }
}
@media (min-width:1000px) and (max-width:1365px){
  body.cv-desktop-theme4 .cv-command-village > .cv-command-queues,
  body.cv-desktop-theme4 .cv-command-village > .cv-bottom,
  body.cv-desktop-theme4 .cv-command-village > .cv-main-online{
    width:calc(100% + 248px)!important;
    max-width:none!important;
    position:relative!important;
    z-index:2!important;
  }
}

/* V1254: нижние панели на всю ширину Command Center, правая колонка не влияет на их высоту. */
@media (min-width:1366px){
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-layout{display:block!important;position:relative!important;width:100%!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village{width:100%!important;min-width:0!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village-head,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village>.cv-building-grid{width:calc(100% - 308px)!important;max-width:calc(100% - 308px)!important;margin-right:308px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-side{position:absolute!important;top:0!important;right:0!important;width:300px!important;min-width:300px!important;z-index:3!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-queues,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-bottom,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-main-online{width:100%!important;max-width:none!important;margin-right:0!important}
}
@media (min-width:1000px) and (max-width:1365px){
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-layout{display:block!important;position:relative!important;width:100%!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village{width:100%!important;min-width:0!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village-head,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-village>.cv-building-grid{width:calc(100% - 248px)!important;max-width:calc(100% - 248px)!important;margin-right:248px!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-side{position:absolute!important;top:0!important;right:0!important;width:240px!important;min-width:240px!important;z-index:3!important}
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-command-queues,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-bottom,
 body.cv-desktop-theme4:has(.cv-command-layout) .cv-main-online{width:100%!important;max-width:none!important;margin-right:0!important}
}

/* V1255 — Command Center: real DOM separation of top area, right rail and full-width lower rows. */
@media (min-width:1000px){
  body.cv-desktop-theme4 .cv-command-layout-v1255{
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-top{
    position:relative!important;
    width:100%!important;
    min-height:0!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-village{
    width:calc(100% - 308px)!important;
    max-width:calc(100% - 308px)!important;
    margin-right:308px!important;
    min-width:0!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-village-head,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-building-grid{
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-side{
    position:absolute!important;
    top:0!important;
    right:0!important;
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
    z-index:5!important;
    margin:0!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    clear:both!important;
    margin-top:8px!important;
    position:relative!important;
    z-index:2!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-command-queues,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-bottom,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-main-online{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-command-queues,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-bottom{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower .cv-cmd-queue,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower .cv-panel{
    min-width:0!important;
    width:auto!important;
    box-sizing:border-box!important;
  }
}
@media (min-width:1000px) and (max-width:1399px){
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-village{
    width:calc(100% - 248px)!important;
    max-width:calc(100% - 248px)!important;
    margin-right:248px!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-side{
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
  }
}

/* ========================================================================== */
/* V1256 — Style 4: 18 зданий в 3 ряда + нижние блоки строго по ширине зданий */
/* ========================================================================== */
@media (min-width:1400px){
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-village .cv-building-grid{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
  }

  /* Низ заканчивается ровно по правому краю сетки зданий, правая колонка независима. */
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower{
    width:calc(100% - 308px)!important;
    max-width:calc(100% - 308px)!important;
    margin-right:308px!important;
    box-sizing:border-box!important;
  }
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-command-queues,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-bottom,
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower>.cv-main-online{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
}

@media (min-width:1000px) and (max-width:1399px){
  body.cv-desktop-theme4 .cv-command-layout-v1255 .cv-command-lower{
    width:calc(100% - 248px)!important;
    max-width:calc(100% - 248px)!important;
    margin-right:248px!important;
    box-sizing:border-box!important;
  }
}

/* ========================================================================== */
/* V1285 — Style 4: увеличенная читаемость подписей слева, по центру и справа */
/* Только типографика: геометрия/размеры колонок и карточек не изменяются.      */
/* ========================================================================== */
@media (min-width:1000px){
  /* Левое главное меню */
  body.cv-desktop-theme4 .cv-nav button,
  body.cv-desktop-theme4 .cv-nav a{font-size:15px!important;font-weight:700!important}
  body.cv-desktop-theme4 .cv-nav button:after{font-size:14px!important;font-weight:800!important}

  /* Центральная сетка зданий */
  body.cv-desktop-theme4 .cv-command-village .cv-building-title{
    font-size:15px!important;font-weight:900!important;line-height:1.15!important;
    padding:7px 5px 6px!important;
  }
  body.cv-desktop-theme4 .cv-command-village-head b{font-size:18px!important}
  body.cv-desktop-theme4 .cv-command-village-head span{font-size:12px!important}

  /* Нижние колонки: строительство / обучение / исследования */
  body.cv-desktop-theme4 .cv-cmd-queue h3{font-size:15px!important;font-weight:900!important}
  body.cv-desktop-theme4 .cv-cmd-queue>div{font-size:12px!important;line-height:1.35!important}
  body.cv-desktop-theme4 .cv-cmd-queue>div b{font-size:13px!important}

  /* Правая колонка: производство / склад / войска */
  body.cv-desktop-theme4 .cv-command-side section>h3,
  body.cv-desktop-theme4 .cv-command-side h3{font-size:15px!important;font-weight:900!important}
  body.cv-desktop-theme4 .cv-cmd-stat,
  body.cv-desktop-theme4 .cv-cmd-production{font-size:13px!important;line-height:1.4!important}
  body.cv-desktop-theme4 .cv-cmd-storage>div,
  body.cv-desktop-theme4 .cv-cmd-storage{font-size:12px!important;line-height:1.4!important}
  body.cv-desktop-theme4 .cv-cmd-army-unit{font-size:12px!important;line-height:1.4!important}
  body.cv-desktop-theme4 .cv-cmd-army-unit-art span{font-size:11px!important;font-weight:700!important}
  body.cv-desktop-theme4 .cv-cmd-army-unit-art b{font-size:13px!important}
}
