/* ALYA GIS Reference Workspace V59
   The visible application shell is rebuilt here. Existing GIS engines remain intact. */

:root {
  --alya-bg-0:#07111b;
  --alya-bg-1:#0b1622;
  --alya-bg-2:#101d2a;
  --alya-bg-3:#162534;
  --alya-bg-4:#1b2c3d;
  --alya-line:#26394b;
  --alya-line-soft:rgba(137,169,198,.16);
  --alya-text:#edf5fc;
  --alya-text-2:#a9bbca;
  --alya-text-3:#71869a;
  --alya-blue:#2f83f7;
  --alya-blue-2:#1769d2;
  --alya-cyan:#38bdf8;
  --alya-green:#3bd27f;
  --alya-orange:#f59e0b;
  --alya-red:#ef5b66;
  --alya-purple:#a56cf5;
  --alya-radius:10px;
  --alya-shadow:0 18px 44px rgba(0,0,0,.34);
  --alya-left-width:304px;
  --alya-right-width:336px;
  --alya-rail-width:70px;
  --alya-top-height:58px;
  --alya-status-height:30px;
  --alya-font:Inter,"Segoe UI",Arial,sans-serif;
}

html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--alya-bg-0);font-family:var(--alya-font);color:var(--alya-text);}
body.alya-reference-workspace{font-size:13px;letter-spacing:.005em;}
body.alya-reference-workspace *{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#385169 transparent;}
body.alya-reference-workspace *::-webkit-scrollbar{width:7px;height:7px;}
body.alya-reference-workspace *::-webkit-scrollbar-thumb{background:#385169;border-radius:10px;}
body.alya-reference-workspace *::-webkit-scrollbar-track{background:transparent;}

body.alya-reference-workspace>.header,
body.alya-reference-workspace>.main,
body.alya-reference-workspace>#statusbar{display:none!important;}

#alyaReferenceWorkspace{position:fixed;inset:0;z-index:20;display:grid;grid-template-rows:var(--alya-top-height) minmax(0,1fr) var(--alya-status-height);background:radial-gradient(circle at 55% -20%,rgba(37,96,151,.16),transparent 42%),var(--alya-bg-0);overflow:hidden;}

/* Top application bar */
.alya-ref-topbar{display:grid;grid-template-columns:calc(var(--alya-rail-width) + var(--alya-left-width)) minmax(420px,1fr) auto;align-items:center;gap:18px;padding:0 18px;border-bottom:1px solid var(--alya-line);background:linear-gradient(180deg,#0b1723 0%,#08131e 100%);box-shadow:0 7px 22px rgba(0,0,0,.22);z-index:80;}
.alya-ref-brand{display:flex;align-items:center;gap:12px;min-width:0;}
.alya-ref-brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#2f83f7,#1556b0);box-shadow:0 8px 22px rgba(47,131,247,.28);color:#fff;}
.alya-ref-brand-mark svg{width:20px;height:20px;}
.alya-ref-brand-name{font-size:21px;font-weight:800;letter-spacing:.2px;white-space:nowrap;color:#f5f9fd;}
.alya-ref-brand-name span{color:var(--alya-blue);}
.alya-ref-version{font-size:9px;font-weight:800;padding:3px 5px;border-radius:4px;color:#b9d8ff;background:#164c8d;border:1px solid #2568b5;}
.alya-ref-topnav{display:flex;align-items:stretch;justify-content:center;height:100%;min-width:0;overflow:hidden;}
.alya-ref-nav-button{position:relative;display:flex;align-items:center;gap:8px;height:100%;padding:0 15px;border:0;background:transparent;color:#c1cfdb;font:600 13px var(--alya-font);cursor:pointer;white-space:nowrap;transition:color .16s ease,background .16s ease;}
.alya-ref-nav-button svg{width:16px;height:16px;color:#7890a5;transition:color .16s ease,filter .16s ease;}
.alya-ref-nav-button[data-ref-module="project"] svg{color:#60a5fa;}
.alya-ref-nav-button[data-ref-module="data"] svg{color:#39c6c9;}
.alya-ref-nav-button[data-ref-module="analysis"] svg{color:#a78bfa;}
.alya-ref-nav-button[data-ref-module="drawing"] svg{color:#4f9cff;}
.alya-ref-nav-button[data-ref-module="three"] svg{color:#4dd49a;}
.alya-ref-nav-button[data-ref-module="export"] svg{color:#f4b74a;}
.alya-ref-nav-button[data-ref-module="tools"] svg{color:#f08b51;}
.alya-ref-nav-button:hover{color:#fff;background:rgba(255,255,255,.035);}
.alya-ref-nav-button.is-active{color:#fff;}
.alya-ref-nav-button.is-active svg{filter:drop-shadow(0 0 7px currentColor);}
.alya-ref-nav-button.is-active:after{content:"";position:absolute;left:13px;right:13px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--alya-blue);box-shadow:0 -3px 12px rgba(47,131,247,.4);}
.alya-ref-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;}
.alya-ref-search-button{height:34px;min-width:142px;max-width:188px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--alya-line);border-radius:8px;background:#101c28;color:#8296a8;cursor:pointer;}
.alya-ref-search-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.alya-ref-search-button kbd{margin-left:auto;font:600 9px var(--alya-font);padding:2px 4px;border:1px solid #3a4b5c;border-radius:4px;color:#8da0b2;background:#0a141e;}
.alya-ref-icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#aabaca;cursor:pointer;transition:.16s;}
.alya-ref-icon-button:hover{color:#fff;border-color:var(--alya-line);background:#132130;}
.alya-ref-icon-button svg{width:17px;height:17px;}
.alya-ref-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#3c8eff,#1764ce);color:#fff;font-weight:800;font-size:11px;box-shadow:0 5px 16px rgba(47,131,247,.24);}

/* Workspace body */
.alya-ref-body{display:grid;grid-template-columns:var(--alya-rail-width) var(--alya-left-width) minmax(300px,1fr) var(--alya-right-width);min-height:0;overflow:hidden;transition:grid-template-columns .18s ease;}
body.alya-ref-left-collapsed .alya-ref-body{grid-template-columns:var(--alya-rail-width) 0 minmax(300px,1fr) var(--alya-right-width);}
body.alya-ref-right-collapsed .alya-ref-body{grid-template-columns:var(--alya-rail-width) var(--alya-left-width) minmax(300px,1fr) 0;}
body.alya-ref-left-collapsed.alya-ref-right-collapsed .alya-ref-body{grid-template-columns:var(--alya-rail-width) 0 minmax(300px,1fr) 0;}

/* Module rail */
.alya-ref-module-rail{position:relative;z-index:65;display:flex!important;min-width:0;flex-direction:column;gap:5px;padding:9px 7px;border-right:1px solid var(--alya-line);background:linear-gradient(180deg,#0b1824 0%,#091521 100%);overflow:hidden;}
.alya-ref-rail-button{position:relative;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:9px;background:transparent;color:#92a5b6;font:600 10px var(--alya-font);cursor:pointer;transition:.15s;}
.alya-ref-rail-button svg{width:21px;height:21px;}
.alya-ref-rail-button[data-ref-module="project"] svg{color:#60a5fa;}
.alya-ref-rail-button[data-ref-module="data"] svg{color:#39c6c9;}
.alya-ref-rail-button[data-ref-module="analysis"] svg{color:#a78bfa;}
.alya-ref-rail-button[data-ref-module="drawing"] svg{color:#4f9cff;}
.alya-ref-rail-button[data-ref-module="three"] svg{color:#4dd49a;}
.alya-ref-rail-button[data-ref-module="export"] svg{color:#f4b74a;}
.alya-ref-rail-button[data-ref-module="tools"] svg{color:#f08b51;}
.alya-ref-rail-button:hover{color:#fff;background:#132434;border-color:#21384c;}
.alya-ref-rail-button.is-active{color:#fff;background:linear-gradient(145deg,rgba(47,131,247,.2),rgba(24,92,177,.1));border-color:#2b6fb8;box-shadow:inset 3px 0 0 var(--alya-blue);}
.alya-ref-rail-button.is-active svg{color:var(--alya-blue);filter:drop-shadow(0 0 7px rgba(47,131,247,.35));}
.alya-ref-rail-spacer{flex:1;min-height:8px;}

/* Left layer panel */
.alya-ref-left-slot{position:relative;min-width:0;border-right:1px solid var(--alya-line);background:#0d1925;overflow:hidden;transition:opacity .14s ease;}
body.alya-ref-left-collapsed .alya-ref-left-slot{opacity:0;pointer-events:none;}
.alya-ref-left-slot>.sidebar{position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--alya-text)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-shadow:none!important;}
.alya-ref-panel-head{height:52px;display:flex;align-items:center;gap:9px;padding:0 13px;border-bottom:1px solid var(--alya-line);background:#0e1b28;flex:0 0 auto;}
.alya-ref-panel-title{min-width:0;display:flex;flex-direction:column;gap:1px;}
.alya-ref-panel-title strong{font-size:13px;color:#f0f6fb;text-transform:uppercase;letter-spacing:.4px;}
.alya-ref-panel-title small{font-size:9px;color:#758ba0;}
.alya-ref-panel-actions{display:flex;align-items:center;gap:4px;margin-left:auto;}
.alya-ref-panel-actions button{width:29px;height:29px;display:grid;place-items:center;border:1px solid transparent;border-radius:7px;background:transparent;color:#9cb0c2;cursor:pointer;}
.alya-ref-panel-actions button:hover{border-color:#2c4154;background:#162739;color:#fff;}
.alya-ref-panel-actions svg{width:15px;height:15px;}
.alya-ref-left-slot .side-tabs{display:none!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;padding:8px 9px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--alya-line)!important;background:#0b1722!important;flex:0 0 auto!important;}
.alya-ref-left-slot .side-tab{min-width:0!important;height:34px!important;padding:0 4px!important;border:1px solid #25394c!important;border-radius:7px!important;background:#111f2c!important;color:#8fa4b6!important;font:700 9px var(--alya-font)!important;text-transform:uppercase!important;letter-spacing:.25px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.alya-ref-left-slot .side-tab.on{background:linear-gradient(145deg,#1f6fd0,#1455a5)!important;border-color:#3d8bf0!important;color:#fff!important;box-shadow:0 5px 14px rgba(32,112,213,.2)!important;}
.alya-ref-left-slot .side-panel{min-height:0!important;flex:1 1 auto!important;overflow:auto!important;padding:0!important;background:transparent!important;color:var(--alya-text)!important;}
.alya-ref-left-slot .alya-layer-manager-title{display:none!important;}
.alya-ref-left-slot .stage-layer-search{display:grid!important;grid-template-columns:16px minmax(0,1fr) 22px!important;align-items:center!important;gap:7px!important;margin:9px 10px 5px!important;padding:0 7px!important;height:34px!important;border:1px solid #263b4f!important;border-radius:7px!important;background:#0a1520!important;color:#71899e!important;}
.alya-ref-left-slot .stage-layer-search input{min-width:0!important;width:100%!important;border:0!important;outline:0!important;background:transparent!important;color:#dce8f2!important;font:500 11px var(--alya-font)!important;}
.alya-ref-left-slot .stage-layer-search input::placeholder{color:#60758a!important;}
.alya-ref-left-slot .stage-layer-search button{border:0!important;background:transparent!important;color:#72879a!important;cursor:pointer!important;}
.alya-ref-left-slot .layer-quickbar{display:flex!important;align-items:center!important;gap:5px!important;margin:5px 10px 9px!important;padding:6px!important;border:1px solid #23384b!important;border-radius:8px!important;background:#111f2c!important;}
.alya-ref-left-slot .lq-btn{width:29px!important;height:29px!important;padding:0!important;border:1px solid #2b4054!important;border-radius:6px!important;background:#142536!important;color:#9eb2c4!important;box-shadow:none!important;cursor:pointer!important;}
.alya-ref-left-slot .lq-btn:hover{border-color:#3b84d7!important;color:#fff!important;background:#19314a!important;}
.alya-ref-left-slot .lq-sep{width:1px!important;height:18px!important;background:#2b3d4e!important;margin:0 1px!important;}
.alya-ref-left-slot .layer-box{min-height:0!important;margin:0!important;padding:0 8px 14px!important;border:0!important;background:transparent!important;color:var(--alya-text)!important;}
.alya-ref-left-slot .layer-group{margin:0 0 5px!important;border:0!important;border-radius:7px!important;background:transparent!important;overflow:visible!important;}
.alya-ref-left-slot .layer-header{min-height:31px!important;display:flex!important;align-items:center!important;gap:7px!important;padding:0 8px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#a8bac8!important;font:700 10px var(--alya-font)!important;text-transform:uppercase!important;letter-spacing:.35px!important;cursor:pointer!important;}
.alya-ref-left-slot .layer-header:hover{background:#111f2c!important;color:#bac9d5!important;}
.alya-ref-left-slot .layer-header:before{content:"⌄";font-size:12px;color:#60778b;}
.alya-ref-left-slot .layer-group.collapsed .layer-header:before{content:"›";}
.alya-ref-left-slot .lg-group-gear{margin-left:auto!important;border:0!important;background:transparent!important;color:#71869a!important;}
.alya-ref-left-slot .layer-list{margin:0!important;padding:0!important;list-style:none!important;}
.alya-ref-left-slot .layer-item{position:relative!important;min-height:38px!important;margin:2px 0!important;padding:4px 6px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#c5d4df!important;box-shadow:none!important;transition:.12s!important;}
.alya-ref-left-slot .layer-item:hover{background:#132434!important;border-color:#223b50!important;}
.alya-ref-left-slot .layer-item.active{background:linear-gradient(90deg,rgba(47,131,247,.24),rgba(47,131,247,.08))!important;border-color:#2e75c2!important;box-shadow:inset 3px 0 0 var(--alya-blue)!important;}
.alya-ref-left-slot .layer-item .li-n{color:#e8f1f8!important;font:700 11px var(--alya-font)!important;}
.alya-ref-left-slot .layer-item .li-meta{color:#71889b!important;font:500 9px var(--alya-font)!important;}
.alya-ref-left-slot .layer-item button{color:#8198aa!important;}
.alya-ref-left-slot .layer-item.active button{color:#bed9f7!important;}
.alya-ref-left-slot .raster-scale-group{border:1px solid #21364a!important;background:#0b1722!important;}
.alya-ref-left-slot .raster-scale-head{background:#101f2d!important;color:#b9cad7!important;border-color:#24384a!important;}
.alya-ref-resize-handle{position:absolute;top:0;right:-3px;bottom:0;width:6px;cursor:col-resize;z-index:70;}
.alya-ref-resize-handle:hover,.alya-ref-resize-handle.is-dragging{background:linear-gradient(90deg,transparent,var(--alya-blue),transparent);}

/* Map workspace */
.alya-ref-map-slot{position:relative;min-width:0;min-height:0;overflow:hidden;background:#dce5e7;isolation:isolate;}
.alya-ref-map-slot>#map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:0!important;background:#eef1ed!important;z-index:1!important;}
.alya-ref-map-slot .leaflet-control-zoom{display:none!important;}
.alya-ref-map-slot .leaflet-control-attribution{background:rgba(7,17,27,.72)!important;color:#9bb0bf!important;border-radius:6px 0 0 0!important;}
.alya-ref-map-slot .leaflet-control-attribution a{color:#79b6ff!important;}
.alya-ref-context-toolbar{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:600;max-width:calc(100% - 96px);display:flex;align-items:stretch;gap:2px;padding:6px;border:1px solid rgba(98,132,162,.42);border-radius:10px;background:linear-gradient(180deg,rgba(15,29,42,.97),rgba(9,21,32,.97));box-shadow:0 14px 34px rgba(0,0,0,.38);backdrop-filter:blur(14px);overflow-x:auto;overflow-y:hidden;}
.alya-ref-tool-button{min-width:53px;height:50px;padding:4px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:7px;background:transparent;color:#c4d1dc;font:600 9px var(--alya-font);cursor:pointer;white-space:nowrap;}
.alya-ref-tool-button svg{width:19px;height:19px;color:#c0cfdb;}
.alya-ref-tool-button[data-ref-tool="select"] svg,.alya-ref-tool-button[data-ref-tool="area-select"] svg{color:#60a5fa;}
.alya-ref-tool-button[data-ref-tool="line"] svg{color:#45c7d5;}
.alya-ref-tool-button[data-ref-tool="polygon"] svg{color:#4dd49a;}
.alya-ref-tool-button[data-ref-tool="circle"] svg{color:#a78bfa;}
.alya-ref-tool-button[data-ref-tool="free"] svg{color:#64b5f6;}
.alya-ref-tool-button[data-ref-tool="text"] svg,.alya-ref-tool-button[data-ref-tool="tag"] svg{color:#f4b74a;}
.alya-ref-tool-button[data-ref-tool="delete"] svg{color:#ff7b86;}
.alya-ref-tool-button[data-ref-tool="edit"] svg{color:#4f9cff;}
.alya-ref-tool-button[data-ref-tool="snap"] svg{color:#39c6c9;}
.alya-ref-tool-button:hover{background:#1a2c3c;border-color:#304b61;color:#fff;}
.alya-ref-tool-button.is-active{background:linear-gradient(145deg,#205ea9,#17497f);border-color:#3b82d1;color:#fff;box-shadow:0 6px 15px rgba(18,80,148,.35);}
.alya-ref-tool-separator{width:1px;margin:5px 3px;background:#2b4053;flex:0 0 auto;}
.alya-ref-map-nav{position:absolute;left:13px;right:auto;top:50%;transform:translateY(-50%);z-index:590;display:flex;flex-direction:column;gap:3px;padding:5px;border:1px solid rgba(80,113,141,.42);border-radius:10px;background:rgba(9,22,33,.95);box-shadow:0 12px 32px rgba(0,0,0,.28);}
.alya-ref-map-nav button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#b7c8d6;font:700 11px var(--alya-font);cursor:pointer;}
.alya-ref-map-nav button:hover{background:#1a3044;color:#fff;}
.alya-ref-map-nav button.is-active{background:#246fca;color:#fff;box-shadow:0 4px 12px rgba(47,131,247,.3);}
.alya-ref-map-nav svg{width:17px;height:17px;}
.alya-ref-measure-dock{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);z-index:590;display:flex;align-items:center;gap:2px;max-width:calc(100% - 70px);padding:5px;border:1px solid rgba(80,113,141,.42);border-radius:10px;background:rgba(9,22,33,.96);box-shadow:0 12px 30px rgba(0,0,0,.3);overflow-x:auto;}
.alya-ref-measure-button{min-width:54px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:2px 6px;border:0;border-radius:7px;background:transparent;color:#aebfcd;font:600 9px var(--alya-font);cursor:pointer;white-space:nowrap;}
.alya-ref-measure-button svg{width:17px;height:17px;}
.alya-ref-measure-button:hover,.alya-ref-measure-button.is-active{background:#173352;color:#fff;}
.alya-ref-map-corner-card{position:absolute;left:13px;bottom:70px;z-index:580;display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid rgba(76,109,137,.4);border-radius:8px;background:rgba(9,22,33,.9);color:#95a9ba;font-size:10px;box-shadow:0 8px 24px rgba(0,0,0,.22);}
.alya-ref-map-corner-card strong{color:#dbe7ef;}
.alya-ref-3d-overlay{position:absolute;inset:0;z-index:680;display:grid;grid-template-rows:46px minmax(0,1fr);background:#07111b;overflow:hidden;}
.alya-ref-3d-overlay[hidden]{display:none!important;}
.alya-ref-3d-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 0 15px;border-bottom:1px solid #294055;background:linear-gradient(180deg,#102131,#0a1723);box-shadow:0 8px 20px rgba(0,0,0,.28);}
.alya-ref-3d-overlay-head strong{display:block;color:#edf5fc;font-size:11px;letter-spacing:.35px;}
.alya-ref-3d-overlay-head small{display:block;margin-top:2px;color:#7890a4;font-size:9px;}
.alya-ref-3d-overlay-head button{height:30px;padding:0 11px;border:1px solid #3478c4;border-radius:7px;background:#165da9;color:#fff;font:700 10px var(--alya-font);cursor:pointer;}
.alya-ref-3d-overlay-head button:hover{background:#2477d3;}
.alya-ref-3d-frame{display:block;width:100%;height:100%;border:0;background:#07111b;}
body.alya-ref-3d-active .alya-ref-map-nav button[title="2D"]{background:transparent;color:#9eb1c1;}
body.alya-ref-3d-active .alya-ref-map-nav button[title="3D"]{background:#236fc6;color:#fff;box-shadow:0 6px 18px rgba(47,131,247,.32);}

/* Eski panel motorunun boş ürettiği başlık analiz ayarlarının üstünde
   gereksiz bir bant bırakmasın. */
#rightSidebar #rsBody > .rs-section > .rs-section-title:empty{display:none!important;}

/* Right smart inspector */
.alya-ref-right-slot{position:relative;min-width:0;border-left:1px solid var(--alya-line);background:#0d1925;overflow:hidden;transition:opacity .14s ease;}
body.alya-ref-right-collapsed .alya-ref-right-slot{opacity:0;pointer-events:none;}
.alya-ref-right-slot>#rightSidebar{position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--alya-text)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-shadow:none!important;}
.alya-ref-right-slot .rs-head{min-height:58px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 13px!important;border:0!important;border-bottom:1px solid var(--alya-line)!important;background:#0e1b28!important;color:#fff!important;flex:0 0 auto!important;}
.alya-ref-right-slot .rs-title{min-width:0!important;font:800 13px var(--alya-font)!important;text-transform:uppercase!important;letter-spacing:.45px!important;color:#f0f6fb!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.alya-ref-right-slot .stage-right-title-wrap{min-width:0!important;flex:1!important;}
.alya-ref-right-slot .stage-right-title-wrap small{display:block!important;margin-top:2px!important;color:#71879a!important;font:500 9px var(--alya-font)!important;text-transform:none!important;letter-spacing:0!important;}
.alya-ref-right-slot .rs-toggle{width:30px!important;height:30px!important;margin-left:auto!important;border:1px solid #2b4155!important;border-radius:7px!important;background:#132435!important;color:#aabcca!important;cursor:pointer!important;}
.alya-ref-inspector-tabs{display:grid;grid-template-columns:1.1fr .8fr 1fr 1.25fr .85fr;gap:2px;padding:7px 7px 6px;border-bottom:1px solid var(--alya-line);background:#0b1722;flex:0 0 auto;}
.alya-ref-inspector-tab{min-width:0;height:32px;padding:0 2px;border:1px solid transparent;border-radius:6px;background:transparent;color:#8297a9;font:700 7.5px var(--alya-font);letter-spacing:-.08px;cursor:pointer;overflow:hidden;text-overflow:clip;white-space:nowrap;}
.alya-ref-inspector-tab:hover{background:#132435;color:#d8e4ed;}
.alya-ref-inspector-tab.is-active{border-color:#2c74c4;background:#153e6c;color:#fff;box-shadow:inset 0 -2px 0 var(--alya-blue);}
.alya-ref-right-slot .rs-body{display:block!important;min-height:0!important;flex:1 1 auto!important;padding:9px 9px 22px!important;overflow-x:hidden!important;overflow-y:auto!important;background:#0d1925!important;color:var(--alya-text)!important;}
.alya-ref-right-slot .rs-section,.alya-ref-right-slot .layer-box,.alya-ref-right-slot .anv3-card{margin:0 0 8px!important;border:1px solid #263b4d!important;border-radius:8px!important;background:#111f2c!important;color:#dce7ef!important;box-shadow:none!important;overflow:hidden!important;}
.alya-ref-right-slot .rs-section-title,.alya-ref-right-slot .anv3-card-title{min-height:34px!important;display:flex!important;align-items:center!important;padding:0 10px!important;border-bottom:1px solid #26394a!important;background:#142433!important;color:#c9d7e2!important;font:800 10px var(--alya-font)!important;text-transform:uppercase!important;letter-spacing:.4px!important;}
.alya-ref-right-slot .rs-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;}
.alya-ref-right-slot button,.alya-ref-right-slot .rs-btn{min-width:0;max-width:100%;border-radius:6px!important;border-color:#30475a!important;background:#162838!important;color:#cbd8e2!important;font-family:var(--alya-font)!important;box-shadow:none!important;}
.alya-ref-right-slot button:hover,.alya-ref-right-slot .rs-btn:hover{border-color:#3c7ec1!important;background:#1b344b!important;color:#fff!important;}
.alya-ref-right-slot button.active,.alya-ref-right-slot button.on,.alya-ref-right-slot .rs-btn.active{border-color:#3c88e5!important;background:linear-gradient(145deg,#246fc8,#17579f)!important;color:#fff!important;}
.alya-ref-right-slot input,.alya-ref-right-slot select,.alya-ref-right-slot textarea{max-width:100%!important;min-width:0!important;border:1px solid #30475a!important;border-radius:6px!important;background:#0b1722!important;color:#dbe7ef!important;font-family:var(--alya-font)!important;outline:0!important;}
.alya-ref-right-slot input:focus,.alya-ref-right-slot select:focus,.alya-ref-right-slot textarea:focus{border-color:var(--alya-blue)!important;box-shadow:0 0 0 2px rgba(47,131,247,.14)!important;}
.alya-ref-right-slot label,.alya-ref-right-slot .rs-label{color:#aabcca!important;}
.alya-ref-right-slot .anv3-main,.alya-ref-right-slot .anv3-scroll,.alya-ref-right-slot .anv3-body{max-width:100%!important;overflow-x:hidden!important;}
.alya-ref-right-slot .anv3-tabs,.alya-ref-right-slot .anv3-source-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
.alya-ref-right-slot .anv3-footer{position:sticky!important;bottom:-22px!important;margin:10px -9px -22px!important;padding:8px!important;border-top:1px solid var(--alya-line)!important;background:rgba(10,23,34,.98)!important;z-index:9!important;}
.alya-ref-right-slot .stage-menu-action,.alya-ref-right-slot .stage-menu-card{max-width:100%!important;}
.alya-ref-right-resize{left:-3px;right:auto;}

/* Status */
.alya-ref-status-slot{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto auto;align-items:center;gap:0;border-top:1px solid var(--alya-line);background:#07121c;color:#8298aa;font-size:10px;overflow:hidden;z-index:70;}
.alya-ref-status-primary{min-width:0;padding:0 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8ba1b4;}
.alya-ref-status-item{height:100%;display:flex;align-items:center;gap:6px;padding:0 12px;border-left:1px solid #1c2d3b;white-space:nowrap;}
.alya-ref-status-item strong{color:#c8d6e1;font-weight:650;}
.alya-ref-status-item.is-online strong{color:var(--alya-green);}
.alya-ref-status-slot>#statusbar{display:contents!important;}
.alya-ref-status-slot>#statusbar .statusbar-left{display:none!important;}
.alya-ref-status-slot>#statusbar .statusbar-right{display:flex!important;align-items:center!important;}

/* Flyout / palette */
.alya-ref-command-hint{position:fixed;top:68px;right:18px;z-index:900;padding:10px 12px;border:1px solid #2b4256;border-radius:8px;background:#0d1d2b;color:#a9bdcc;box-shadow:var(--alya-shadow);font-size:11px;opacity:0;transform:translateY(-5px);pointer-events:none;transition:.16s;}
.alya-ref-command-hint.show{opacity:1;transform:translateY(0);}
.alya-ref-popover{position:fixed;z-index:1200;min-width:230px;max-width:330px;padding:7px;border:1px solid #30485b;border-radius:9px;background:#0c1a27;color:#dce7ef;box-shadow:var(--alya-shadow);display:none;}
.alya-ref-popover.open{display:block;}
.alya-ref-popover-title{padding:7px 8px;color:#8198ab;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;}
.alya-ref-popover button{width:100%;min-height:34px;display:flex;align-items:center;gap:9px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:#bdccd7;font:600 11px var(--alya-font);cursor:pointer;text-align:left;}
.alya-ref-popover button:hover{background:#162a3b;color:#fff;}
.alya-ref-popover svg{width:16px;height:16px;color:#78aee8;}

/* Tools center */
.alya-ref-tools-intro{display:flex;align-items:center;gap:10px;margin:0 0 9px;padding:11px;border:1px solid #2b4660;border-radius:9px;background:linear-gradient(145deg,rgba(47,131,247,.18),rgba(24,75,123,.08));}
.alya-ref-tools-intro>svg{width:26px;height:26px;flex:0 0 auto;color:#64a8f5;}
.alya-ref-tools-intro>div{min-width:0;display:flex;flex-direction:column;gap:3px;}
.alya-ref-tools-intro strong{font-size:11px;color:#eef6fc!important;}
.alya-ref-tools-intro small{font-size:9px;line-height:1.35;color:#8da5b7!important;}
.alya-ref-tools-card{margin:0 0 9px;border:1px solid #263b4d;border-radius:9px;background:#101e2b;overflow:hidden;}
.alya-ref-tools-card h3{margin:0;padding:9px 10px;border-bottom:1px solid #26394a;background:#142433;color:#d5e1ea!important;font-size:9px;text-transform:uppercase;letter-spacing:.45px;}
.alya-ref-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px;}
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar .alya-ref-tools-action{min-height:58px!important;display:flex!important;align-items:flex-start!important;gap:7px!important;padding:8px!important;text-align:left!important;background:#132332!important;border:1px solid #294156!important;border-radius:7px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar .alya-ref-tools-action:hover{background:#183149!important;border-color:#3979bb!important;}
.alya-ref-tools-action>svg{width:18px;height:18px;flex:0 0 auto;color:#6daaf0;}
.alya-ref-tools-action>span{min-width:0;display:flex;flex-direction:column;gap:2px;}
.alya-ref-tools-action strong{font-size:9px;color:#e8f1f8!important;line-height:1.2;}
.alya-ref-tools-action small{font-size:8px;color:#7f96a9!important;line-height:1.25;}

/* Responsive */
@media (max-width:1600px){
  :root{--alya-left-width:276px;--alya-right-width:310px;}
  .alya-ref-topbar{grid-template-columns:calc(var(--alya-rail-width) + var(--alya-left-width)) minmax(360px,1fr) auto;padding:0 12px;gap:8px;}
  .alya-ref-nav-button{padding:0 10px;font-size:12px;}
  .alya-ref-search-button{min-width:120px;}
  .alya-ref-context-toolbar{max-width:calc(100% - 72px);}
  .alya-ref-tool-button{min-width:49px;padding-left:5px;padding-right:5px;}
}
@media (max-width:1320px){
  :root{--alya-left-width:244px;--alya-right-width:286px;--alya-rail-width:64px;}
  .alya-ref-brand-name{font-size:18px;}
  .alya-ref-version{display:none;}
  .alya-ref-topbar{grid-template-columns:calc(var(--alya-rail-width) + var(--alya-left-width)) minmax(330px,1fr) auto;}
  .alya-ref-nav-button{padding:0 8px;font-size:11px;}
  .alya-ref-nav-button svg{display:none;}
  .alya-ref-search-button{width:34px;min-width:34px;padding:0;justify-content:center;}
  .alya-ref-search-button span,.alya-ref-search-button kbd{display:none;}
  .alya-ref-icon-button[data-optional="true"]{display:none;}
  .alya-ref-tool-button{width:43px;min-width:43px;flex:0 0 43px;padding-left:3px;padding-right:3px;font-size:8px;}
  .alya-ref-tool-button span{display:block;width:100%;max-width:43px;overflow:hidden;text-overflow:ellipsis;}
  .alya-ref-tool-button svg{width:18px;height:18px;}
}
@media (max-width:1080px){
  :root{--alya-right-width:270px;}
  body:not(.alya-ref-left-locked){--alya-left-width:0px;}
  .alya-ref-left-slot{position:absolute;left:var(--alya-rail-width);top:var(--alya-top-height);bottom:var(--alya-status-height);width:280px;z-index:750;box-shadow:18px 0 40px rgba(0,0,0,.38);}
  body.alya-ref-left-collapsed .alya-ref-left-slot{transform:translateX(-102%);}
  .alya-ref-body{grid-template-columns:var(--alya-rail-width) 0 minmax(260px,1fr) var(--alya-right-width);}
}
@media (max-width:820px){
  :root{--alya-right-width:0px;}
  .alya-ref-topbar{grid-template-columns:150px 1fr 82px;}
  .alya-ref-topnav{justify-content:flex-start;overflow-x:auto;}
  .alya-ref-right-slot{position:absolute;right:0;top:var(--alya-top-height);bottom:var(--alya-status-height);width:min(340px,88vw);z-index:760;box-shadow:-18px 0 40px rgba(0,0,0,.4);}
  body.alya-ref-right-collapsed .alya-ref-right-slot{transform:translateX(102%);}
  .alya-ref-body{grid-template-columns:var(--alya-rail-width) 0 minmax(220px,1fr) 0;}
  .alya-ref-status-item:nth-last-child(n+3){display:none;}
}

body.alya-ref-resizing,body.alya-ref-resizing *{user-select:none!important;cursor:col-resize!important;}
body.alya-ref-reduce-motion *{transition:none!important;animation:none!important;}

/* Final cascade guard -------------------------------------------------------
   The legacy application contains highly-specific `!important` declarations.
   These rules deliberately sit last and are scoped to the new workspace so
   those historical light panel styles cannot leak into the reference shell. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot>.sidebar.v27-sidebar-left{
  width:100%!important;max-width:none!important;height:100%!important;margin:0!important;padding:0!important;
  background:#0d1925!important;color:var(--alya-text)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .stage-side-head{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .side-tabs{
  background:#0b1722!important;border-color:var(--alya-line)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .side-tab{
  background:#111f2c!important;color:#8fa4b6!important;border-color:#25394c!important;
  font:700 8px var(--alya-font)!important;letter-spacing:0!important;padding:0 2px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .side-tab.on{
  background:linear-gradient(145deg,#1f6fd0,#1455a5)!important;color:#fff!important;border-color:#3d8bf0!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .side-panel,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-box,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-list{
  background:transparent!important;color:var(--alya-text)!important;border-color:transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-group,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item{
  background:transparent!important;color:#c5d4df!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-header{
  background:transparent!important;color:#8fa5b7!important;border-color:transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item .li-n{
  color:#e8f1f8!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item .li-meta{
  color:#71889b!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item button{
  background:transparent!important;color:#91a8ba!important;border-color:transparent!important;box-shadow:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item button:hover{
  background:#1a3044!important;color:#fff!important;border-color:#31516a!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-legacy-icon{
  display:block;width:15px;height:15px;margin:auto;color:currentColor;pointer-events:none;
}
body.alya-reference-workspace #alyaReferenceWorkspace .lg-ico .alya-ref-legacy-icon{
  width:14px;height:14px;
}
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar .rs-ico .alya-ref-legacy-icon,
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar .anv3-acc-icon .alya-ref-legacy-icon{
  width:18px;height:18px;color:#72aef3;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item.active{
  background:linear-gradient(90deg,rgba(47,131,247,.24),rgba(47,131,247,.08))!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot>#rightSidebar.v27-sidebar-right{
  width:100%!important;max-width:none!important;height:100%!important;margin:0!important;padding:0!important;
  background:#0d1925!important;color:var(--alya-text)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-head{
  background:#0e1b28!important;color:#fff!important;border-color:var(--alya-line)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-toggle{
  background:#132435!important;color:#aabcca!important;border-color:#2b4155!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-body,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .side-panel,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .side-panel-body,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .sp-body,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rp-body,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .surfer-props{
  background:#0d1925!important;color:var(--alya-text)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-body :is(div,span,label,p,small,legend,strong,h1,h2,h3,h4,h5){
  color:#aebdca!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-body :is(.rs-section-title,.anv3-card-title,.stage-menu-card-title,h1,h2,h3,h4,strong){
  color:#e4edf4!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-section,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-card,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .stage-menu-card,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar fieldset{
  background:#111f2c!important;color:#dce7ef!important;border-color:#263b4d!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .view-card{
  background:#111f2c!important;color:#dce7ef!important;border-color:#263b4d!important;box-shadow:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .edit-ico{
  background:#172b3d!important;color:#79b4f5!important;border-color:#304b61!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .edit-btn{
  min-height:40px!important;height:auto!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .edit-lbl{
  min-width:0!important;white-space:normal!important;line-height:1.12!important;font-size:9px!important;overflow:visible!important;text-overflow:clip!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-header,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-tabs,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions{
  background:#0d1925!important;color:#dce7ef!important;border-color:#263b4d!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-header{
  background:#111f2c!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-tabs,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions{
  background:#0b1722!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:5px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions.has-update{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions :is(.anv3-clr,.anv3-save){
  width:100%!important;min-width:0!important;padding-inline:4px!important;font-size:8.5px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-awb-ready{
  min-width:0!important;max-width:100%!important;white-space:normal!important;line-height:1.2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-awb-ready>span{
  min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-summary-item,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-guide{
  background:#111f2c!important;color:#aebdca!important;border-color:#2b4053!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-guide{
  background:#0b1722!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar input,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar select,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar textarea{
  background:#0b1722!important;color:#dbe7ef!important;border-color:#30475a!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar button{
  background:#162838!important;color:#cbd8e2!important;border-color:#30475a!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar button:hover{
  background:#1b344b!important;color:#fff!important;border-color:#3c7ec1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar button.active,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar button.on{
  background:linear-gradient(145deg,#246fc8,#17579f)!important;color:#fff!important;border-color:#3c88e5!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar button:disabled,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar input:disabled,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar select:disabled{
  opacity:.46!important;
}

/* Some legacy inspectors use a two-column .rp-row even when the row contains
   one checkbox label.  Let that single control span the inspector width so
   labels stay readable instead of collapsing into the 82 px title column. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rp-row>label:only-child{
  grid-column:1/-1!important;width:100%!important;min-width:0!important;
  display:flex!important;align-items:flex-start!important;gap:8px!important;
  color:#b8c8d4!important;line-height:1.35!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rp-row>label:only-child input[type="checkbox"]{
  flex:0 0 auto!important;margin-top:1px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.rp-h,.rp-lbl){
  color:#dce7ef!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rp-note{
  color:#839aab!important;line-height:1.35!important;
}

/* Layer and group property dialogs keep the existing layer engine, but use the
   same compact inspector language as the new workspace. */
body.alya-reference-workspace .layer-props-dialog,
body.alya-reference-workspace .layer-props-dialog.alya-netcad-props{
  z-index:2000!important;width:min(680px,calc(100vw - 32px))!important;max-height:min(720px,calc(100vh - 36px))!important;
  border:1px solid #35536c!important;border-radius:11px!important;background:#0f1d2a!important;color:#dce8f1!important;
  box-shadow:0 26px 70px rgba(0,0,0,.52)!important;overflow:hidden!important;
}
body.alya-reference-workspace .layer-props-dialog .lpd-header,
body.alya-reference-workspace .layer-props-dialog.alya-netcad-props .lpd-header{
  min-height:42px!important;padding:0 13px!important;border-bottom:1px solid #2d4356!important;background:linear-gradient(180deg,#172b3c,#112130)!important;color:#f0f6fb!important;font-weight:800!important;
}
body.alya-reference-workspace .layer-props-dialog .lpd-body,
body.alya-reference-workspace .layer-props-dialog.alya-netcad-props .lpd-body{
  background:#0f1d2a!important;color:#c8d6e0!important;border-color:#2b4052!important;
}
body.alya-reference-workspace .layer-props-dialog :is(.lpd-label,small,p,span,label,div){color:inherit;}
body.alya-reference-workspace .layer-props-dialog :is(.lpd-input,.lpd-select,input:not([type="checkbox"]):not([type="color"]),select,textarea){
  border:1px solid #365168!important;border-radius:6px!important;background:#091622!important;color:#e5eef5!important;
}
body.alya-reference-workspace .layer-props-dialog .lpd-footer{
  border-top:1px solid #2d4356!important;background:#0b1722!important;
}
body.alya-reference-workspace .layer-props-dialog .lpd-btn{border-color:#38556d!important;background:#162a3b!important;color:#dce8f1!important;}
body.alya-reference-workspace .layer-props-dialog .lpd-btn-primary{border-color:#2f83f7!important;background:#1f6fcd!important;color:#fff!important;}
body.alya-reference-workspace .layer-props-dialog :is(.alya-standard-options,.alya-prop-preview){
  border-color:#2d4356!important;background:#091622!important;color:#b9cad6!important;
}
body.alya-reference-workspace .layer-props-dialog .alya-standard-options legend{color:#dce8f1!important;background:#0f1d2a!important;}
body.alya-reference-workspace .layer-props-dialog .alya-prop-preview :is(polyline,path,circle){stroke:#76b4ff!important;}
body.alya-reference-workspace .layer-props-dialog .alya-prop-preview .sample-area{background:#2f83f7!important;}

/* Unified dark surfaces ----------------------------------------------------
   These dialogs and output cards are created lazily by the existing engines.
   Keeping the overrides here makes every entry point (toolbar, context menu,
   Save As and Analysis History) use one visual language without replacing the
   underlying project/export/analysis behavior. */
body.alya-reference-workspace .alya-project-modal{
  background:rgba(3,9,15,.72)!important;backdrop-filter:blur(5px);
}
body.alya-reference-workspace .alya-project-card{
  width:min(560px,calc(100vw - 30px))!important;max-height:min(760px,calc(100vh - 34px))!important;
  border:1px solid #35536c!important;border-radius:12px!important;background:#0f1d2a!important;
  color:#dce8f1!important;box-shadow:0 28px 85px rgba(0,0,0,.58)!important;
}
body.alya-reference-workspace .alya-project-head{
  min-height:48px!important;padding:0 15px!important;border-color:#2d4356!important;
  background:linear-gradient(180deg,#172b3c,#112130)!important;color:#f0f6fb!important;
}
body.alya-reference-workspace .alya-project-title{color:#f0f6fb!important;font-size:14px!important;}
body.alya-reference-workspace .alya-project-x{
  border-color:#365168!important;background:#132536!important;color:#bcd0df!important;
}
body.alya-reference-workspace .alya-project-body{background:#0f1d2a!important;color:#b9cad6!important;}
body.alya-reference-workspace .alya-project-btn{
  border-color:#365168!important;background:#162a3b!important;color:#dce8f1!important;
}
body.alya-reference-workspace .alya-project-btn:hover{border-color:#3d89df!important;background:#1a3550!important;color:#fff!important;}
body.alya-reference-workspace .alya-project-btn.primary{border-color:#3a8bea!important;background:#1f6fcd!important;color:#fff!important;}
body.alya-reference-workspace .alya-project-btn.danger{border-color:#7d3d49!important;background:#341c25!important;color:#ffb8c1!important;}
body.alya-reference-workspace .alya-project-item{
  border-color:#2d4559!important;background:#122332!important;color:#dce8f1!important;
}
body.alya-reference-workspace .alya-project-item:hover{border-color:#3e87d2!important;background:#183149!important;}
body.alya-reference-workspace .alya-project-date,
body.alya-reference-workspace .alya-project-name-hint{color:#839aab!important;}
body.alya-reference-workspace .alya-project-status{
  border-color:#2b4255!important;background:#0a1722!important;color:#95a9b8!important;
}
body.alya-reference-workspace .alya-project-name-form label,
body.alya-reference-workspace .alya-reload-msg,
body.alya-reference-workspace .alya-reload-project{color:#d5e2eb!important;}
body.alya-reference-workspace .alya-project-name-form input{
  border-color:#365168!important;background:#091622!important;color:#edf5fa!important;
}

body.alya-reference-workspace .alya-awb-modal{
  background:rgba(3,9,15,.72)!important;backdrop-filter:blur(5px)!important;
}
body.alya-reference-workspace .alya-awb-card{
  border:1px solid #35536c!important;border-radius:12px!important;background:#0f1d2a!important;
  color:#dce8f1!important;box-shadow:0 28px 85px rgba(0,0,0,.58)!important;
}
body.alya-reference-workspace .alya-awb-head{
  min-height:48px!important;border-bottom:1px solid #2d4356!important;background:linear-gradient(180deg,#172b3c,#112130)!important;
}
body.alya-reference-workspace .alya-awb-head input{
  border-color:#365168!important;background:#091622!important;color:#edf5fa!important;
}
body.alya-reference-workspace .alya-awb-body{background:#0f1d2a!important;color:#b9cad6!important;}
body.alya-reference-workspace .alya-awb-command,
body.alya-reference-workspace .alya-awb-run,
body.alya-reference-workspace .alya-awb-empty,
body.alya-reference-workspace .alya-awb-help{
  border-color:#2d4559!important;background:#122332!important;color:#dce8f1!important;
}
body.alya-reference-workspace .alya-awb-command:hover,
body.alya-reference-workspace .alya-awb-run:hover{border-color:#3e87d2!important;background:#183149!important;}
body.alya-reference-workspace .alya-awb-command small,
body.alya-reference-workspace .alya-awb-run small{color:#839aab!important;}
body.alya-reference-workspace .alya-awb-tabs button,
body.alya-reference-workspace .alya-awb-run-actions button{
  border-color:#365168!important;background:#162a3b!important;color:#dce8f1!important;
}
body.alya-reference-workspace .alya-awb-tabs button.on{border-color:#3a8bea!important;background:#1f6fcd!important;color:#fff!important;}
body.alya-reference-workspace .alya-awb-run-actions button.danger{border-color:#7d3d49!important;background:#341c25!important;color:#ffb8c1!important;}

body.alya-reference-workspace .alya-layer-context-menu{
  min-width:190px!important;padding:6px!important;border:1px solid #365168!important;border-radius:9px!important;
  background:#0f1d2a!important;color:#dce8f1!important;box-shadow:0 20px 55px rgba(0,0,0,.52)!important;
}
body.alya-reference-workspace .alya-layer-context-menu button{
  min-height:34px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#c7d6e0!important;
}
body.alya-reference-workspace .alya-layer-context-menu button:hover{background:#19344d!important;color:#fff!important;}

/* Layer-row ellipsis uses a separate legacy flyout host.  Keep it in the
   same visual system as the real right-click menu. */
body.alya-reference-workspace .stage-modern-overlay-host .stage-modern-flyout,
body.alya-reference-workspace .stage-layer-action-flyout{
  min-width:210px!important;padding:7px!important;border:1px solid #365168!important;border-radius:10px!important;
  background:linear-gradient(180deg,#132534,#0d1a26)!important;color:#dce8f1!important;
  box-shadow:0 22px 58px rgba(0,0,0,.56)!important;backdrop-filter:blur(12px)!important;
}
body.alya-reference-workspace .stage-layer-action-flyout::before,
body.alya-reference-workspace .stage-layer-action-flyout::after{border-color:#365168!important;background:#132534!important;}
body.alya-reference-workspace .stage-layer-action-flyout :is(.stage-action-proxy,button){
  width:100%!important;min-height:35px!important;padding:8px 10px!important;border:0!important;border-radius:7px!important;
  background:transparent!important;color:#cbd9e3!important;text-align:left!important;box-shadow:none!important;
}
body.alya-reference-workspace .stage-layer-action-flyout :is(.stage-action-proxy,button):hover,
body.alya-reference-workspace .stage-layer-action-flyout :is(.stage-action-proxy,button):focus-visible{
  background:#19344d!important;color:#fff!important;outline:1px solid rgba(74,150,231,.5)!important;
}
body.alya-reference-workspace #featureContextMenu.context-menu{
  min-width:190px!important;padding:7px!important;border:1px solid #365168!important;border-radius:10px!important;
  background:linear-gradient(180deg,#132534,#0d1a26)!important;color:#dce8f1!important;
  box-shadow:0 22px 58px rgba(0,0,0,.56)!important;backdrop-filter:blur(12px)!important;
}
body.alya-reference-workspace #featureContextMenu.context-menu button{
  min-height:34px!important;padding:7px 10px!important;border:0!important;border-radius:7px!important;
  background:transparent!important;color:#cbd9e3!important;text-align:left!important;
}
body.alya-reference-workspace #featureContextMenu.context-menu button:hover,
body.alya-reference-workspace #featureContextMenu.context-menu button:focus-visible{
  background:#19344d!important;color:#fff!important;outline:1px solid rgba(74,150,231,.5)!important;
}

/* Project tab is still supplied by the compact shell and had a late white
   theme override in styles.css. */
body.alya-reference-workspace .project-card{
  border:1px solid #2d4559!important;border-radius:10px!important;background:#0f1d2a!important;
  color:#dce8f1!important;box-shadow:none!important;
}
body.alya-reference-workspace .project-card h4{color:#f0f6fb!important;}
body.alya-reference-workspace .project-card :is(.muted,.project-status){color:#8fa5b6!important;}
body.alya-reference-workspace .project-card :is(button,select,input){
  border:1px solid #365168!important;border-radius:7px!important;background:#132536!important;color:#e2edf5!important;
}
body.alya-reference-workspace .project-card button:hover{border-color:#3e87d2!important;background:#19344d!important;color:#fff!important;}
body.alya-reference-workspace .project-card button.primary{border-color:#3a8bea!important;background:#1f6fcd!important;color:#fff!important;}

/* Per-tool draw settings: preserve the drawing engine and override only the
   legacy inline light theme. */
body.alya-reference-workspace #alyaDrawDlg{
  border:1px solid #35536c!important;border-radius:11px!important;background:#0f1d2a!important;color:#dce8f1!important;
  box-shadow:0 26px 70px rgba(0,0,0,.55)!important;font-family:inherit!important;
}
body.alya-reference-workspace #alyaDrawDlg>div:first-child{
  border-color:#2d4356!important;background:linear-gradient(180deg,#172b3c,#112130)!important;color:#f0f6fb!important;
}
body.alya-reference-workspace #alyaDrawDlg>div:nth-child(2){background:#0f1d2a!important;color:#c8d6e0!important;}
body.alya-reference-workspace #alyaDrawDlg>div:nth-child(2)>:is(div,label){color:#b9cad6!important;}
body.alya-reference-workspace #alyaDrawDlg>div:nth-child(2)>div:nth-child(2){color:#79b5ff!important;}
body.alya-reference-workspace #alyaDrawDlg :is(input:not([type="range"]):not([type="color"]),select){
  border-color:#365168!important;background:#091622!important;color:#e5eef5!important;
}
body.alya-reference-workspace #alyaDrawDlg input[type="color"]{border:1px solid #365168!important;border-radius:6px!important;background:#091622!important;}
body.alya-reference-workspace #alyaDrawDlg>div:last-child{border-color:#2d4356!important;background:#0b1722!important;}
body.alya-reference-workspace #alyaDrawDlg :is(#addClose,#addCancel){border-color:#365168!important;background:#162a3b!important;color:#dce8f1!important;}
body.alya-reference-workspace #alyaDrawDlg #addOk{border-color:#3a8bea!important;background:#1f6fcd!important;color:#fff!important;}

/* Gönder / Farklı Kaydet uses the existing, fully functional output engine. */
body.alya-reference-workspace #alyaReferenceWorkspace .gnd,
body.alya-reference-workspace .alya-save-as-modal .gnd{
  background:#0d1925!important;color:#dce8f1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .rs-body:has(.gnd){padding:8px!important;overflow:hidden!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .rs-section:has(>.gnd){height:100%!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .rs-section:has(>.gnd)>.rs-section-title:empty{display:none!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .rs-section>.gnd{height:100%!important;min-height:0!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .gnd-hdr{display:none!important;}
body.alya-reference-workspace .gnd-scroll{min-height:0!important;padding:8px!important;scrollbar-color:#35516a transparent!important;}
body.alya-reference-workspace .gnd-scroll::-webkit-scrollbar-thumb{background:#35516a!important;}
body.alya-reference-workspace .gnd-acc{
  margin-bottom:7px!important;border:1px solid #263b4d!important;border-radius:8px!important;
  background:#111f2c!important;color:#dce8f1!important;box-shadow:none!important;
}
body.alya-reference-workspace .gnd-acc-hdr{min-height:38px!important;background:#142433!important;color:#dce8f1!important;}
body.alya-reference-workspace .gnd-acc-hdr:hover{background:#193149!important;box-shadow:none!important;transform:none!important;}
body.alya-reference-workspace .gnd-acc-title{color:#dce8f1!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.35px!important;}
body.alya-reference-workspace .gnd-acc-icon{color:#71adf0!important;}
body.alya-reference-workspace .gnd-acc-arr{color:#7f96a9!important;}
body.alya-reference-workspace .gnd-acc-body{padding:8px!important;border-top:1px solid #26394a!important;background:#101e2b!important;}
body.alya-reference-workspace .gnd-fmt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
body.alya-reference-workspace .gnd-fmt-btn{
  min-height:66px!important;padding:7px 4px!important;border:1px solid #2f485c!important;border-radius:7px!important;
  background:#132332!important;color:#cbd9e3!important;box-shadow:none!important;
}
body.alya-reference-workspace .gnd-fmt-btn:hover{border-color:#3e82c6!important;background:#183149!important;box-shadow:none!important;transform:none!important;}
body.alya-reference-workspace .gnd-fmt-btn.active{border-color:#3b8dea!important;background:linear-gradient(145deg,#1e67b6,#164c86)!important;box-shadow:inset 0 -2px 0 #65aefc!important;}
body.alya-reference-workspace .gnd-fmt-btn .ico{display:grid!important;place-items:center!important;width:21px!important;height:21px!important;color:#78b7fb!important;}
body.alya-reference-workspace .gnd-fmt-btn.active .ico{color:#fff!important;}
body.alya-reference-workspace .gnd-fmt-btn .ico svg{width:19px!important;height:19px!important;stroke:currentColor!important;}
body.alya-reference-workspace .gnd-fmt-btn .lbl{color:#e4edf4!important;font-size:9.5px!important;}
body.alya-reference-workspace .gnd-fmt-btn .desc{color:#7f96a9!important;font-size:8px!important;}
body.alya-reference-workspace .gnd-fmt-btn.active :is(.lbl,.desc){color:#fff!important;}
body.alya-reference-workspace .gnd-row{grid-template-columns:76px minmax(0,1fr)!important;}
body.alya-reference-workspace .gnd-lbl,
body.alya-reference-workspace .gnd-subtitle{color:#91a7b8!important;}
body.alya-reference-workspace :is(.gnd-select,.gnd-input){border-color:#365168!important;background:#091622!important;color:#e5eef5!important;}
body.alya-reference-workspace .gnd-chk,
body.alya-reference-workspace .gnd-analysis-row{color:#b9cad6!important;}
body.alya-reference-workspace .gnd-note,
body.alya-reference-workspace .gnd-status,
body.alya-reference-workspace .gnd-analysis-list{
  border-color:#294154!important;background:#0a1722!important;color:#839aab!important;
}
body.alya-reference-workspace .gnd-status.ok{background:#102b22!important;color:#69d39b!important;}
body.alya-reference-workspace .gnd-status.err{background:#321b23!important;color:#ff9eaa!important;}
body.alya-reference-workspace .gnd-status.busy{background:#302819!important;color:#ffd27c!important;}
body.alya-reference-workspace .gnd-actions{border-color:#294154!important;background:#0b1722!important;}
body.alya-reference-workspace .gnd-send-btn{background:linear-gradient(145deg,#2378d5,#175ba8)!important;color:#fff!important;}

body.alya-reference-workspace .alya-save-as-modal{background:rgba(3,9,15,.72)!important;backdrop-filter:blur(5px)!important;}
body.alya-reference-workspace .alya-save-as-card{
  width:min(500px,calc(100vw - 30px))!important;border:1px solid #35536c!important;border-radius:12px!important;
  background:#0f1d2a!important;box-shadow:0 28px 85px rgba(0,0,0,.58)!important;
}
body.alya-reference-workspace .alya-save-as-head{
  min-height:45px!important;border-bottom:1px solid #2d4356!important;background:linear-gradient(180deg,#172b3c,#112130)!important;color:#f0f6fb!important;
}
body.alya-reference-workspace .alya-save-as-body{background:#0d1925!important;}

body.alya-reference-workspace .inline-output-shell{
  border-color:#35536c!important;background:#0d1925!important;color:#dce8f1!important;box-shadow:0 25px 75px rgba(0,0,0,.55)!important;
}
body.alya-reference-workspace .inline-output-left{border-color:#294154!important;background:#101e2b!important;color:#dce8f1!important;}
body.alya-reference-workspace .inline-output-right{background:#0b1722!important;color:#dce8f1!important;}

/* PDF UI/UX specification: global command center, jobs and contextual advice. */
.alya-ref-command-palette{position:fixed;inset:0;z-index:120000;display:none;align-items:flex-start;justify-content:center;padding-top:min(14vh,130px);background:rgba(2,8,14,.68);backdrop-filter:blur(7px);font-family:var(--alya-font);}
.alya-ref-command-palette.open{display:flex;}
.alya-ref-command-card{width:min(680px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #38556e;border-radius:13px;background:linear-gradient(180deg,#132433,#0d1a26);color:#e5eef5;box-shadow:0 30px 100px rgba(0,0,0,.64);}
.alya-ref-command-search{height:58px;display:flex;align-items:center;gap:12px;padding:0 15px;border-bottom:1px solid #2c4254;background:#10202e;}
.alya-ref-command-search>svg{width:21px;height:21px;color:#65aaff;}
.alya-ref-command-search input{min-width:0;flex:1;border:0!important;background:transparent!important;color:#f1f7fb!important;font:600 15px var(--alya-font)!important;outline:0!important;box-shadow:none!important;}
.alya-ref-command-search input::placeholder{color:#7890a3;}
.alya-ref-command-search kbd,.alya-ref-command-row kbd{padding:3px 6px;border:1px solid #3a5266;border-bottom-color:#233747;border-radius:5px;background:#172a3a;color:#91a8b9;font:700 9px var(--alya-font);white-space:nowrap;}
.alya-ref-command-categories{display:flex;gap:5px;padding:9px 11px;border-bottom:1px solid #253b4d;overflow-x:auto;}
.alya-ref-command-categories button{height:27px;padding:0 10px;border:1px solid #2f485c;border-radius:14px;background:#132536;color:#91a8b9;font:700 9px var(--alya-font);white-space:nowrap;cursor:pointer;}
.alya-ref-command-categories button.is-active{border-color:#3f8cff;background:#1c64b3;color:#fff;}
.alya-ref-command-results{min-height:110px;overflow:auto;padding:7px;}
.alya-ref-command-row{width:100%;min-height:58px;display:flex;align-items:center;gap:11px;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#dce8f1;text-align:left;cursor:pointer;}
.alya-ref-command-row.is-active,.alya-ref-command-row:hover{border-color:#315b7d;background:#173149;}
.alya-ref-command-icon{width:35px;height:35px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #31506a;border-radius:8px;background:#13293c;color:#69adfb;}
.alya-ref-command-icon svg{width:19px;height:19px;}
.alya-ref-command-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px;}
.alya-ref-command-copy strong{color:#edf5fa;font-size:11px;}
.alya-ref-command-copy small{overflow:hidden;color:#7f96a9;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}
.alya-ref-command-meta{display:flex;align-items:center;gap:8px;}
.alya-ref-command-star{font-size:18px;color:#f0b748;line-height:1;}
.alya-ref-command-empty{padding:28px;text-align:center;color:#7890a3;font-size:11px;}
.alya-ref-command-foot{min-height:34px;display:flex;align-items:center;gap:18px;padding:0 13px;border-top:1px solid #253b4d;background:#0b1722;color:#70889b;font-size:9px;}

.alya-ref-jobs-drawer{position:fixed;top:calc(var(--alya-top-height) + 10px);right:12px;z-index:110000;width:min(390px,calc(100vw - 24px));max-height:calc(100vh - var(--alya-top-height) - 28px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #38556e;border-radius:11px;background:#0e1c29;color:#dce8f1;box-shadow:0 24px 70px rgba(0,0,0,.58);opacity:0;pointer-events:none;transform:translateY(-8px) scale(.98);transition:.16s;}
.alya-ref-jobs-drawer.open{opacity:1;pointer-events:auto;transform:none;}
.alya-ref-jobs-head{min-height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-bottom:1px solid #2b4255;background:#142636;}
.alya-ref-jobs-head>div{display:flex;align-items:center;gap:9px;}.alya-ref-jobs-head>div>svg{width:20px;color:#65aaff;}.alya-ref-jobs-head span{display:flex;flex-direction:column;gap:2px;}.alya-ref-jobs-head strong{font-size:12px;}.alya-ref-jobs-head small{color:#7890a3;font-size:8px;}.alya-ref-jobs-head button{width:29px;height:29px;display:grid;place-items:center;border:1px solid #355068;border-radius:7px;background:#132536;color:#9eb2c2;cursor:pointer;}.alya-ref-jobs-head button svg{width:16px;}
.alya-ref-jobs-list{min-height:100px;overflow:auto;padding:8px;}.alya-ref-jobs-empty{padding:28px 14px;text-align:center;color:#7e94a5;font-size:10px;}
.alya-ref-job{margin-bottom:7px;padding:9px;border:1px solid #2b4356;border-radius:8px;background:#112331;}.alya-ref-job-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}.alya-ref-job-top>span{min-width:0;display:flex;flex-direction:column;gap:3px;}.alya-ref-job strong{font-size:10px;color:#e7f0f6;}.alya-ref-job small{overflow:hidden;color:#7e95a7;font-size:8px;text-overflow:ellipsis;white-space:nowrap;}.alya-ref-job em{color:#6faef2;font:700 8px var(--alya-font);font-style:normal;}.alya-ref-job.is-done em{color:#55d28b;}.alya-ref-job.is-failed em{color:#ff8d99;}.alya-ref-job-progress{height:4px;margin-top:8px;overflow:hidden;border-radius:3px;background:#0a1722;}.alya-ref-job-progress i{display:block;height:100%;border-radius:inherit;background:#3f8cff;transition:width .2s;}.alya-ref-job.is-done .alya-ref-job-progress i{background:#41d17d;}.alya-ref-job.is-failed .alya-ref-job-progress i{background:#e45454;}.alya-ref-job>button{margin-top:7px;border:0;background:transparent;color:#f0a3ad;font:700 8px var(--alya-font);cursor:pointer;}

.alya-ref-right-slot{display:flex;flex-direction:column;}
.alya-ref-right-slot>#rightSidebar{height:auto!important;flex:1 1 auto!important;}
.alya-ref-suggestions{flex:0 0 auto;margin:0 8px 8px;border:1px solid #284154;border-radius:8px;background:#101f2c;color:#dce8f1;overflow:hidden;}
.alya-ref-suggestions-head{width:100%;height:42px;display:flex;align-items:center;gap:8px;padding:0 9px;border:0;background:#142534;color:#dce8f1;text-align:left;cursor:pointer;}.alya-ref-suggestions-head>svg{width:17px;color:#63a8f5;}.alya-ref-suggestions-head>span{min-width:0;display:flex;flex:1;flex-direction:column;gap:1px;}.alya-ref-suggestions-head strong{font-size:9px;text-transform:uppercase;letter-spacing:.35px;}.alya-ref-suggestions-head small{color:#728a9d;font-size:7.5px;}.alya-ref-suggestions-head em{color:#7990a2;font-style:normal;}.alya-ref-suggestions.collapsed .alya-ref-suggestions-head em{transform:rotate(180deg);}.alya-ref-suggestions.collapsed .alya-ref-suggestions-body{display:none;}
.alya-ref-suggestions-body{padding:6px;}.alya-ref-suggestion{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 6px;border-bottom:1px solid #213747;}.alya-ref-suggestion:last-child{border-bottom:0;}.alya-ref-suggestion>span{min-width:0;display:flex;align-items:center;gap:6px;}.alya-ref-suggestion svg{width:14px;color:#f0a33a;}.alya-ref-suggestion strong{color:#aebfcb;font-size:8px;font-weight:600;line-height:1.3;}.alya-ref-suggestion button{height:24px;padding:0 8px;border:1px solid #355b7a;border-radius:6px;background:#17334b;color:#bcd8ef;font:700 8px var(--alya-font);cursor:pointer;}.alya-ref-suggestion em{color:#41d17d;font-style:normal;}

/* Layer rows follow the PDF: type, label, opacity and compact controls. */
.alya-ref-left-slot .layer-item .li-opacity{display:grid;grid-template-columns:18px minmax(0,1fr) 28px;align-items:center;gap:5px;padding:0 7px 5px 36px;}
.alya-ref-left-slot .layer-item{display:flex!important;flex-direction:column!important;align-items:stretch!important;}
.alya-ref-left-slot .layer-item .li-row{width:100%!important;max-width:none!important;flex:0 0 auto!important;}
.alya-ref-left-slot .layer-item .li-opacity svg{width:12px;height:12px;color:#6f8799;}
.alya-ref-left-slot .layer-item .li-opacity input{width:100%;height:3px;accent-color:#3f8cff;cursor:pointer;}
.alya-ref-left-slot .layer-item .li-opacity output{color:#7f98aa;font:700 8px var(--alya-font);text-align:right;}
.alya-ref-left-slot .layer-item.is-locked{border-color:#68592f!important;}.alya-ref-left-slot .layer-item.is-locked .li-n::after{content:'  · kilitli';color:#d5ae54;font-size:8px;font-weight:600;}

/* Analysis/import dialogs use the same inspector visual language. */
body.alya-reference-workspace .anv3-modal-bg{background:rgba(2,8,14,.72)!important;backdrop-filter:blur(6px)!important;}
body.alya-reference-workspace .anv3-modal-card{width:min(520px,calc(100vw - 28px))!important;max-height:min(760px,calc(100vh - 34px))!important;border:1px solid #38556e!important;border-radius:12px!important;background:#0f1d2a!important;color:#dce8f1!important;box-shadow:0 28px 85px rgba(0,0,0,.62)!important;}
body.alya-reference-workspace .anv3-modal-hdr{min-height:50px!important;padding:0 15px!important;border-color:#2d4356!important;background:linear-gradient(180deg,#172b3c,#112130)!important;}
body.alya-reference-workspace .anv3-modal-title{color:#f0f6fb!important;}
body.alya-reference-workspace .anv3-src-btn{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;text-align:left!important;}
body.alya-reference-workspace .anv3-src-btn .alya-ref-source-icon{width:17px;height:17px;flex:0 0 17px;color:#64a8ff;}
body.alya-reference-workspace .anv3-src-btn .alya-ref-inline-icon{width:15px;height:15px;margin-right:6px;vertical-align:-3px;color:#64a8ff;}
body.alya-reference-workspace .anv3-modal-close{border-color:#365168!important;background:#132536!important;color:#bcd0df!important;}
body.alya-reference-workspace .anv3-modal-body{background:#0f1d2a!important;color:#b9cad6!important;}
body.alya-reference-workspace .anv3-modal-foot{border-top:1px solid #2d4356!important;background:#0b1722!important;}
body.alya-reference-workspace .anv3-modal :is(.anv3-ready-intro,.anv3-note){border-color:#294154!important;background:#0a1722!important;color:#91a7b8!important;}
body.alya-reference-workspace .anv3-modal :is(.anv3-lbl,.anv3-chk){color:#aebfcb!important;}
body.alya-reference-workspace .anv3-modal :is(input:not([type="checkbox"]):not([type="color"]),select,textarea){border:1px solid #365168!important;background:#091622!important;color:#e5eef5!important;}
body.alya-reference-workspace .anv3-modal :is(.anv3-btn-ghost,.anv3-btn-primary){border:1px solid #365168!important;border-radius:7px!important;background:#162a3b!important;color:#dce8f1!important;}
body.alya-reference-workspace .anv3-modal .anv3-btn-primary{border-color:#3a8bea!important;background:#1f6fcd!important;color:#fff!important;}

@media (max-width:1320px){
  :root{--alya-left-width:264px;--alya-right-width:310px;}
  .alya-ref-left-slot .side-tab{font-size:8px!important;padding-inline:1px!important;letter-spacing:0!important;}
}

/* V60c readability and contextual-inspector audit.  Font scale stays compact;
   low-contrast legacy colours are replaced without inflating the interface. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .side-tab{
  color:#c5d3de!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-header{
  color:#c2d0db!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-item .li-meta{
  color:#a5b7c6!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .rs-body :is(div,span,label,p,small,legend){
  color:#c3d1dc!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.rp-note,.muted,.anv3-note,.anv3-source-guide,.anv3-lbl){
  color:#a7bac9!important;
}

.alya-ref-inspector-tab{
  height:42px!important;display:flex!important;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  color:#c2d1dc!important;font-size:8.5px!important;
}
.alya-ref-inspector-tab>svg{width:13px;height:13px;flex:0 0 13px;color:#74b4fb;}
.alya-ref-inspector-tab>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.alya-ref-inspector-tab.is-active>svg{color:#fff;}
.alya-ref-inspector-tab[hidden]{display:none!important;}

/* The global inspector tabs are the single analysis navigation row. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3>.anv3-header>.anv3-tabs{
  display:none!important;
}

.alya-ref-context-info{
  margin:8px;padding:10px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;
  border:1px solid #31506a;border-radius:9px;background:#111f2c;color:#dce8f1;
}
.alya-ref-context-info>svg{width:19px;height:19px;color:#6fb2ff;}
.alya-ref-context-info h3{margin:0 0 8px;color:#eff6fb!important;font-size:10px;letter-spacing:.2px;text-transform:uppercase;}
.alya-ref-context-info dl{margin:0;display:grid;gap:5px;}
.alya-ref-context-info dl>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:7px;padding-bottom:5px;border-bottom:1px solid #233a4c;}
.alya-ref-context-info dl>div:last-child{padding-bottom:0;border-bottom:0;}
.alya-ref-context-info dt{color:#91a8ba;font-size:8.5px;}
.alya-ref-context-info dd{min-width:0;margin:0;color:#e3edf4!important;font-size:9px;overflow-wrap:anywhere;}

/* Altlıklar: old light cards made white labels disappear in the dark shell. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .basemap-grid{
  gap:6px!important;background:transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .basemap-btn{
  min-height:39px!important;border:1px solid #2d465a!important;border-radius:7px!important;
  background:#111f2c!important;color:#e3edf4!important;box-shadow:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .basemap-btn:hover{
  border-color:#478bd0!important;background:#173049!important;color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .basemap-btn.active{
  border-color:#4a96ef!important;background:#174d82!important;color:#fff!important;box-shadow:inset 0 -2px 0 #6cb5ff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .basemap-title{
  color:#edf5fb!important;font-weight:650!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot :is(.basemap-opacity,.basemap-opacity-row,.basemap-opacity-label,.basemap-opacity-val){
  color:#c6d5df!important;background:transparent!important;
}

/* Referanslar: Altlıklar ile aynı koyu, okunabilir kart dili. Eski TKGM/WMS
   bileşenleri kendi açık temasını eklediği için bu kurallar yalnız refs panelinde
   ve yüksek özgüllükle uygulanır; sorgu ve katman motorlarına dokunulmaz. */
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs{
  padding:6px!important;background:transparent!important;color:#e3edf4!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs>.layer-box{
  display:grid!important;gap:7px!important;background:transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs :is(#tkgm-query-panel,#wms-ref-panel){
  color:#e3edf4!important;background:transparent!important;border:0!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-card{
  padding:0 9px 9px!important;border:1px solid #2d465a!important;border-radius:8px!important;
  background:#111f2c!important;overflow:hidden!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-head{
  min-height:38px!important;margin:0 -9px 8px!important;padding:7px 9px!important;
  border:0!important;border-bottom:1px solid #2d465a!important;background:#14283a!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-head:hover{
  background:#173049!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-head:focus-visible{
  outline:2px solid #4a96ef!important;outline-offset:-2px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-arr{
  color:#84a3ba!important;transition:transform .15s ease!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-title{
  color:#edf5fb!important;font-weight:750!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-field label{
  color:#aebfcb!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-field :is(select,input){
  min-width:0!important;border-color:#35536a!important;background:#0d1b27!important;color:#edf5fb!important;
  color-scheme:dark!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-field :is(select,input)::placeholder{
  color:#879dac!important;opacity:1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-field :is(select,input):focus{
  border-color:#4a96ef!important;box-shadow:0 0 0 2px rgba(74,150,239,.18)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-actions button{
  min-height:32px!important;border-color:#35536a!important;background:#14283a!important;color:#dce9f2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-actions button:hover{
  border-color:#478bd0!important;background:#173049!important;color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .tkgm-actions button.primary{
  border-color:#4a96ef!important;background:#174d82!important;color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs :is(.tkgm-status,.tkgm-result){
  color:#aebfcb!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs #tkgm-body[hidden]{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group{
  margin:0 0 7px!important;border:1px solid #2d465a!important;border-radius:8px!important;
  background:#111f2c!important;overflow:hidden!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group-hdr{
  min-height:39px!important;padding:7px 9px!important;background:#14283a!important;color:#e3edf4!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group-hdr:hover{
  background:#173049!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group-title{
  min-width:0!important;color:#edf5fb!important;font-weight:700!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group-arr{
  color:#84a3ba!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-group-body{
  border-top:1px solid #2d465a!important;background:#0f1d29!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item{
  padding:7px 9px!important;background:transparent!important;color:#dce9f2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item:hover{
  background:#173049!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-link-item{
  background:transparent!important;color:#dce9f2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item-name{
  color:#e3edf4!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item-desc{
  color:#9fb2c0!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item-tag{
  background:#203a50!important;color:#a9d4ff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-item-tag.tile{
  background:#153d35!important;color:#8de0c3!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-op{
  background:#0d1b27!important;color:#aebfcb!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs :is(.wms-op-label,.wms-op-val){
  color:#aebfcb!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-custom{
  border-color:#35536a!important;background:#0d1b27!important;color:#dce9f2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-custom :is(input,select){
  border-color:#35536a!important;background:#111f2c!important;color:#edf5fb!important;color-scheme:dark!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-custom-btn{
  border-color:#35536a!important;background:#14283a!important;color:#dce9f2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-custom-btn.primary{
  border-color:#4a96ef!important;background:#174d82!important;color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #side-panel-refs .wms-custom-status{
  color:#aebfcb!important;
}

/* ========================================================================
   ALYA GIS V66 — MENU UX PATCH
   Only the visible shell/menu interaction is changed. GIS engines are untouched.
   ======================================================================== */
:root{
  --alya-top-height:60px;
  --alya-status-height:32px;
  --alya-rail-width:72px;
  --alya-left-width:286px;
  --alya-right-width:346px;
  --alya-menu-surface:#0b1722;
  --alya-menu-surface-2:#101f2d;
  --alya-menu-border:#2a4053;
}

/* Make the map the real center of the app and remove accidental layout gaps. */
#alyaReferenceWorkspace,.alya-ref-body,.alya-ref-map-slot{min-height:0!important;}
.alya-ref-map-slot{height:100%!important;background:#e9ece8!important;}
.alya-ref-map-slot>#map{inset:0!important;height:100%!important;min-height:100%!important;}
body.alya-reference-workspace:not(.alya-ref-3d-active) #alya3dOverlay{display:none!important;}

/* Top navigation: calm, flat and modern. */
.alya-ref-topbar{grid-template-columns:calc(var(--alya-rail-width) + var(--alya-left-width)) minmax(390px,1fr) auto!important;padding:0 16px!important;gap:10px!important;background:#0a1520!important;box-shadow:0 4px 18px rgba(0,0,0,.22)!important;}
.alya-ref-brand-mark{display:none!important;}
.alya-ref-brand{gap:7px!important;}
.alya-ref-brand-name{font-size:24px!important;letter-spacing:.4px!important;}
.alya-ref-version{margin-left:3px!important;}
.alya-ref-topnav{gap:2px!important;}
.alya-ref-nav-button{height:58px!important;padding:0 14px!important;font-size:13px!important;font-weight:600!important;border-radius:0!important;}
.alya-ref-nav-button svg{display:none!important;}
.alya-ref-nav-button.is-active{background:rgba(47,131,247,.06)!important;}
.alya-ref-nav-button.is-active:after{left:12px!important;right:12px!important;height:3px!important;}
.alya-ref-search-button{min-width:175px!important;max-width:210px!important;background:#0e1b27!important;border-color:#294052!important;}

/* Rail stays icon-first. */
.alya-ref-module-rail{padding:8px 7px!important;gap:4px!important;background:#091520!important;}
.alya-ref-rail-button{min-height:58px!important;border-radius:9px!important;font-size:10px!important;}
.alya-ref-rail-button svg{width:21px!important;height:21px!important;}

/* Left layers: target-image proportions and less visual noise. */
.alya-ref-left-slot{background:#0b1824!important;}
.alya-ref-panel-head{height:54px!important;padding:0 12px!important;background:#0c1925!important;}
.alya-ref-panel-title strong{font-size:14px!important;text-transform:none!important;letter-spacing:0!important;}
.alya-ref-panel-title small{font-size:9px!important;}
.alya-ref-left-slot .layer-search-row{margin:8px 10px 5px!important;}
.alya-ref-left-slot .layer-quickbar{margin:0 10px 7px!important;border:0!important;background:transparent!important;padding:0!important;gap:5px!important;}
.alya-ref-left-slot .layer-quickbar .lq-btn{width:30px!important;height:30px!important;border:1px solid #294156!important;border-radius:7px!important;background:#102131!important;}
.alya-ref-left-slot .layer-group{border-top:1px solid rgba(92,122,147,.13)!important;}
.alya-ref-left-slot .layer-header{min-height:34px!important;padding:0 10px!important;font-size:9.5px!important;letter-spacing:.35px!important;}
.alya-ref-left-slot .layer-item{margin:2px 7px!important;border-radius:7px!important;}

/* Right inspector: tab first, no huge legacy-card feeling. */
.alya-ref-right-slot{background:#0b1824!important;}
.alya-ref-right-slot .rs-head{min-height:54px!important;background:#0c1925!important;}
.alya-ref-right-slot .rs-title{font-size:14px!important;text-transform:none!important;letter-spacing:0!important;}
.alya-ref-inspector-tabs{min-height:54px!important;padding:5px 7px!important;background:#0b1824!important;}
.alya-ref-inspector-tab{border-radius:7px!important;}
.alya-ref-right-slot .rs-body{padding:8px 8px 18px!important;}
.alya-ref-right-slot .rs-section,.alya-ref-right-slot .layer-box,.alya-ref-right-slot .anv3-card{border-radius:7px!important;}

/* Drawing bar: grouped menus instead of a crowded row of 12+ tools. */
.alya-ref-context-toolbar{top:12px!important;gap:3px!important;padding:5px!important;border-radius:10px!important;overflow:visible!important;transition:opacity .14s ease,transform .14s ease!important;}
body:not(.alya-ref-drawing-mode) .alya-ref-context-toolbar{opacity:0!important;pointer-events:none!important;transform:translate(-50%,-8px)!important;}
body.alya-ref-drawing-mode .alya-ref-context-toolbar{opacity:1!important;pointer-events:auto!important;}
.alya-ref-tool-button{min-width:64px!important;height:48px!important;padding:4px 9px!important;gap:3px!important;position:relative!important;}
.alya-ref-tool-button svg{width:18px!important;height:18px!important;}
.alya-ref-tool-button.has-menu{min-width:72px!important;padding-right:17px!important;}
.alya-ref-tool-button.has-menu>em{position:absolute;right:6px;top:7px;color:#69849a;font-size:9px;font-style:normal;}
.alya-ref-tool-button[data-ref-tool="draw"] svg{color:#58a6ff!important;}
.alya-ref-tool-button[data-ref-tool="edit"] svg{color:#7dd3fc!important;}
.alya-ref-tool-button[data-ref-tool="measure"] svg{color:#f7c35f!important;}
.alya-ref-tool-button[data-ref-tool="snap"] svg{color:#49d4bd!important;}
.alya-ref-tool-button.is-danger svg{color:#f47782!important;}
.alya-ref-tool-menu{min-width:210px!important;display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;}
.alya-ref-tool-menu.open{display:grid!important;}
.alya-ref-tool-menu .alya-ref-popover-title{grid-column:1/-1;}
.alya-ref-tool-menu button{min-height:38px!important;}

/* Map navigation is on the RIGHT like the design reference. */
.alya-ref-map-nav{left:auto!important;right:13px!important;top:50%!important;}
.alya-ref-map-corner-card{display:none!important;}
.alya-ref-measure-dock{bottom:12px!important;padding:4px!important;}
.alya-ref-measure-button{min-width:54px!important;height:45px!important;}

/* ------------------------------------------------------------------------
   Module / mega menu. Top/rail clicks open this menu; they no longer hijack
   the contextual inspector. The actual command still delegates to old UI.
   ------------------------------------------------------------------------ */
.alya-ref-module-flyout{
  position:fixed;z-index:120500;width:min(500px,calc(100vw - 24px));max-height:calc(100vh - 88px);
  display:flex;flex-direction:column;overflow:hidden;border:1px solid #345069;border-radius:12px;
  background:rgba(9,22,33,.985);color:#e6eef5;box-shadow:0 24px 70px rgba(0,0,0,.52);
  opacity:0;pointer-events:none;transform:translateY(-8px) scale(.985);transition:opacity .14s ease,transform .14s ease;
  backdrop-filter:blur(16px);
}
.alya-ref-module-flyout.open{opacity:1;pointer-events:auto;transform:none;}
.alya-ref-module-flyout-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 0 15px;border-bottom:1px solid #294154;background:#102131;}
.alya-ref-module-flyout-head>div{display:flex;min-width:0;flex-direction:column;gap:2px;}
.alya-ref-module-flyout-head strong{font-size:14px;color:#f2f7fb;}
.alya-ref-module-flyout-head small{font-size:9px;color:#8298aa;}
.alya-ref-module-flyout-head>button{width:30px;height:30px;display:grid;place-items:center;border:1px solid #304b60;border-radius:7px;background:#132637;color:#aabcca;cursor:pointer;}
.alya-ref-module-flyout-head>button:hover{background:#1b3449;color:#fff;}
.alya-ref-module-flyout-head svg{width:15px;height:15px;}
.alya-ref-module-flyout-content{overflow:auto;padding:10px;}
.alya-ref-module-group+ .alya-ref-module-group{margin-top:10px;padding-top:10px;border-top:1px solid rgba(92,126,153,.18);}
.alya-ref-module-group h3{margin:0 0 7px;padding:0 2px;color:#7f96a9;font:800 9px var(--alya-font);letter-spacing:.55px;text-transform:uppercase;}
.alya-ref-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.alya-ref-module-card{min-height:62px;display:grid;grid-template-columns:36px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:7px 8px;border:1px solid #274156;border-radius:9px;background:#0f202e;color:#d7e2ea;text-align:left;cursor:pointer;transition:.13s;}
.alya-ref-module-card:hover{border-color:#3d7fb8;background:#163149;transform:translateY(-1px);}
.alya-ref-module-card-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid #31516b;border-radius:8px;background:#132a3c;color:#65a9f6;}
.alya-ref-module-card-icon svg{width:18px;height:18px;}
.alya-ref-module-card-copy{min-width:0;display:flex;flex-direction:column;gap:3px;}
.alya-ref-module-card-copy strong{overflow:hidden;color:#edf4f8;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap;}
.alya-ref-module-card-copy small{display:-webkit-box;overflow:hidden;color:#8198aa;font-size:8.5px;line-height:1.25;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.alya-ref-module-card-arrow{color:#658198;font-size:18px;}

/* Active module remains visible on both navigation surfaces. */
[data-ref-module][aria-expanded="true"]{background:rgba(47,131,247,.09)!important;color:#fff!important;}

@media (max-width:1450px){
  :root{--alya-left-width:258px;--alya-right-width:316px;}
  .alya-ref-nav-button{padding:0 10px!important;}
  .alya-ref-search-button{min-width:142px!important;}
  .alya-ref-tool-button{min-width:56px!important;padding-inline:7px!important;}
}
@media (max-width:1180px){
  .alya-ref-topnav .alya-ref-nav-button span{font-size:11px!important;}
  .alya-ref-module-grid{grid-template-columns:1fr;}
  .alya-ref-module-flyout{width:min(390px,calc(100vw - 20px));}
}

/* ========================================================================== 
   V67 — ANALİZ SAĞ PANELİ / MANTIKLI KULLANICI AKIŞI
   Yalnızca görünür yerleşimi değiştirir; panel_analysis.js içindeki mevcut
   analiz event'leri, state ve hesap motoru kullanılmaya devam eder.
   ========================================================================== */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3>.anv3-header{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-scroll{
  padding:8px 8px 132px!important;
  scrollbar-gutter:stable;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc{
  margin:0 0 8px!important;
  border:1px solid #294155!important;
  border-radius:9px!important;
  background:#0f1e2b!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-hdr{
  min-height:38px!important;
  padding:9px 10px!important;
  background:#132534!important;
  border-bottom:1px solid transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc:not(.anv3-acc--closed)>.anv3-acc-hdr{
  border-bottom-color:#294155!important;
  background:#14293a!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-hdr:hover{
  background:#183149!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-title{
  color:#e8f2f9!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-arrow{
  color:#6e8ba1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-body{
  gap:8px!important;
  padding:9px 10px 10px!important;
  background:#0d1a26!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-slider-row{
  grid-template-columns:minmax(92px,104px) minmax(0,1fr)!important;
  gap:8px!important;
  min-height:32px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row.anv3-row-stack{
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row.anv3-row-stack>.anv3-lbl{
  color:#8fa9bd!important;
  font-size:8.5px!important;
  font-weight:800!important;
  letter-spacing:.35px!important;
  text-transform:uppercase!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-lbl{
  color:#9fb3c3!important;
  font-size:9.5px!important;
  font-weight:650!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-input,.anv3-select){
  height:32px!important;
  min-height:32px!important;
  padding:5px 8px!important;
  border:1px solid #355068!important;
  border-radius:7px!important;
  background:#0a1722!important;
  color:#e4eef5!important;
  font-size:9.5px!important;
  box-shadow:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-input,.anv3-select):focus{
  border-color:#438fe2!important;
  box-shadow:0 0 0 2px rgba(67,143,226,.15)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-selected{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  min-height:54px!important;
  padding:8px 9px!important;
  border:1px solid #2f6eaa!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,rgba(35,103,174,.24),rgba(15,35,51,.98))!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-selected>span{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-selected small{
  color:#82a8c7!important;
  font-size:7.8px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.45px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-selected strong{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#eff7fc!important;
  font-size:10.5px!important;
  font-weight:800!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-selected>.anv3-btn-ghost{
  width:auto!important;
  min-width:84px!important;
  height:30px!important;
  padding:0 8px!important;
  border-color:#3c6e99!important;
  background:#15314a!important;
  color:#dcecf8!important;
  font-size:8.5px!important;
  font-weight:750!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-wide-action{
  width:100%!important;
  min-height:32px!important;
  margin:0!important;
  padding:0 9px!important;
  border-radius:7px!important;
  font-size:9px!important;
  font-weight:750!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-status{
  margin:0!important;
  padding:7px 8px!important;
  border:1px solid #263e51!important;
  border-radius:7px!important;
  background:#0a1722!important;
  color:#829aab!important;
  font-size:8.5px!important;
  line-height:1.35!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-chooser[hidden]{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-chooser{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  margin-top:2px!important;
  padding-top:7px!important;
  border-top:1px dashed #294155!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-group-title{
  padding:2px 1px!important;
  color:#7f9bb0!important;
  font-size:7.8px!important;
  font-weight:850!important;
  letter-spacing:.45px!important;
  text-transform:uppercase!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn{
  min-height:42px!important;
  padding:6px!important;
  border:1px solid #304b61!important;
  border-radius:7px!important;
  background:#122535!important;
  color:#afc2d0!important;
  font-size:8.5px!important;
  font-weight:700!important;
  line-height:1.15!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn--report{
  grid-column:1/-1!important;
  min-height:48px!important;
  background:#10283d!important;
  border-color:#35658d!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn--report .anv3-src-main{
  color:#dcebfa!important;
  font-size:9px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn--report .anv3-src-sub{
  color:#7e9aaf!important;
  font-size:7.8px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn.active{
  border-color:#4a96ef!important;
  background:#174b7b!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 #67b1ff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn.active::after{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-surf{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-surf:has(> :nth-child(4)){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-surf-btn{
  min-height:34px!important;
  padding:5px 4px!important;
  border:1px solid #304b61!important;
  border-radius:7px!important;
  background:#122535!important;
  color:#9fb4c4!important;
  font-size:9px!important;
  font-weight:800!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-surf-btn.active{
  border-color:#3f8ce0!important;
  background:linear-gradient(145deg,#246fc8,#17579f)!important;
  color:#fff!important;
  box-shadow:0 4px 10px rgba(25,100,181,.22)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-surf-btn.active::after{
  top:2px!important;right:5px!important;color:#b9ddff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-chk{
  min-height:30px!important;
  padding:5px 7px!important;
  border:1px solid #263e51!important;
  border-radius:7px!important;
  background:#0b1824!important;
  color:#c0d0dc!important;
  font-size:9px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-chk input,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-range{
  accent-color:#2f83f7!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-range-val{
  color:#69adf5!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
  position:sticky!important;
  bottom:0!important;
  z-index:12!important;
  margin:0!important;
  padding:8px!important;
  border-top:1px solid #294155!important;
  background:rgba(8,20,30,.98)!important;
  box-shadow:0 -10px 24px rgba(0,0,0,.24)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions:not(.has-update)>.anv3-run{
  grid-column:1/-1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions.has-update{
  grid-template-columns:1fr 1fr!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-run,.anv3-save,.anv3-clr){
  width:100%!important;
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 7px!important;
  border-radius:7px!important;
  font-size:9px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-run{
  border:1px solid #3c8ce8!important;
  background:linear-gradient(145deg,#2d82e9,#1b63b5)!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(22,99,183,.28)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-save-layer{
  border-color:#35617f!important;
  background:#153048!important;
  color:#dcecf8!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-clr{
  border-color:#3d4d59!important;
  background:#17232d!important;
  color:#aebdca!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-update{
  border-color:#3a7ab9!important;
  background:#16416a!important;
  color:#e7f3fd!important;
}

/* Analiz üst navigasyonu: kaynak en başta, sonra hesap ve görünüm ayarları. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tabs{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:3px!important;
  padding:5px 6px!important;
  border-bottom:1px solid #253b4e!important;
  background:#0b1722!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab{
  height:40px!important;
  padding:4px 2px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#91a7b8!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab>svg{
  width:14px!important;height:14px!important;color:#6da9e7!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab>span{
  font-size:8px!important;font-weight:800!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab.is-active{
  border-color:#2f6fae!important;
  background:#173b5c!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 #4a9bf2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab.is-active>svg{
  color:#fff!important;
}


/* ========================================================================== 
   V68 — REFERANS GÖRSELE SADIK ARAYÜZ
   Sadece görünür UI düzeni. GIS/analiz/raster motorlarına müdahale etmez.
   ========================================================================== */
:root{
  --alya-bg-0:#07111b;
  --alya-bg-1:#0a1622;
  --alya-bg-2:#0d1b28;
  --alya-bg-3:#112333;
  --alya-line:#24394b;
  --alya-blue:#2385f5;
  --alya-blue-soft:#173e63;
  --alya-left-width:276px;
  --alya-right-width:354px;
  --alya-rail-width:72px;
  --alya-top-height:58px;
}
body.alya-reference-workspace{background:#07111b!important;}
.alya-ref-topbar{background:#081521!important;border-bottom-color:#203447!important;box-shadow:0 7px 24px rgba(0,0,0,.28)!important;}
.alya-ref-brand-name{font-size:20px!important;letter-spacing:.35px!important;}
.alya-ref-topnav{gap:2px!important;}
.alya-ref-topnav .alya-ref-nav-button{font-size:12.5px!important;font-weight:650!important;padding:0 16px!important;color:#c7d3dc!important;}
.alya-ref-topnav .alya-ref-nav-button>svg{display:none!important;}
.alya-ref-nav-button.is-active{background:#102235!important;color:#fff!important;}
.alya-ref-nav-button.is-active:after{left:12px!important;right:12px!important;height:3px!important;background:#2e8cff!important;}
.alya-ref-search-button{height:32px!important;background:#0c1a27!important;border-color:#2a4053!important;border-radius:7px!important;}
.alya-ref-module-rail{padding:8px 7px!important;background:#091722!important;border-right-color:#203447!important;}
.alya-ref-rail-button{min-height:59px!important;border-radius:8px!important;color:#c0ccd6!important;font-size:9.5px!important;}
.alya-ref-rail-button svg{width:20px!important;height:20px!important;}
.alya-ref-rail-button.is-active{background:#133252!important;border-color:#2e79c5!important;box-shadow:inset 3px 0 0 #2f8ef7!important;}
.alya-ref-left-slot{background:#0a1824!important;border-right-color:#263b4e!important;}
.alya-ref-panel-head{height:50px!important;padding:0 13px!important;background:#0d1d2a!important;}
.alya-ref-panel-title strong{text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:750!important;}
.alya-ref-panel-title small{display:none!important;}
.alya-ref-left-slot .v27-layers-search-wrap,.alya-ref-left-slot .layers-search-wrap,.alya-ref-left-slot .layer-search-wrap{margin:10px 10px 7px!important;}
.alya-ref-left-slot :is(.v27-group-title,.layer-group-title,.layer-header,.layer-section-title){font-size:8.5px!important;letter-spacing:.5px!important;text-transform:uppercase!important;color:#8298aa!important;}
.alya-ref-left-slot :is(.layer-item,.v27-layer-item){border-radius:6px!important;margin:1px 6px!important;}
.alya-ref-left-slot :is(.layer-item,.v27-layer-item).active,
.alya-ref-left-slot :is(.layer-item,.v27-layer-item).selected{background:linear-gradient(90deg,#1d63ad,#1b4b78)!important;border-color:#2e7fd0!important;}
.alya-ref-map-slot{background:#f5f4ef!important;}
.alya-ref-context-toolbar{background:rgba(8,21,32,.98)!important;border-color:#2c4356!important;box-shadow:0 15px 34px rgba(0,0,0,.32)!important;}
.alya-ref-tool-button{color:#e5edf4!important;}
.alya-ref-tool-menu{background:#0b1b28!important;border-color:#2b4357!important;}
.alya-ref-measure-dock{background:rgba(8,21,32,.98)!important;border-color:#2c4356!important;}

/* Sağ panel kabuğu */
.alya-ref-right-slot{background:#091722!important;border-left:1px solid #273c4f!important;}
.alya-ref-right-slot .rs-head{min-height:58px!important;padding:0 12px!important;background:#0c1b28!important;border-bottom:1px solid #263b4e!important;}
.alya-ref-right-slot .rs-title{font-size:14px!important;font-weight:800!important;letter-spacing:.2px!important;text-transform:uppercase!important;color:#f2f6f9!important;}
.alya-ref-right-slot .rs-body{padding:0!important;background:#091722!important;}
.alya-ref-right-slot #rsToggle{border:0!important;background:transparent!important;}

/* Analiz sekmeleri: referanstaki Veri / Hesap / Stil / Lejant / Kontur */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tabs{
  min-height:64px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;padding:0 6px!important;
  background:#0b1a27!important;border-bottom:1px solid #2a4052!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab{
  height:63px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  padding:6px 2px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#aebfcb!important;position:relative!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab>svg{width:17px!important;height:17px!important;color:#8ca9c0!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab>span{font-size:9px!important;font-weight:750!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab.is-active{background:#102b45!important;color:#fff!important;box-shadow:none!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab.is-active:after{content:"";position:absolute;left:7px;right:7px;bottom:0;height:2px;border-radius:2px;background:#3596ff;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-inspector-tab.is-active>svg{color:#52a7ff!important;}

/* Analiz gövdesi */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3{background:#091722!important;color:#dce6ee!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-scroll{padding:8px 9px 128px!important;background:#091722!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc{
  margin:0!important;border:0!important;border-bottom:1px solid #24394b!important;border-radius:0!important;background:transparent!important;overflow:visible!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc:first-child{border-top:1px solid #24394b!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-hdr{
  min-height:42px!important;padding:10px 4px!important;background:transparent!important;border:0!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc:not(.anv3-acc--closed)>.anv3-acc-hdr{background:transparent!important;border:0!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-hdr:hover{background:#0f2231!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-title{
  color:#55a5f7!important;font-size:9.5px!important;font-weight:850!important;letter-spacing:.48px!important;text-transform:uppercase!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-arrow{font-size:14px!important;color:#93a9b9!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-acc-body{padding:1px 2px 12px!important;gap:8px!important;background:transparent!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-slider-row{grid-template-columns:minmax(105px,118px) minmax(0,1fr)!important;gap:8px!important;min-height:34px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-lbl{font-size:9.5px!important;font-weight:650!important;color:#b9c7d1!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row>.anv3-hint{grid-column:auto!important;margin:0 0 0 5px!important;align-self:center!important;color:#8ca2b3!important;font-size:8px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-input,.anv3-select){
  height:31px!important;min-height:31px!important;padding:4px 8px!important;border:1px solid #314b60!important;border-radius:6px!important;background:#0b1a27!important;color:#edf4f8!important;font-size:9.5px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-input:disabled{opacity:1!important;color:#7890a3!important;background:#0a1621!important;border-color:#253b4d!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-input:focus,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-select:focus{border-color:#3b91e8!important;box-shadow:0 0 0 2px rgba(59,145,232,.14)!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-field{
  min-width:0;height:31px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;border:1px solid #314b60;border-radius:6px;background:#0b1a27;color:#edf4f8;font-size:9.5px;font-weight:700;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-field>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-field>b{flex:0 0 auto;color:#72a9d9;font-size:8px;font-weight:800;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-wide-action{
  min-height:31px!important;height:31px!important;padding:0 10px!important;border:1px solid #2d4b63!important;border-radius:6px!important;background:#102436!important;color:#c7d6e1!important;font-size:9px!important;font-weight:750!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-primary-soft{border-color:#315778!important;background:#112d45!important;color:#deebf4!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-primary-soft:hover{border-color:#3c83c5!important;background:#173a57!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-toggle{position:relative!important;text-align:center!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-toggle:after{content:"⌄";position:absolute;right:9px;top:6px;color:#809aae;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-toggle.is-open:after{content:"⌃";}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-status{padding:6px 8px!important;border:0!important;background:transparent!important;color:#72899b!important;font-size:8px!important;line-height:1.35!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-chooser{margin-top:1px!important;padding:8px!important;border:1px solid #263e52!important;border-radius:7px!important;background:#0a1824!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-source-group-title{font-size:7.5px!important;color:#6f8799!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn{min-height:39px!important;border-color:#2b465c!important;background:#102333!important;color:#b9c9d5!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn:hover{border-color:#3678b2!important;background:#153149!important;color:#fff!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-src-btn.active{border-color:#3c91e7!important;background:#17466e!important;box-shadow:none!important;}

/* Otomatik / Manuel iki seçenekli kontrol */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-segment{display:grid;grid-template-columns:1fr 1fr;gap:4px;min-width:0;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-segment-btn{height:30px;border:1px solid #30495e;border-radius:6px;background:#0b1925;color:#91a7b8;font:750 9px var(--alya-font);cursor:pointer;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-segment-btn.active{border-color:#3189df;background:#143e64;color:#fff;box-shadow:inset 0 -2px 0 #45a1fb;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-chk{min-height:31px!important;padding:5px 7px!important;border:0!important;background:transparent!important;color:#c2d0db!important;font-size:9px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-chk input{accent-color:#2788f5!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-note{padding:7px 8px!important;border:1px solid #263e51!important;background:#0a1824!important;color:#849bad!important;font-size:8.5px!important;}

/* Hesap / Stil / Kontur sekmeleri de aynı bölüm ritmini kullanır. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-fill-btns{gap:5px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-fill-btn{height:31px!important;padding:0 5px!important;border:1px solid #30495e!important;background:#0b1925!important;color:#9fb2c1!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-fill-btn.active{border-color:#3189df!important;background:#143e64!important;color:#fff!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-pal-item{border-radius:6px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-pal-item:hover,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-pal-sel{background:#102639!important;border-color:#3189df!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-pal-lbl{color:#aebfcb!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-range{accent-color:#2e8df5!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-color-pair span{color:#aebfcb!important;}

/* Alt eylemler: tek güçlü ana buton + iki ikincil buton */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions{
  grid-template-columns:1fr 1fr!important;gap:6px!important;padding:8px 9px 9px!important;background:rgba(7,17,27,.985)!important;border-top:1px solid #263b4e!important;box-shadow:0 -12px 24px rgba(0,0,0,.24)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-actions:not(.has-update)>.anv3-run{grid-column:1/-1!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-run,.anv3-save,.anv3-clr){height:34px!important;min-height:34px!important;border-radius:6px!important;font-size:9px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-run{background:#1178e8!important;border-color:#2f92f5!important;box-shadow:none!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-save-layer{background:#10283b!important;border-color:#31516a!important;color:#dce8f1!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-clr{background:#111f2b!important;border-color:#2c4050!important;color:#afbec9!important;}

/* Akıllı öneriler kalır ama ana analiz panelini kalabalıklaştırmaz. */
.alya-ref-suggestions{max-height:44px!important;overflow:hidden!important;border-top:1px solid #24394b!important;background:#0a1824!important;}
.alya-ref-suggestions .alya-ref-suggestions-body{display:none!important;}
.alya-ref-suggestions-head{min-height:43px!important;}
.alya-ref-suggestions-head small{display:none!important;}

@media (max-width:1450px){
  :root{--alya-left-width:254px;--alya-right-width:336px;}
  .alya-ref-topnav .alya-ref-nav-button{padding:0 10px!important;font-size:11.5px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-row,
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .anv3-slider-row{grid-template-columns:minmax(96px,106px) minmax(0,1fr)!important;}
}

/* V68 toolbar: referans görseldeki gibi analiz sırasında da erişilebilir. */
body.alya-reference-workspace .alya-ref-context-toolbar,
body.alya-reference-workspace:not(.alya-ref-drawing-mode) .alya-ref-context-toolbar{
  opacity:1!important;pointer-events:auto!important;transform:translateX(-50%)!important;
}
.alya-ref-context-toolbar .alya-ref-toolbar-sep{width:1px;height:29px;margin:0 2px;background:#2b4052;align-self:center;}
.alya-ref-context-toolbar .alya-ref-tool-button.icon-only{min-width:38px!important;width:38px!important;padding:0!important;}
.alya-ref-context-toolbar .alya-ref-tool-button.icon-only>span{display:none!important;}
.alya-ref-context-toolbar .alya-ref-tool-button.icon-only svg{width:17px!important;height:17px!important;}


/* ========================================================================== 
   V69 — TEK ANA MENÜ: SOL MODÜL RAYI KALDIRILDI, İKONLAR ÜST MENÜYE TAŞINDI
   Bu blok yalnızca görünür kabuğu değiştirir. GIS/analiz/çizim motorlarına dokunmaz.
   ========================================================================== */
:root{
  --alya-rail-width:0px!important;
}

/* Sol dikey Proje/Veri/Analiz/Çizim/3D/Çıktı/Araçlar rayı artık yok. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-module-rail{
  display:none!important;
  width:0!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
}

/* Çalışma alanı: Katmanlar | Harita | Sağ özellik/analiz paneli */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-body{
  grid-template-columns:var(--alya-left-width) minmax(300px,1fr) var(--alya-right-width)!important;
}
body.alya-reference-workspace.alya-ref-left-collapsed #alyaReferenceWorkspace .alya-ref-body{
  grid-template-columns:0 minmax(300px,1fr) var(--alya-right-width)!important;
}
body.alya-reference-workspace.alya-ref-right-collapsed #alyaReferenceWorkspace .alya-ref-body{
  grid-template-columns:var(--alya-left-width) minmax(300px,1fr) 0!important;
}
body.alya-reference-workspace.alya-ref-left-collapsed.alya-ref-right-collapsed #alyaReferenceWorkspace .alya-ref-body{
  grid-template-columns:0 minmax(300px,1fr) 0!important;
}

/* Üst menü, eski sol menünün ikonlarını da taşır. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topbar{
  grid-template-columns:var(--alya-left-width) minmax(480px,1fr) auto!important;
  gap:12px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav{
  gap:3px!important;
  overflow:visible!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button{
  min-width:72px!important;
  height:48px!important;
  align-self:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 12px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  color:#c7d4df!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button>svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button:hover{
  background:#102232!important;
  border-color:#263f54!important;
  color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button.is-active{
  background:linear-gradient(180deg,#153354 0%,#10263d 100%)!important;
  border-color:#2c6397!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(62,145,230,.08)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button.is-active:after{
  left:10px!important;
  right:10px!important;
  bottom:-5px!important;
  height:3px!important;
  background:#2f8ef7!important;
}

/* Modül ikon renkleri, kaldırılan sol menüdeki renklerle aynı. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="project"]>svg{color:#60a5fa!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="data"]>svg{color:#35c6c9!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="analysis"]>svg{color:#a78bfa!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="drawing"]>svg{color:#4f9cff!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="three"]>svg{color:#42d59b!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="export"]>svg{color:#f4b74a!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button[data-ref-module="tools"]>svg{color:#f08b51!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-nav-button.is-active>svg{
  filter:drop-shadow(0 0 6px currentColor)!important;
}

/* Katman paneli artık ekranın gerçek sol kenarından başlar. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot{
  grid-column:1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-map-slot{
  grid-column:2!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot{
  grid-column:3!important;
}

@media (max-width:1600px){
  :root{--alya-rail-width:0px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topbar{
    grid-template-columns:var(--alya-left-width) minmax(430px,1fr) auto!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button{
    min-width:66px!important;padding:0 9px!important;font-size:11.5px!important;gap:6px!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button>svg{width:17px!important;height:17px!important;}
}
@media (max-width:1320px){
  :root{--alya-rail-width:0px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topbar{
    grid-template-columns:var(--alya-left-width) minmax(380px,1fr) auto!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button{
    min-width:56px!important;padding:0 7px!important;font-size:10.5px!important;gap:5px!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav .alya-ref-nav-button>svg{
    display:block!important;width:16px!important;height:16px!important;
  }
}
@media (max-width:1080px){
  :root{--alya-rail-width:0px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot{left:0!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-body{
    grid-template-columns:0 minmax(260px,1fr) var(--alya-right-width)!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topbar{
    grid-template-columns:150px minmax(360px,1fr) auto!important;
  }
}
@media (max-width:820px){
  :root{--alya-rail-width:0px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-body{
    grid-template-columns:0 minmax(220px,1fr) 0!important;
  }
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-topnav{overflow-x:auto!important;justify-content:flex-start!important;}
}

/* ========================================================================== 
   V71 — SAĞ PANEL / KOORDİNAT / HARİTA GEZİNME DÜZELTMELERİ
   ========================================================================== */

/* Yenile düğmesi ALYA GIS markasının hemen önünde. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-brand-refresh{
  width:30px!important;height:30px!important;display:grid!important;place-items:center!important;
  flex:0 0 30px!important;padding:0!important;border:1px solid #29435a!important;border-radius:8px!important;
  background:#102333!important;color:#7fc0ff!important;cursor:pointer!important;box-shadow:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-brand-refresh:hover{
  background:#17334a!important;border-color:#3b79ad!important;color:#fff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-brand-refresh svg{width:16px!important;height:16px!important;}

/* Analiz dışındaki panellerde analiz sekme şeridi kesinlikle görünmez. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-inspector-tabs[hidden]{display:none!important;}

/* Eski sağ panel şablonlarını da tek-açık accordion davranışına uygun göster. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc{overflow:hidden!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc-head{
  position:relative!important;cursor:pointer!important;user-select:none!important;padding-right:28px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc-head::after{
  content:'›';position:absolute;right:10px;top:50%;transform:translateY(-50%) rotate(90deg);color:#7894aa;font-size:16px;transition:transform .15s;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc--closed>.alya-ref-auto-acc-head::after{
  transform:translateY(-50%);
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc--closed>:not(.alya-ref-auto-acc-head){display:none!important;}

/* 2D / 3D / zoom çubuğu artık haritanın SOL tarafında. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-map-nav{
  left:13px!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;
}

/* Alt durum çubuğunda koordinatlar her zaman görünür. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-slot{
  display:flex!important;align-items:center!important;min-width:0!important;overflow:hidden!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-primary{
  flex:1 1 120px!important;min-width:70px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-coords{
  gap:5px!important;font-variant-numeric:tabular-nums!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-coords strong{
  min-width:68px!important;text-align:right!important;color:#d8e8f4!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-coord-sep{margin-left:7px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace [data-ref-tool="undo"]:disabled,
body.alya-reference-workspace #alyaReferenceWorkspace [data-ref-tool="redo"]:disabled{
  opacity:.32!important;cursor:default!important;pointer-events:none!important;
}

@media (max-width:1380px){
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-primary{max-width:120px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-item{padding-left:7px!important;padding-right:7px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-coords strong{min-width:58px!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-item:nth-of-type(5){display:none!important;}
}

/* ========================================================================== 
   V72 — SAĞ PANEL NETLİĞİ + ALTLIK KONTROLÜ + KOMPAKT ALTLIKLAR
   Yalnız görünür UI düzenidir; mevcut GIS/analiz/çıktı motorlarına dokunmaz.
   ========================================================================== */

/* Analiz üst sekmeleri yalnız gerçek analiz panelinde görünür. Legacy DOM'da
   eski .anv3 düğümleri kalsa bile panel başlığı JS tarafından doğrulanır. */
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar:not([data-alya-panel-type="analysis"]) > .alya-ref-inspector-tabs{
  display:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar[data-alya-panel-type="analysis"] > .alya-ref-inspector-tabs{
  display:grid!important;
}

/* Sağ panel alt menü başlıkları: açık içerikten net şekilde ayrılan tek dil. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc,.yaz-acc,.gnd-acc).alya-ref-enhanced-acc{
  margin:0 0 7px!important;
  border:1px solid #29465b!important;
  border-radius:8px!important;
  background:#0b1824!important;
  overflow:hidden!important;
  box-shadow:0 1px 0 rgba(255,255,255,.015)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-hdr,.yaz-acc-hdr,.gnd-acc-hdr).alya-ref-enhanced-acc-head{
  min-height:42px!important;
  padding:7px 9px!important;
  border:0!important;
  border-left:3px solid #2c79c9!important;
  border-bottom:1px solid transparent!important;
  border-radius:0!important;
  background:linear-gradient(90deg,#142b3d 0%,#102333 100%)!important;
  color:#e7f0f7!important;
  box-shadow:none!important;
  transform:none!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-hdr,.yaz-acc-hdr,.gnd-acc-hdr).alya-ref-enhanced-acc-head:hover{
  background:linear-gradient(90deg,#19364c 0%,#142a3d 100%)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(
  .anv3-acc:not(.anv3-acc--closed),
  .yaz-acc:not(.yaz-acc--closed),
  .gnd-acc:not(.gnd-acc--closed)
) > .alya-ref-enhanced-acc-head{
  border-left-color:#54a8ff!important;
  border-bottom-color:#315069!important;
  background:linear-gradient(90deg,#173955 0%,#132b3e 100%)!important;
  box-shadow:inset 0 -1px 0 rgba(85,170,255,.08)!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-acc-icon{
  width:25px!important;height:25px!important;display:grid!important;place-items:center!important;
  flex:0 0 25px!important;margin-right:7px!important;border:1px solid #2f6593!important;border-radius:6px!important;
  background:#0d3656!important;color:#70b9ff!important;font-size:0!important;line-height:1!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar .alya-ref-acc-icon .alya-ref-acc-svg{
  width:14px!important;height:14px!important;display:block!important;color:#78beff!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-left,.yaz-acc-left,.gnd-acc-left){
  min-width:0!important;display:flex!important;align-items:center!important;gap:0!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-title,.yaz-acc-title,.gnd-acc-title){
  min-width:0!important;color:#edf5fb!important;font-size:9.5px!important;font-weight:800!important;
  letter-spacing:.35px!important;text-transform:uppercase!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-arrow,.yaz-acc-arr,.gnd-acc-arr){
  margin-left:auto!important;color:#93aec2!important;font-size:16px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot #rightSidebar :is(.anv3-acc-body,.yaz-acc-body,.gnd-acc-body){
  padding:9px 9px 11px!important;border-top:0!important;background:#091722!important;
}

/* Generic sağ panel bölümleri de başlık olarak içerikten ayrılır. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc{
  margin-bottom:7px!important;border:1px solid #29465b!important;border-radius:8px!important;background:#0b1824!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-auto-acc-head{
  min-height:40px!important;display:flex!important;align-items:center!important;padding:8px 30px 8px 10px!important;
  border-left:3px solid #2c79c9!important;background:linear-gradient(90deg,#142b3d,#102333)!important;
  color:#edf5fb!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.3px!important;
}

/* Sol Altlıklar paneli: panel genişlemeden bütün kartları sığdır. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps>.layer-box{
  padding:4px 6px 8px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;padding:4px 2px 6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-btn{
  min-width:0!important;min-height:34px!important;height:auto!important;gap:5px!important;
  padding:5px 6px!important;border-radius:6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-ico{
  width:19px!important;height:19px!important;flex:0 0 19px!important;font-size:13px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-title{
  min-width:0!important;font-size:8.5px!important;line-height:1.15!important;font-weight:700!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-opacity{
  padding:5px 5px 7px!important;margin-top:2px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-opacity-row{
  margin-bottom:3px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps :is(.basemap-opacity-label,.basemap-opacity-val){
  font-size:9px!important;
}

/* Sol paneldeki hızlı işlem düğmeleri biraz daha kompakt. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-quickbar{
  gap:4px!important;margin:0 8px 6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-quickbar .lq-btn{
  width:26px!important;height:26px!important;border-radius:6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot .layer-quickbar .lq-btn svg{
  width:13px!important;height:13px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-panel-actions button{
  width:26px!important;height:26px!important;border-radius:6px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-panel-actions svg{width:13px!important;height:13px!important;}

/* Haritada sürekli duran tek küçük Altlığı Göster / Kapat düğmesi. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle{
  position:absolute;left:13px;bottom:70px;z-index:592;width:34px;height:34px;display:grid;place-items:center;
  padding:0;border:1px solid rgba(80,113,141,.5);border-radius:8px;background:rgba(9,22,33,.96);color:#98aec0;
  box-shadow:0 9px 24px rgba(0,0,0,.28);cursor:pointer;transition:.14s;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle:hover{
  background:#173149;color:#fff;border-color:#4389ca;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle.is-active{
  background:#174d82;color:#fff;border-color:#4a96ef;box-shadow:0 5px 16px rgba(47,131,247,.24);
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle svg{width:17px;height:17px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-state{
  position:absolute;right:4px;bottom:4px;width:5px;height:5px;border-radius:50%;background:#64798a;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle.is-active .alya-ref-basemap-state{background:#54d68b;}

@media (max-width:1180px){
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-slot #side-panel-basemaps .basemap-grid{grid-template-columns:1fr 1fr!important;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-basemap-toggle{left:9px!important;}
}

/* ==================== V73 · VERİ KATMANLARI + DİLİM ==================== */
/* Sayısal kaynaklar sol Katmanlar ağacından ayrıldı; sağ Veri Katmanları panelinde yönetilir. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-left-source-data-group{display:none!important;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-right-slot .alya-ref-data-panel{
  display:flex;flex-direction:column;gap:8px;padding:10px;color:#d9e7f2;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;
  border:1px solid #28465c;border-radius:9px;background:linear-gradient(180deg,#13283a,#0d1e2d);
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-panel-head>div{min-width:0;display:flex;flex-direction:column;gap:2px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-panel-head strong{display:flex;align-items:center;gap:7px;font-size:12px;color:#f1f7fb;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-panel-head strong svg{width:15px;height:15px;color:#3f9cff;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-panel-head small{font-size:8.5px;line-height:1.3;color:#8299aa;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-add{
  flex:0 0 auto;min-height:31px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #3487df;
  border-radius:7px;background:#1769b2;color:#fff;font-size:9px;font-weight:800;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-add:hover{background:#2180d5;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-add svg{width:13px;height:13px;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-tools{display:flex;flex-direction:column;gap:6px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-search{
  height:32px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid #274458;border-radius:7px;background:#091722;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-search svg{width:13px;height:13px;color:#6f899d;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-search input{
  min-width:0;flex:1;border:0;outline:0;background:transparent;color:#e8f1f7;font-size:10px;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-search input::placeholder{color:#667d90;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-filters button{
  min-width:0;height:31px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 4px;border:1px solid #274458;
  border-radius:6px;background:#0d1e2c;color:#8fa6b7;font-size:8px;font-weight:700;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-filters button svg{width:11px;height:11px;flex:0 0 11px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-filters button.is-active{
  color:#fff;background:#174d82;border-color:#3589e0;box-shadow:inset 0 -2px 0 #3a9bff;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-summary{
  display:flex;align-items:center;justify-content:space-between;padding:0 2px;color:#71899c;font-size:8.5px;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-summary strong{color:#dce9f2;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-list{display:flex;flex-direction:column;gap:5px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-row{
  display:grid;grid-template-columns:28px minmax(0,1fr) 54px 28px 28px;align-items:center;gap:5px;min-height:48px;padding:5px;
  border:1px solid #263f52;border-radius:8px;background:#0b1925;transition:.12s;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-row:hover{border-color:#356486;background:#0d2130;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-row.is-active{border-color:#3188e5;background:#102943;box-shadow:inset 3px 0 0 #2f8df4;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-row.is-hidden{opacity:.58;}
body.alya-reference-workspace #alyaReferenceWorkspace :is(.alya-ref-data-vis,.alya-ref-data-icon-btn){
  width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #2a465a;border-radius:6px;background:#102331;color:#8fa9ba;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace :is(.alya-ref-data-vis,.alya-ref-data-icon-btn):hover{color:#fff;border-color:#3a86c7;background:#17324a;}
body.alya-reference-workspace #alyaReferenceWorkspace :is(.alya-ref-data-vis,.alya-ref-data-icon-btn) svg{width:13px;height:13px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-copy{
  min-width:0;display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:7px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-type{
  width:29px;height:29px;display:grid;place-items:center;border:1px solid #28506c;border-radius:7px;background:#112a3c;color:#46a4ff;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-type svg{width:15px;height:15px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-copy>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;color:#edf5fa;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#728ca0;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-opacity{width:54px;height:16px;accent-color:#2f8df4;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty{
  min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px;text-align:center;
  border:1px dashed #29465a;border-radius:9px;background:#091722;color:#7990a1;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty>svg{width:28px;height:28px;color:#337fc0;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty strong{font-size:11px;color:#d8e6ef;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty small{max-width:220px;font-size:8.5px;line-height:1.45;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty button{
  margin-top:3px;height:30px;display:flex;align-items:center;gap:5px;padding:0 10px;border:1px solid #3487df;border-radius:6px;background:#1769b2;color:#fff;font-size:9px;font-weight:800;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty button svg{width:12px;height:12px;}

/* Alt durum çubuğunda aktif harita merkezine göre 3° dilim orta meridyeni. */
body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-status-crs{gap:5px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace #alyaRefZone{
  display:inline-flex;align-items:center;height:18px;padding:0 6px;margin-left:2px;border:1px solid #24485f;border-radius:5px;
  background:#0e2230;color:#46a5ff;font-size:8px;font-weight:800;white-space:nowrap;
}

@media (max-width:1180px){
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-filters{grid-template-columns:repeat(3,minmax(0,1fr));}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-row{grid-template-columns:26px minmax(0,1fr) 46px 26px 26px;gap:4px;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-opacity{width:46px;}
}

/* ==================== V74 · VERİ KATMAN AĞACI ====================
   Sağ Veri paneli artık klasik düz liste değil; özgün GIS grup/katman ağacı,
   katman araçları ve KML/KMZ iç grup görünürlüğü ile çalışır. */
body.alya-reference-workspace #alyaReferenceWorkspace #rightSidebar[data-alya-panel-type="data-layers"] .rs-body{
  padding:0 6px 10px!important;overflow:auto!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-panel{
  gap:6px!important;padding:8px 0 10px!important;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-top{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 8px 7px;
  border-bottom:1px solid rgba(78,111,137,.25);background:linear-gradient(180deg,rgba(18,39,55,.74),rgba(10,25,37,.2));
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title{min-width:0;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:7px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title>span{
  width:31px;height:31px;display:grid;place-items:center;border:1px solid #285377;border-radius:8px;background:#102a3f;color:#4fa7fb;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title>span svg{width:16px;height:16px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title>div{min-width:0;display:flex;flex-direction:column;gap:1px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title strong{font-size:11px;color:#edf6fb;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7.8px;color:#7890a2;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-title small b{color:#bcd2e1;font-weight:800;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-add{height:30px!important;min-height:30px!important;padding:0 8px!important;border-radius:6px!important;font-size:8.5px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-add svg{width:12px!important;height:12px!important;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-search{margin:0 8px;height:30px!important;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-search button{
  width:22px;height:22px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#617b8f;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-search button:hover{background:#142b3d;color:#dce9f3;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-search button svg{width:11px;height:11px;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 8px 2px;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar button{
  min-width:0;height:28px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 5px;border:1px solid #27455a;border-radius:6px;
  background:#0d1e2b;color:#8fa7b8;font-size:7.5px;font-weight:750;white-space:nowrap;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar button:hover{border-color:#387ab4;background:#143047;color:#eef7fd;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar button svg{width:11px;height:11px;flex:0 0 11px;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree{display:flex;flex-direction:column;gap:6px;padding:0 8px 8px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-group{
  overflow:hidden;border:1px solid #263f53;border-radius:8px;background:#091824;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-head{
  min-height:39px;display:grid;grid-template-columns:27px minmax(0,1fr) 28px;align-items:center;gap:3px;padding:3px 4px;
  background:linear-gradient(180deg,#142a3a,#102231);border-bottom:1px solid #263f53;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-group.is-collapsed .alya-data-tree-head{border-bottom-color:transparent;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toggle,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-eye{
  width:27px;height:27px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#8199aa;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toggle:hover,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-eye:hover{border-color:#315b78;background:#173146;color:#fff;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toggle svg,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-eye svg{width:12px;height:12px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-eye.is-mixed{color:#f5c15d;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-label{
  min-width:0;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-icon{
  width:26px;height:26px;display:grid;place-items:center;border:1px solid #31546c;border-radius:6px;background:#112c3e;color:#4ba4f5;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-icon svg{width:14px;height:14px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-label>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:1px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-label strong{font-size:9px;letter-spacing:.3px;color:#e8f2f8;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-label small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7.1px;color:#718b9d;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-label em{
  min-width:20px;height:18px;display:grid;place-items:center;padding:0 5px;border:1px solid #31506a;border-radius:9px;background:#0c1c29;color:#98b3c6;font-size:7px;font-style:normal;font-weight:800;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-content{display:flex;flex-direction:column;gap:4px;padding:5px;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-scale-head{
  min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 6px 2px 8px;margin:1px 0;
  border-left:2px solid #2f7bc1;background:#0e2130;color:#87a4b8;font-size:7.5px;font-weight:800;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-scale-head span{display:flex;align-items:center;gap:5px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-scale-head svg{width:10px;height:10px;color:#4a9be7;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-scale-head em{font-style:normal;color:#6f899d;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-card{
  overflow:hidden;border:1px solid #22394b;border-radius:7px;background:#0b1b27;transition:border-color .12s,background .12s,opacity .12s;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-card:hover{border-color:#315873;background:#0d2130;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-card.is-active{border-color:#3188e5;background:#10283e;box-shadow:inset 3px 0 0 #2f8df4;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-card.is-hidden{opacity:.58;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-card.is-expanded{opacity:1;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-main{
  min-height:42px;display:grid;grid-template-columns:27px minmax(0,1fr) auto 27px;align-items:center;gap:4px;padding:4px;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-eye,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-more{
  width:27px;height:27px;display:grid;place-items:center;padding:0;border:1px solid #28465b;border-radius:6px;background:#102433;color:#819caf;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-eye:hover,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-more:hover{border-color:#3d82bd;background:#17334b;color:#fff;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-eye svg,
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-more svg{width:12px;height:12px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-choose{
  min-width:0;display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-type{
  width:27px;height:27px;display:grid;place-items:center;border:1px solid #294b64;border-radius:6px;background:#11283a;color:#48a0ee;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-type svg{width:13px;height:13px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-copy{min-width:0;display:flex;flex-direction:column;gap:1px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.8px;color:#e9f2f8;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;color:#6f889b;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-badges{display:flex;align-items:center;gap:3px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-badges>span:not(.alya-data-layer-badge){width:16px;height:16px;display:grid;place-items:center;color:#e7bc61;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-badges svg{width:10px;height:10px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-badge{height:16px;display:grid;place-items:center;padding:0 4px;border:1px solid #594c7d;border-radius:4px;background:#201d35;color:#b8a3ee;font-size:6px;font-weight:900;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-detail{
  display:flex;flex-direction:column;gap:6px;padding:6px 7px 7px;border-top:1px solid #274255;background:#0a1925;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-opacity-row{
  display:grid;grid-template-columns:46px minmax(0,1fr) 32px;align-items:center;gap:6px;min-height:25px;color:#8da4b5;font-size:7.5px;font-weight:700;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-opacity-row input{min-width:0;width:100%;accent-color:#2f8df4;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-opacity-row output{text-align:right;color:#b8cad6;font-size:7px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions button{
  min-width:0;height:31px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px;border:1px solid #29485e;border-radius:6px;
  background:#102333;color:#90a8b9;font-size:6.7px;font-weight:750;cursor:pointer;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions button:hover{border-color:#3c82bd;background:#17334a;color:#fff;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions button svg{width:11px;height:11px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions button.is-danger{border-color:#55333a;color:#d9949d;background:#28191e;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions button.is-danger:hover{border-color:#a84a59;background:#45212a;color:#ffd8dd;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-groups{overflow:hidden;border:1px solid #294356;border-radius:6px;background:#081620;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-head{
  min-height:27px;display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:5px;padding:3px 7px;border-bottom:1px solid #263f51;background:#102433;color:#9db3c3;font-size:7px;font-weight:800;
}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-head svg{width:11px;height:11px;color:#5aa4e7;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-head em{font-style:normal;color:#678399;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-row{min-height:30px;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:4px;padding:2px 5px;border-top:1px solid rgba(49,75,94,.35);}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-row:first-of-type{border-top:0;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-eye{width:24px;height:24px;display:grid;place-items:center;padding:0;border:1px solid #254255;border-radius:5px;background:#0e2030;color:#7594a9;cursor:pointer;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-eye:disabled{opacity:.35;cursor:default;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-eye.is-off{opacity:.55;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-eye.is-mixed{color:#f2c060;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-eye svg{width:10px;height:10px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-copy{min-width:0;display:flex;flex-direction:column;gap:1px;padding-left:calc(var(--native-depth,0) * 7px);}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cddce6;font-size:7.5px;}
body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-native-copy small{color:#678195;font-size:6.5px;}

body.alya-reference-workspace #alyaReferenceWorkspace .alya-ref-data-empty.is-compact{min-height:110px;}

@media (max-width:1350px){
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar button span{display:none;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-tree-toolbar button{height:27px;}
  body.alya-reference-workspace #alyaReferenceWorkspace .alya-data-layer-actions{grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* V76 — Seçim split-button + alt seçim menüsü */
.alya-ref-split-tool{
  display:flex!important;
  align-items:stretch!important;
  min-width:78px!important;
  height:48px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  overflow:hidden!important;
}
.alya-ref-split-tool:hover{
  border-color:#304b61!important;
  background:#1a2c3c!important;
}
.alya-ref-split-tool .alya-ref-tool-button-split-main{
  min-width:58px!important;
  height:46px!important;
  padding:4px 5px!important;
  border:0!important;
  border-radius:6px 0 0 6px!important;
  background:transparent!important;
}
.alya-ref-split-tool .alya-ref-tool-button-split-main:hover{
  border-color:transparent!important;
  background:#17304a!important;
}
.alya-ref-split-tool .alya-ref-tool-button-split-main.is-active{
  background:linear-gradient(145deg,#205ea9,#17497f)!important;
  box-shadow:none!important;
}
.alya-ref-tool-split-arrow{
  width:20px!important;
  min-width:20px!important;
  height:46px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  border:0!important;
  border-left:1px solid #2a4154!important;
  border-radius:0 6px 6px 0!important;
  background:transparent!important;
  color:#7890a3!important;
  font:800 11px var(--alya-font)!important;
  cursor:pointer!important;
}
.alya-ref-tool-split-arrow:hover{background:#17304a!important;color:#fff!important;}
.alya-ref-selection-menu{min-width:236px!important;grid-template-columns:1fr 1fr!important;}
.alya-ref-selection-menu button:nth-of-type(4),
.alya-ref-selection-menu button:nth-of-type(5),
.alya-ref-selection-menu button:nth-of-type(6){border-top:1px solid rgba(62,86,106,.26)!important;}
@media (max-width:1100px){
  .alya-ref-split-tool{min-width:70px!important;}
  .alya-ref-split-tool .alya-ref-tool-button-split-main{min-width:50px!important;}
}


/* ===== V77: çalışan araçlar + CAD/GIS mouse/keyboard ergonomisi ===== */
.alya-ref-map-slot .leaflet-container.alya-ref-middle-pan,
.alya-ref-map-slot .leaflet-container.alya-ref-middle-pan *{cursor:grabbing!important;}
.alya-ref-map-slot .leaflet-container.alya-ref-coordinate-pick,
.alya-ref-map-slot .leaflet-container.alya-ref-coordinate-pick *{cursor:crosshair!important;}
.alya-ref-measure-button.is-active{background:linear-gradient(145deg,#205ea9,#17497f)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #3b82d1,0 5px 14px rgba(18,80,148,.25)!important;}
.alya-ref-tool-button:focus-visible,.alya-ref-measure-button:focus-visible,.alya-ref-tool-split-arrow:focus-visible{outline:2px solid #58a6ff!important;outline-offset:2px!important;}

/* ============================================================
   ALYA GIS V81 — Engineering tools (profile / cut-fill volume)
   ============================================================ */
.alya-eng-modal{position:fixed;inset:0;z-index:10080;display:grid;place-items:center;padding:28px;background:rgba(2,10,18,.58);backdrop-filter:blur(2px);}
.alya-eng-card{width:min(860px,calc(100vw - 48px));max-height:calc(100vh - 56px);overflow:auto;border:1px solid #29465f;border-radius:12px;background:#091b29;color:#e8f2fa;box-shadow:0 24px 80px rgba(0,0,0,.48);font-family:var(--alya-font,Inter,"Segoe UI",sans-serif);}
.alya-eng-card>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#0c2233;border-bottom:1px solid #29465f;}
.alya-eng-card>header>div{display:grid;gap:2px}.alya-eng-card>header strong{font-size:14px;letter-spacing:.02em}.alya-eng-card>header small{font-size:10px;color:#84a0b7;font-weight:600;}
.alya-eng-close{width:32px;height:32px;border:1px solid #31516c;border-radius:8px;background:#102b40;color:#c9dbea;font-size:22px;line-height:1;cursor:pointer}.alya-eng-close:hover{background:#183c58;color:#fff;}
.alya-eng-body{padding:16px;display:grid;gap:14px}.alya-eng-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #29465f;background:#0a1d2c;}
.alya-eng-footer button{min-width:112px;height:36px;border-radius:8px;border:1px solid #31516c;background:#112b40;color:#e7f1f8;font-weight:700;cursor:pointer}.alya-eng-footer button.primary{border-color:#2d82e8;background:#1777df;color:#fff}.alya-eng-footer button:hover{filter:brightness(1.1)}
.alya-eng-progress{padding:18px;display:grid;gap:12px;border:1px solid #24445e;border-radius:10px;background:#0d2639}.alya-eng-progress>strong{font-size:13px}.alya-eng-progress>small{font-size:10px;color:#8ca8bd}.alya-eng-progress>div{height:7px;overflow:hidden;border-radius:999px;background:#18354d}.alya-eng-progress i{display:block;width:4%;height:100%;border-radius:inherit;background:#2f8cff;transition:width .15s linear;}
.alya-eng-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.alya-eng-stats>span{min-width:0;padding:10px;border:1px solid #24445e;border-radius:9px;background:#0d2639;display:grid;gap:4px}.alya-eng-stats small{font-size:9px;color:#7f9bb1;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.alya-eng-stats strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.alya-eng-profile-svg{display:block;width:100%;height:auto;min-height:260px;border:1px solid #24445e;border-radius:10px;background:#071722}.alya-eng-profile-svg .grid line{stroke:#1c3850;stroke-width:1}.alya-eng-profile-svg .grid text,.alya-eng-profile-svg .xt text{fill:#7898b0;font-size:10px;text-anchor:end}.alya-eng-profile-svg .xt text{text-anchor:middle}.alya-eng-profile-svg .axes line{stroke:#59758a;stroke-width:1}.alya-eng-profile-svg .area{fill:rgba(47,140,255,.14);stroke:none}.alya-eng-profile-svg .line{fill:none;stroke:#47a0ff;stroke-width:2.2;vector-effect:non-scaling-stroke;}
.alya-eng-volume-controls{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:13px;border:1px solid #24445e;border-radius:10px;background:#0d2639}.alya-eng-volume-controls label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.alya-eng-volume-controls input{width:120px;height:34px;padding:0 9px;border:1px solid #31516c;border-radius:7px;background:#071b29;color:#fff;font:700 12px inherit}.alya-eng-volume-controls small{color:#829eb3;font-size:10px;}
.alya-eng-volume-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.alya-eng-volume-results>span{padding:14px;border:1px solid #2b4a63;border-radius:10px;background:#0c2638;display:grid;gap:5px}.alya-eng-volume-results small{font-size:9px;color:#86a5bc;text-transform:uppercase;font-weight:800}.alya-eng-volume-results strong{font-size:16px;color:#f3f8fb}.alya-eng-empty{padding:24px;text-align:center;color:#93aabd;}
@media(max-width:780px){.alya-eng-modal{padding:10px}.alya-eng-card{width:100%;max-height:calc(100vh - 20px)}.alya-eng-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.alya-eng-volume-controls{align-items:stretch;flex-direction:column}.alya-eng-volume-results{grid-template-columns:1fr}.alya-eng-profile-svg{min-height:200px}}
