/* ============================================================
   Z3 THEME · Z3 DESERT  (assets/theme-z3desert.css)
   ------------------------------------------------------------
   Третата тема: тактичка воена, пустинска. Структурата е на
   theme-z3master.css (исти класи/ID-а/правила — камуфлажни плочи,
   нитни, LED-сет), палетата е сменета: маслинесто → песок,
   зелен фосфор → амбер CRT, темен метал → топол брусен метал.
   Плочите се СВЕТОЛ ПЕСОК со камуфлаж, натписите темно гравирани,
   бројачните плочки се амбер со темни броеви.
   LED семантика (види крајот): online зелено · offline црвено ·
   TX жолто · RX црвено · unknown сиво.

   Се вчитува како третата опција (клуч z3desert; стариот клуч
   z3poc се пренасочува тука, за да не остане некој без тема).
   ============================================================ */
/* ============================================================================
   theme-z3master.css — Z3 THEME · Z3 MASTER
   Тактичка маскирна конзола: маслинесто-каки (Olive Drab) шасије со шумски
   камуфлаж (Woodland Camo), фосфорно-зелени LCD екрани и гравирани плочи.

   Се вчитува ПОСЛЕДНА (app_head.php, крајот) — како z3signal.
   ПРАВИЛО НА ОВОЈ ФАЈЛ: секој селектор е `html body …` и секоја боја/сенка
   е !important. Не е украс — основните листови (theme-z3poc.css, z3con.css,
   z3frame.css) пишуваат `html body …` со !important, па пониска
   специфичност губи и покрај тоа што овој файл е последен.

   Што менува: САМО палета, текстури и сенки. Класите, ID-ата, големините,
   распоредот, display/grid и секое правило што JavaScript го чита остануваат
   исти како во основната кожа. LED правилата (online/offline/TX/RX) се тука
   целосни — секоја состојба има своја боја и сјај.

   Секции:
     01. THE CASE — палета, камуфлаж и позадина
     02. THE PLAQUES — наслови, плочи, нитни
     03. CONTROLS — копчиња, полиња, мени
     04. THE INSTRUMENTS — LCD екрани, метри, LED
     05. THE READOUTS — табели, логови, табли, статуси
     06. RESPONSIVE — телефон
   ========================================================================== */

/* ======================= 01. THE CASE — палета ========================== */
:root{
  /* --- маслинесто-каки метали (Olive Drab) --- */
  --tac-od-1:#a48558;      /* осветлена плоча */
  --tac-od-2:#886e49;      /* плоча */
  --tac-od-3:#715c3d;      /* затемнета плоча */
  --tac-edge:#c1aa8b;      /* раб на плочата */
  --tac-edge-hi:#e6ddd1;   /* горен раб (светлина) */
  --tac-deep:#372c1c;      /* жлеб */
  --tac-rivet:#dbcebd;     /* глава на нитна */
  --tac-rivet-hi:#e8ddce;

  /* --- мастило --- */
  --tac-ink:#e9ddce;       /* текст на метал */
  --tac-ink-dim:#e6ddd1;   /* тивок текст */
  --tac-engrave:#4a3c28;   /* гравиран текст на плоча */

  /* --- екрани: фосфор P1 --- */
  --tac-green:#fbe7bb;     /* фосфор */
  --tac-green-hi:#fbe7bb;  /* најсветол фосфор */
  --tac-lcd-2:#372a0e;
  --tac-lcd-line:#a38b58;
  --tac-amber:#ffca4d;     /* TX / предупредување */
  --tac-red:#f66450;       /* offline / RX */

  /* --- препишување на палетата на платформата --- */
  --bg:#5d4c32;
  --bg-secondary:#685538;
  --panel:#786141;
  --panel-2:#695538;
  --line:#b39771;
  --text:var(--tac-ink);
  --muted:var(--tac-ink-dim);
  --accent:var(--tac-green);
  --accent-2:var(--tac-amber);
  --amber:var(--tac-amber);
  --green:#f1e3c5;
  --red:var(--tac-red);
  --cyan:var(--tac-green);
  --radius:6px;
  --shadow:0 14px 30px rgba(0,0,0,.55);

  /* LED токени — еден извор за сите точки на платформата */
  --tac-led-on:#fbe8bb;
  --tac-led-off:#f66450;
  --tac-led-tx:#ffca4d;
  --tac-led-unk:#dbcebd;

  /* LCD токени (за плеерите) */
  --lcd-bg:#413312;  --lcd-bg2:#372a0e; --lcd-brd:#a38b58;
  --lcd-fg:#fbe8bb;  --lcd-fgd:#bcab83; --lcd-fgm:#ede2c9;
  --lcd-hi:#fbe7bb;  --lcd-dim:#6a572b;
  --rx-clr:#fbe7bb;  --rx-glow:rgba(251,231,187,.34);


  /* Плочата: ист камуфлаж + фина ткаенина, за да не е рамна боја. */
  --tac-plate:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px),
    radial-gradient(38% 48% at 14% 20%, rgba(74,61,35,.62) 0 45%, transparent 47%),
    radial-gradient(32% 42% at 76% 8%, rgba(65,54,35,.62) 0 45%, transparent 47%),
    radial-gradient(28% 34% at 90% 72%, rgba(188,163,130,.4) 0 44%, transparent 46%),
    radial-gradient(36% 32% at 28% 90%, rgba(65,54,35,.5) 0 45%, transparent 47%),
    linear-gradient(180deg, var(--tac-od-1), var(--tac-od-2) 62%, var(--tac-od-3));
  --tac-plate-hi:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    radial-gradient(34% 46% at 20% 16%, rgba(188,163,130,.45) 0 45%, transparent 47%),
    radial-gradient(30% 40% at 80% 22%, rgba(74,61,35,.5) 0 44%, transparent 46%),
    radial-gradient(34% 36% at 60% 86%, rgba(65,54,35,.48) 0 45%, transparent 47%),
    linear-gradient(180deg, #b0946b, #8f744d 58%, #7d6543);
  --tac-well:
    radial-gradient(120% 80% at 50% -20%, rgba(251,231,187,.1), transparent 60%),
    linear-gradient(180deg, #493916, #3a2d10 70%, var(--tac-lcd-2));
  --tac-rivets:
    radial-gradient(circle at 7px 7px, var(--tac-rivet-hi) 0 1px, var(--tac-rivet) 1px 2px, var(--tac-deep) 2.2px 2.8px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) 7px, var(--tac-rivet-hi) 0 1px, var(--tac-rivet) 1px 2px, var(--tac-deep) 2.2px 2.8px, transparent 3px),
    radial-gradient(circle at 7px calc(100% - 7px), var(--tac-rivet-hi) 0 1px, var(--tac-rivet) 1px 2px, var(--tac-deep) 2.2px 2.8px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), var(--tac-rivet-hi) 0 1px, var(--tac-rivet) 1px 2px, var(--tac-deep) 2.2px 2.8px, transparent 3px);
}

