:root{
  color-scheme:light;
  --accent:#078ed5;
  --accent-strong:#0477b5;
  --page:#f4f7fb;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --surface-3:#eef3f7;
  --text:#111820;
  --muted:#64717f;
  --border:#d9e1e8;
  --border-strong:#bfccd7;
  --shadow:0 14px 34px rgba(22,34,48,.08);
  --shadow-hover:0 18px 46px rgba(22,34,48,.13);
  --overlay:rgba(255,255,255,.88);
  --header-bg:rgba(255,255,255,.82);
}
html[data-theme="gray"]{
  color-scheme:light;
  --page:#e9edf1;
  --surface:#f5f6f7;
  --surface-2:#eceff2;
  --surface-3:#e1e6ea;
  --text:#151a20;
  --muted:#5f6973;
  --border:#cbd2d8;
  --border-strong:#aeb9c2;
  --shadow:0 14px 34px rgba(30,40,50,.11);
  --shadow-hover:0 18px 46px rgba(30,40,50,.16);
  --overlay:rgba(245,246,247,.9);
  --header-bg:rgba(245,246,247,.84);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --page:#ffffff;
  --surface:#444447;
  --surface-2:#4d4d50;
  --surface-3:#57575a;
  --text:#f7f7f8;
  --muted:#d0d0d3;
  --border:#66666a;
  --border-strong:#7a7a7e;
  --shadow:0 14px 34px rgba(0,0,0,.18);
  --shadow-hover:0 18px 48px rgba(0,0,0,.26);
  --overlay:rgba(68,68,71,.90);
  --header-bg:rgba(68,68,71,.97);
}
*{box-sizing:border-box}
html{background:var(--page)}
body{margin:0;background:var(--page);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;transition:background .2s ease,color .2s ease}
button,select,input{font:inherit}
button,select{color:inherit}
button{touch-action:manipulation}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.shell{width:min(1780px,calc(100% - 28px));margin:14px auto 40px}
.app-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px 16px;margin-bottom:12px;border:1px solid var(--border);border-radius:18px;background:var(--header-bg);backdrop-filter:blur(14px);box-shadow:var(--shadow)}
.brand-block{min-width:0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--accent);margin-bottom:3px}.brand-block h1{margin:0;font-size:clamp(20px,2vw,28px);line-height:1.05}.brand-block p{margin:5px 0 0;color:var(--muted);font-size:13px}
.header-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex-wrap:wrap}.model-tabs,.theme-switcher,.runbox{display:flex;align-items:center;border:1px solid var(--border);border-radius:13px;background:var(--surface);min-height:48px}.model-tabs{padding:4px}.model-tab{height:38px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:750;cursor:pointer;transition:.18s ease}.model-tab:hover{background:var(--surface-2);color:var(--text)}.model-tab.active{background:var(--accent);color:#fff;box-shadow:0 6px 16px rgba(7,142,213,.24)}
.theme-switcher{padding:4px;gap:2px}.theme-switcher button{width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;font-size:18px}.theme-switcher button:hover{background:var(--surface-2);color:var(--text)}.theme-switcher button.active{background:var(--surface-3);color:var(--accent)}
.runbox{display:grid;align-content:center;min-width:182px;padding:7px 13px}.runbox span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.runbox strong{font-size:14px;margin-top:2px;white-space:nowrap}
.status-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;padding:9px 12px}.status-strip>div{display:flex;align-items:center;gap:8px;min-width:0}.status-strip strong{font-size:16px}.status-strip span:not(.status-dot){font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-dot{width:9px;height:9px;border-radius:50%;background:#21b573;box-shadow:0 0 0 4px rgba(33,181,115,.13)}.ghost-button{height:36px;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0 13px;cursor:pointer}.ghost-button:hover{border-color:var(--border-strong);background:var(--surface-2)}
.maps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.map-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.map-card:hover{transform:translateY(-1px);border-color:var(--border-strong);box-shadow:var(--shadow-hover)}.card-head{min-height:52px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:7px 9px 7px 12px;border-bottom:1px solid var(--border);background:var(--surface)}
.badge{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#fff;font-size:12px;font-weight:800}.badge-1{background:#e74747}.badge-2{background:#188fd8}.badge-3{background:#14a16f}.badge-4{background:#7b56c2}.parameter-picker{min-width:0}.parameter-picker select{display:block;width:100%;height:36px;border:0;border-radius:9px;background:var(--surface-2);padding:0 32px 0 11px;font-weight:750;outline:none;cursor:pointer}.parameter-picker select:focus{box-shadow:0 0 0 3px rgba(7,142,213,.18)}.card-valid{font-size:11px;color:var(--muted);white-space:nowrap}.expand-map{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:var(--surface);cursor:zoom-in;font-size:16px}.expand-map:hover{background:var(--surface-2);border-color:var(--border-strong)}.map-title{padding:8px 12px 7px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--border);background:var(--surface-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-wrap{position:relative;aspect-ratio:1700/930;background:#fff;overflow:hidden}.image-wrap img{display:block;width:100%;height:100%;object-fit:contain}.loading,.missing{position:absolute;inset:0;display:grid;place-items:center;background:var(--overlay);font-weight:750;color:var(--muted);z-index:4}.loading.hidden{display:none}.missing[hidden]{display:none}.map-card.model-loading img{opacity:.36}
.player-card{margin-top:14px;padding:14px 16px 16px;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}.player-main{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px}.transport-controls{display:flex;align-items:center;gap:7px}.icon-button,.play-button{height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface);cursor:pointer}.icon-button{width:42px;font-size:27px;line-height:1}.play-button{min-width:130px;padding:0 17px;background:var(--accent);border-color:var(--accent);color:#fff;font-weight:800}.play-button:hover{background:var(--accent-strong)}.icon-button:hover{background:var(--surface-2);border-color:var(--border-strong)}.speed-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.speed-control select{height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);padding:0 31px 0 10px;font-weight:750}.active-time{justify-self:end;display:grid;text-align:right}.active-time strong{font-size:18px}.active-time span{color:var(--muted);font-size:12px;margin-top:2px}.slider-wrap{margin-top:13px}#timeSlider{display:block;width:100%;margin:0;accent-color:var(--accent)}.timeline-labels{display:flex;justify-content:space-between;margin-top:4px;color:var(--muted);font-size:11px}.hours{display:flex;gap:6px;margin-top:12px;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:thin}.hours button{flex:0 0 auto;min-width:42px;height:34px;border:1px solid transparent;border-radius:9px;background:var(--surface-3);color:var(--muted);cursor:pointer}.hours button:hover{border-color:var(--border-strong);color:var(--text)}.hours button.active{background:var(--accent);color:#fff;font-weight:800;box-shadow:0 5px 14px rgba(7,142,213,.22)}
.error{margin-top:12px;padding:14px;border:1px solid #e6a9af;background:#fff1f2;color:#a51d2d;border-radius:11px}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:22px}.modal-backdrop{position:absolute;inset:0;background:rgba(4,8,13,.78);backdrop-filter:blur(5px)}.modal-panel{position:relative;width:min(1580px,96vw);max-height:94vh;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.45);overflow:hidden}.modal-panel header{min-height:58px;padding:9px 12px 9px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border)}.modal-panel header div{display:grid;gap:3px}.modal-panel header span{color:var(--muted);font-size:12px}.modal-panel header button{width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:28px;cursor:pointer}.modal-image-wrap{max-height:calc(94vh - 59px);overflow:auto;background:#fff}.modal-image-wrap img{display:block;width:100%;height:auto}body.modal-open{overflow:hidden}
@media(max-width:1100px){.app-header{align-items:flex-start}.header-actions{max-width:620px}.runbox{min-width:170px}}
@media(max-width:820px){.shell{width:min(100% - 14px,1780px);margin-top:7px}.app-header{position:relative;display:grid;gap:12px;padding:13px}.header-actions{justify-content:flex-start;width:100%}.model-tabs{flex:1}.model-tab{flex:1;padding:0 10px}.runbox{flex:1;min-width:155px}.maps-grid{grid-template-columns:1fr;gap:10px}.player-main{grid-template-columns:1fr auto}.active-time{grid-column:1/-1;justify-self:start;text-align:left}.status-strip{padding:7px 5px}.card-head{grid-template-columns:auto minmax(0,1fr) auto}.card-valid{display:none}.parameter-picker select{height:38px}.map-title{font-size:11px}.image-wrap{aspect-ratio:1700/930}.player-card{padding:12px}.hours{margin-left:-2px;margin-right:-2px}}
@media(max-width:520px){.brand-block p{display:none}.header-actions{display:grid;grid-template-columns:1fr auto}.model-tabs{grid-column:1/-1}.theme-switcher{justify-self:start}.runbox{min-width:0}.runbox strong{font-size:12px}.status-strip{align-items:flex-start}.status-strip>div{display:grid;grid-template-columns:auto auto;gap:2px 8px}.status-strip span:not(.status-dot){grid-column:2}.ghost-button{font-size:12px;padding:0 9px}.transport-controls{gap:5px}.icon-button{width:40px}.play-button{min-width:112px;padding:0 12px}.speed-control span{display:none}.speed-control select{width:76px}.modal{padding:5px}.modal-panel{width:100%;max-height:98vh}.modal-image-wrap{max-height:calc(98vh - 59px)}}

/* V7 – hitre ploščice parametrov */
.parameter-dock{margin:0 0 12px;padding:11px 12px 12px;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}
.dock-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.dock-heading>div{display:grid;gap:2px}.dock-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);font-weight:850}.dock-heading strong{font-size:13px}.dock-heading strong span{color:var(--accent)}
.more-parameters{height:35px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);padding:0 12px;color:var(--muted);font-size:12px;font-weight:750;cursor:pointer}.more-parameters:hover{color:var(--text);border-color:var(--border-strong)}.more-parameters span{display:inline-block;margin-left:4px;transition:transform .18s ease}.more-parameters[aria-expanded="true"] span{transform:rotate(180deg)}
.parameter-tiles{display:grid;grid-template-columns:repeat(10,minmax(88px,1fr));gap:8px}.parameter-tile{position:relative;min-width:0;height:74px;display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}.parameter-tile:hover{transform:translateY(-1px);border-color:var(--border-strong);background:var(--surface);box-shadow:0 8px 18px rgba(22,34,48,.08)}.parameter-tile.selected{border-color:var(--accent);background:rgba(7,142,213,.09);box-shadow:inset 0 0 0 1px var(--accent),0 7px 18px rgba(7,142,213,.13)}.tile-icon{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface);color:var(--accent);font-size:19px;font-weight:850;box-shadow:inset 0 0 0 1px var(--border)}.parameter-tile.selected .tile-icon{background:var(--accent);color:#fff;box-shadow:none}.tile-copy{min-width:0;display:grid;gap:2px}.tile-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-copy small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.extra-parameter{display:none}.parameter-tiles.expanded .extra-parameter{display:flex}
.pane-parameter{min-width:0;border:0;background:transparent;padding:3px 4px;text-align:left;cursor:pointer;display:grid;gap:1px}.pane-parameter strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pane-parameter span{font-size:10px;color:var(--muted)}
.map-card.active-pane{border-color:var(--accent);box-shadow:0 0 0 2px rgba(7,142,213,.14),var(--shadow-hover)}.map-card.active-pane .card-head{background:linear-gradient(90deg,rgba(7,142,213,.08),var(--surface) 42%)}

@media(max-width:1450px){.parameter-tiles{grid-template-columns:repeat(5,minmax(112px,1fr))}}
@media(max-width:820px){
  .parameter-dock{padding:10px 8px;border-radius:14px;overflow:hidden}.dock-heading{padding:0 3px}.parameter-tiles{display:flex;gap:8px;overflow-x:auto;padding:1px 3px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}.parameter-tile{flex:0 0 132px;height:68px;scroll-snap-align:start}.parameter-tile.extra-parameter{display:none}.parameter-tiles.expanded .parameter-tile.extra-parameter{display:flex}.pane-parameter strong{font-size:13px}.map-card.active-pane{box-shadow:0 0 0 2px rgba(7,142,213,.18),var(--shadow)}
}
@media(max-width:520px){
  .parameter-dock{margin-bottom:8px}.dock-heading strong{font-size:12px}.dock-kicker{font-size:9px}.more-parameters{height:32px;padding:0 9px;font-size:11px}.parameter-tile{flex-basis:118px;height:64px;padding:7px 8px;gap:7px}.tile-icon{flex-basis:30px;width:30px;height:30px;font-size:16px}.tile-copy strong{font-size:11px}.tile-copy small{font-size:8px}.card-head{min-height:49px}.pane-parameter span{display:none}
}


/* V8: compact parameter rail */
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:12px;align-items:start}
.main-column{min-width:0}
.parameter-rail{position:sticky;top:92px;max-height:calc(100vh - 108px);overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 11px 9px;border-bottom:1px solid var(--border)}
.rail-head>div{display:grid;gap:2px}.rail-head strong{font-size:13px}.dock-kicker{font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.rail-close{display:none;width:34px;height:34px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);font-size:22px;cursor:pointer}
.parameter-tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.parameter-tile{min-width:0;height:48px;display:flex;align-items:center;gap:7px;padding:5px 7px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer;transition:.15s ease}
.parameter-tile:hover{border-color:var(--border-strong);background:var(--surface)}
.parameter-tile.selected{border-color:var(--accent);background:rgba(7,142,213,.10);box-shadow:inset 0 0 0 1px var(--accent)}
.tile-icon{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:var(--surface);color:var(--accent);font-size:13px;font-weight:850;box-shadow:inset 0 0 0 1px var(--border)}
.parameter-tile.selected .tile-icon{background:var(--accent);color:#fff;box-shadow:none}
.tile-copy{min-width:0;display:grid;gap:1px}.tile-copy strong{font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-copy small{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-help{margin:0;padding:8px 10px 10px;border-top:1px solid var(--border);font-size:9px;color:var(--muted)}
.parameter-panel-toggle{display:none;height:36px;border:1px solid var(--accent);border-radius:10px;background:var(--accent);color:#fff;padding:0 12px;font-weight:800;cursor:pointer}
.status-actions{display:flex;gap:7px;align-items:center}.parameter-backdrop{display:none}
@media(max-width:1280px){.content-layout{grid-template-columns:minmax(0,1fr) 205px}.parameter-tiles{grid-template-columns:1fr}.parameter-tile{height:43px}.parameter-rail{top:86px}}
@media(max-width:900px){
  .content-layout{display:block}.parameter-panel-toggle{display:inline-flex;align-items:center}
  .parameter-rail{position:fixed;z-index:1200;left:8px;right:8px;bottom:8px;top:auto;max-height:min(72vh,620px);transform:translateY(calc(100% + 18px));opacity:0;visibility:hidden;transition:transform .22s ease,opacity .18s ease,visibility .18s ease;border-radius:18px}
  .parameter-rail.open{transform:translateY(0);opacity:1;visibility:visible}.rail-close{display:block}
  .parameter-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}.parameter-tile{height:50px}.tile-copy strong{font-size:11px}.tile-copy small{font-size:9px}
  .parameter-backdrop{position:fixed;display:block;z-index:1190;inset:0;border:0;background:rgba(4,8,13,.58);backdrop-filter:blur(3px)}.parameter-backdrop[hidden]{display:none}
  body.parameter-panel-open{overflow:hidden}
}
@media(max-width:520px){.parameter-rail{left:5px;right:5px;bottom:5px;max-height:76vh}.status-actions{gap:5px}.parameter-panel-toggle,.ghost-button{padding:0 9px;font-size:11px}.parameter-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.parameter-tile{height:48px;padding:5px 6px}.tile-icon{flex-basis:26px;width:26px;height:26px}.rail-help{display:none}}

/* V9 – DESNI STUDIO MENI S KOMPAKTNIMI PLOŠČICAMI */
.content-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 286px!important;
  gap:14px!important;
  align-items:start!important;
}
.main-column{min-width:0}
.parameter-rail{
  position:sticky!important;
  top:96px!important;
  display:flex!important;
  flex-direction:column!important;
  max-height:calc(100vh - 112px)!important;
  overflow:hidden!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}
.rail-head{padding:13px 14px 11px!important;background:linear-gradient(180deg,var(--surface),var(--surface-2))!important}
.rail-head strong{font-size:15px!important}.dock-kicker{font-size:9px!important}
.pane-switch{padding:10px 11px 11px;border-bottom:1px solid var(--border);background:var(--surface)}
.pane-switch>span{display:block;margin-bottom:7px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.pane-switch-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.pane-choice{height:36px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-weight:900;cursor:pointer;transition:.16s ease}
.pane-choice:hover{transform:translateY(-1px);border-color:var(--border-strong);background:var(--surface)}
.pane-choice.active{color:#fff;border-color:transparent;box-shadow:0 7px 16px rgba(7,142,213,.20)}
.pane-choice-1.active{background:#e74747}.pane-choice-2.active{background:#188fd8}.pane-choice-3.active{background:#14a16f}.pane-choice-4.active{background:#7b56c2}
.pane-switch small{display:block;margin-top:7px;color:var(--muted);font-size:10px}.pane-switch small strong{color:var(--accent)}
.parameter-tiles{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  padding:10px!important;
  overflow-y:auto!important;
  align-content:start!important;
  scrollbar-width:thin;
}
.parameter-tile{
  min-width:0!important;
  height:50px!important;
  padding:5px 7px!important;
  gap:7px!important;
  border-radius:12px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
  transform:none!important;
}
.parameter-tile:hover{background:var(--surface)!important;border-color:var(--border-strong)!important;transform:translateY(-1px)!important}
.parameter-tile.selected{background:var(--surface)!important;border-color:var(--accent)!important;box-shadow:inset 0 0 0 1px var(--accent),0 6px 15px rgba(7,142,213,.12)!important}
.tile-icon{
  --icon-bg:rgba(7,142,213,.10);--icon-fg:#078ed5;
  flex:0 0 31px!important;width:31px!important;height:31px!important;
  border-radius:10px!important;background:var(--icon-bg)!important;color:var(--icon-fg)!important;
  box-shadow:none!important;border:0!important;
}
.tile-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.parameter-tile[data-tone="temp"] .tile-icon{--icon-bg:rgba(244,83,73,.12);--icon-fg:#ef493e}
.parameter-tile[data-tone="moisture"] .tile-icon{--icon-bg:rgba(34,157,225,.12);--icon-fg:#168ed0}
.parameter-tile[data-tone="wind"] .tile-icon{--icon-bg:rgba(26,181,169,.13);--icon-fg:#109f94}
.parameter-tile[data-tone="rain"] .tile-icon{--icon-bg:rgba(58,113,219,.13);--icon-fg:#316ed1}
.parameter-tile[data-tone="cloud"] .tile-icon{--icon-bg:rgba(113,128,145,.13);--icon-fg:#68798a}
.parameter-tile[data-tone="storm"] .tile-icon{--icon-bg:rgba(245,152,33,.15);--icon-fg:#e58a11}
.parameter-tile[data-tone="lightning"] .tile-icon{--icon-bg:rgba(246,180,22,.17);--icon-fg:#e3a100}
.parameter-tile[data-tone="rotation"] .tile-icon{--icon-bg:rgba(139,85,208,.14);--icon-fg:#7b4cc4}
.parameter-tile[data-tone="radar"] .tile-icon{--icon-bg:rgba(218,53,99,.13);--icon-fg:#ce2c58}
.parameter-tile[data-tone="pressure"] .tile-icon{--icon-bg:rgba(54,102,185,.13);--icon-fg:#315da8}
.parameter-tile[data-tone="snow"] .tile-icon{--icon-bg:rgba(103,183,218,.15);--icon-fg:#429cc2}
.parameter-tile.selected .tile-icon{background:var(--icon-bg)!important;color:var(--icon-fg)!important}
.tile-copy strong{font-size:10.5px!important;line-height:1.1!important}.tile-copy small{font-size:8.5px!important}
.rail-help{padding:9px 11px 11px!important;line-height:1.35!important;font-size:9px!important}
.parameter-panel-toggle{display:none!important}
.map-card.active-pane{border-color:var(--accent)!important;box-shadow:0 0 0 2px rgba(7,142,213,.13),var(--shadow)!important}
.map-card.active-pane .card-head{background:linear-gradient(90deg,rgba(7,142,213,.08),var(--surface) 38%)!important}
.pane-parameter{border-radius:9px!important;padding:4px 7px!important}.pane-parameter:hover{background:var(--surface-2)!important}

@media(max-width:1180px) and (min-width:981px){
  .content-layout{grid-template-columns:minmax(0,1fr) 252px!important;gap:10px!important}
  .parameter-tiles{grid-template-columns:1fr!important}.parameter-tile{height:43px!important}
  .tile-icon{flex-basis:28px!important;width:28px!important;height:28px!important}.tile-icon svg{width:17px;height:17px}
}
@media(max-width:980px){
  .content-layout{display:block!important}
  .parameter-panel-toggle{display:inline-flex!important;align-items:center!important}
  .parameter-rail{
    position:fixed!important;z-index:1200!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;
    max-height:min(78vh,690px)!important;transform:translateY(calc(100% + 22px))!important;opacity:0!important;visibility:hidden!important;
    transition:transform .22s ease,opacity .18s ease,visibility .18s ease!important;
  }
  .parameter-rail.open{transform:translateY(0)!important;opacity:1!important;visibility:visible!important}
  .rail-close{display:block!important}
  .parameter-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:9px!important;gap:7px!important}
  .parameter-tile{height:50px!important}
  .pane-switch{padding:9px 11px}.pane-switch-buttons{gap:7px}.pane-choice{height:38px}
  .parameter-backdrop{position:fixed!important;display:block!important;z-index:1190!important;inset:0!important;border:0!important;background:rgba(4,8,13,.58)!important;backdrop-filter:blur(3px)!important}
  .parameter-backdrop[hidden]{display:none!important}
  body.parameter-panel-open{overflow:hidden}
}
@media(max-width:520px){
  .parameter-rail{left:5px!important;right:5px!important;bottom:5px!important;max-height:82vh!important}
  .parameter-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important}
  .parameter-tile{height:47px!important;padding:4px 6px!important}.tile-icon{flex-basis:28px!important;width:28px!important;height:28px!important}.tile-icon svg{width:17px;height:17px}
  .tile-copy strong{font-size:10px!important}.tile-copy small{font-size:8px!important}
  .rail-help{display:none!important}
}

/* V10 – parametri razdeljeni v jasne skupine */
.parameter-tiles{
  display:block!important;
  padding:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.parameter-group{
  padding:11px 10px 12px;
  border-bottom:1px solid var(--border);
}
.parameter-group:last-child{border-bottom:0}
.parameter-group-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 1px 8px;
  color:var(--text);
}
.parameter-group-title strong{
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.group-icon{
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  color:var(--accent);
}
.group-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.parameter-group-title[data-tone="temp"] .group-icon{color:#ef493e}
.parameter-group-title[data-tone="wind"] .group-icon{color:#109f94}
.parameter-group-title[data-tone="rain"] .group-icon{color:#316ed1}
.parameter-group-title[data-tone="cloud"] .group-icon{color:#68798a}
.parameter-group-title[data-tone="storm"] .group-icon{color:#e58a11}
.parameter-group-title[data-tone="radar"] .group-icon{color:#8a4dc2}
.parameter-group-title[data-tone="pressure"] .group-icon{color:#315da8}
.parameter-group-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.parameter-group .parameter-tile{
  width:100%!important;
  height:52px!important;
  margin:0!important;
}
.parameter-group .tile-copy strong{
  font-size:10.5px!important;
  white-space:normal!important;
  line-height:1.12!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.parameter-group .tile-copy small{
  font-size:8px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:1180px) and (min-width:981px){
  .parameter-group-grid{grid-template-columns:1fr}
  .parameter-group .parameter-tile{height:46px!important}
}
@media(max-width:980px){
  .parameter-tiles{overflow-y:auto!important}
  .parameter-group{padding:10px 9px 11px}
  .parameter-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .parameter-group .parameter-tile{height:50px!important}
}
@media(max-width:520px){
  .parameter-group{padding:9px 8px 10px}
  .parameter-group-title{margin-bottom:7px}
  .parameter-group-title strong{font-size:10px}
  .parameter-group-grid{gap:6px}
  .parameter-group .parameter-tile{height:48px!important}
  .parameter-group .tile-copy strong{font-size:10px!important}
  .parameter-group .tile-copy small{font-size:7.5px!important}
}


/* V11 – konec predvajanja, zlati hover in navigacija v povečani karti */
.map-card:hover{
  border-color:#FEBE26!important;
  box-shadow:0 0 0 2px rgba(254,190,38,.22),var(--shadow-hover)!important;
}
.map-card:hover .card-head{
  background:linear-gradient(90deg,rgba(254,190,38,.12),var(--surface) 42%)!important;
}
.map-card:hover .expand-map{
  border-color:#FEBE26!important;
  color:#a56b00!important;
  background:rgba(254,190,38,.12)!important;
}
.icon-button:disabled,.modal-nav:disabled{opacity:.28;cursor:not-allowed;pointer-events:none}
.modal-image-wrap{position:relative}
.modal-nav{
  position:absolute;top:50%;z-index:20;width:58px;height:86px;display:grid;place-items:center;
  transform:translateY(-50%);border:1px solid rgba(255,255,255,.55);border-radius:16px;
  background:rgba(15,21,28,.48);color:#fff;font-size:54px;font-weight:300;line-height:1;
  cursor:pointer;opacity:0;backdrop-filter:blur(8px);box-shadow:0 12px 32px rgba(0,0,0,.22);
  transition:opacity .18s ease,transform .18s ease,background .18s ease,border-color .18s ease;
}
.modal-nav-prev{left:18px}.modal-nav-next{right:18px}
.modal-image-wrap:hover .modal-nav,.modal-nav:focus-visible{opacity:1}
.modal-nav:hover{background:#FEBE26;border-color:#FEBE26;color:#17130a}
.modal-nav-prev:hover{transform:translate(-2px,-50%)}
.modal-nav-next:hover{transform:translate(2px,-50%)}
@media(hover:none){.modal-nav{opacity:.72}}
@media(max-width:820px){.modal-nav{width:46px;height:68px;border-radius:13px;font-size:42px}.modal-nav-prev{left:8px}.modal-nav-next{right:8px}}
@media(max-width:520px){.modal-nav{width:40px;height:60px;font-size:36px;opacity:.78}.modal-nav-prev{left:5px}.modal-nav-next{right:5px}}

/* =========================================================
   GRAY TEMA – OPERATIVNI / WORKSTATION VIDEZ
   Karte in njihove barvne palete ostanejo nespremenjene.
   ========================================================= */

html[data-theme="gray"]{
  color-scheme:light;

  --accent:#FEBE26;
  --accent-strong:#e3a915;

  --page:#e7ebf0;
  --surface:#dce2e8;
  --surface-2:#d3dae2;
  --surface-3:#c7d0da;

  --text:#17202a;
  --muted:#596674;

  --border:#b8c2cd;
  --border-strong:#9da9b6;

  --shadow:
    0 10px 26px rgba(31,42,54,.13);

  --shadow-hover:
    0 15px 36px rgba(31,42,54,.19);

  --overlay:rgba(220,226,232,.90);
  --header-bg:rgba(210,217,225,.92);
}


/* Ozadje strani */
html[data-theme="gray"],
html[data-theme="gray"] body{
  background:
    linear-gradient(
      180deg,
      #edf1f5 0%,
      #e3e8ee 55%,
      #dce3ea 100%
    );
}


/* ZGORNJA GLAVA */
html[data-theme="gray"] .app-header{
  background:
    linear-gradient(
      180deg,
      rgba(220,226,233,.96),
      rgba(204,212,221,.96)
    );

  border-color:#aeb9c5;
  box-shadow:
    0 10px 28px rgba(31,42,54,.14);
}


/* Model, tema in zagon */
html[data-theme="gray"] .model-tabs,
html[data-theme="gray"] .theme-switcher,
html[data-theme="gray"] .runbox{
  background:#d5dce4;
  border-color:#abb6c2;
}

html[data-theme="gray"] .model-tab:hover,
html[data-theme="gray"] .theme-switcher button:hover{
  background:#c6ced8;
}

html[data-theme="gray"] .model-tab.active{
  background:#FEBE26;
  color:#17130a;
  box-shadow:
    0 6px 17px rgba(166,116,0,.24);
}

html[data-theme="gray"] .theme-switcher button.active{
  background:#727c88;
  color:#fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22);
}


/* STATUSNA VRSTICA */
html[data-theme="gray"] .status-strip{
  color:#25313d;
}

html[data-theme="gray"] .status-dot{
  background:#20a96b;
}


/* =========================================================
   ŠTIRI OKNA S KARTAMI
   ========================================================= */

html[data-theme="gray"] .map-card{
  background:#dce2e8;
  border-color:#b4bec9;
  box-shadow:
    0 10px 25px rgba(31,42,54,.13);
}

html[data-theme="gray"] .card-head{
  background:
    linear-gradient(
      180deg,
      #e1e6eb,
      #d2d9e1
    );

  border-bottom-color:#b6c0ca;
}

html[data-theme="gray"] .map-title{
  background:#cbd3dc;
  color:#4f5d6b;
  border-bottom-color:#b4bec8;
}

html[data-theme="gray"] .pane-parameter:hover{
  background:rgba(255,255,255,.34)!important;
}


/* Slika mora ostati popolnoma bela in barvno nespremenjena */
html[data-theme="gray"] .image-wrap,
html[data-theme="gray"] .modal-image-wrap{
  background:#fff;
}

html[data-theme="gray"] .image-wrap img,
html[data-theme="gray"] .modal-image-wrap img{
  filter:none!important;
  opacity:1;
}


/* Hover nad oknom – CGP rumena */
html[data-theme="gray"] .map-card:hover{
  transform:translateY(-1px);
  border-color:#FEBE26!important;

  box-shadow:
    0 0 0 2px rgba(254,190,38,.28),
    0 15px 34px rgba(31,42,54,.19)!important;
}

html[data-theme="gray"] .map-card:hover .card-head{
  background:
    linear-gradient(
      90deg,
      rgba(254,190,38,.20),
      #d4dbe3 42%
    )!important;
}


/* Aktivno izbrano okno */
html[data-theme="gray"] .map-card.active-pane{
  border-color:#FEBE26!important;

  box-shadow:
    0 0 0 2px rgba(254,190,38,.30),
    0 12px 29px rgba(31,42,54,.16)!important;
}

html[data-theme="gray"] .map-card.active-pane .card-head{
  background:
    linear-gradient(
      90deg,
      rgba(254,190,38,.24),
      #d5dce4 42%
    )!important;
}


/* Fullscreen gumbi */
html[data-theme="gray"] .expand-map{
  background:#d8dfe6;
  border-color:#aeb9c4;
}

html[data-theme="gray"] .expand-map:hover{
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;
}


/* =========================================================
   DESNI MENI S PARAMETRI
   ========================================================= */

html[data-theme="gray"] .parameter-rail{
  background:#d7dee6!important;
  border-color:#adb8c3!important;

  box-shadow:
    0 12px 30px rgba(31,42,54,.16)!important;
}

html[data-theme="gray"] .rail-head{
  background:
    linear-gradient(
      180deg,
      #dfe5eb,
      #cbd3dc
    )!important;

  border-bottom-color:#acb7c2!important;
}

html[data-theme="gray"] .pane-switch{
  background:#d4dbe3;
  border-bottom-color:#adb8c3;
}

html[data-theme="gray"] .pane-choice{
  background:#c7d0d9;
  border-color:#a7b2bd;
}

html[data-theme="gray"] .pane-choice:hover{
  background:#dde3e9;
  border-color:#8f9ca9;
}

html[data-theme="gray"] .pane-choice.active{
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;

  box-shadow:
    0 6px 15px rgba(154,105,0,.22);
}


/* Naslovi skupin */
html[data-theme="gray"] .parameter-group-title{
  color:#303b46;
  border-top-color:#aeb8c3;
}

html[data-theme="gray"] .parameter-group-title strong{
  color:#26313c;
}


/* Ploščice parametrov */
html[data-theme="gray"] .parameter-tile{
  background:#e0e5ea!important;
  border-color:#b7c1cb!important;
}

html[data-theme="gray"] .parameter-tile:hover{
  background:#edf1f4!important;
  border-color:#9ba7b3!important;

  box-shadow:
    0 6px 14px rgba(31,42,54,.12)!important;
}

html[data-theme="gray"] .parameter-tile.selected{
  background:#f1f3f5!important;
  border-color:#FEBE26!important;

  box-shadow:
    inset 0 0 0 1px #FEBE26,
    0 7px 16px rgba(159,108,0,.18)!important;
}

html[data-theme="gray"] .parameter-tile.selected .tile-copy strong{
  color:#17130a;
}


/* Spodnja pomoč v desnem meniju */
html[data-theme="gray"] .rail-help{
  background:#cbd3dc;
  border-top-color:#adb8c3;
  color:#53606d;
}


/* =========================================================
   SPODNJI PLAYER IN ČASOVNICA
   ========================================================= */

html[data-theme="gray"] .player-card{
  background:
    linear-gradient(
      180deg,
      #dce2e8,
      #cfd7df
    );

  border-color:#adb8c3;

  box-shadow:
    0 11px 27px rgba(31,42,54,.15);
}


/* Prejšnji / naslednji termin */
html[data-theme="gray"] .icon-button{
  background:#dfe4e9;
  border-color:#aeb9c4;
}

html[data-theme="gray"] .icon-button:hover:not(:disabled){
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;
}


/* Predvajaj */
html[data-theme="gray"] .play-button{
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;

  box-shadow:
    0 6px 16px rgba(154,105,0,.22);
}

html[data-theme="gray"] .play-button:hover{
  background:#ffd052;
  border-color:#ffd052;
}


/* Izbira hitrosti */
html[data-theme="gray"] .speed-control select{
  background:#c8d1da;
  border-color:#a7b2bd;
}


/* Glavni range drsnik */
html[data-theme="gray"] #timeSlider{
  accent-color:#FEBE26;
}


/* Chrome / Edge */
html[data-theme="gray"] #timeSlider::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:#a9b4bf;
}

html[data-theme="gray"] #timeSlider::-webkit-slider-thumb{
  width:18px;
  height:18px;
  margin-top:-6px;
  border:2px solid #fff;
  border-radius:50%;
  background:#FEBE26;
  box-shadow:
    0 2px 8px rgba(79,56,0,.28);
}


/* Firefox */
html[data-theme="gray"] #timeSlider::-moz-range-track{
  height:6px;
  border-radius:999px;
  background:#a9b4bf;
}

html[data-theme="gray"] #timeSlider::-moz-range-progress{
  height:6px;
  border-radius:999px;
  background:#FEBE26;
}

html[data-theme="gray"] #timeSlider::-moz-range-thumb{
  width:16px;
  height:16px;
  border:2px solid #fff;
  border-radius:50%;
  background:#FEBE26;
}


/* Posamezni termini */
html[data-theme="gray"] .hours button{
  background:#c4cdd6;
  color:#4e5b68;
  border-color:transparent;
}

html[data-theme="gray"] .hours button:hover{
  background:#e1e6eb;
  border-color:#9ca8b4;
  color:#17202a;
}

html[data-theme="gray"] .hours button.active{
  background:#FEBE26;
  color:#17130a;

  box-shadow:
    0 5px 14px rgba(154,105,0,.24);
}


/* Gumbi za reset */
html[data-theme="gray"] .ghost-button,
html[data-theme="gray"] .parameter-panel-toggle{
  background:#d5dce4;
  border-color:#aab5c0;
  color:#25313d;
}

html[data-theme="gray"] .ghost-button:hover,
html[data-theme="gray"] .parameter-panel-toggle:hover{
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;
}


/* =========================================================
   POVEČANA KARTA
   ========================================================= */

html[data-theme="gray"] .modal-panel{
  background:#d8dfe6;
  border-color:#a7b2bd;
}

html[data-theme="gray"] .modal-panel header{
  background:
    linear-gradient(
      180deg,
      #e0e5ea,
      #cbd3dc
    );

  border-bottom-color:#aeb9c4;
}

html[data-theme="gray"] .modal-panel header button{
  background:#c5ced7;
  border-color:#a4afba;
}

html[data-theme="gray"] .modal-panel header button:hover{
  background:#FEBE26;
  border-color:#FEBE26;
  color:#17130a;
}


/* =========================================================
   MOBILNI MENI
   ========================================================= */

@media(max-width:980px){

  html[data-theme="gray"] .parameter-rail{
    background:#d7dee6!important;
  }

  html[data-theme="gray"] .parameter-backdrop{
    background:rgba(47,57,68,.64)!important;
  }
}

/* =========================================================
   POPRAVEK TEM:
   ozadje strani ostane vedno belo,
   spreminjajo se samo UI bloki.
   ========================================================= */

html,
body{
  background:#fff!important;
}

/* tudi pri gray temi naj ostane zunanje ozadje belo */
html[data-theme="gray"],
html[data-theme="gray"] body{
  background:#fff!important;
}

/* tudi pri dark temi naj ostane zunanje ozadje belo */
html[data-theme="dark"],
html[data-theme="dark"] body{
  background:#fff!important;
}

/* shell naj nima lastnega ozadja */
.shell{
  background:transparent!important;
}

/* vsebinski layout naj ostane transparenten */
.content-layout,
.main-column{
  background:transparent!important;
}

/* =========================================================
   DARK TEMA – MEHKA GRAFITNA #444447
   Zunanje ozadje in meteorološke slike ostanejo bele.
   Brez glossy učinkov.
   ========================================================= */

html[data-theme="dark"],
html[data-theme="dark"] body{
  background:#fff!important;
}

html[data-theme="dark"] .shell,
html[data-theme="dark"] .content-layout,
html[data-theme="dark"] .main-column,
html[data-theme="dark"] .status-strip{
  background:transparent!important;
}

/* Glavni UI bloki */
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .parameter-rail,
html[data-theme="dark"] .player-card,
html[data-theme="dark"] .modal-panel{
  background:#444447!important;
  border-color:#66666a!important;
}

/* Glave in sekundarne površine */
html[data-theme="dark"] .card-head,
html[data-theme="dark"] .map-title,
html[data-theme="dark"] .rail-head,
html[data-theme="dark"] .pane-switch,
html[data-theme="dark"] .rail-help,
html[data-theme="dark"] .modal-panel header{
  background:#444447!important;
  border-color:#66666a!important;
}

/* Kontrole */
html[data-theme="dark"] .model-tabs,
html[data-theme="dark"] .theme-switcher,
html[data-theme="dark"] .runbox,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .parameter-panel-toggle,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .speed-control select,
html[data-theme="dark"] .expand-map,
html[data-theme="dark"] .rail-close,
html[data-theme="dark"] .pane-choice{
  background:#444447!important;
  border-color:#6a6a6e!important;
  color:#f7f7f8!important;
}

html[data-theme="dark"] .model-tab:hover,
html[data-theme="dark"] .theme-switcher button:hover,
html[data-theme="dark"] .ghost-button:hover,
html[data-theme="dark"] .icon-button:hover:not(:disabled),
html[data-theme="dark"] .expand-map:hover,
html[data-theme="dark"] .pane-choice:hover{
  background:#5b5b5f!important;
}

/* Aktivni model ostane moder, aktivno okno/hover pa CGP rumen */
html[data-theme="dark"] .model-tab.active{
  background:#078ed5!important;
  color:#fff!important;
}

html[data-theme="dark"] .theme-switcher button.active{
  background:#626266!important;
  color:#FEBE26!important;
}

html[data-theme="dark"] .map-card:hover,
html[data-theme="dark"] .map-card.active-pane{
  border-color:#FEBE26!important;
  box-shadow:
    0 0 0 2px rgba(254,190,38,.24),
    0 16px 38px rgba(0,0,0,.22)!important;
}

html[data-theme="dark"] .map-card:hover .card-head,
html[data-theme="dark"] .map-card.active-pane .card-head{
  background:linear-gradient(90deg, rgba(254,190,38,.18), #444447 42%)!important;
}

/* Desni meni in ploščice */
html[data-theme="dark"] .parameter-group{
  border-bottom-color:#66666a!important;
}

html[data-theme="dark"] .parameter-group-title,
html[data-theme="dark"] .parameter-group-title strong,
html[data-theme="dark"] .tile-copy strong{
  color:#f7f7f8!important;
}

html[data-theme="dark"] .parameter-tile{
  background:#505053!important;
  border-color:#68686c!important;
}

html[data-theme="dark"] .parameter-tile:hover{
  background:#5a5a5e!important;
  border-color:#7a7a7e!important;
}

html[data-theme="dark"] .parameter-tile.selected{
  background:#58585b!important;
  border-color:#FEBE26!important;
  box-shadow:
    inset 0 0 0 1px #FEBE26,
    0 7px 16px rgba(0,0,0,.18)!important;
}

html[data-theme="dark"] .tile-copy small,
html[data-theme="dark"] .card-valid,
html[data-theme="dark"] .map-title,
html[data-theme="dark"] .rail-help,
html[data-theme="dark"] .pane-switch small,
html[data-theme="dark"] .active-time span,
html[data-theme="dark"] .timeline-labels,
html[data-theme="dark"] .speed-control{
  color:#d0d0d3!important;
}

/* Player */
html[data-theme="dark"] .play-button,
html[data-theme="dark"] .hours button.active{
  background:#078ed5!important;
  border-color:#078ed5!important;
  color:#fff!important;
}

html[data-theme="dark"] .hours button{
  background:#555559!important;
  color:#dedee1!important;
}

html[data-theme="dark"] .hours button:hover{
  background:#626266!important;
  border-color:#FEBE26!important;
  color:#fff!important;
}

/* Slike kart in povečava ostanejo povsem bele */
html[data-theme="dark"] .image-wrap,
html[data-theme="dark"] .modal-image-wrap{
  background:#fff!important;
}

html[data-theme="dark"] .image-wrap img,
html[data-theme="dark"] .modal-image-wrap img{
  filter:none!important;
  opacity:1!important;
}

/* Mobilni panel */
@media(max-width:980px){
  html[data-theme="dark"] .parameter-rail{
    background:#444447!important;
  }
}


/* =========================================================
   DARK TEMA – POPOLNOMA ENOTNI BLOKI #444447
   Vsi glavni in notranji UI bloki uporabljajo isti odtenek.
   Zunanje ozadje in meteorološke slike ostanejo bele.
   ========================================================= */

html[data-theme="dark"],
html[data-theme="dark"] body{
  background:#fff!important;
}

html[data-theme="dark"] .shell,
html[data-theme="dark"] .content-layout,
html[data-theme="dark"] .main-column,
html[data-theme="dark"] .status-strip{
  background:transparent!important;
}

/* Vsi glavni in notranji UI bloki */
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .card-head,
html[data-theme="dark"] .map-title,
html[data-theme="dark"] .parameter-rail,
html[data-theme="dark"] .rail-head,
html[data-theme="dark"] .pane-switch,
html[data-theme="dark"] .rail-help,
html[data-theme="dark"] .parameter-group,
html[data-theme="dark"] .parameter-tile,
html[data-theme="dark"] .player-card,
html[data-theme="dark"] .model-tabs,
html[data-theme="dark"] .theme-switcher,
html[data-theme="dark"] .runbox,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .parameter-panel-toggle,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .speed-control select,
html[data-theme="dark"] .expand-map,
html[data-theme="dark"] .rail-close,
html[data-theme="dark"] .pane-choice,
html[data-theme="dark"] .hours button,
html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .modal-panel header,
html[data-theme="dark"] .modal-panel header button{
  background:#444447!important;
}

/* Enotni robovi */
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .parameter-rail,
html[data-theme="dark"] .player-card,
html[data-theme="dark"] .model-tabs,
html[data-theme="dark"] .theme-switcher,
html[data-theme="dark"] .runbox,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .parameter-panel-toggle,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .speed-control select,
html[data-theme="dark"] .expand-map,
html[data-theme="dark"] .rail-close,
html[data-theme="dark"] .pane-choice,
html[data-theme="dark"] .hours button,
html[data-theme="dark"] .parameter-tile,
html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .modal-panel header button{
  border-color:#66666a!important;
}

/* Ločilne črte med segmenti */
html[data-theme="dark"] .card-head,
html[data-theme="dark"] .map-title,
html[data-theme="dark"] .rail-head,
html[data-theme="dark"] .pane-switch,
html[data-theme="dark"] .rail-help,
html[data-theme="dark"] .parameter-group,
html[data-theme="dark"] .modal-panel header{
  border-color:#66666a!important;
}

/* Hoverji ostanejo malce svetlejši */
html[data-theme="dark"] .model-tab:hover,
html[data-theme="dark"] .theme-switcher button:hover,
html[data-theme="dark"] .ghost-button:hover,
html[data-theme="dark"] .icon-button:hover:not(:disabled),
html[data-theme="dark"] .expand-map:hover,
html[data-theme="dark"] .pane-choice:hover,
html[data-theme="dark"] .hours button:hover,
html[data-theme="dark"] .parameter-tile:hover,
html[data-theme="dark"] .modal-panel header button:hover{
  background:#505053!important;
}

/* Aktivni model ostane moder */
html[data-theme="dark"] .model-tab.active{
  background:#078ed5!important;
  border-color:#078ed5!important;
  color:#fff!important;
}

/* Aktivna tema */
html[data-theme="dark"] .theme-switcher button.active{
  background:#505053!important;
  color:#FEBE26!important;
}

/* Aktivna izbira okna ohrani barvo posameznega okna */
html[data-theme="dark"] .pane-choice-1.active{background:#e74747!important}
html[data-theme="dark"] .pane-choice-2.active{background:#188fd8!important}
html[data-theme="dark"] .pane-choice-3.active{background:#14a16f!important}
html[data-theme="dark"] .pane-choice-4.active{background:#7b56c2!important}

/* Aktivni parameter */
html[data-theme="dark"] .parameter-tile.selected{
  background:#444447!important;
  border-color:#FEBE26!important;
  box-shadow:
    inset 0 0 0 1px #FEBE26,
    0 7px 16px rgba(0,0,0,.18)!important;
}

/* Aktivna karta in hover ostaneta zlata */
html[data-theme="dark"] .map-card:hover,
html[data-theme="dark"] .map-card.active-pane{
  border-color:#FEBE26!important;
  box-shadow:
    0 0 0 2px rgba(254,190,38,.24),
    0 16px 38px rgba(0,0,0,.22)!important;
}

html[data-theme="dark"] .map-card:hover .card-head,
html[data-theme="dark"] .map-card.active-pane .card-head{
  background:linear-gradient(
    90deg,
    rgba(254,190,38,.18),
    #444447 42%
  )!important;
}

/* Player: aktivni gumbi ostanejo modri */
html[data-theme="dark"] .play-button,
html[data-theme="dark"] .hours button.active{
  background:#078ed5!important;
  border-color:#078ed5!important;
  color:#fff!important;
}

/* Besedilo */
html[data-theme="dark"] .parameter-group-title,
html[data-theme="dark"] .parameter-group-title strong,
html[data-theme="dark"] .tile-copy strong,
html[data-theme="dark"] .pane-parameter strong,
html[data-theme="dark"] .active-time strong,
html[data-theme="dark"] .brand-block h1{
  color:#f7f7f8!important;
}

html[data-theme="dark"] .tile-copy small,
html[data-theme="dark"] .card-valid,
html[data-theme="dark"] .map-title,
html[data-theme="dark"] .rail-help,
html[data-theme="dark"] .pane-switch small,
html[data-theme="dark"] .active-time span,
html[data-theme="dark"] .timeline-labels,
html[data-theme="dark"] .speed-control,
html[data-theme="dark"] .brand-block p{
  color:#d0d0d3!important;
}

/* Slike kart in povečava ostanejo popolnoma bele */
html[data-theme="dark"] .image-wrap,
html[data-theme="dark"] .modal-image-wrap{
  background:#fff!important;
}

html[data-theme="dark"] .image-wrap img,
html[data-theme="dark"] .modal-image-wrap img{
  filter:none!important;
  opacity:1!important;
}

/* Mobilni panel */
@media(max-width:980px){
  html[data-theme="dark"] .parameter-rail{
    background:#444447!important;
  }
}
