/* Diamond Caelum AI v0.9 — Kozmik Renk Kartelası + Evrensel Kayan Pencere & Sınırsız Görsel Tuvali Standardı */
:root{
  color-scheme:dark;
  /* Kozmik Maviler */
  --dc-night-navy:#0A1124;
  --dc-space-blue:#1B2E5A;
  --dc-sirius-blue:#2B4C8F;
  --dc-cosmic-blue:#3E6EC4;
  --dc-light-blue:#6F96E8;
  --dc-ice-blue:#A8C9FF;
  /* Menekşe ve Lavanta */
  --dc-deep-violet:#3A1F6B;
  --dc-purple:#5B3493;
  --dc-violet:#7B5AAE;
  --dc-lavender:#9A86B5;
  --dc-light-lavender:#C3B5E0;
  --dc-ice-lavender:#D3D0E8;
  /* Pembe ve Mercan */
  --dc-deep-fuchsia:#8E2B6C;
  --dc-magenta:#B84A9B;
  --dc-pink:#D36BA7;
  --dc-powder-pink:#DCB0C3;
  --dc-coral:#E77F86;
  --dc-light-coral:#FF9C9C;
  /* Çiyan / Camgöbeği (Cyan) */
  --dc-deep-cyan:#0D7896;
  --dc-ocean-cyan:#1497B2;
  --dc-nebula-cyan:#29BBD2;
  --dc-glow-cyan:#60D7E8;
  --dc-ice-cyan:#A0ECF4;
  --dc-pure-cyan:#00FFFF;
  /* Nötr ve Arayüz Renkleri */
  --dc-bg-dark:#0E0F1B;
  --dc-panel-base:#1A2238;
  --dc-surface:#27345C;
  --dc-surface-light:#354A78;
  --dc-divider:#506A9E;
  --dc-frame:#7D97C2;
  /* Fonksiyon Renkleri */
  --dc-ok:#4CD19B;
  --dc-warn:#F7C948;
  --dc-err:#FF6B6B;
  --dc-info:#5AA8FF;
  --dc-select:#EAF2FF;

  --ink:#EAF2FF;
  --muted:#D3D0E8;
  --subtle:#A8C9FF;
  --line:rgba(125,151,194,0.38);
  --line2:rgba(195,181,224,0.36);
  --cyan:#60D7E8;
  --pink:#D36BA7;
  --coral:#E77F86;
  --lav:#C3B5E0;
  --navy:#1B2E5A;
  --violet:#5B3493;
  --panel:rgba(39,52,92,0.54);
  --panel-strong:rgba(27,46,90,0.82);
  --radius:16px;
  --serif:Georgia,'Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Arial,sans-serif;
  --shadow:0 14px 36px rgba(10,17,36,0.28);
  font-family:var(--sans);
  font-size:12px;
  font-synthesis:none;
}
*{box-sizing:border-box}
body,html{margin:0;height:100%;min-height:100%;width:100%}
body{color:var(--ink);background:var(--dc-space-blue);font-size:12px;overflow:hidden}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus{outline:none}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
input,textarea,select{background:rgba(26,34,56,0.56);border:1px solid rgba(168,201,255,0.45);border-radius:9px;padding:10px 11px;outline:none;min-width:0}
textarea{resize:none}
button:disabled{opacity:.48;cursor:not-allowed}
button::-moz-focus-inner{border:0}
*{scrollbar-color:rgba(195,181,224,0.42) transparent;scrollbar-width:thin}
h1,h2,h3,p{margin-top:0}
.sr-only{position:absolute!important;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}

#app{
  position:fixed;inset:0;width:100%;height:100%;overflow:hidden;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(ellipse 44% 46% at 8% 18%, rgba(41,187,210,0.46) 0%, transparent 90%),
    radial-gradient(ellipse 56% 76% at 90% 20%, rgba(211,107,167,0.46) 0%, transparent 76%),
    radial-gradient(ellipse 60% 70% at 44% 88%, rgba(123,90,174,0.52) 0%, transparent 82%),
    linear-gradient(125deg, #1B2E5A 0%, #2B4C8F 36%, #5B3493 68%, #3E6EC4 100%);
  position:relative;
  isolation:isolate;
}
#app:before{content:'';position:absolute;z-index:-1;inset:0;background:url('assets/stars.svg') center /cover no-repeat;opacity:.82;pointer-events:none}
#app:after{content:'';position:absolute;z-index:-1;left:0;right:0;bottom:0;top:calc(66px + env(safe-area-inset-top, 0px));background:radial-gradient(ellipse 18% 18% at 26% 10%,rgba(96,215,232,0.42),transparent),radial-gradient(ellipse 38% 24% at 67% 6%,rgba(231,127,134,0.38),transparent),radial-gradient(ellipse 26% 24% at 81% 72%,rgba(211,107,167,0.36),transparent);filter:blur(31px);pointer-events:none}

