/* KRY responsive workbench: presentation layer, shared by both existing entrypoints. */
:root{--kry-ink:#172b42;--kry-muted:#52667c;--kry-accent:#116c9c;--kry-line:#ced9e3;--kry-paper:#edf2f6;--kry-focus:#005fcc}
body,.desktop-program{background:var(--kry-paper);color:var(--kry-ink);font:15px/1.5 'Segoe UI',Arial,sans-serif}
body header,.desktop-program header{min-height:68px;background:#14283e;padding:10px 24px;gap:16px;border-bottom:3px solid #57b8bf}
header .brand,.desktop-program .brand{font-size:15px;letter-spacing:1px;gap:12px}.brand img,.desktop-program .brand img,header .marka img{width:42px;height:42px;object-fit:contain;border-radius:6px}
header nav a,.desktop-program header nav a{font-size:13px;min-height:44px;color:#e9f2f9}header nav a[aria-current]{color:#a9eced}
header h1{font-size:20px}header p{font-size:12px}
main,.desktop-program main{max-width:1840px;padding:18px 24px 28px;margin:0 auto;min-width:0}
h1,h2,h3,p{overflow-wrap:break-word}.program-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 16px}.program-title h1{font-size:27px;line-height:1.2;letter-spacing:-.5px;margin:3px 0}.program-title .eyebrow{margin:0;font-size:10px;letter-spacing:1.6px;color:#52667c}.workspace-hint{font-size:13px;color:var(--kry-muted)}
.program-tabs{display:flex;gap:8px;border-bottom:1px solid var(--kry-line);padding-bottom:8px;flex-wrap:wrap}.program-tabs button{border-color:transparent;background:transparent}.program-tabs [aria-selected=true]{background:#e0eff8;border-color:#98c2db;color:#084f7a}
.card,.desktop-program .card{background:#fff;border:1px solid var(--kry-line);border-radius:12px;padding:20px;box-shadow:0 2px 5px #152e4810;margin:0;min-width:0}
.program-panel{min-width:0}.program-columns{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(0,1.45fr);gap:20px;align-items:start}.program-left,.program-right{display:flex;flex-direction:column;gap:18px;min-width:0}
.desktop-program h2,h2{font-size:18px;line-height:1.35;font-weight:650;margin:0 0 12px}.section-title{align-items:flex-start}.section-title span{font-size:12px;overflow-wrap:anywhere}.muted,.desktop-program .muted{color:var(--kry-muted);font-size:13px;line-height:1.55}.small,.desktop-program .small{font-size:12px}
.query,.desktop-program .query{display:grid;grid-template-columns:1fr 1.6fr .75fr .75fr auto;gap:12px;margin:0;padding:18px 20px;align-items:end}.query-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px}.query-heading h2{margin:0}.query #query{min-width:158px}
button,input,select,a,summary{-webkit-tap-highlight-color:transparent}button,.desktop-program button,.view-actions a,.desktop-program .view-actions a,.linkler button{min-height:48px;padding:10px 14px;font:600 14px/1.3 'Segoe UI',Arial,sans-serif;border:1px solid #acbfce;border-radius:8px;background:#fff;color:#173e60;cursor:pointer;white-space:normal}
button:hover:not(:disabled),.view-actions a:hover{background:#edf5fb;border-color:#6395ba}.primary,#olustur,.desktop-program .primary,.desktop-program #olustur{background:#075f8a;border-color:#075f8a;color:white;min-height:48px;border-radius:8px;font-size:15px}.primary:hover:not(:disabled),#olustur:hover:not(:disabled){background:#084f73;color:white}button:disabled,#olustur:disabled{opacity:.65;cursor:not-allowed;animation:none}
:focus-visible,.desktop-program :focus-visible{outline:3px solid var(--kry-focus)!important;outline-offset:3px}label,.desktop-program label{font-size:13px;font-weight:650;margin:0 0 6px;line-height:1.4;color:#233e56}input:not([type=checkbox]):not([type=range]),select,.desktop-program input:not([type=checkbox]):not([type=range]),.desktop-program select{font:15px/1.4 'Segoe UI',Arial,sans-serif;min-height:46px;padding:10px 11px;border:1px solid #9fb1c1;border-radius:7px;background:#fff;color:#172b42;width:100%;min-width:0}
input[readonly],.desktop-program input[readonly]{background:#f0f4f7!important;color:#354e62;border-color:#d1dce5!important}input[type=checkbox]{width:20px;height:20px;accent-color:#075f8a;flex:none}input[type=range]{min-height:48px;accent-color:#075f8a;width:100%}
.fields,.desktop-program .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px;margin:0}.field,.fields>div{min-width:0}.field-group-heading{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.2px;text-transform:none;padding:13px 0 8px;margin:0;border-bottom:1px solid #e0e8ef;color:#315b78}.field small,.desktop-program .field small{font-size:12px;line-height:1.45;min-height:35px;margin-top:6px;color:#657180;overflow-wrap:anywhere}.field.known small,.desktop-program .field.known small{color:#216357}.field.known input{border-color:#8bbaa9}.field:has(#value-Kat) label,.field:has(#value-Nizam) label{color:#0c5076}.field:has(#value-Kat) input,.field:has(#value-Nizam) input{border-left:3px solid #1978a2}
.metrics,.desktop-program .metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:#edf5fa;border:1px solid #dae7f0;border-radius:8px;margin-top:18px}.metrics small,.desktop-program .metrics small{font-size:12px}.metrics strong{font-size:21px}
.program-controls,.desktop-program .program-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.program-controls button{flex:1}.mahalle-search,.desktop-program .mahalle-search{margin:10px 0}.mahalle-search>button{font-size:13px}.desktop-program #queryStatus,#queryStatus{font-size:13px;min-height:24px;padding:10px 12px;margin:10px 0 16px;border-left:3px solid #64a8c5;background:#e4eff5;color:#254963;border-radius:0 7px 7px 0}
.view-tabs,.desktop-program .view-tabs{gap:8px;margin:14px 0;flex-wrap:wrap}.view-tabs .active{background:#e2f0f8;border-color:#6da5c9;color:#084f78}.preview-stage,.desktop-program .preview-stage{height:clamp(360px,48vh,720px);min-height:360px;max-height:none;aspect-ratio:auto;background:#f6f8fa;border:1px solid #cdd9e2;border-radius:8px}.preview-stage canvas{object-fit:contain}.view-actions,.desktop-program .view-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.view-actions button,.desktop-program .view-actions button,.view-actions a{font-size:12px;min-height:48px}.transfer{gap:8px;display:flex;align-items:stretch}.transfer input,.desktop-program .transfer input{font-size:14px!important}.transfer button{font-size:13px;min-width:112px}.desktop-program details svg{max-height:none;width:100%}
.mass-preview-card #massCanvas,.desktop-program .mass-preview-card #massCanvas{max-height:none;margin-top:0!important;aspect-ratio:8/5;object-fit:contain;background:#f4f7fa!important}.mass-preview-card label{display:block;margin-top:12px}.desktop-program #analysis #massCanvas{max-height:none}.desktop-program #calculationFields{margin-top:18px;gap:12px}.desktop-program #calculationFields small{font-size:12px;min-height:0;line-height:1.5;color:#52667c}.desktop-program #calculationFields strong{font-size:15px;min-height:38px;background:#f2f6fa;border:0;border-left:3px solid #8ab5d1;border-radius:3px;padding:8px;margin-top:4px}.desktop-program #calculate{margin-top:16px}.desktop-program #calculationStatus{font-size:13px;line-height:1.5}
.table-wrap{overflow-x:auto;max-width:100%}table{min-width:0;width:100%}.desktop-program th,.desktop-program td,th,td{font-size:13px;padding:11px 10px;overflow-wrap:anywhere}th{background:#eff5f9;color:#34536a}summary,.desktop-program summary{min-height:48px;font-size:13px;display:list-item;padding:12px 0;cursor:pointer;color:#31536d}details{margin-top:16px}.source-log,.download-card{margin-top:18px!important}.source-log summary{font-weight:650}.desktop-program #log,#log{background:#f6f8fa;color:#334b60;border:1px solid #dce5ed;border-radius:7px;min-height:0;max-height:260px;padding:12px;font:12px/1.6 Consolas,monospace;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.outputs,.desktop-program .outputs{margin:0;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;border:0;background:transparent;padding:0}.outputs label{display:flex;align-items:center;gap:8px;min-height:48px;font-size:14px}.outputs #olustur,.desktop-program .outputs #olustur{flex:1 1 100%;width:100%;margin-top:8px;font-weight:650;animation:none}.outputs #olustur.ready{box-shadow:0 0 0 3px #bce4d7;background:#106a57;border-color:#106a57}.booking{margin-top:18px!important}.desktop-program footer,footer{font-size:12px;color:#53687a;margin:20px 0 0;line-height:1.6;padding:12px 0}
#busy{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 32px));z-index:2000;margin:0;padding:24px;background:#fff;border:1px solid #a4bdce;box-shadow:0 16px 80px #0f294144;border-radius:12px;display:flex;font-size:15px;color:#173e60;line-height:1.6}.spinner{width:24px;height:24px;border-color:#1378a5;border-top-color:transparent}.desktop-program #busy{font-size:15px}.kry-workbench .program-panel[hidden]{display:none!important}
/* Legacy page retains its existing four-field/download behavior. */
body:not(.desktop-program) main{max-width:1100px}body:not(.desktop-program) #form{border:1px solid var(--kry-line);border-radius:12px;padding:24px;gap:18px;background:white}body:not(.desktop-program) #olustur{grid-column:1/-1}body:not(.desktop-program) footer{padding:20px}
@media(min-width:1920px){.program-columns{grid-template-columns:minmax(420px,.8fr) minmax(0,1.5fr)}.desktop-program .preview-stage{height:58vh}}
@media(max-width:1365px){.program-columns{grid-template-columns:minmax(320px,.85fr) minmax(0,1fr);gap:16px}.query,.desktop-program .query{grid-template-columns:1fr 1.4fr .8fr .8fr}.query #query{grid-column:1/-1}.card,.desktop-program .card{padding:16px}.workspace-hint{display:none}}
@media(max-width:1023px){main,.desktop-program main{padding:14px 16px}.program-columns{grid-template-columns:1fr}.desktop-program .program-right{grid-row:1;grid-column:1}.desktop-program .program-left{grid-row:2;grid-column:1}.desktop-program .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.desktop-program .preview-stage{height:45vh;min-height:300px}.mass-preview-card #massCanvas{max-height:420px}.program-title h1{font-size:24px}.program-tabs{gap:4px}.program-right,.program-left{gap:14px}}
@media(max-width:639px){body header,.desktop-program header{padding:8px 14px;gap:4px;flex-wrap:wrap}header nav{width:100%;gap:16px}.desktop-program header nav a{min-height:44px}.brand small,.desktop-program .brand small{display:none}.desktop-program .brand img{width:36px;height:36px}main,.desktop-program main{padding:12px}.program-title{margin:14px 0}.program-title h1{font-size:23px}.query,.desktop-program .query{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.query-heading{align-items:center}.query-heading h2{font-size:16px}.query>div:has(#mahalle){grid-column:1/-1}.query>div:has(#ilce){grid-column:1/-1}.fields,.desktop-program .fields{grid-template-columns:1fr!important}.query #query{grid-column:1/-1}.card,.desktop-program .card{padding:14px;border-radius:10px}.desktop-program input:not([type=checkbox]):not([type=range]),.desktop-program select,input:not([type=checkbox]):not([type=range]),select{font-size:16px;min-height:48px}.field small,.desktop-program .field small{min-height:0}.desktop-program .preview-stage{min-height:280px;height:42vh}.transfer{flex-direction:column}.transfer button{width:100%}.view-actions>*{flex:1 1 42%}.view-tabs>*{flex:1}.metrics{grid-template-columns:1fr!important}.program-controls{flex-direction:column}.program-tabs button{flex:1;font-size:13px;min-height:48px}.booking{grid-template-columns:1fr;padding:16px}.booking h2{font-size:24px}.section-title{flex-direction:column;gap:4px}.desktop-program th,.desktop-program td{font-size:12px;padding:9px 5px}.download-card .outputs label{flex:1 1 38%}footer{flex-direction:column;gap:8px}.desktop-program #massAngle{min-height:48px}.mass-preview-card #massCanvas{max-height:none}body:not(.desktop-program) #form{grid-template-columns:1fr;padding:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.desktop-program #massAngle{min-height:48px}

.version-contact{display:inline-block;margin-top:8px;color:#0f766e;font-size:13px;font-weight:650;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