/* Позадина: камуфлиран терен, фиксиран — плочите лебдат над него. */
html body,
html body.app-body{
  background-color:#5d4c32 !important;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 6px),
    radial-gradient(42% 38% at 14% 16%, rgba(74,61,35,.6) 0 46%, transparent 48%),
    radial-gradient(36% 34% at 78% 8%, rgba(65,54,35,.62) 0 45%, transparent 47%),
    radial-gradient(40% 36% at 92% 46%, rgba(188,163,130,.35) 0 44%, transparent 46%),
    radial-gradient(50% 42% at 34% 62%, rgba(65,54,35,.55) 0 46%, transparent 48%),
    radial-gradient(36% 34% at 72% 86%, rgba(74,61,35,.52) 0 45%, transparent 47%),
    radial-gradient(44% 40% at 4% 92%, rgba(91,76,44,.5) 0 46%, transparent 48%),
    linear-gradient(170deg, #866c48 0%, #665337 46%, #4b3d28 100%) !important;
  background-attachment:fixed !important;
  color:var(--tac-ink) !important;
  font-family:"Chakra Petch","Segoe UI",system-ui,sans-serif !important;
}

/* Основниот CRT-слој од старата тема се гаси: оваа кожа има своја бразда. */
html body::before{opacity:0 !important}

html body ::selection{background:var(--tac-green) !important;color:#493916 !important}
html{scrollbar-color:#b39771 #4b3d28}

/* ======================= 02. THE PLAQUES — плочи ======================== */

/* Секој панел/картичка е камуфлирана метална плоча со нитни по аглите. */
html body .panel,
html body .z3-card,
html body .card,
html body .stat,
html body .activity-card,
html body .auth-card,
html body .z3-tiles{
  position:relative !important;
  background:var(--tac-plate) !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:8px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -2px 0 rgba(0,0,0,.42),
    0 12px 26px rgba(0,0,0,.5) !important;
}
html body .panel::before,
html body .z3-card::before,
html body .card::before{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  border-radius:inherit !important;
  background:var(--tac-rivets) !important;
  pointer-events:none !important;
  opacity:.9 !important;
  z-index:1 !important;
}

/* Наслов на блокот: гравирана плоча, како „QSO LOG & FREQ SELECT“. */
html body .panel-title,
html body .z3-h,
html body .z3-h h2,
html body .z3-h .z3-h-t,
html body .z3-card > .z3-card-head .z3-h,
html body .page-head h1,
html body .z3-pagehead h1{
  display:inline-flex !important;
  align-items:center !important;
  gap:.45rem !important;
  padding:.36rem .9rem !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:6px !important;
  background:var(--tac-plate-hi) !important;
  color:var(--tac-engrave) !important;
  font:700 11px/1.15 var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  letter-spacing:.18em !important;
  text-transform:uppercase !important;
  text-shadow:0 1px 0 rgba(255,255,255,.3), 0 -1px 0 rgba(0,0,0,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.3),
    0 2px 6px rgba(0,0,0,.4) !important;
}
html body .page-head h1,
html body .z3-pagehead h1{font-size:clamp(15px,1.1rem + .5vw,20px) !important;letter-spacing:.2em !important}
html body .z3-h-sub{color:var(--tac-ink-dim) !important;text-transform:none !important;letter-spacing:.02em !important}

/* Гравиран наслов во самиот панел (без плоча) — како STATUS / INTEL. */
html body .z3-kicker{
  display:inline-block !important;
  padding:.18rem .5rem !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:4px !important;
  background:linear-gradient(180deg,#b39771,#8f744d) !important;
  color:var(--tac-engrave) !important;
  font:700 9.5px/1.4 var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  letter-spacing:.2em !important;
  text-transform:uppercase !important;
  text-shadow:0 1px 0 rgba(255,255,255,.24) !important;
}

/* Заглавје на картичка — шина, не градиент-сјај. */
html body .z3-card-head{
  border-bottom:1px solid rgba(0,0,0,.35) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.1) !important;
  padding-bottom:.55rem !important;
}

/* ======================= 03. CONTROLS — контроли ======================== */

/* Менито: метални плочки; активното е фосфорно (како DEPLOYMENTS). */
html body .z3-nav-btn,
html body .topbar-nav-link{
  background:var(--tac-plate-hi) !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:5px !important;
  color:var(--tac-engrave) !important;
  font-weight:700 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  text-shadow:0 1px 0 rgba(255,255,255,.28) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.32), 0 2px 5px rgba(0,0,0,.32) !important;
}
html body .z3-nav-btn:hover,
html body .topbar-nav-link:hover{
  background:linear-gradient(180deg,#c3ad8f,#a58559 58%,#90754e) !important;
  color:var(--tac-engrave) !important;
  border-color:var(--tac-edge-hi) !important;
}
html body .z3-nav-group.active .z3-nav-btn,
html body .z3-nav-btn[aria-expanded="true"]{
  background:linear-gradient(180deg,#fbe7bb,#fbe7bb 58%,#e5d2a7) !important;
  border-color:#fbe7bb !important;
  color:#493916 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.38) !important;
  box-shadow:0 0 14px rgba(251,231,187,.34), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
html body .z3-nav-menu{
  background:linear-gradient(180deg,#7d6543,#594930) !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:7px !important;
  box-shadow:0 18px 34px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html body .z3-nav-menu a{color:#e6ddd1 !important}
html body .z3-nav-menu a:hover,
html body .z3-nav-menu a.active{
  background:linear-gradient(180deg,#9d7f54,#7d6543) !important;
  color:var(--tac-green-hi) !important;
}

/* Лентата (header): камуфлиран рам. */
html body .z3-hdr{
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 4px),
    radial-gradient(30% 60% at 18% 40%, rgba(74,61,35,.45) 0 44%, transparent 68%),
    radial-gradient(26% 50% at 62% 20%, rgba(73,60,39,.5) 0 44%, transparent 68%),
    radial-gradient(30% 60% at 88% 70%, rgba(188,163,130,.28) 0 42%, transparent 66%),
    linear-gradient(180deg,#a48558,#866d48 70%,#6f5b3c) !important;
  border-bottom:2px solid var(--tac-deep) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 6px 18px rgba(0,0,0,.5) !important;
}
html body .z3-hdr-inner{position:relative !important}
html body .z3-hdr-inner::after{
  content:'' !important;
  position:absolute !important;
  left:0 !important;right:0 !important;bottom:-2px !important;
  height:3px !important;
  background:linear-gradient(90deg,transparent,rgba(251,231,187,.5),transparent) !important;
  pointer-events:none !important;
}
html body .z3-hdr-search input{
  background:linear-gradient(180deg,#483c1f,#3e3112) !important;
  border:1px solid var(--tac-edge) !important;
  color:var(--tac-green) !important;
  border-radius:5px !important;
  font-family:var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
}
html body .z3-hdr-search input:focus{
  outline:none !important;
  border-color:var(--tac-green) !important;
  box-shadow:0 0 0 2px rgba(251,231,187,.26), inset 0 2px 6px rgba(0,0,0,.6) !important;
}
html body .z3-hdr-toggle span{background:var(--tac-engrave) !important}

/* Копчиња: брусени плочки; primary е фосфорно стакло. */
html body .btn,
html body .z3-btn,
html body button.btn,
html body input[type="submit"],
html body input[type="button"]{
  background:var(--tac-plate-hi) !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:5px !important;
  color:var(--tac-engrave) !important;
  font-weight:700 !important;
  letter-spacing:.1em !important;
  text-transform:uppercase !important;
  text-shadow:0 1px 0 rgba(255,255,255,.26) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #423624, 0 6px 14px rgba(0,0,0,.38) !important;
}
html body .btn:hover,
html body .z3-btn:hover,
html body button.btn:hover{filter:brightness(1.08) !important}
html body .btn:active,
html body .z3-btn:active,
html body button.btn:active{
  transform:translateY(2px) !important;
  box-shadow:inset 0 2px 7px rgba(0,0,0,.55) !important;
}
html body .btn.btn-primary,
html body .z3-btn.z3-btn-p,
html body #elwJoin{
  background:linear-gradient(180deg,#fbe7bb,#fbe7bb 56%,#e2cd9f) !important;
  border-color:#fbe7bb !important;
  color:#493916 !important;
  box-shadow:0 0 18px rgba(251,231,187,.32), inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #ae872d !important;
}
html body .btn-primary:hover,
html body .z3-btn-p:hover{filter:brightness(1.05) !important;color:#493916 !important}
html body .btn.btn-ghost,
html body .btn.btn-secondary{
  background:rgba(0,0,0,.3) !important;
  border-color:var(--tac-edge) !important;
  color:#e6ddd1 !important;
  text-shadow:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07) !important;
}
html body .btn-ghost:hover{background:rgba(0,0,0,.42) !important;color:var(--tac-green-hi) !important}
html body .btn-danger{
  background:linear-gradient(180deg,#bc4434,#852f23) !important;
  border-color:#d96555 !important;
  color:#fee6e3 !important;
}

/* Полиња: вдлабнати екрани со фосфорен текст. */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
html body .input,
html body select,
html body textarea{
  background:linear-gradient(180deg,#483a1b,#3a2d10) !important;
  border:1px solid var(--tac-lcd-line) !important;
  color:var(--tac-green) !important;
  border-radius:5px !important;
  font-family:var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.65), inset 0 0 24px -14px rgba(251,231,187,.5) !important;
}
html body input::placeholder,
html body textarea::placeholder{color:#dacfbb !important}
html body input:focus,
html body select:focus,
html body textarea:focus{
  outline:none !important;
  border-color:var(--tac-green) !important;
  box-shadow:0 0 0 2px rgba(251,231,187,.24), inset 0 2px 6px rgba(0,0,0,.6) !important;
}
html body select option{background:#3f331c !important;color:#e9decd !important}
html body input[type="checkbox"],
html body input[type="radio"]{accent-color:#f1e3c6 !important}

/* ==================== 04. THE INSTRUMENTS — екрани ====================== */

/* LCD екран: црно-зелено стакло, скенлинии, внатрешен сјај. */
html body .trx-chassis,
html body .oled-tx-card{
  background:linear-gradient(180deg,#997c52,#796241 70%,#695538) !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:9px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 14px 30px rgba(0,0,0,.55) !important;
}
html body .oled-display{
  background:var(--tac-well) !important;
  border-color:var(--tac-lcd-line) !important;
  color:var(--tac-green) !important;
  box-shadow:inset 0 0 80px rgba(242,228,197,.18), inset 0 2px 10px rgba(0,0,0,.72) !important;
}
html body .oled-display::before{
  background:repeating-linear-gradient(to bottom,
    rgba(251,231,187,0) 0 2px, rgba(251,231,187,.08) 2px 4px) !important;
  mix-blend-mode:normal !important;
}
html body .oled-display-frame{
  background:linear-gradient(180deg,#4f4122,#3e3112) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(251,231,187,.22) !important;
}
html body .oled-item,
html body .oled-status-top,
html body .trx-hero-label,
html body .trx-kicker,
html body .trx-meta,
html body .trx-note,
html body .trx-dial-cap,
html body .trx-row-top,
html body .oled-mic,
html body .oled-members,
html body .oled-notice,
html body .oled-sub,
html body .trx-select label,
html body .trx-knob-lbl{color:#fbe8bb !important;opacity:1 !important}
html body .oled-item{text-shadow:0 0 9px rgba(251,231,187,.45) !important;text-transform:none !important;letter-spacing:normal !important}
html body .oled-roomnum,
html body #localLastCall,
html body #localRoomVal,
html body #localRoomBmHero{color:var(--lcd-hi) !important;text-shadow:0 0 70px rgba(251,231,187,.5), 0 0 22px rgba(251,231,187,.55) !important}
html body .oled-sub{color:#ede2ca !important}
html body .oled-bar{background:linear-gradient(180deg,#fbe7bb,#bfa469) !important;box-shadow:0 0 5px rgba(251,231,187,.45) !important}
html body .oled-btn{
  background:var(--tac-plate-hi) !important;
  border:1px solid var(--tac-edge) !important;
  color:var(--tac-engrave) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 2px 0 #423624 !important;
}
html body .oled-btn:hover{border-color:var(--tac-edge-hi) !important;color:var(--tac-engrave) !important;filter:brightness(1.08) !important}
html body .oled-btn.act,
html body .oled-btn.on,
html body .oled-pad.mid,
html body .bm-trx .oled-btn.act{
  background:linear-gradient(180deg,#fbe7bb,#fbe7bb 58%,#e5d2a7) !important;
  border-color:#fbe7bb !important;
  color:#493916 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.38) !important;
  box-shadow:0 0 14px rgba(251,231,187,.34), inset 0 1px 0 rgba(255,255,255,.45) !important;
}
html body .oled-pad{background:linear-gradient(180deg,#af926a,#866c48) !important;border-color:var(--tac-edge) !important;color:var(--tac-engrave) !important}
html body .oled-dial{background:conic-gradient(from 200deg,#a48558,#715c3d) !important;border-color:var(--tac-edge) !important}
html body .oled-dial::after{background:var(--tac-green) !important;box-shadow:0 0 7px rgba(251,231,187,.65) !important}
html body .trx-knob-ind{background:var(--tac-green) !important;box-shadow:0 0 7px rgba(251,231,187,.6) !important}
html body .trx-arc-live{stroke:var(--tac-green) !important}
html body .trx-needle{stroke:var(--lcd-hi) !important}

/* Метри: зелена скала, жолто/црвено на врвот — како SPECTRUM ANALYZER. */
html body #sMeter,
html body #localSMeter,
html body #vuMeter,
html body #localVu,
html body #localMicMeter{
  background:linear-gradient(90deg,#876c2d 0%,#bfa469 42%,#fbe7bb 72%,#ffca4d 88%,#f66450 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 0 10px rgba(251,231,187,.2) !important;
}
html body .meter,
html body .meter-track,
html body .seg-meter{
  background:linear-gradient(180deg,#483a1b,#3a2d10) !important;
  border:1px solid var(--tac-lcd-line) !important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.7) !important;
}

/* ------------------------- LED: сите состојби ---------------------------
   Правилото на платформата: online зелено · offline црвено · TX жолто ·
   RX црвено · unknown сиво. Секоја точка го носи својот безбеден раб
   (црн прстен) од z3status.css — тука се менува само бојата и сјајот. */
html body .status-led.online,
html body .el-led.on,
html body .elw-led.on,
html body .oled-dot.on,
html body .crn-dot-ok,
html body .sys-dot,
html body .mm-dot,
html body .map-dot,
html body .z3-deploy-dot,
html body .z3-dash-led,
html body .rec-dot.on,
html body .audio-dock-led.on,
html body .ptt-local-dot.on,
html body .imp-dot,
html body .op-tx-dot.on,
html body .z3-dash-dot.ok,
html body .z3-dash-dot.is-ok{
  background-color:var(--tac-led-on) !important;
  background-image:radial-gradient(circle at 34% 28%, rgba(255,255,255,.6), rgba(255,255,255,0) 58%) !important;
  box-shadow:0 0 0 1.5px rgba(251,231,187,.28), 0 0 0 3px rgba(0,0,0,.32), 0 0 9px rgba(251,232,187,.62) !important;
}
html body .status-led.off,
html body .status-led.rx,
html body .el-led.off,
html body .elw-led.off,
html body .elw-led.err,
html body .oled-dot.off,
html body .oled-dot.rx,
html body .crn-dot-err,
html body .z3-dash-dot.off,
html body .z3-dash-dot.is-off,
html body .z3-off-led,
html body .z3net.is-hard .z3net-dot{
  background-color:var(--tac-led-off) !important;
  background-image:radial-gradient(circle at 34% 28%, rgba(255,255,255,.5), rgba(255,255,255,0) 58%) !important;
  box-shadow:0 0 0 1.5px rgba(252,205,199,.26), 0 0 0 3px rgba(0,0,0,.32), 0 0 10px rgba(246,100,80,.65) !important;
}
html body .status-led.rx,
html body .oled-dot.rx{animation:z3m-rx-blink 1.1s steps(2,end) infinite !important}
html body .status-led.tx,
html body .el-led.tx,
html body .elw-led.tx,
html body .oled-dot.tx,
html body .z3-dash-dot.tx,
html body .op-tx-dot,
html body .ptt-local-dot.tx,
html body .z3-dash-led.tx{
  background-color:var(--tac-led-tx) !important;
  background-image:radial-gradient(circle at 34% 28%, rgba(255,255,255,.6), rgba(255,255,255,0) 58%) !important;
  box-shadow:0 0 0 1.5px rgba(255,239,196,.3), 0 0 0 3px rgba(0,0,0,.32), 0 0 12px rgba(255,202,77,.7) !important;
}
html body .status-led.tx,
html body .oled-dot.tx{animation:z3m-tx-pulse .9s ease-in-out infinite !important}
html body .status-led.connecting,
html body .el-led.connecting,
html body .elw-led.connecting,
html body .oled-dot.warn,
html body .z3-dash-dot.warn{
  background-color:var(--tac-led-tx) !important;
  box-shadow:0 0 0 1.5px rgba(255,239,196,.28), 0 0 0 3px rgba(0,0,0,.32), 0 0 11px rgba(255,202,77,.6) !important;
}
html body .status-led.unk,
html body .el-led.unk,
html body .oled-dot.unk,
html body .z3-dash-dot,
html body .z3net-dot{
  background-color:var(--tac-led-unk) !important;
  box-shadow:0 0 0 1.5px rgba(232,221,206,.22), 0 0 0 3px rgba(0,0,0,.32), 0 0 7px rgba(219,206,189,.5) !important;
}
@keyframes z3m-tx-pulse{
  0%,100%{opacity:1}
  50%{opacity:.55}
}
@keyframes z3m-rx-blink{
  0%,55%{opacity:1}
  56%,100%{opacity:.45}
}

/* Статус-чипови (± текст) */
html body .z3ib-ok{color:#fbe7bb !important;border-color:rgba(251,232,187,.32) !important;background:rgba(251,232,187,.1) !important}
html body .z3ib-warn{color:var(--tac-amber) !important;border-color:rgba(255,202,77,.32) !important;background:rgba(255,202,77,.1) !important}
html body .z3ib-off{color:#f99f93 !important;border-color:rgba(246,100,80,.32) !important;background:rgba(246,100,80,.1) !important}

/* Маркери на картата — истите четири состојби, во палетата на темата. */
html body .z3mi-on{--c1:#fbe8bb !important;--c2:#b68b2a !important}
html body .z3mi-con{--c1:#ffca4d !important;--c2:#7a5000 !important}
html body .z3mi-off{--c1:#f66450 !important;--c2:#752015 !important}
html body .z3mi-unk{--c1:#e6ddd1 !important;--c2:#8e734c !important}

/* PTT: плоча на одмор, жолто додека е стегнато. */
html body #localPtt,
html body .oled-btn.ptt{
  background:var(--tac-plate-hi) !important;
  border-color:var(--tac-edge) !important;
  color:var(--tac-engrave) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.26) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #423624 !important;
}
html body #localPtt:not(:disabled):hover,
html body .oled-btn.ptt:not(:disabled):hover{border-color:var(--tac-edge-hi) !important;filter:brightness(1.08) !important}
html body #localPtt[aria-pressed="true"],
html body .oled-btn.ptt[aria-pressed="true"],
html body .oled-btn.ptt.tx{
  background:linear-gradient(180deg,#ffe89a,#ffca4d 55%,#d9a320) !important;
  border-color:#ffedb8 !important;
  color:#1b1304 !important;
  text-shadow:none !important;
  box-shadow:0 0 22px rgba(255,202,77,.5), inset 0 1px 0 rgba(255,255,255,.6) !important;
}

/* EchoLink картичка. */
html body .elw-card,
html body .panel.elw-card{
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(251,231,187,.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 4px),
    radial-gradient(34% 50% at 18% 24%, rgba(74,61,35,.5) 0 44%, transparent 68%),
    radial-gradient(30% 44% at 80% 18%, rgba(73,60,39,.55) 0 44%, transparent 68%),
    linear-gradient(180deg,#866c48,#665337 70%,#58482f) !important;
  border:1px solid var(--tac-edge) !important;
  box-shadow:0 24px 50px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html body .elw-card::after{border-color:rgba(251,231,187,.2) !important}
html body .elw-card[data-state="idle"]{--elw-c:#f66450}
html body .elw-card[data-state="online"]{--elw-c:#fbe8bb}
html body .elw-card[data-state="connecting"]{--elw-c:#ffca4d}
html body .elw-card[data-state="error"]{--elw-c:#f66450}
html body .elw-card[data-state="tx"]{--elw-c:#ffca4d}
html body .elw-card .elw-head{border-bottom:1px solid rgba(251,231,187,.2) !important}
html body .elw-card .elw-head .panel-title{
  color:var(--tac-engrave) !important;
  font:700 10px var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  letter-spacing:.22em !important;
  text-shadow:0 1px 0 rgba(255,255,255,.26) !important;
}
html body .elw-card .elw-route{
  background:
    radial-gradient(110% 90% at 50% -18%, rgba(251,231,187,.16), transparent 62%),
    linear-gradient(180deg,#493916,#3a2d10 68%,var(--tac-lcd-2)) !important;
  border:1px solid var(--tac-lcd-line) !important;
  color:#fbe8bb !important;
  text-shadow:0 0 12px rgba(251,231,187,.35) !important;
}
html body .elw-card .elw-route b{color:var(--lcd-hi) !important}
html body .elw-card .elw-state{color:#e6ded1 !important}
html body .elw-card .elw-info{
  border:1px solid var(--tac-lcd-line) !important;
  background:linear-gradient(180deg,#493916,#3a2d10) !important;
}
html body .elw-card .elw-ist-name{color:var(--lcd-hi) !important}
html body .elw-card .elw-ist-sysop{color:#fbe7bb !important}
html body .elw-card .elw-ist-rows dt{color:#e6ded1 !important}
html body .elw-card .elw-ist-rows dd{color:#e6ddd1 !important}
html body .elw-card .elw-search input{border-color:var(--tac-lcd-line) !important;color:#fbe8bb !important;background:#493916 !important}
html body .elw-card .elw-nodes button{
  background:linear-gradient(180deg,#967a51,#715c3d) !important;
  border-color:var(--tac-edge) !important;
  color:#e6ddd1 !important;
}
html body .elw-card .elw-nodes button:hover{border-color:var(--tac-green) !important;color:var(--lcd-hi) !important}
html body .elw-card .elw-results li{border-bottom-color:rgba(251,231,187,.14) !important}
html body .elw-card .elw-results .elw-r-call{color:#fbe8bb !important}
html body .elw-card .elw-results .elw-r-meta{color:#e6ded1 !important}

/* SDR плеер */
html body .z3sdr select,
html body .z3sdr input{
  background:linear-gradient(180deg,#483a1b,#3a2d10) !important;
  border-color:var(--tac-lcd-line) !important;
  color:#fbe8bb !important;
}
html body .z3sdr select:focus,
html body .z3sdr input:focus{border-color:var(--tac-green) !important;box-shadow:0 0 0 2px rgba(251,231,187,.24) !important}

/* ======================= 05. THE READOUTS — читања ====================== */

/* Табели: гравиран заглавје-ред, темни редови. */
html body .table th,
html body table.table th,
html body .panel table th{
  background:linear-gradient(180deg,#b39771,#8f744d) !important;
  color:var(--tac-engrave) !important;
  text-transform:uppercase !important;
  letter-spacing:.12em !important;
  font:700 10px/1.4 var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.24) !important;
  border-bottom:1px solid var(--tac-deep) !important;
}
html body .table td,
html body table.table td,
html body .panel table td{
  border-bottom:1px solid rgba(251,231,187,.1) !important;
  color:#e6ddd1 !important;
  background-color:transparent !important;
}
html body .table tbody tr:nth-child(odd) td,
html body table.table tbody tr:nth-child(even) td{background-color:rgba(0,0,0,.2) !important}
html body .table tbody tr:hover td{background-color:rgba(251,231,187,.08) !important;color:var(--tac-ink) !important}

/* Логови: терминалски ред, моно, фосфорно. */
html body .log-item,
html body .qso-row,
html body .live-log li{color:#fbe8bb !important;font-family:var(--mono,"Share Tech Mono",ui-monospace,monospace) !important}
html body .log-item time,
html body .qso-row time{color:#e6ded1 !important}

/* Плочки со бројки (tiles): LCD со голем број. */
html body .z3-tiles{background:#372c1c !important;border-color:var(--tac-edge) !important;gap:1px !important}
html body .z3-tile{
  background:linear-gradient(180deg,#866c48,#665337) !important;
  border-top:1px solid rgba(255,255,255,.1) !important;
}
html body .z3-tile-v strong{color:var(--tac-green-hi) !important;text-shadow:0 0 14px rgba(251,231,187,.4) !important}
html body .z3-tile-v span{color:var(--tac-ink-dim) !important}

/* Значки / чипови */
html body .z3-badge,
html body .chip,
html body .badge{
  background:var(--tac-plate-hi) !important;
  border:1px solid var(--tac-edge) !important;
  color:var(--tac-engrave) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.24) !important;
  font-weight:700 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
html body .z3-badge-ok,
html body .chip.is-ok,
html body .badge-ok{background:linear-gradient(180deg,#fbe7bb,#fbe8bb) !important;border-color:#fbe7bb !important;color:#493916 !important}
html body .z3-badge-warn,
html body .chip.is-warn,
html body .badge-warn{background:linear-gradient(180deg,#ffe8a3,#ffca4d) !important;border-color:#ffedb8 !important;color:#1b1304 !important}
html body .z3-badge-off{background:linear-gradient(180deg,#bc4434,#852f23) !important;border-color:#d96555 !important;color:#fee6e3 !important}
html body .z3-badge-info{background:linear-gradient(180deg,#ece2cb,#d2c19c) !important;border-color:#ebe1cc !important;color:#493916 !important}

/* Табови: плочки, активното е фосфорно. */
html body .tab{background:var(--tac-plate-hi) !important;border:1px solid var(--tac-edge) !important;color:#e6ddd1 !important}
html body .tab.active{
  background:linear-gradient(180deg,#fbe7bb,#fbe7bb) !important;
  border-color:#fbe7bb !important;
  color:#493916 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.34) !important;
}

/* Футер: долна шина. */
html body .site-foot{
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px),
    radial-gradient(30% 60% at 20% 40%, rgba(74,61,35,.4) 0 44%, transparent 68%),
    radial-gradient(30% 60% at 84% 70%, rgba(73,60,39,.45) 0 44%, transparent 68%),
    linear-gradient(180deg,#8d724c,#5d4c32) !important;
  border-top:2px solid var(--tac-deep) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14) !important;
  color:var(--tac-ink-dim) !important;
}
html body .foot-col-title{
  display:inline-block !important;
  padding:.18rem .55rem !important;
  border:1px solid var(--tac-edge) !important;
  border-radius:4px !important;
  background:linear-gradient(180deg,#b39771,#8f744d) !important;
  color:var(--tac-engrave) !important;
  font:700 10px/1.4 var(--mono,"Share Tech Mono",ui-monospace,monospace) !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
  text-shadow:0 1px 0 rgba(255,255,255,.24) !important;
}
html body .foot-links a{color:#e6ddd1 !important}
html body .foot-links a:hover{color:var(--tac-green-hi) !important}

/* Скролбар */
html{scrollbar-width:thin}
html body *::-webkit-scrollbar{width:11px !important;height:11px !important}
html body *::-webkit-scrollbar-track{background:#493c27 !important}
html body *::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#b39771,#866c48) !important;
  border:1px solid #c1aa8b !important;
  border-radius:5px !important;
}

/* ======================= 06. RESPONSIVE — телефон ======================= */
@media (max-width:760px){
  html body .panel::before,
  html body .z3-card::before,
  html body .card::before{background:none !important;opacity:0 !important}
  html body .panel-title,
  html body .z3-h,
  html body .z3-h h2,
  html body .page-head h1,
  html body .z3-pagehead h1{font-size:10px !important;letter-spacing:.12em !important;padding:.3rem .6rem !important}
  html body .z3-nav-btn{letter-spacing:.08em !important}
  html body .btn{letter-spacing:.06em !important}
}
@media (prefers-reduced-motion:reduce){
  html body .elw-card,
  html body .elw-card *,
  html body .panel,
  html body .panel *{animation:none !important;transition:none !important}
  html body .status-led.rx,
  html body .status-led.tx,
  html body .oled-dot.rx,
  html body .oled-dot.tx{animation:none !important}
}

/* ---------- DESERT · корекции врз генерираната палета ---------- */
:root{
  /* LED: правилата на платформата, не генерираните нијанси */
  --tac-led-on:#6bd94a;
  --tac-led-off:#d2452e;
  --tac-led-tx:#ffb454;
  --tac-led-rx:#d2452e;
  --tac-led-unk:#8d8a76;
  /* екрани: топол амбер CRT */
  --tac-lcd:#150f04;
  --tac-lcd-2:#0f0a03;
  --tac-lcd-line:#4a3617;
  --lcd-bg:#1b1305; --lcd-bg2:#150e04; --lcd-brd:#3a2a10;
  --lcd-fg:#ffcf8a; --lcd-fgd:#8a6a33; --lcd-fgm:#e0b063;
  --lcd-hi:#fff0d2; --lcd-dim:#3a2c14;
  /* рабови/плочи: песок */
  --tac-od-1:#c3b08c;
  --tac-od-2:#ab9771;
  --tac-od-3:#8f7c58;
  --tac-edge:#7a6a4d;
  --tac-edge-hi:#d8c9a8;
  /* плочата: светол песок + камуфлажни дамки */
  --tac-plate:
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 4px),
    radial-gradient(38% 48% at 14% 20%, rgba(122,96,62,.45) 0 45%, transparent 47%),
    radial-gradient(32% 42% at 76% 8%, rgba(60,66,42,.42) 0 45%, transparent 47%),
    radial-gradient(28% 34% at 90% 72%, rgba(170,150,108,.5) 0 44%, transparent 46%),
    radial-gradient(36% 32% at 28% 90%, rgba(96,76,50,.4) 0 45%, transparent 47%),
    linear-gradient(180deg, #cbb995, #b7a37e 62%, #a08b67);
  --tac-plate-hi:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    radial-gradient(34% 46% at 20% 16%, rgba(128,104,68,.4) 0 45%, transparent 47%),
    radial-gradient(30% 40% at 80% 22%, rgba(74,80,52,.38) 0 44%, transparent 46%),
    radial-gradient(34% 36% at 60% 86%, rgba(150,132,96,.42) 0 45%, transparent 47%),
    linear-gradient(180deg, #d8c6a2, #c2ae88 58%, #a9946f);
}
body::before{      /* CRT линиите: малку пожолтени */
  background:repeating-linear-gradient(0deg,rgba(70,35,0,.12) 0 1px,transparent 1px 3px) !important;
}
html body .z3-frame{   /* жолто-црни hazard ленти по рабовите */
  border-left:6px solid transparent !important;
  border-right:6px solid transparent !important;
  border-image:repeating-linear-gradient(135deg,#e8c23a 0 10px,#241d10 10px 20px) 6 !important;
}
/* наслови врз темните екрани: амбер/крем */
html body h1, html body h2, html body h3,
html body .z3-h, html body .z3-card-head h2, html body .panel-title,
html body .card-title, html body .z3-pagehead h1{
  color:#ffe9c4 !important; text-shadow:0 0 10px rgba(255,180,84,.25) !important;
}
html body .z3-kicker{color:#e2b46a !important;text-shadow:none !important}
/* песочните плочи носат ТЕМНО гравирање; темните ленти остануваат светли */
html body .z3-card, html body .panel, html body .card, html body .stat,
html body .z3-card-head, html body .z3-card-head *,
html body .z3-note, html body .z3-note *,
html body label, html body .z3-pill, html body .z3-row-k,
html body .muted, html body small{color:#2f2517 !important}
html body .z3-note{background:rgba(60,44,22,.14) !important;border-color:#7a6a4d !important}
html body .z3-row, html body .z3-row *{color:#ffe9c4 !important}
html body .z3-row-v, html body .input{color:#ffe9c4 !important}
/* горната лента: песочна шасија */
html body .topbar{
  background-image:
    radial-gradient(38% 60% at 12% 21%, rgba(122,96,62,.5) 0 58%, transparent 60%),
    radial-gradient(30% 52% at 82% 70%, rgba(79,91,52,.45) 0 58%, transparent 60%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,#c9b795,#b6a27e 46%,#9d8966) !important;
  border-bottom-color:#7a6a4d !important;
}
html body .topbar-nav a{color:#241d10 !important}
html body .topbar-nav a.active,html body .topbar-nav a:hover{
  color:#120d06 !important;background:rgba(255,255,255,.28) !important}
/* екраните светат амбер */
html body .radio-screen,
html body .local-screen{
  box-shadow:inset 0 0 40px rgba(255,180,84,.18), 0 0 18px rgba(255,180,84,.22) !important;
}