.app-header{height:calc(66px + env(safe-area-inset-top, 0px));min-height:calc(66px + env(safe-area-inset-top, 0px));display:flex;align-items:center;gap:12px;padding:env(safe-area-inset-top, 0px) 18px 0 20px;background:linear-gradient(90deg,rgba(22,38,76,0.95),rgba(74,42,122,0.95) 50%,rgba(145,58,128,0.93));border-bottom:1px solid rgba(195,181,224,0.46);box-shadow:0 5px 23px rgba(10,17,36,0.28);z-index:30;transform:translateZ(0);-webkit-transform:translateZ(0)}
.brand{display:flex;align-items:center;gap:9px;min-width:278px}
.brand-gem{font-size:36px;font-family:var(--serif);font-weight:200;color:#A0ECF4;line-height:1;text-shadow:0 0 14px #60D7E8}
.brand-text{font-family:var(--serif);font-size:19px;letter-spacing:.35px;white-space:nowrap;text-shadow:0 1px 7px rgba(10,17,36,0.45)}
.brand-text small{display:block;font:600 7px var(--sans);letter-spacing:2.4px;color:#D3D0E8;margin-top:2px}
.mode-tabs{display:flex;gap:16px;border-left:1px solid rgba(211,208,232,0.45);padding-left:22px;height:35px;align-items:stretch}
.text-tab{background:transparent;border:0;border-radius:0;color:#D3D0E8;min-width:76px;padding:5px 7px 10px;font-size:13px;position:relative}
.text-tab.active{color:#EAF2FF}
.text-tab.active:after{content:'';position:absolute;left:12%;right:12%;height:2px;bottom:2px;background:linear-gradient(90deg,var(--dc-glow-cyan),var(--dc-coral));border-radius:4px;box-shadow:0 0 11px var(--dc-light-coral)}
.header-spacer{flex:1}
.header-search{display:flex;align-items:center;gap:8px;height:34px;max-width:235px;width:21%;border:1px solid rgba(195,181,224,0.48);border-radius:12px;background:rgba(26,34,56,0.52);padding:0 10px;color:#EAF2FF}
.header-search span{font-size:19px;line-height:0;color:#60D7E8}
.header-search input{border:0;background:transparent;width:100%;font-size:10.5px;padding:0;outline:none}
.header-search input::placeholder{color:#C3B5E0}
.top-action{height:35px;min-width:82px;border-radius:11px;border:1px solid rgba(195,181,224,0.58);background:linear-gradient(130deg,rgba(62,110,196,0.32),rgba(211,107,167,0.28));padding:0 12px;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:inset 0 1px rgba(255,255,255,0.18)}
.top-action:hover,.chip-btn:hover{border-color:var(--dc-glow-cyan);background:rgba(96,215,232,0.22)}
.top-action.small-action{min-width:36px;display:none;font-size:17px}

.app-layout{flex:1;display:flex;min-height:0;min-width:0}
.sidebar{width:212px;flex:0 0 212px;min-height:0;background:linear-gradient(155deg,rgba(27,46,90,0.68),rgba(58,31,107,0.72));border-right:1px solid rgba(195,181,224,0.38);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:15}
.sidebar-scroll{overflow:auto;height:100%;padding:15px 10px 20px}
.new-btn{width:100%;height:38px;border:1px solid rgba(255,156,156,0.62);background:linear-gradient(130deg,rgba(123,90,174,0.78),rgba(211,107,167,0.72));border-radius:10px;font-size:14px;font-weight:600;margin-bottom:10px}
.nav-label{font-size:9px;font-weight:800;letter-spacing:1.35px;color:#A8C9FF;margin:11px 9px 5px;border-top:1px solid rgba(195,181,224,0.3);padding-top:10px}
.nav-label:first-of-type{border-top:0;margin-top:0;padding-top:0}
.nav-link{display:flex;align-items:center;text-align:left;gap:10px;color:#EAF2FF;border:1px solid transparent;background:transparent;width:100%;height:31px;padding:0 11px;border-radius:8px;font-size:11.5px;white-space:nowrap}
.nav-link span{font-size:15px;min-width:17px;text-align:center;color:#A0ECF4}
.nav-link.active{background:linear-gradient(90deg,rgba(123,90,174,0.68),rgba(211,107,167,0.56));border-color:rgba(255,156,156,0.58);color:#fff;box-shadow:inset 0 0 18px rgba(255,156,156,0.16)}
.nav-link:hover{background:rgba(168,201,255,0.18)}
.nav-label-last{height:0;padding-top:0}
.version{font-size:9px;line-height:1.6;color:#D3D0E8;margin:12px 9px}
.version span{color:#60D7E8}

.workspace{flex:1;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate}
.page-container{position:absolute;inset:0;overflow:auto;padding:22px 23px 38px}
.page{display:none;min-height:100%}
.page.active{display:block}
.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.6px;color:#A0ECF4;text-transform:uppercase;margin-bottom:7px}
.page-heading{display:flex;justify-content:space-between;align-items:start;gap:15px;min-height:70px;margin-bottom:13px}
.page-heading h1,.hero h1{font:normal 27px var(--serif);line-height:1.14;margin:0 0 6px;text-shadow:0 2px 9px rgba(10,17,36,0.45)}
.page-heading p,.hero p{color:#D3D0E8;font-size:11px;max-width:680px;margin-bottom:2px;line-height:1.55}
.heading-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:end}
.sample-mark{display:inline-flex;align-items:center;justify-content:center;background:rgba(41,187,210,0.22);border:1px solid rgba(160,236,244,0.52);border-radius:100px;padding:5px 10px;color:#A0ECF4;font-size:10px;white-space:nowrap}
.sample-mark.small{font-size:9px;padding:3px 8px}

.glass-card{border-radius:var(--radius);background:linear-gradient(145deg,rgba(43,76,143,0.48),rgba(91,52,147,0.52) 48%,rgba(53,74,120,0.54));border:1px solid rgba(168,201,255,0.48);box-shadow:var(--shadow),inset 0 1px rgba(234,242,255,0.22);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);min-width:0;min-height:0}
.hero{padding:34px 34px 28px;position:relative;overflow:hidden;border-radius:17px;background:linear-gradient(110deg,rgba(27,46,90,0.68),rgba(123,90,174,0.48) 70%,rgba(211,107,167,0.44));border:1px solid rgba(168,201,255,0.52);margin-bottom:16px;min-height:183px}
.hero:after{content:'✧';position:absolute;right:8%;top:-115px;font:400 340px var(--serif);color:rgba(160,236,244,0.16);text-shadow:0 0 55px rgba(96,215,232,0.2);pointer-events:none}
.hero h1{font-size:37px}
.hero p{font-size:12px;margin:10px 0 13px}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 21px}
.quick-card{min-height:87px;padding:14px 11px;text-align:left;border:1px solid rgba(195,181,224,0.54);background:linear-gradient(135deg,rgba(43,76,143,0.54),rgba(123,90,174,0.5));box-shadow:inset 0 1px rgba(234,242,255,0.2);border-radius:12px;display:grid;grid-template-columns:27px 1fr;grid-template-rows:auto auto;column-gap:8px;align-content:center}
.quick-card:hover{transform:translateY(-1px);border-color:var(--dc-glow-cyan)}
.quick-card strong{font-size:26px;grid-row:span 2;color:#A0ECF4;align-self:center;font-weight:normal}
.quick-card span{font:600 12px var(--sans)}
.quick-card small{color:#D3D0E8;font-size:10px;margin-top:5px}

.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.section-heading h2,.info-card h2,.card-title h2{font:normal 19px var(--serif);margin:0}
.link-text{background:transparent;border:0;color:#A0ECF4;padding:8px;font-size:10.5px}
.recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.recent-card{display:flex;min-height:112px;gap:10px;text-align:left;align-items:stretch;background:rgba(39,52,92,0.62);border:1px solid rgba(195,181,224,0.46);border-radius:12px;padding:9px;min-width:0}
.recent-card>img,.recent-symbol{width:90px;min-width:90px;height:90px;border-radius:9px;object-fit:cover;border:1px solid rgba(168,201,255,0.52)}
.recent-symbol{display:grid;place-items:center;font:50px var(--serif);color:#A0ECF4;background:radial-gradient(circle at center,rgba(123,90,174,0.42),#1B2E5A)}
.recent-card span{display:flex;flex-direction:column;min-width:0;gap:4px;padding-top:8px}
.recent-card span b{font-size:11px}
.recent-card span small{font-size:9px;color:#D3D0E8}
.recent-card span em{font-style:normal;margin-top:auto;border-radius:20px;border:1px solid rgba(96,215,232,0.52);padding:3px 8px;width:max-content;font-size:9px;background:rgba(41,187,210,0.22);color:#A0ECF4}

.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.info-card{padding:16px}
.info-card h2{margin-bottom:8px}
.info-line{border-top:1px solid rgba(195,181,224,0.28);padding:10px 0;font-size:11px;display:flex;justify-content:space-between}
.info-line small{font-size:9px;color:#A0ECF4}
.card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px 12px;border-bottom:1px solid rgba(195,181,224,0.32);min-height:53px}
.card-title h2{font-size:17px}
.card-title h2 small{font:10px var(--sans);color:#D3D0E8}
.card-buttons{display:flex;align-items:center;gap:5px}
.mini-tag,.icon-action{background:rgba(62,110,196,0.28);color:#EAF2FF;border:1px solid rgba(195,181,224,0.44);min-height:29px;border-radius:8px;padding:5px 9px;font-size:10px}
.icon-action{width:30px;display:grid;place-items:center;font-size:18px}
.chip-btn{background:rgba(91,52,147,0.42);color:#EAF2FF;border:1px solid rgba(195,181,224,0.58);min-height:32px;padding:6px 11px;border-radius:9px;white-space:nowrap}
.chip-btn.primary,.wide-btn.primary{background:linear-gradient(105deg,#E77F86,#D36BA7 90%);border-color:#FF9C9C;color:#FFFFFF;font-weight:700;box-shadow:0 4px 14px rgba(231,127,134,0.32)}
.card-foot{padding:9px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.muted-text{font-size:10.5px;line-height:1.6;color:#D3D0E8}
.muted-text.compact{font-size:9px;padding:2px 13px;margin-top:auto}

.research-grid{display:grid;grid-template-columns:minmax(190px,1.08fr) minmax(215px,1fr) minmax(210px,.95fr);gap:11px;align-items:stretch;min-height:610px}
.source-panel,.analysis-panel,.notes-panel{display:flex;flex-direction:column}
.source-panel .pan-canvas{margin:10px;flex:1;min-height:370px}

/* Sınırsız Görsel Tuvali (Infinite Canvas) */
.pan-canvas{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(96,215,232,0.52);
  border-radius:12px;
  background:radial-gradient(ellipse at 50% 35%, #2B4C8F, #0A1124 75%);
  touch-action:none;
  overscroll-behavior:contain;
  user-select:none;
  -webkit-user-select:none;
  cursor:grab;
}
.pan-canvas.dragging{cursor:grabbing}
.canvas-content{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;will-change:transform;pointer-events:none}
.canvas-content img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.canvas-caption{position:absolute;left:9px;bottom:8px;border:1px solid rgba(160,236,244,0.38);background:rgba(27,46,90,0.74);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);padding:5px 8px;border-radius:8px;font-size:9px;color:#A0ECF4;pointer-events:none}
.chart-pin,.sky-point{pointer-events:auto;position:absolute;background:#FF9C9C;color:#1B2E5A;border:1.5px solid #EAF2FF;border-radius:50%;width:29px;height:29px;transform:translate(-50%,-50%);box-shadow:0 0 17px #60D7E8;font-size:13px}

.analysis-panel{padding-bottom:13px}
.analysis-panel>.muted-text,.analysis-panel>.wide-btn{margin:11px 13px 0}
.wide-btn{border:1px solid rgba(195,181,224,0.56);border-radius:9px;padding:10px 13px;background:rgba(123,90,174,0.45);color:#fff;min-height:39px}
.wide-btn.subtle{background:linear-gradient(90deg,rgba(41,187,210,0.32),rgba(123,90,174,0.42))}
.small-section{font-size:12px;font-weight:650;margin:20px 13px 9px;display:flex;justify-content:space-between}
.small-section small{font-size:9px;color:#A0ECF4;font-weight:400}
.data-rows{margin:0 12px;border:1px solid rgba(195,181,224,0.38);border-radius:9px;overflow:hidden}
.data-rows>div{display:grid;grid-template-columns:45% 55%;border-bottom:1px solid rgba(195,181,224,0.28);min-height:37px;align-items:center}
.data-rows>div:last-child{border-bottom:0}
.data-rows span{height:100%;display:flex;align-items:center;padding:8px 10px;border-right:1px solid rgba(195,181,224,0.26);background:rgba(27,46,90,0.46);color:#A8C9FF}
.data-rows b{padding:7px 10px;font-weight:500}
.mini-tabs{display:flex;border-bottom:1px solid rgba(195,181,224,0.38);gap:13px;margin:16px 13px 0}
.mini-tabs button{border:0;background:none;padding:7px 3px;color:#D3D0E8;position:relative}
.mini-tabs button.active{color:#EAF2FF}
.mini-tabs button.active:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#60D7E8}
.hint-result{margin:12px 13px 2px;min-height:91px;padding:12px;font-size:11px;color:#EAF2FF;border-radius:9px;border:1px solid rgba(168,201,255,0.42);background:rgba(26,34,56,0.52);line-height:1.65}
.editor-toolbar{padding:10px 15px;letter-spacing:4px;color:#EAF2FF}
.notes-text{height:260px;width:calc(100% - 24px);margin:0 12px;background:rgba(26,34,56,0.48);line-height:1.7;border-radius:8px;touch-action:pan-y}
.chips{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px}
.chips span{border-radius:18px;padding:6px 9px;border:1px solid rgba(195,181,224,0.58);color:#EAF2FF;background:rgba(123,90,174,0.34);font-size:9px}
.notes-panel>.wide-btn{margin:13px 12px 0}

/* Sabit sağ panel boşluğu kaldırıldı: Tam genişlikte çalışma yüzeyi + üstte serbest kayan pencereler */
.visual-layout{max-width:100%;margin-right:0;display:flex;flex-direction:column;gap:11px}
.visual-card{height:390px;position:relative;display:flex;flex-direction:column}
.visual-card>.pan-canvas{margin:9px 9px 0;flex:1}
.sky-canvas{min-height:245px}
.canvas-toolbar{position:absolute;top:68px;left:20px;z-index:4;display:grid;gap:4px;background:rgba(27,46,90,0.76);border:1px solid rgba(96,215,232,0.52);border-radius:10px;padding:4px;box-shadow:0 4px 15px rgba(10,17,36,0.42)}
.tool{width:31px;height:32px;background:transparent;border:0;border-radius:8px;font-size:17px}
.tool.active{background:linear-gradient(135deg,#E77F86,#D36BA7);color:#fff;box-shadow:0 0 10px rgba(255,156,156,0.55)}
.sky-point.other{background:#60D7E8;color:#0A1124}
.catalogue{min-height:250px;padding-bottom:8px}
.filterbar{display:flex;align-items:center;gap:9px;padding:9px 12px}
.filterbar input{height:32px;flex:1;font-size:10px}
.filters{display:flex;gap:5px}
.filters button{border:1px solid rgba(195,181,224,0.52);border-radius:20px;background:rgba(39,52,92,0.58);padding:6px 8px;font-size:9px}
.filters button.active{background:linear-gradient(90deg,#29BBD2,#60D7E8);color:#0A1124;font-weight:700;border-color:#A0ECF4}
.table-scroll{overflow-x:auto;padding:0 10px 9px;touch-action:pan-x pan-y}
.catalog-table,.extract-table{width:100%;border-collapse:collapse;font-size:10.5px;white-space:nowrap}
.catalog-table th,.extract-table th{font-weight:600;text-align:left;padding:9px;color:#A0ECF4;border-bottom:1px solid rgba(195,181,224,0.48);background:rgba(27,46,90,0.56)}
.catalog-table td,.extract-table td{padding:9px;border-bottom:1px solid rgba(195,181,224,0.28)}
.catalog-table tbody tr:hover{background:rgba(96,215,232,0.14)}
.catalog-table tbody tr.is-selected-row{background:rgba(123,90,174,0.38)}
.cell-edit{border:0;color:#60D7E8;background:transparent;font-weight:600;margin-right:6px}
.status-text{border-radius:12px;padding:3px 7px;background:rgba(76,209,155,0.22);border:1px solid rgba(76,209,155,0.48);color:#EAF2FF;font-size:9px}

.json-grid{display:grid;grid-template-columns: .85fr 1.15fr;gap:11px;max-width:100%;margin-right:0}
.json-visual,.json-editor-card{height:340px;display:flex;flex-direction:column}
.json-visual .pan-canvas{flex:1;margin:10px 12px;min-height:150px}
.code-editor{flex:1;margin:10px 12px 7px;background:rgba(14,15,27,0.72);color:#EAF2FF;line-height:1.63;border:1px solid rgba(96,215,232,0.42);font:11px/1.6 ui-monospace,'SFMono-Regular',Consolas,monospace;tab-size:2;touch-action:pan-y}
.editor-status{padding:0 15px 10px;font-size:10px;color:#A0ECF4}
.extraction-card{max-width:100%;margin-right:0;margin-top:10px;padding-bottom:7px}
.fine-print{font-size:10px;color:#D3D0E8;margin:5px 14px 8px;line-height:1.55}
.state-pending{color:#F7C948}

/* Evrensel Kayan Pencere Standardı (Universal Floating Window Layer) */
.float-layer{position:absolute;inset:0;pointer-events:none;z-index:25;overflow:visible}
.float-window{
  position:absolute;
  pointer-events:auto;
  border-radius:17px;
  background:linear-gradient(145deg, rgba(43,76,143,0.78), rgba(91,52,147,0.82) 48%, rgba(39,52,92,0.86));
  border:1px solid rgba(160,236,244,0.62);
  box-shadow:0 18px 45px rgba(10,17,36,0.52), inset 0 1px rgba(255,255,255,0.32);
  backdrop-filter:blur(24px) saturate(140%);
  -webkit-backdrop-filter:blur(24px) saturate(140%);
  min-width:265px;
  min-height:180px;
  display:flex;
  flex-direction:column;
  touch-action:none;
  resize:none !important;
  overflow:hidden;
}
.float-window.is-active{
  box-shadow:0 22px 54px rgba(10,17,36,0.68), 0 0 0 1.5px #60D7E8, inset 0 1px rgba(255,255,255,0.38);
}
.float-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 13px;
  background:linear-gradient(100deg, rgba(41,187,210,0.34), rgba(211,107,167,0.42));
  border-bottom:1px solid rgba(195,181,224,0.52);
  min-height:45px;
  gap:12px;
  touch-action:none;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.float-header:active{cursor:grabbing}
.float-header h3{font:normal 18px var(--serif);margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.float-head-actions{display:flex;align-items:center;gap:6px}
.head-close{border:0;color:#fff;background:rgba(26,34,56,0.55);border-radius:8px;width:30px;height:28px;font-size:17px}
.head-close:hover{background:rgba(231,127,134,0.65)}
.float-body{overflow:auto;padding:13px;flex:1;touch-action:pan-y;overscroll-behavior:contain}
.float-hint{color:#D3D0E8;font-size:9.5px;margin:2px 0 9px;line-height:1.5}
.float-row{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.float-label{font-size:11px;display:block;margin:7px 0 5px;color:#EAF2FF}
.float-field{width:100%;padding:9px 10px}
.float-buttons{display:flex;gap:8px;margin-top:12px}
.float-buttons>*{flex:1}
.float-badge{font-size:9px;border-radius:12px;border:1px solid rgba(160,236,244,0.55);padding:3px 7px;color:#A0ECF4}
.float-window .notes-text{margin:0;width:100%;height:150px}
.float-message{min-height:55px;flex:1;width:100%;margin-top:8px;touch-action:pan-y}
.float-window .data-rows{margin:0}
.float-window .data-rows>div{min-height:30px}
.float-window .chips{padding:0}
.float-window .sample-mark{margin-bottom:7px}
.float-check{display:flex;align-items:center;gap:8px;margin:9px 0}
.float-check input{accent-color:#60D7E8}
.floating-help{font-size:10.5px;color:#EAF2FF;line-height:1.7}
.floating-help b{color:#A0ECF4}
.assistant-msg{background:rgba(27,46,90,0.55);border:1px solid rgba(96,215,232,0.42);border-radius:10px;padding:9px;font-size:11px;line-height:1.55;margin-bottom:11px}
.assistant-title{display:flex;justify-content:space-between;align-items:center}
.assistant-title b{font-size:12px}
.send-text{border:0;background:linear-gradient(90deg,#E77F86,#FF9C9C);color:#0A1124;font-weight:700;border-radius:15px;padding:7px 14px;box-shadow:0 3px 12px rgba(231,127,134,0.38)}

.toast{position:fixed;z-index:100;left:50%;bottom:26px;transform:translateX(-50%) translateY(85px);opacity:0;pointer-events:none;background:rgba(27,46,90,0.94);color:#EAF2FF;padding:11px 16px;box-shadow:0 8px 35px rgba(10,17,36,0.55);border:1px solid #60D7E8;border-radius:12px;transition:opacity .22s,transform .22s;font-size:11px;max-width:85vw;line-height:1.4}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media(min-width:1540px){.page-container{padding:26px 30px}.research-grid{max-width:100%}}
@media(max-width:1250px){.app-header{padding-left:13px;gap:7px}.brand{min-width:230px}.brand-text{font-size:16px}.mode-tabs{padding-left:14px;gap:7px}.top-action{min-width:65px;padding:0 8px}.sidebar{width:180px;flex-basis:180px}.research-grid{grid-template-columns:1.03fr 1fr .88fr}.recent-card>img,.recent-symbol{width:72px;min-width:72px;height:86px}}
@media(max-width:980px){.header-search{display:none}.brand{min-width:205px}.sidebar{width:164px;flex-basis:164px}.sidebar-scroll{padding:10px 6px}.nav-link{font-size:10px;gap:6px;padding:0 8px}.page-container{padding:14px 13px 24px}.page-heading h1{font-size:23px}.quick-card{padding:10px 8px}.quick-grid{gap:7px}.quick-card strong{font-size:21px}.quick-card span{font-size:11px}.quick-card small{font-size:9px}.research-grid{grid-template-columns:1fr 1fr}.notes-panel{grid-column:1/-1;min-height:255px}.notes-panel .notes-text{height:120px}.visual-card{min-height:350px}.json-visual,.json-editor-card{height:340px}}
@media(max-width:740px){.app-header{height:57px;min-height:57px;padding:0 9px}.brand{min-width:auto;flex:1}.brand-gem{font-size:26px}.brand-text{font-size:14px}.brand-text small{font-size:6px}.mode-tabs{padding-left:6px;gap:2px}.text-tab{min-width:55px;padding:5px 3px 10px;font-size:10px}.top-action{min-width:32px;max-width:38px;overflow:hidden;padding:0 8px}.top-action span{display:none}.top-action.small-action{display:flex}.sidebar{position:absolute;left:0;top:57px;bottom:0;width:206px;transform:translateX(-105%);transition:transform .18s;z-index:29}.sidebar.open{transform:translateX(0)}.page-container{padding:13px 10px 20px}.hero{padding:24px 19px;min-height:165px}.hero h1{font-size:28px}.quick-grid{grid-template-columns:1fr 1fr}.recent-grid{grid-template-columns:1fr}.recent-card{min-height:88px}.home-bottom{grid-template-columns:1fr}.research-grid,.json-grid{grid-template-columns:1fr}.notes-panel{grid-column:auto}.research-grid{min-height:unset}.source-panel{min-height:350px}.visual-card{height:330px}.catalogue{min-height:250px}.filterbar{flex-wrap:wrap}.filters{width:100%;justify-content:flex-start}.float-window{min-width:255px}.page-heading{flex-direction:column}.page-heading h1{font-size:22px}.json-visual,.json-editor-card{height:320px}.extraction-card{margin-top:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Diamond assistant v0.9.1 */
#diamond-chat-log{overflow:auto;max-height:200px;min-height:80px;white-space:pre-wrap;overflow-wrap:anywhere}.diamond-chat-line{padding:6px 0;border-bottom:1px solid rgba(180,160,255,.18)}


/* v0.9.2 iPadOS PWA & Floating Window Fixes */
*{-webkit-tap-highlight-color:transparent}
@media (hover: none){
  .top-action:hover,.chip-btn:hover,.nav-link:hover,.quick-card:hover,.catalog-table tbody tr:hover{
    background:inherit;border-color:inherit;transform:none;
  }
}
.float-window{touch-action:none !important;will-change:left,top,width,height}
.float-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.drag-hint{white-space:nowrap;flex-shrink:0}
.archive-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;margin-bottom:8px;border-radius:10px;background:rgba(16,24,48,0.65);border:1px solid rgba(96,215,232,0.35);font-size:11px}
.archive-bar-status{color:#A0ECF4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* v0.9.4 iPad PWA Bottom Fit, Header Strip & Subtle '+ Yeni' */
.sidebar-scroll{padding-bottom:calc(36px + env(safe-area-inset-bottom, 0px)) !important;}
.page-container{padding-bottom:calc(44px + env(safe-area-inset-bottom, 0px)) !important;}
.new-btn{
  background:transparent !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
  color:var(--subtle) !important;
  justify-content:flex-start !important;
  padding:6px 11px !important;
  height:32px !important;
  font-size:11.5px !important;
  font-weight:600 !important;
  margin-bottom:6px !important;
}
.new-btn:active{opacity:.7;}


/* === v1.0.0 CANLI KOZMİK NEBULA TEMA + iPAD TAM EKRAN + SAYFA ÖLÇEĞİ === */
body {
  background: #2B4C8F !important;
}
#app {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  background:
    radial-gradient(ellipse 52% 52% at 12% 16%, rgba(96, 215, 232, 0.56) 0%, transparent 78%),
    radial-gradient(ellipse 58% 68% at 88% 18%, rgba(255, 156, 156, 0.52) 0%, transparent 74%),
    radial-gradient(ellipse 65% 70% at 50% 88%, rgba(211, 107, 167, 0.54) 0%, transparent 80%),
    linear-gradient(128deg, #2B4C8F 0%, #3E6EC4 30%, #7B5AAE 64%, #B84A9B 100%) !important;
}
/* Üst iPad durum çubuğu şeridi için temiz ayrı zemin */
#app::before {
  opacity: 0.72 !important;
}
.app-header {
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 18px !important;
  background: linear-gradient(90deg, rgba(62, 110, 196, 0.52), rgba(123, 90, 174, 0.54) 50%, rgba(211, 107, 167, 0.50)) !important;
  border-top: 1px solid rgba(234, 242, 255, 0.25) !important;
  border-bottom: 1px solid rgba(234, 242, 255, 0.42) !important;
  box-shadow: 0 6px 24px rgba(43, 76, 143, 0.24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Sol kenar çubuğu: koyu değil, ışıldayan buzlu cam */
.sidebar {
  background: linear-gradient(165deg, rgba(62, 110, 196, 0.44), rgba(123, 90, 174, 0.46) 55%, rgba(184, 74, 155, 0.36)) !important;
  border-right: 1px solid rgba(234, 242, 255, 0.36) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 156, 156, 0.52), rgba(211, 107, 167, 0.48)) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 4px 14px rgba(231, 127, 134, 0.25) !important;
}
/* Kartlar, hero, paneller ve girdi kutuları: aydınlık cam efekti */
.hero {
  background: linear-gradient(125deg, rgba(62, 110, 196, 0.46), rgba(123, 90, 174, 0.48) 52%, rgba(231, 127, 134, 0.42)) !important;
  border: 1px solid rgba(234, 242, 255, 0.48) !important;
  box-shadow: 0 12px 34px rgba(43, 76, 143, 0.22) !important;
}
.quick-card, .recent-card, .panel, .source-panel, .visual-card, .catalogue, .json-visual, .json-editor-card, .extraction-card, .notes-panel {
  background: linear-gradient(155deg, rgba(168, 201, 255, 0.22), rgba(195, 181, 224, 0.20)) !important;
  border: 1px solid rgba(234, 242, 255, 0.42) !important;
  box-shadow: 0 8px 26px rgba(43, 76, 143, 0.18) !important;
}
.float-window {
  background: linear-gradient(155deg, rgba(95, 112, 198, 0.88), rgba(123, 90, 174, 0.90) 56%, rgba(184, 74, 155, 0.86)) !important;
  border: 1px solid rgba(234, 242, 255, 0.55) !important;
  box-shadow: 0 20px 48px rgba(27, 46, 90, 0.38) !important;
}
.float-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 156, 156, 0.18)) !important;
  border-bottom: 1px solid rgba(234, 242, 255, 0.34) !important;
}
.send-text, .wide-btn.primary {
  background: linear-gradient(135deg, #FF9C9C 0%, #E77F86 52%, #D36BA7 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 14px rgba(231, 127, 134, 0.35) !important;
}
input, textarea, select, .code-editor, .notes-text, .assistant-msg {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(234, 242, 255, 0.42) !important;
  color: #FFFFFF !important;
}
input::placeholder, textarea::placeholder {
  color: rgba(234, 242, 255, 0.72) !important;
}
.header-search {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(234, 242, 255, 0.46) !important;
}
.top-action, .chip-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(234, 242, 255, 0.48) !important;
}
/* Sayfa Ölçeği (- %100 +) */
.page-zoom-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(234, 242, 255, 0.46);
  flex-shrink: 0;
}
.pz-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pz-val {
  min-width: 38px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #EAF2FF;
}
/* Alt ve Üst Temiz Boşluklar */
.app-layout {
  flex: 1 !important;
  min-height: 0 !important;
}
.sidebar-scroll {
  padding-bottom: 42px !important;
}
.page-container {
  padding: 18px 22px 48px !important;
}


/* === v1.0.1 ASİSTAN ÇALIŞMA SAYFASI === */
.studio-grid{display:grid;grid-template-columns:1.55fr .9fr;gap:14px;min-height:500px}
.studio-chat-panel{display:flex;flex-direction:column;gap:10px;padding:14px}
.studio-context-panel{display:flex;flex-direction:column;padding:14px}
.studio-top-row{display:flex;gap:10px;flex-wrap:wrap}
.studio-prompts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.studio-prompt-btn{
  padding:9px 11px;border-radius:11px;text-align:left;font-size:11.5px;font-weight:600;
  background:rgba(255,255,255,0.14);border:1px solid rgba(234,242,255,0.40);color:#EAF2FF;
  transition:transform .12s, background .15s;
}
.studio-prompt-btn:active{transform:scale(0.98);background:rgba(255,156,156,0.28)}
.studio-chat-log{
  flex:1;min-height:220px;max-height:360px;overflow-y:auto;padding:11px;border-radius:12px;
  background:rgba(16,24,48,0.34);border:1px solid rgba(234,242,255,0.32);
  display:flex;flex-direction:column;gap:8px;font-size:12px;line-height:1.5
}
.studio-reply-actions{margin-top:5px;display:flex;gap:6px;flex-wrap:wrap}
.studio-composer{display:flex;gap:8px;align-items:flex-end}
.studio-textarea{flex:1;min-height:54px;max-height:120px;border-radius:12px;padding:10px 12px}
.studio-send-btn{height:46px;padding:0 16px;border-radius:12px;flex-shrink:0}
.studio-context-box{
  flex:1;padding:11px;border-radius:11px;background:rgba(16,24,48,0.28);
  border:1px solid rgba(234,242,255,0.30);font-size:11.5px;line-height:1.55;
  overflow-y:auto;white-space:pre-wrap
}
@media(max-width:980px){.studio-grid{grid-template-columns:1fr}.studio-prompts{grid-template-columns:1fr}}


/* === v1.0.3 AI ÇALIŞMA ÖNERİLERİ === */
.studio-suggestions-box{margin-top:10px;padding:10px;border-radius:11px;background:rgba(16,24,48,0.28);border:1px solid rgba(96,215,232,0.34)}
.studio-suggestions-list{display:flex;flex-direction:column;gap:6px}
.studio-sug-item{padding:8px 9px;border-radius:9px;background:rgba(255,255,255,0.12);border:1px solid rgba(234,242,255,0.34);font-size:11px;line-height:1.4;display:flex;flex-direction:column;gap:5px}
.studio-sug-actions{display:flex;gap:5px;flex-wrap:wrap}


/* === v1.0.4 GEM UZMANLIK MODLARI === */
.gem-mode-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 8px;border-radius:11px;background:rgba(16,24,48,0.25);border:1px solid rgba(234,242,255,0.28)}
.gem-mode-label{font-size:11px;font-weight:700;color:#A0ECF4;margin-right:2px}
.gem-pill{padding:4px 10px;font-size:11px;border-radius:999px}
.gem-pill.active{background:linear-gradient(135deg,#FF9C9C,#D36BA7) !important;border-color:rgba(255,255,255,0.65) !important;color:#FFFFFF !important;font-weight:700}


/* === v1.0.5 ÖĞRENME LABORATUVARI === */
.lab-grid{display:grid;grid-template-columns:280px 1fr;gap:14px;min-height:500px}
.lab-list-panel{padding:10px;overflow-y:auto;max-height:580px;display:flex;flex-direction:column;gap:8px}
.lab-detail-panel{padding:14px;display:flex;flex-direction:column}
.lab-cat-title{font-size:10.5px;font-weight:700;letter-spacing:.05em;color:#A0ECF4;text-transform:uppercase;margin:6px 4px 2px}
.lab-tech-btn{width:100%;text-align:left;padding:7px 10px;border-radius:9px;border:1px solid transparent;background:rgba(255,255,255,0.08);color:#EAF2FF;font-size:11.5px;font-weight:600}
.lab-tech-btn.active{background:linear-gradient(90deg,rgba(255,156,156,0.48),rgba(211,107,167,0.44));border-color:rgba(255,255,255,0.55)}
@media(max-width:980px){.lab-grid{grid-template-columns:1fr}.lab-list-panel{max-height:240px}}


/* === v1.1.1 UYGULAMA İÇİ MD & JSON KILAVUZU === */
.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.guide-flow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.guide-node{padding:7px 10px;border-radius:9px;background:rgba(255,255,255,0.14);border:1px solid rgba(234,242,255,0.42);font-size:11px;text-align:center}
.guide-node.warn{border-color:#FF9C9C;background:rgba(255,107,107,0.22)}
.guide-code{padding:10px;border-radius:10px;background:rgba(16,24,48,0.44);border:1px solid rgba(234,242,255,0.34);font:10.5px/1.45 ui-monospace,monospace;white-space:pre-wrap;margin:6px 0}
@media(max-width:980px){.guide-grid{grid-template-columns:1fr}}


/* === v1.2.2 SAYFA DÜZENİ, ALT BOŞLUK GİDERME, PANEL DARALTMA & GENİŞLETME === */
html, body {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#app {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding-top: max(22px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}
.app-header {
  margin-top: 4px !important;
  height: 58px !important;
  min-height: 58px !important;
}
.page-container {
  padding: 28px 22px 54px !important;
}
/* Panel açma/kapama (<) ve yeniden boyutlandırma */
.panel, .source-panel, .visual-card, .catalogue, .notes-panel, .json-visual, .json-editor-card, .extraction-card {
  position: relative;
  resize: both;
  overflow: auto;
  min-width: 180px;
  min-height: 140px;
}
.panel-collapse-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(234, 242, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #EAF2FF;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
}
.is-collapsed-panel {
  min-height: 46px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  resize: none !important;
}
.is-collapsed-panel > *:not(.card-title):not(.panel-head) {
  display: none !important;
}
/* Gemini JSON İçe Aktar penceresi boşluk düzeltmesi */
#window-import .float-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#window-import #import-text {
  flex: 1 !important;
  min-height: 180px !important;
}


/* ==========================================================================
   v1.3.0 KAPSAMLI DÜZEN, GÖRSEL AI 4 MODÜL, PANEL YÖNLERİ & SPLITTER ÇİZGİLERİ
   ========================================================================== */
html, body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 48% 50% at 10% 18%, rgba(96, 215, 232, 0.42) 0%, transparent 88%),
    radial-gradient(ellipse 58% 72% at 88% 22%, rgba(211, 107, 167, 0.46) 0%, transparent 88%),
    linear-gradient(145deg, #2D4F9E 0%, #4E4397 48%, #6D489C 100%) !important;
}

#app {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding-top: max(18px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.page-container {
  position: absolute !important;
  inset: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 36px 24px 64px !important;
}

/* Görsel AI 4 Modül Alt Sekme Çubuğu */
.vai-submode-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(27, 40, 84, 0.52);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(234, 242, 255, 0.34);
}

.vai-mode-btn {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(234, 242, 255, 0.85);
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vai-mode-btn.active {
  background: linear-gradient(135deg, rgba(96, 215, 232, 0.34), rgba(211, 107, 167, 0.44));
  border-color: rgba(234, 242, 255, 0.68);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(34, 20, 68, 0.28);
}

.vai-subview {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.vai-subview.active {
  display: flex;
}

.vai-toolbar-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(234, 242, 255, 0.32);
}

.inline-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 40, 84, 0.55);
  border: 1px solid rgba(234, 242, 255, 0.35);
  border-radius: 9px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.inline-zoom-pill button {
  border: none;
  background: transparent;
  color: #EAF2FF;
  font-weight: 800;
  padding: 2px 5px;
}

/* Paneller Arası Sürüklenebilir Genişletme / Daraltma Çizgileri */
.split-flex-row {
  display: flex !important;
  align-items: stretch;
  gap: 0 !important;
}

.dc-v-splitter {
  width: 14px;
  flex: 0 0 14px;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  z-index: 6;
}

.dc-v-splitter::after {
  content: "⋮";
  width: 4px;
  height: 54px;
  border-radius: 99px;
  background: rgba(160, 236, 244, 0.42);
  color: transparent;
  transition: all 0.15s ease;
}

.dc-v-splitter:hover::after,
.dc-v-splitter.is-dragging::after {
  height: 92px;
  background: #60D7E8;
  box-shadow: 0 0 12px #60D7E8;
}

.dc-h-splitter {
  height: 16px;
  flex: 0 0 16px;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  z-index: 6;
}

.dc-h-splitter::after {
  content: "";
  width: 68px;
  height: 4px;
  border-radius: 99px;
  background: rgba(160, 236, 244, 0.46);
  transition: all 0.15s ease;
}

.dc-h-splitter:hover::after,
.dc-h-splitter.is-dragging::after {
  width: 120px;
  background: #60D7E8;
  box-shadow: 0 0 12px #60D7E8;
}

/* Yönlü Panel Kapanma Kuralları (Sol ‹, Sağ ›, Üst ⌃, Alt ⌄) */
.is-collapsed-horiz {
  flex: 0 0 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  overflow: hidden !important;
  padding: 10px 6px !important;
}

.is-collapsed-horiz > *:not(.card-title):not(.panel-head) {
  display: none !important;
}

.is-collapsed-horiz .card-title,
.is-collapsed-horiz .panel-head {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.is-collapsed-horiz .card-title h2,
.is-collapsed-horiz .panel-head h3 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  white-space: nowrap;
  margin: 6px 0 0 0;
}

.is-collapsed-horiz .card-title > *:not(h2):not(.panel-collapse-btn) {
  display: none !important;
}

.is-collapsed-vert {
  flex: 0 0 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
}

.is-collapsed-vert > *:not(.card-title):not(.panel-head) {
  display: none !important;
}

/* OCR & BBox (Modül 4) */
.ocr-wheel-board {
  position: relative;
  width: 440px;
  height: 380px;
  max-width: 96%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(234, 242, 255, 0.42);
  background: rgba(20, 26, 56, 0.35);
}

.ocr-bbox {
  position: absolute;
  border: 2px solid;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 750;
  background: rgba(24, 18, 52, 0.76);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.ocr-bbox.is-selected {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.78), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.vai-floating-hud {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(28, 36, 78, 0.9);
  border: 1px solid rgba(160, 236, 244, 0.58);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.ocr-control-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(234, 242, 255, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
}

.ocr-control-box h4 {
  font-size: 12.5px;
  margin: 0 0 4px 0;
  color: #FFFFFF;
}

.ocr-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(234, 242, 255, 0.12);
  font-size: 11.5px;
  cursor: pointer;
}

.dc-switch {
  appearance: none;
  width: 34px;
  height: 19px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.26);
  position: relative;
  cursor: pointer;
}

.dc-switch:checked {
  background: linear-gradient(135deg, #60D7E8, #9D7BFF);
}

.dc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.dc-switch:checked::after {
  transform: translateX(15px);
}

.src-badge {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid rgba(234, 242, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #EAF2FF;
}

.src-badge.active {
  border-color: #60D7E8;
  background: rgba(96, 215, 232, 0.28);
  color: #fff;
}

/* Poster Sahnesi (Modül 1) */
.dc-poster-canvas {
  width: 350px;
  min-height: 450px;
  background: radial-gradient(circle at 50% 36%, #183168 0%, #0A1530 78%);
  border: 2px solid #D4B26F;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 18px 42px rgba(10, 14, 34, 0.55);
}

.dc-poster-headline-box {
  border: 1.5px solid rgba(248, 235, 200, 0.78);
  padding: 8px 14px;
  border-radius: 6px;
}

.dc-poster-headline-box h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #F8EBC8;
  letter-spacing: 1.6px;
  margin: 0;
}

.dc-poster-date-pill {
  border: 1px solid #D4B26F;
  padding: 4px 16px;
  border-radius: 99px;
  color: #F8EBC8;
  font-size: 13px;
}

.layer-row {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
}

.layer-row.active {
  background: rgba(96, 215, 232, 0.24);
  border: 1px solid rgba(160, 236, 244, 0.55);
}

/* Harita Dilim Popover (Modül 2) */
.wedge-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#res-wedge-path {
  pointer-events: auto;
  cursor: pointer;
}

.dc-wedge-popover {
  position: absolute;
  right: 12px;
  bottom: 42px;
  width: min(270px, calc(100% - 16px));
  max-height: calc(100% - 10px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(34, 46, 98, 0.94);
  border: 1px solid rgba(160, 236, 244, 0.68);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(14px);
  z-index: 8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.dc-wedge-pop-head {
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #A0ECF4;
}

.coord-pill {
  position: absolute;
  background: rgba(18, 26, 58, 0.82);
  border: 1px solid rgba(234, 242, 255, 0.32);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  color: #EAF2FF;
}

.embedded-ai-box {
  margin-top: auto;
  padding: 10px;
  border-radius: 11px;
  background: rgba(30, 44, 96, 0.48);
  border: 1px solid rgba(160, 236, 244, 0.42);
}

.fmt-btn {
  border: 1px solid rgba(234, 242, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
}

.chip-removable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-removable b {
  cursor: pointer;
  opacity: 0.8;
}

/* Kayan Pencere (float-window) Serbest Kenar/Köşe Tutamaçları ve Üst Düğmeler */
.float-head-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(234, 242, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-window.is-folded {
  height: 48px !important;
  min-height: 48px !important;
  overflow: hidden !important;
}

.float-window.is-folded .float-body {
  display: none !important;
}

.fw-resizer-r {
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 16px;
  width: 12px;
  cursor: ew-resize;
  touch-action: none;
}

.fw-resizer-b {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 12px;
  cursor: ns-resize;
  touch-action: none;
}

.fw-resizer-br {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  touch-action: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3px;
  color: rgba(160, 236, 244, 0.75);
  font-size: 11px;
  user-select: none;
}

/* Mesaj Kutusu Otomatik Büyüme ve Satır Atlama */
#assistant-draft, #studio-draft {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  min-height: 56px !important;
  max-height: 190px !important;
  overflow-y: auto !important;
  line-height: 1.45 !important;
}


/* === v1.3.3 GÖRSEL DONANIM ÇUBUĞU, AYDINGER & SOHBET MARKDOWN === */
.visual-hw-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-top: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(234, 242, 255, 0.28);
  font-size: 11px;
}
.visual-hw-bar label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #EAF2FF;
}
.visual-hw-bar input[type="range"] {
  width: 64px;
  accent-color: #60D7E8;
}
.aydinger-overlay-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.dc-md-reply h3, .dc-md-reply h4 {
  margin: 6px 0 3px;
  font-size: 12.5px;
  color: #A0ECF4;
}
.dc-md-reply ul {
  margin: 4px 0;
  padding-left: 16px;
}
.dc-md-reply li {
  margin: 2px 0;
}
.vai-fullscreen-card {
  position: fixed !important;
  inset: 14px !important;
  z-index: 95 !important;
  max-width: none !important;
  max-height: none !important;
}


/* === v1.4.0 METİN AI 5 AŞAMALI BORU HATTI, IDI/DCS/OVR/CF SKOR KARTLARI VE HITL PANELİ === */
.metin-pipeline-bar {
  padding: 7px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(43, 76, 143, 0.48), rgba(114, 68, 168, 0.48));
  border: 1px solid rgba(160, 236, 244, 0.45);
}
.mp-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(96, 215, 232, 0.22);
  border: 1px solid rgba(160, 236, 244, 0.58);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
}
.mp-pipeline-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 28, 66, 0.62);
  border: 1px solid rgba(160, 236, 244, 0.48);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
}
.mp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 7px;
}
.mp-metric-box {
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(234, 242, 255, 0.3);
}
.mp-metric-box.passed {
  border-color: rgba(74, 222, 128, 0.68);
}
.mp-metric-box.failed {
  border-color: rgba(251, 191, 36, 0.85);
  background: rgba(251, 191, 36, 0.14);
}
.mp-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 750;
  color: #A0ECF4;
  margin-bottom: 3px;
}
.mp-decon-box {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #60D7E8;
  line-height: 1.45;
}
.mp-hitl-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(234, 242, 255, 0.16);
}
.mp-status-badge {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 750;
}
.mp-status-badge.approved {
  background: rgba(74, 222, 128, 0.24);
  border: 1px solid #4ADE80;
  color: #DCFCE7;
}
.mp-status-badge.flagged {
  background: rgba(251, 191, 36, 0.25);
  border: 1px solid #FBBF24;
  color: #FEF3C7;
}

/* v1.7.7 — Research chart annotations: one independent layer per image. */
.dc-map-markers {position:absolute;pointer-events:none;z-index:5;overflow:visible;}
.dc-map-marker {position:absolute;transform:translate(-50%,-50%);border:2px solid #eaf2ff;border-radius:999px;
 min-width:32px;min-height:32px;max-width:150px;padding:5px 8px;background:linear-gradient(110deg,#9679e1,#b969af);
 color:#fff;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 box-shadow:0 4px 16px #1b2e5a88;pointer-events:auto;touch-action:manipulation;cursor:pointer;}
.dc-map-marker.is-selected {outline:2px solid #A0ECF4;outline-offset:3px;}
#canvas-research.dc-map-placing {cursor:crosshair;}
#res-btn-region[aria-pressed="true"] {border-color:#A0ECF4;background:#7E75CA;color:#fff;}
.dc-map-status {grid-column:1 / -1;font-size:11px;line-height:1.4;color:#EAF2FF;opacity:.9;min-width:0;overflow-wrap:anywhere;}
.dc-map-pop-actions {display:flex;gap:7px;margin-top:8px;}
.dc-map-pop-actions button:first-child {flex:1;}
.dc-map-note {display:block;min-height:64px;resize:vertical;line-height:1.45;}
.dc-wedge-popover {width:min(300px,calc(100% - 16px));max-height:calc(100% - 12px);overscroll-behavior:contain;}
.dc-wedge-popover label {display:block;margin-top:7px;}

/* Viewport-floating annotation inspector; avoids clipping in narrow source columns. */
body > #res-wedge-popover {position:fixed !important;right:auto;bottom:auto;
 z-index:10060 !important;max-height:calc(100dvh - 16px);
 -webkit-overflow-scrolling:touch;touch-action:pan-y;}

/* ÇDP v1.8.3 — single-work export: compact iPad controls, scroll inside modal. */
#dc-export-work-panel[hidden],#dc-export-old-panel[hidden]{display:none!important}
.dc-work-export-panel{display:flex;flex-direction:column;min-width:0;gap:4px}
.dc-work-export-picks{max-height:116px;min-height:26px;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;border:1px solid rgba(174,170,227,.28);border-radius:8px;
  padding:5px 8px;touch-action:pan-y;font-size:11px;color:#EAF2FF;overflow-wrap:anywhere}
.dc-export-check{display:flex;align-items:flex-start;gap:8px;padding:5px 2px;
  font-size:11px;line-height:1.35;color:#EAF2FF;min-width:0;cursor:pointer}
.dc-export-check input{flex:0 0 auto;margin-top:2px;accent-color:#AA9BF2}
.dc-work-export-picks .dc-export-check{border-bottom:1px solid rgba(174,170,227,.12)}
.dc-work-export-picks .dc-export-check:last-child{border-bottom:0}
#window-export .float-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* ÇDP v1.8.7: safe single-work restore, existing glass language. */
.dc-work-restore{margin:12px 0;padding:12px;border-radius:13px;border:1px solid rgba(235,231,255,.36);background:linear-gradient(130deg,rgba(114,180,250,.14),rgba(200,159,241,.15),rgba(250,172,209,.12));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.dc-work-restore summary{cursor:pointer;color:#f8f3ff;font-weight:650;font-size:13px;padding:3px 0;touch-action:manipulation}
.dc-work-restore .float-field{margin:8px 0;max-width:100%;box-sizing:border-box}
.dc-work-restore #dc-work-restore-preview{min-height:44px;overflow-wrap:anywhere;line-height:1.45;padding:9px;border-radius:9px;background:rgba(255,255,255,.07)}
.dc-work-restore #dc-work-restore-apply{margin-top:10px;width:100%}
.dc-work-restore button:disabled{opacity:.55;cursor:default}

/* ÇDP 1.8.8 — original and imported marker revisions are selectable per image. */
.dc-marker-version-bar{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;margin:6px 10px;padding:8px 10px;border:1px solid rgba(229,214,255,.34);border-radius:12px;background:linear-gradient(115deg,rgba(135,190,255,.13),rgba(187,150,241,.11),rgba(255,180,210,.11));backdrop-filter:blur(12px)}
.dc-marker-version-bar label{color:#eee5ff;font-size:11px;font-weight:650;white-space:nowrap}
.dc-marker-version-bar select{flex:1 1 180px;min-width:0;width:auto;max-width:100%;margin:0;min-height:34px;font-size:12px}
.dc-marker-version-bar span{flex:1 0 100%;font-size:10.5px;color:#e4def6;line-height:1.35}
@media(max-width:680px){.dc-marker-version-bar{align-items:stretch}.dc-marker-version-bar select{flex-basis:100%}}

/* Diamond v2 — iPad research controls, matching the existing translucent palette. */
.dc-v2-research{margin:10px 0;padding:12px;border:1px solid rgba(241,245,255,.38);border-radius:15px;
 background:linear-gradient(130deg,rgba(120,177,255,.13),rgba(195,148,239,.13) 55%,rgba(247,168,207,.12));
 backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);color:#f4f5ff}
.dc-v2-row{display:flex;gap:8px;justify-content:space-between;align-items:baseline;flex-wrap:wrap;font-size:12px}
.dc-v2-row span{font-size:10px;opacity:.9}
.dc-v2-actions{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:9px 1px 5px;-webkit-overflow-scrolling:touch}
.dc-v2-actions button{flex:0 0 auto;white-space:nowrap;min-height:38px}
.dc-v2-consent{display:flex;gap:9px;align-items:flex-start;cursor:pointer;font-size:11px;line-height:1.55;padding:8px 0}
.dc-v2-consent input{width:19px;height:19px;flex:0 0 19px;margin-top:0;accent-color:#c4acf8}
.dc-v2-result{font-size:11.5px;line-height:1.6;overflow-wrap:anywhere;max-height:340px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.dc-v2-result p{margin:5px 0}.dc-v2-source{border:1px solid rgba(241,245,255,.2);border-radius:9px;margin:7px 0;padding:8px;background:rgba(255,255,255,.06)}
.dc-v2-source p{white-space:pre-wrap}.dc-v2-warning{color:#fff3f5;font-weight:650}.dc-v2-answer{white-space:pre-wrap}
.dc-v2-result summary{cursor:pointer;padding:5px 0}.dc-v2-result details{margin-top:7px}

.dc-v2-depth{display:flex;gap:7px;align-items:center;font-size:10px;white-space:nowrap}.dc-v2-depth select{font:inherit;color:#f7f7ff;min-height:38px;max-width:260px;border:1px solid rgba(245,247,255,.3);border-radius:9px;background:rgba(151,164,234,.35);padding:4px 6px}.dc-v2-depth option{background:#8a83bf;color:#fff}

/* ÇDP v2.0.1: previewed source consent; no opaque cards. */
.dc-v2-scope{margin:8px 0;padding:9px 10px;border:1px solid rgba(245,246,255,.32);border-radius:12px;background:linear-gradient(120deg,rgba(134,189,255,.15),rgba(201,154,235,.11),rgba(255,177,211,.13));max-height:190px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;font-size:11px;}
.dc-v2-scope p{margin:2px 0 8px;line-height:1.45}
.dc-v2-source-choice{display:flex;align-items:center;gap:9px;padding:7px;margin-bottom:5px;border:1px solid rgba(241,245,255,.24);border-radius:9px;background:rgba(255,255,255,.08);cursor:pointer;line-height:1.4;overflow-wrap:anywhere}
.dc-v2-source-choice input{flex:0 0 19px;width:19px;height:19px;accent-color:#d5b0f6}
.dc-v2-source-choice span{min-width:0;flex:1}
#dc-v2-save-actions[hidden]{display:none !important}
#dc-v2-run:disabled{opacity:.45;cursor:not-allowed}
.dc-v2-research :focus-visible{outline:2px solid #a3ecf6;outline-offset:2px}
