/* Kare Studio / Aqua — shared visual language for web and native clients. */
:root {
  --green:#087f89; --ink:#154b51; --muted:#597980; --line:#bfdde0;
  --aqua:#0a939d; --aqua-deep:#056878; --surface:#f3fbfc;
  --radius-control:14px; --radius-card:26px;
  --shadow-card:0 12px 36px #235e6d0c,0 1px 2px #fff9 inset;
}
html{min-height:100%;background:#eaf7f9;color-scheme:light}
body{min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;background:radial-gradient(ellipse at 0% 12%,#c9f1eb88 0,transparent 55%),radial-gradient(ellipse at 95% 65%,#bedeea77 0,transparent 50%),linear-gradient(135deg,#effbfb,#e7f4f8);-webkit-font-smoothing:antialiased}
body::before{content:'';position:fixed;z-index:-1;inset:-30%;pointer-events:none;background:linear-gradient(63deg,transparent 0 33%,#ffffff38 33% 48%,transparent 48% 71%,#94d5dd16 71%);transform:rotate(-8deg)}
header{height:88px;padding:0 4%;background:#f3fcfc9c;border-bottom:1px solid #fff9;box-shadow:0 1px 0 #b8d9df44;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
header a{display:flex;align-items:center;gap:10px;color:#124e55;font-size:27px;font-weight:750;letter-spacing:-1.2px}
header a small{font-size:12px;letter-spacing:1.5px;font-weight:500;margin-top:7px;color:#527a80}
.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#22b1b3,#087785);color:white;box-shadow:0 5px 12px #087d8b24,0 1px 1px #ffffff66 inset}
.brand-icon svg{width:25px;height:25px}.wordmark{letter-spacing:-1.4px}
header>span{display:flex;align-items:center;gap:7px;background:#e1f3f1;color:#306d70;font-size:11px;border:1px solid #c7e5e2;padding:9px 14px}
header>span svg{width:14px;height:14px}
button{border-color:#c1dfe2;border-radius:var(--radius-control);background:linear-gradient(150deg,#fcffff,#e6f4f6);box-shadow:0 1px 1px #fff inset,0 2px 4px #1f5d6a06;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s;color:#225c64;min-height:38px}
button:hover{border-color:#6eb8c0;background:linear-gradient(150deg,#fff,#d9f0f2);box-shadow:0 4px 12px #12657812}
button:active{transform:scale(.975)}button:disabled{opacity:.65;cursor:wait}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #17a6b18c;outline-offset:3px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(125deg,#09a5a6,#08768b);border:1px solid #087b8d;color:white;border-radius:15px;min-height:44px;padding:12px 21px;box-shadow:0 7px 18px #087c8e25,0 1px 1px #ffffff40 inset;letter-spacing:.1px}
.primary:hover{background:linear-gradient(125deg,#0baeb0,#086f85);border-color:#066575;box-shadow:0 8px 22px #087c8e35}.primary svg{width:17px;height:17px}
main{padding-bottom:10px}.intro{padding:32px 0 29px}.intro small{color:#397a80;letter-spacing:2.1px;font-size:9px}.intro p{color:#5a7f85;font-size:12px}h1{font-size:37px;letter-spacing:-1.5px;font-weight:730;margin:8px 0 9px}h1 span{color:#0b9ba5}.intro>p{padding:11px 15px;border:1px solid #badde0;background:#f4fcfc88;border-radius:15px;font-size:11px}
.workspace{border:1px solid #aecfd6;border-radius:28px;background:#eaf6f8;box-shadow:0 20px 55px #2263770d,0 1px 0 #fff inset;isolation:isolate}
aside{padding:25px 20px;background:linear-gradient(135deg,#f7fdfdec,#d9edf2a6);border-color:#bddce1!important}.right{background:linear-gradient(135deg,#effafb,#dceff3)}
h2{font-size:13px;font-weight:700;color:#1a545d;letter-spacing:-.1px;gap:9px}h2 em{color:#377e86;background:#d9eff0;border:1px solid #c0e0e2;border-radius:8px;min-width:25px;height:25px;display:inline-flex;justify-content:center;align-items:center;font-size:9px}h2 small{color:#426e76;background:#e1f1f3;padding:4px 7px;border-radius:7px;font-size:10px}
hr{background:linear-gradient(90deg,#b6d8df80,#b6d8df30);margin:23px 0}
.sizes{gap:8px}.sizes button{height:81px;border-radius:13px;font-size:10px;position:relative;font-weight:550;gap:7px;padding:10px 2px}.sizes i{border-color:#689aa6;border-radius:3px;background:linear-gradient(145deg,#fff8,#bddee144);flex-shrink:0}.sizes small{font-size:9px;color:#66878c;font-weight:400}
.active{background:linear-gradient(140deg,#e2f8f6,#c2e9ed)!important;border-color:#168c9b!important;color:#075b69!important;box-shadow:0 0 0 1px #168c9b,0 3px 9px #16738310!important}
.sizes .active::after{content:'✓';position:absolute;right:5px;top:3px;font-size:10px;color:#087f8c}.sizes .active i{border-color:#078694;background:#4fc7cc24}
label{color:#37656d;font-size:11px;font-weight:500}select{border-radius:10px;min-height:34px;padding:6px 9px;border-color:#b4d9df;background:#f5fcfd;color:#1c5d68;font-weight:600;box-shadow:0 1px 2px #22657708}output{color:#367584;background:#e1f2f4;padding:2px 6px;border-radius:6px;font-variant-numeric:tabular-nums}
input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:22px;margin:8px 0 9px;accent-color:#0b909e;touch-action:pan-y}
input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(90deg,#80c9cc,#c5e1e6);box-shadow:0 1px 2px #24677716 inset}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:19px;width:19px;background:linear-gradient(145deg,#19b6bb,#05788b);border:2px solid #f7ffff;border-radius:50%;margin-top:-7px;box-shadow:0 2px 5px #126b7c38;cursor:grab}
input[type=range]::-moz-range-track{height:5px;border-radius:8px;background:#c1e0e5}input[type=range]::-moz-range-progress{height:5px;border-radius:8px;background:#58b7c0}input[type=range]::-moz-range-thumb{height:15px;width:15px;background:#078e9c;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 5px #126b7c38}
.layouts{gap:7px}.layouts button{height:46px;border-radius:10px;padding:7px;color:#669ba4}.layouts .active{color:#137e8d!important}.layouts svg{display:block}.row button{border-radius:11px;min-height:36px;font-size:10px;font-weight:600}.hint{color:#557982;font-size:9px}
.preview{background:radial-gradient(ellipse at 30% 15%,#f7fdfc 0,#e0f1f4 50%,#cde4ec 100%);position:relative}
.preview::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.3;background-image:radial-gradient(#72adb7 0.65px,transparent .65px);background-size:18px 18px;mask-image:linear-gradient(black,transparent 65%);z-index:0}
.preview>*{position:relative;z-index:1}.previewbar{color:#4c7d85;font-size:9px;padding:17px 20px}.previewbar:first-child>span:first-child{display:inline-flex;align-items:center;gap:5px;color:#20717b;font-size:8px;font-weight:650;letter-spacing:1.4px}.previewbar:first-child>span:last-child{border:1px solid #bcdde2;background:#effafaab;padding:6px 9px;border-radius:8px;letter-spacing:0;font-size:9px;color:#477b85}.previewbar:last-child{border-top:1px solid #b4d6de6b;background:#edf8fa7d;backdrop-filter:blur(12px)}.previewbar button{min-height:28px;border:1px solid #afd4dc;background:#eff9fa;border-radius:9px;padding:6px 10px;color:#386f7b;font-size:9px}
.canvasarea{padding:28px 35px}canvas{box-shadow:0 22px 38px #28596729,0 4px 10px #28596712;outline:1px solid #ffffff7a;outline-offset:0}
.upload{height:108px;border-radius:17px;border:1.5px dashed #70b4bf;background:linear-gradient(135deg,#f7fefe,#d5edf1);box-shadow:0 1px 0 #fff inset;color:#0b8b99;font-weight:400}.upload:hover{background:linear-gradient(135deg,#fff,#c8ecee);border-color:#0e8b9c}.upload b{font-size:12px;color:#1b626d}.upload small{font-size:9px;color:#60828c}
.photos{gap:6px;margin-top:13px}.photo{width:44px;height:44px;border-radius:11px;background:linear-gradient(145deg,#f5fcfc,#cee5eb);border-color:#b7d8df}.photo span{color:#326c78;background:#f5ffffeb;border-radius:4px;font-size:8px;padding:1px 4px}.photo.active{outline:2px solid #e5fafa;outline-offset:-4px}
.tabs{background:#c6e2e766;border:1px solid #badbe0;padding:3px;border-radius:11px;gap:2px}.tabs button{flex:1;min-height:29px;padding:5px 3px;border-radius:8px;background:transparent;border:1px solid transparent;box-shadow:none;font-size:10px;color:#547e88}.tabs .active{background:#f4fdfc!important;box-shadow:0 2px 6px #1f6b7b16!important;border-color:#e0f1f1!important}
.backgrounds{gap:7px}.swatch{border-radius:9px;height:29px;border:1px solid #8fb9c04d;box-shadow:0 0 0 2px #ffffff60 inset}.swatch.active{outline:2px solid #0a8b99;outline-offset:2px;box-shadow:0 0 0 2px #ffffff80 inset!important}.swatch:hover{transform:translateY(-2px)}input[type=color]{width:35px;height:28px;padding:2px;border:1px solid #a6ced7;border-radius:9px;cursor:pointer;background:#f2fbfb}
.filters{gap:7px}.filters button{border-radius:11px;padding:5px 4px 7px;font-size:9px;font-weight:550}.filters i{height:36px;border-radius:7px;margin-bottom:7px;background:linear-gradient(155deg,#c6dfd5 35%,#88b4b3 36%,#397f83 70%,#d8c9a5 71%);box-shadow:0 1px 3px #06404b10 inset}.filters .active{position:relative}.filters .active::after{content:'✓';position:absolute;right:7px;top:7px;background:#f5ffffe6;color:#08798c;border-radius:50%;font-size:8px;width:13px;height:13px;display:grid;place-items:center}
#remove{color:#8e5d63;background:linear-gradient(135deg,#fffafb,#f5e9eb);border-color:#e3cdd1}#replace{color:#256e7b}
footer{color:#648a93;padding:23px 3px;font-size:10px}footer b{color:#387583;font-size:12px}#status{max-width:65%;text-align:right;line-height:1.6}
dialog{width:410px;border:1px solid #a4d0da;border-radius:28px;padding:32px;background:linear-gradient(140deg,#f8ffff,#dcedf3);color:#1b5863;box-shadow:0 30px 100px #0a4e6a35,0 1px 0 #fff inset}dialog::backdrop{background:#174b645e;backdrop-filter:blur(9px)}dialog h2{font-size:23px;letter-spacing:-.5px;line-height:1.25}dialog>small{color:#438392;font-size:9px}dialog p{color:#507d88}dialog select{background:#f4fcfd;min-height:43px}dialog .primary{display:flex;border-radius:13px}.close{width:32px;height:32px;min-height:0;border-radius:50%;background:#d8ebf0;color:#497d89;top:14px;right:14px;display:grid;place-items:center;padding:0}
@media (max-width:1100px){aside{padding:22px 13px}.canvasarea{padding:20px}.previewbar{padding:15px}.previewbar:last-child{gap:8px}}
@media (max-width:900px), (max-aspect-ratio:1/1){
  header{height:76px;padding:0 5%;background:#effafbcb}header a{font-size:25px;gap:8px}.brand-icon{width:38px;height:38px;border-radius:12px}.brand-icon svg{width:23px;height:23px}header a small{font-size:10px;letter-spacing:1px}.primary{padding:10px 16px;min-height:42px;font-size:12px;border-radius:14px}
  main{padding:15px 4% 0}.workspace{border-radius:25px;border-color:#a7cdd6;box-shadow:0 15px 35px #285f7110}.preview{border-radius:24px 24px 0 0}.previewbar{padding:12px 14px}.previewbar:first-child{padding-top:14px}.previewbar:last-child{font-size:9px;padding:10px 13px}.canvasarea{height:clamp(220px,47svh,580px);padding:14px 24px 21px}.previewbar button{font-size:9px;padding:5px 8px}
  .compact-menu{background:linear-gradient(130deg,#e7f6f7,#d4eaf0);border-top:1px solid #f8ffff;border-bottom:1px solid #badbe1;padding:10px 9px;gap:5px}
  .compact-menu button{min-height:54px;border:1px solid #a9d0d8;border-radius:12px;background:linear-gradient(145deg,#f6fdfd,#d9edf1);color:#3e737e;font-weight:650;font-size:clamp(8px,2vw,11px);box-shadow:0 1px 0 #fff inset,0 2px 5px #1a60730a;gap:7px;letter-spacing:0}
  .compact-menu button.active{background:linear-gradient(135deg,#0fa3ac,#08778b)!important;color:white!important;border-color:#067c8e!important;box-shadow:0 4px 10px #0b708c25,0 1px 0 #ffffff44 inset!important}
  .compact-menu button span{font-size:13px;opacity:.8}
  .tool-panel{padding:23px;background:linear-gradient(120deg,#f6fdfd,#e0f0f5)}.tool-panel h2{font-size:14px;margin-bottom:19px}.tool-panel h2 em{width:27px;height:27px}.tool-panel.atmosphere-panel{padding-top:0}.atmosphere-panel h2{padding-top:20px;border-color:#b8d8df}
  .sizes{gap:7px}.sizes button{height:83px;font-size:10px;padding:10px 2px}.layouts{max-width:none;gap:10px}.layouts button{height:58px;padding:9px;border-radius:13px}.tool-panel label{font-size:12px;margin:19px 0}.tool-panel input[type=range]{height:24px;margin:9px 0 12px}.tool-panel .row button{font-size:11px;min-height:42px}.tool-panel .hint{font-size:10px}
  .backgrounds{gap:8px}.swatch{height:33px;border-radius:10px}.filters{gap:7px}.filters button{padding:6px 4px 9px;font-size:10px}.filters i{height:40px}.tabs button{font-size:11px;min-height:33px}.photos .photo{width:51px;height:51px}.upload{height:113px;border-radius:18px}.upload b{font-size:13px}.upload small{font-size:10px}
  footer{font-size:9px;padding:17px 3px;align-items:flex-start}footer b{font-size:11px}
}
@media (max-width:600px){.backgrounds{grid-template-columns:repeat(6,minmax(0,1fr))}.filters{grid-template-columns:repeat(4,minmax(0,1fr))}.filters i{height:47px}.sizes{grid-template-columns:repeat(3,minmax(0,1fr))}.sizes button{height:78px}.tool-panel{padding:21px}.previewbar:first-child>span:first-child{font-size:7px;letter-spacing:1px}}
@media (max-width:380px){header a small{display:none}.brand-icon{width:33px;height:33px;border-radius:11px}header a{font-size:24px}.compact-menu{gap:4px;padding:9px 6px}.compact-menu button{font-size:8px;min-height:51px;border-radius:10px}.tool-panel{padding:18px 15px}.previewbar:last-child{font-size:8px}.previewbar button{font-size:8px}.canvasarea{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){button{transition:none}button:active{transform:none}.swatch:hover{transform:none}}
@media (max-width:900px), (max-aspect-ratio:1/1){.tool-panel .row button{min-height:44px}.tabs button{min-height:40px}.swatch{height:38px}}
/* Editor 2: horizontally scrolling tools and direct photo editing. */
.photo-toolbar{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:14px 20px;border-bottom:1px solid #bddce1;background:#f1fbfb;order:-1;min-width:0}.photo-toolbar label{margin:0;font-size:12px;font-weight:650}.photo-toolbar select{float:none;min-width:58px;min-height:42px}.photo-toolbar .primary{font-size:12px;min-height:42px}.photo-toolbar>span{font-size:11px;color:#507d87;margin-left:auto}
#layouts{grid-template-columns:repeat(4,minmax(0,1fr));max-height:350px;overflow-y:auto;padding:3px;gap:8px;margin-top:12px;overscroll-behavior:contain}#layouts button{height:72px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}#layouts canvas{width:100%;height:42px;max-height:42px;box-shadow:none;outline:0;object-fit:contain;pointer-events:none}#layouts span{font-size:8px;white-space:nowrap}#canvas{cursor:grab;touch-action:none}.photo{touch-action:none;user-select:none;-webkit-user-select:none}.photo img{pointer-events:none;-webkit-user-drag:none}.drop-target{outline:3px solid #05a4b2!important;outline-offset:2px}.gesture-hint{background:#d7eef1;border:1px solid #c0e0e5;padding:9px;border-radius:10px;line-height:1.8}
.download-panel>small{color:#438392;letter-spacing:1px;font-size:9px}.download-panel select{float:none;display:block;width:100%;margin-top:8px;min-height:40px}.download-panel>p{color:#507d88;line-height:1.7}.download-panel .primary{width:100%;margin-top:10px;font-size:12px}.download-panel h2{margin-top:10px}.download-panel>label{display:block}.download-panel #qualityNote{font-size:10px}
@media (max-width:900px), (max-aspect-ratio:1/1){
.compact-menu{display:flex;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:7px;padding:11px 10px;scrollbar-width:thin;scrollbar-color:#71b9c3 transparent;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.compact-menu button{flex:0 0 auto;min-width:79px;min-height:54px;padding:9px 12px;font-size:10px;scroll-snap-align:start}.compact-menu button[data-tool=fotograflar]{min-width:102px}.compact-menu button[data-tool=arkaplan]{min-width:90px}.compact-menu::-webkit-scrollbar{height:4px}.compact-menu::-webkit-scrollbar-thumb{background:#8bc4cd;border-radius:5px}
.photo-toolbar{width:100%;padding:12px 14px;gap:8px;flex-wrap:wrap}.photo-toolbar label{font-size:11px}.photo-toolbar .primary{margin-left:auto;padding:10px 13px}.photo-toolbar>span{flex-basis:100%;text-align:right;font-size:10px}.photo-toolbar select{min-height:40px}.canvasarea{height:clamp(200px,43svh,560px)}#layouts{grid-template-columns:repeat(5,minmax(0,1fr));max-height:340px;gap:8px}#layouts button{height:78px;padding:6px}#layouts canvas{height:45px;max-height:45px}.download-panel h2{font-size:21px;margin:8px 0 12px}.download-panel .primary{min-height:46px}.download-panel label{margin:22px 0}.download-panel>small{font-size:10px}
}
@media(max-width:380px){#layouts{grid-template-columns:repeat(4,minmax(0,1fr))}.photo-toolbar label{font-size:10px}.photo-toolbar .primary{font-size:11px;padding-inline:10px}}
.workspace>aside.left{border-right:1px solid #bddce1}
/* App surface: no text selection or document scrolling. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
*,*::before,*::after{scrollbar-width:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
body{display:flex;flex-direction:column}
header{flex:0 0 88px}
main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
.intro{flex:none}
.workspace{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr)}
.workspace>aside{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.preview{min-height:0;overflow:hidden}
.previewbar{flex:none}
.canvasarea{min-height:0;overflow:hidden}
#canvas{max-height:100%;max-width:100%}
footer{flex:none;padding-block:12px}
@media (max-width:900px), (max-aspect-ratio:1/1){
header{flex-basis:76px}
main{padding-top:10px;padding-bottom:0}
.workspace{flex:1;min-height:0;overflow:hidden}
.photo-toolbar,.compact-menu{flex-shrink:0}
.preview{flex:0 1 43svh;min-height:140px}
.canvasarea{flex:1;height:auto;min-height:0;padding-block:10px}
.tool-panel.is-open{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
footer{padding-block:8px}
}
/* Remove the indicated auxiliary chrome; keep export in the tools menu. */
header>span,header>#export,.preview>.previewbar,.photo-toolbar>#photoSummary{display:none!important}
#backgrounds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:330px;overflow-y:auto;padding:3px;margin:0 -3px;overscroll-behavior:contain}
.pattern-choice{display:flex;flex-direction:column;gap:5px;min-width:0;padding:4px 4px 7px;border-radius:11px;font-size:8px;overflow:hidden}
#backgrounds .pattern-choice canvas{width:100%;height:39px;max-height:39px;object-fit:cover;box-shadow:none;outline:0;border-radius:7px;pointer-events:none}
.pattern-choice>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:center}
.pattern-colors{margin-top:15px;padding:7px 12px;background:#e3f1f4;border:1px solid #bfdee3;border-radius:13px}
.pattern-colors .row{margin:7px 0;min-height:34px;font-size:11px}
.pattern-colors [hidden]{display:none!important}
@media (max-width:900px), (max-aspect-ratio:1/1){#backgrounds{grid-template-columns:repeat(5,minmax(0,1fr));max-height:340px;gap:8px}#backgrounds .pattern-choice canvas{height:44px;max-height:44px}.pattern-choice{font-size:9px;min-height:68px}.pattern-colors{margin-top:17px}.pattern-colors .row{font-size:12px;min-height:38px}.pattern-colors input[type=color]{width:50px;height:32px}}
@media(max-width:380px){#backgrounds{grid-template-columns:repeat(4,minmax(0,1fr))}.pattern-choice{font-size:8px}}
/* Compact controls and single-row option shelves. */
#panel-ayar>.row:has(#square),#upload{display:none!important}
#panel-ayar>label{margin:10px 0;font-size:11px}
#panel-ayar input[type=range]{height:18px;margin:3px 0 5px}
#panel-ayar h2{margin-bottom:12px}
#layouts,.sizes{display:flex!important;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;gap:8px;max-height:none!important;padding:3px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
#layouts button{flex:0 0 69px;height:72px;scroll-snap-align:start}
.sizes button{flex:0 0 76px;height:77px;scroll-snap-align:start}
#photos:empty{margin-top:0}
.photo:has(img){cursor:grab}.photo:not(:has(img))::before{content:'+';font-size:21px;font-weight:400;color:#428c99;position:absolute;inset:0;display:grid;place-items:center}
@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel{padding:15px 17px}.tool-panel h2{font-size:13px;margin-bottom:12px}.tool-panel h2 em{width:24px;height:24px}
#panel-ayar>label{margin:8px 0;font-size:11px}#panel-ayar input[type=range]{height:18px;margin:3px 0 4px}
#layouts{margin-top:7px;gap:8px}#layouts button{height:70px;flex-basis:69px}.sizes button{height:74px;flex-basis:76px}
#photos{margin-top:3px;gap:8px}.photos .photo{width:51px;height:51px}
}
/* Background submenus, horizontal pattern shelf and fixed color row. */
.background-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}
.background-heading h2{margin:0!important;flex:0 1 auto;white-space:nowrap;font-size:11px!important}
.background-heading #bgTabs{flex:1;min-width:70px;margin:0;display:flex;overflow-x:auto;overflow-y:hidden;gap:3px;overscroll-behavior-x:contain}
.background-heading #bgTabs button{flex:0 0 auto;min-height:31px;padding:5px 9px;font-size:10px}
#backgrounds{display:flex!important;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none!important;padding:5px 7px;gap:9px;scroll-snap-type:x proximity;touch-action:pan-x pan-y}
#backgrounds .pattern-choice{flex:0 0 72px;height:73px;justify-content:center;scroll-snap-align:start}
#backgrounds .pattern-choice canvas{height:42px;max-height:42px}
.pattern-colors{display:flex;gap:12px;align-items:center;padding:8px 10px;margin-top:10px}
.pattern-colors .row{flex:1;min-width:0;margin:0!important;min-height:32px;gap:5px;font-size:10px!important}
.pattern-colors input[type=color]{flex:none;width:32px!important;height:28px!important}
.background-transform{margin-top:12px;padding-top:10px;border-top:1px solid #bfdee3}
.background-transform-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#3d717b}
.background-transform-title button{font-size:10px;min-height:28px;padding:4px 9px}
.background-transform-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}
.background-transform-grid label{font-size:10px!important;margin:9px 0 0!important;min-width:0}
.background-transform-grid input[type=range]{height:18px!important;margin:4px 0!important}
/* Equal icon slots and text baselines, with room for selection outlines. */
.sizes{padding:6px 8px!important;scroll-padding-inline:8px;align-items:stretch}
.sizes button{height:88px!important;flex-basis:78px;display:grid!important;grid-template-rows:28px 14px 12px;align-content:center;justify-items:center;align-items:center;gap:5px!important;padding:9px 6px!important}
.size-icon{display:grid;place-items:center;width:100%;height:28px}
.size-name{font-size:10px;line-height:14px;white-space:nowrap}
.sizes small{line-height:12px;font-size:9px;align-self:center}
#layouts{padding:6px 8px!important;scroll-padding-inline:8px}
#layouts button{justify-content:center;gap:5px!important}
#layouts span{line-height:13px;padding-bottom:2px}
@media(max-width:380px){.background-heading{gap:7px}.background-heading h2{font-size:10px!important}.background-heading #bgTabs button{padding-inline:7px;font-size:9px}.pattern-colors{gap:8px;padding-inline:8px}.pattern-colors .row{font-size:9px!important}}
#panel-yerlesim>.hint{display:none}
.background-heading{flex-wrap:nowrap;gap:8px;width:100%;align-items:center}
.background-heading h2{flex:0 0 auto;line-height:16px}
.background-heading #bgTabs{margin-left:auto!important;flex:0 1 260px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:260px;min-width:0;overflow:hidden;gap:1px;padding:3px}
.background-heading #bgTabs button{min-width:0;width:100%;padding:5px 2px;min-height:28px;text-align:center;font-size:9px;white-space:nowrap;box-sizing:border-box}
.pattern-colors{justify-content:flex-start;gap:16px;padding:7px 10px}
.pattern-colors .row{flex:0 0 auto;justify-content:flex-start;gap:7px;margin:0!important;min-height:30px;white-space:nowrap}
.pattern-colors input[type=color]{width:31px!important;height:26px!important}
#filters{display:flex!important;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:8px;padding:5px 7px;scroll-snap-type:x proximity;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
#filters button{flex:0 0 73px;min-width:73px;height:76px;padding:5px 5px 8px;scroll-snap-align:start}
#filters i{height:43px!important;margin-bottom:6px}
#panel-efektler>label{margin:7px 0!important;font-size:10px!important;line-height:16px}
#panel-efektler input[type=range]{height:18px!important;margin:2px 0 4px!important}
#panel-efektler .gesture-hint{display:none}
#panel-efektler>.row{gap:8px;margin-top:8px}
#panel-efektler>.row button{min-height:34px;font-size:10px}
#sizes,#layouts,#backgrounds,#filters,#bgTabs,.compact-menu{cursor:grab}
@media(max-width:600px){.background-heading h2{font-size:10px!important}.background-heading #bgTabs{flex-basis:245px}.background-heading #bgTabs button{font-size:8px;min-height:27px}.pattern-colors{gap:14px}.pattern-colors .row{font-size:10px!important}#panel-efektler h2{margin-bottom:8px}}
@media(max-width:380px){.background-heading{gap:5px}.background-heading h2{font-size:9px!important}.background-heading #bgTabs button{font-size:7px}.pattern-colors{gap:10px;padding-inline:8px}.pattern-colors .row{gap:5px;font-size:9px!important}.pattern-colors input[type=color]{width:27px!important}}
/* Safe inset for the first selected card and trimmed download copy. */
#backgrounds,#filters{margin-left:0!important;margin-right:0!important;padding:7px 10px!important;scroll-padding-inline:10px;box-sizing:border-box}
#backgrounds::after,#filters::after{content:'';flex:0 0 2px}
#panel-indir>small,#panel-indir>p{display:none!important}
/* Main tool shelf: keep the selected first button clear of the edge. */
.compact-menu{padding-left:12px!important;padding-right:12px!important;scroll-padding-inline:12px;scrollbar-width:none!important;-ms-overflow-style:none}
.compact-menu::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.compact-menu::-webkit-scrollbar-thumb,.compact-menu::-webkit-scrollbar-track{background:transparent!important}
/* Shared leading edge across every editor section. */
:root{--editor-inset:16px}
.compact-menu{padding-inline:var(--editor-inset)!important;scroll-padding-inline:var(--editor-inset)}
.tool-panel h2{margin-left:0!important}
.sizes,#layouts,#backgrounds,#filters{margin-inline:0!important;padding:6px 2px!important;scroll-padding-inline:2px}
#photos{padding-inline:2px}
@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel{padding-left:var(--editor-inset)!important;padding-right:var(--editor-inset)!important}
.photo-toolbar{padding-left:var(--editor-inset)!important;padding-right:var(--editor-inset)!important}
.background-heading,.pattern-colors,.background-transform{margin-left:0!important;margin-right:0!important}
#panel-indir>small,#panel-indir>h2,#panel-indir>label,#panel-indir>.primary{margin-left:0!important;margin-right:0!important}
}
/* Match layout cards to the canvas-size shelf. */
#layouts{margin-top:0!important;align-items:stretch}
#layouts button{flex:0 0 78px!important;height:88px!important;display:grid!important;grid-template-rows:28px 14px 12px;align-content:center;justify-items:center;align-items:center;gap:5px!important;padding:9px 6px!important}
#layouts button canvas{width:100%;height:28px!important;max-height:28px!important;object-fit:contain}
#layouts button>span{font-size:10px;line-height:14px;padding:0;align-self:center;white-space:nowrap}
#layouts button::after{content:'';height:12px;display:block}
#panel-yerlesim h2,#panel-tuval h2{margin-bottom:12px!important}
/* Center the layout preview and label as one vertical group. */
#layouts button{grid-template-rows:28px 14px!important;align-content:center!important;row-gap:7px!important}
#layouts button::after{display:none!important;content:none!important}
/* An active page stays open; active arrow points down, others up. */
.compact-menu button span{transform:rotate(180deg)!important}
.compact-menu button[aria-expanded=true] span{transform:rotate(0deg)!important}
.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;min-width:0;margin-bottom:12px}
.layout-heading h2{flex:0 1 auto;min-width:0;white-space:nowrap;margin:0!important}
.layout-heading .layout-count{flex:0 0 auto;display:flex;align-items:center;gap:6px;margin:0!important;font-size:10px!important;white-space:nowrap;line-height:16px}
.layout-count #count{float:none;min-width:43px;width:43px;min-height:28px;height:28px;padding:3px 5px;border-radius:8px;font-size:11px}
#panel-yerlesim .layout-heading h2{margin-bottom:0!important}
@media(max-width:380px){.layout-heading{gap:5px}.layout-heading h2{font-size:11px}.layout-heading .layout-count{font-size:9px!important;gap:4px}.layout-count #count{width:39px;min-width:39px}}
/* Consistent section numbering and typography, including the background header. */
.tool-panel h2,.background-heading h2,.layout-heading h2{font-size:13px!important;font-weight:700!important;line-height:20px!important;letter-spacing:-.1px!important}
.tool-panel h2 em{font-size:9px!important;width:25px!important;min-width:25px!important;height:25px!important;line-height:1!important;flex-shrink:0}
.background-heading{gap:8px}
.download-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.download-options>label{display:block;min-width:0;margin:12px 0!important;font-size:11px}
.download-options select{width:100%;max-width:100%;min-width:0;float:none;margin-top:7px;font-size:11px;padding:7px}
.download-options>.hint{display:none!important}
/* Brand belongs to the editor; no separate top bar. */
body>header{display:none!important}
.photo-toolbar{min-height:62px;padding-block:10px!important}
.editor-brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#124e55;font-size:25px;font-weight:750;letter-spacing:-1px}
.editor-brand small{font-size:9px;font-weight:500;letter-spacing:1.5px;color:#527a80;margin-top:6px}
.editor-brand .brand-icon{width:35px;height:35px;border-radius:11px}
.editor-brand .brand-icon svg{width:23px;height:23px}
#choosePhotos{display:none!important}
.download-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.download-actions .primary{margin-top:0;min-width:0;font-size:11px;padding:10px 8px}
.download-actions #share{background:linear-gradient(130deg,#f1ffff,#c9e9ed);color:#126976;border-color:#87bcc7;box-shadow:0 1px 1px #fff inset}
.share-status{font-size:10px;line-height:1.5;color:#457780;margin-top:9px}
.share-status:empty{display:none}
/* Center the brand within the editor toolbar. */
.photo-toolbar{justify-content:center!important}
.photo-toolbar>.editor-brand{margin-inline:auto;justify-content:center}
.layout-heading .layout-count{font-size:11px!important;font-weight:700!important}
.frame-extra-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;border-top:1px solid #bfdee3;margin-top:10px;padding-top:6px}
#panel-ayar .frame-extra-controls>label{min-width:0;font-size:10px;margin:7px 0}
#panel-ayar .frame-extra-controls input[type=range]{width:100%}
.frame-extra-controls .border-color-row{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:10px}
.frame-extra-controls>.border-color-row{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:34px;margin-top:7px;flex-wrap:wrap}
.border-color-row>label{font-size:10px;margin:0!important}
.border-color-slot{display:flex;align-items:center;gap:3px}
.border-color-row [hidden]{display:none!important}
.border-color-row input[type=color]{width:31px;height:28px}
.border-color-slot .border-add{min-height:28px;padding:4px 7px;font-size:9px;border-style:dashed;border-radius:8px}
.border-color-slot .border-remove{width:18px;min-height:22px;height:22px;padding:0;border:0;background:transparent;box-shadow:none;font-size:15px;color:#728c93}
.border-color-row>.border-fill-picker{margin-left:auto!important;display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}
.border-fill-picker select{float:none;width:96px;min-height:28px;height:28px;border-radius:8px;padding:3px 5px;font-size:10px}
@media(max-width:380px){.border-fill-picker select{width:85px}.frame-extra-controls>.border-color-row{gap:6px}}
/* Native AdMob placement: outside the editor, at the bottom in compact mode. */
#adBanner{display:none}
@media (max-width:900px), (max-aspect-ratio:1/1){
body>main{min-height:0}
#adBanner{display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:100%;min-height:60px;box-sizing:border-box;padding:5px 10px calc(5px + env(safe-area-inset-bottom,0px));background:#e7f3f7;border:0;border-top:1px solid #c1dce4;overflow:hidden;isolation:isolate}
.ad-banner-slot{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:728px;height:50px;min-height:50px;border:1px dashed #b2d2dc;border-radius:6px;background:#eff8fb;color:#7a9ca6;font-size:10px;letter-spacing:.2px}
.ad-banner-label{position:absolute;left:7px;top:5px;font-size:7px;letter-spacing:1px;color:#89a6af}
}
@media (max-width:900px), (max-aspect-ratio:1/1){
#sizes.vertical-grid,#layouts.vertical-grid,#photos.vertical-grid{display:grid!important;grid-template-columns:repeat(var(--shelf-columns),minmax(0,1fr));grid-auto-rows:var(--shelf-row);gap:8px!important;align-content:start;overflow-x:hidden!important;overflow-y:auto!important;max-height:var(--shelf-height)!important;scroll-snap-type:y proximity;touch-action:pan-y;padding:6px 2px!important;margin-inline:0!important;box-sizing:border-box;width:100%}
#sizes.vertical-grid>button,#layouts.vertical-grid>button,#photos.vertical-grid>button{width:100%!important;min-width:0!important;height:var(--shelf-row)!important;scroll-snap-align:start}
#photos.vertical-grid>button{max-width:none}
}
@media (max-width:900px), (max-aspect-ratio:1/1){
#sizes.vertical-grid.compact-grid>button{grid-template-rows:24px 13px 11px;gap:3px!important;padding:5px 6px!important}
#sizes.compact-grid .size-icon{height:24px}
#sizes.compact-grid .size-name{font-size:9px;line-height:13px}
#sizes.compact-grid small{font-size:8px;line-height:11px}
#layouts.vertical-grid.compact-grid>button{grid-template-rows:24px 13px!important;gap:5px!important;padding:6px!important}
#layouts.compact-grid button canvas{height:24px!important;max-height:24px!important}
#layouts.compact-grid button>span{font-size:9px;line-height:13px}
}
.download-actions .reward-locked::before{content:'🔒';font-size:11px;line-height:1}
#rewardDialog h2{margin-top:10px;padding-right:12px;font-size:19px;line-height:1.35}
#rewardDialog p{font-size:12px;line-height:1.7}
#rewardDialog>.primary{width:100%;margin-top:8px}
/* Keep the border palette and fill selector together when all three colors are used. */
.frame-extra-controls>.border-color-row{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:7px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 2px;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.border-color-row>label{flex:0 0 auto;font-size:10px!important;white-space:nowrap}
.border-color-row>input,.border-color-row>.border-color-slot{flex:0 0 auto}
.border-color-row>.border-fill-picker{flex:0 0 auto;margin-left:auto!important;gap:5px}
.border-fill-picker select{width:90px;min-width:90px}
@media(max-width:450px){.frame-extra-controls>.border-color-row{gap:5px}.border-color-row>label{font-size:9px!important}.border-color-row input[type=color]{width:27px!important;height:26px!important}.border-color-slot{gap:1px}.border-color-slot .border-remove{width:15px}.border-color-row>.border-fill-picker{font-size:9px!important;gap:3px}.border-fill-picker select{width:82px;min-width:82px;font-size:9px;padding-inline:3px}}
/* Reserve real inset for card borders; align the first snap point to that inset. */
.sizes,#layouts,#backgrounds,#filters{padding-left:6px!important;padding-right:6px!important;scroll-padding-left:6px!important;scroll-padding-right:6px!important;overflow-anchor:none}
.sizes>button,#layouts>button,#backgrounds>button,#filters>button{scroll-margin-inline:0}
@media (max-width:900px), (max-aspect-ratio:1/1){#sizes.vertical-grid,#layouts.vertical-grid,#photos.vertical-grid{padding-inline:6px!important}}
/* Prevent scroll snapping/focus alignment from shifting a whole editor panel. */
.sizes,#layouts,#backgrounds,#filters{scroll-snap-type:none!important;scroll-padding-inline:0!important}
.workspace,.tool-panel,.layout-heading{overflow-anchor:none}
.workspace>.tool-panel,.workspace>aside,.tool-panel{scroll-padding:0}
@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel{overflow-x:hidden!important}
#sizes.vertical-grid,#layouts.vertical-grid,#photos.vertical-grid{scroll-snap-type:none!important}
}
/* Wide editor only: stack controls that do not fit narrow sidebars. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.layout-heading{flex-direction:column;align-items:stretch;gap:9px}
.layout-heading .layout-count{align-self:stretch;justify-content:space-between;width:100%}
.background-heading{flex-direction:column;align-items:stretch;gap:10px}
.background-heading h2{width:100%}
.background-heading #bgTabs{flex:0 0 auto;width:100%;max-width:100%;min-width:0;margin-left:0!important}
.frame-extra-controls>.border-color-row{flex-wrap:wrap!important;overflow:visible;gap:7px}
.border-color-row>.border-fill-picker{flex:0 0 100%;width:100%;margin-left:0!important;justify-content:space-between;padding-top:5px}
.border-fill-picker select{width:110px;min-width:110px}
}
/* Compact, aligned frame adjustment grid. */
.frame-extra-controls{column-gap:14px;row-gap:6px;padding-top:10px}
#panel-ayar .frame-extra-controls>label:not(.border-color-row){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:18px 22px;align-items:center;column-gap:4px;row-gap:2px;min-width:0;margin:0!important;font-size:10px!important;line-height:18px;white-space:nowrap}
.frame-extra-controls>label>output{float:none;grid-column:2;grid-row:1;justify-self:end;align-self:center;font-size:9px;line-height:15px;padding:1px 4px;white-space:nowrap}
#panel-ayar .frame-extra-controls>label>input[type=range]{grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:20px!important;margin:0!important}
/* Wide editor photo tray: five evenly sized cells per row. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#photos{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding-inline:2px}
#photos>.photo{width:100%!important;height:auto!important;aspect-ratio:1;min-width:0;border-radius:10px}
}
.pattern-colors{justify-content:center!important;gap:10px!important;flex-wrap:nowrap;min-width:0}
.pattern-colors-title{font-size:11px;font-weight:650;color:#37656d;white-space:nowrap;margin-right:2px}
.pattern-colors .row{flex:0 0 auto!important;gap:0!important;min-height:28px}
.pattern-colors input[type=color]{width:32px!important;height:28px!important;cursor:pointer}
/* Border palette uses icon controls on a single line. */
.frame-extra-controls>.border-color-row{flex-wrap:nowrap!important;align-items:center;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important}
.border-color-slot{flex:0 0 auto;gap:2px}
.border-color-slot .border-add{width:27px;min-width:27px;height:27px;min-height:27px;padding:0;font-size:18px;line-height:1;display:grid;place-items:center}
.border-color-slot .border-remove{width:16px;min-width:16px;height:24px;min-height:24px;font-size:15px}
.border-color-row>.border-fill-picker{flex:0 0 auto!important;width:auto!important;margin-left:auto!important;padding-top:0!important}
/* Border fill above its color palette. */
.frame-extra-controls>.border-color-row{display:flex!important;flex-wrap:wrap!important;overflow-x:visible!important;gap:6px!important}
.border-color-row>.border-fill-picker{order:-1;flex:0 0 100%!important;width:100%!important;margin-left:0!important;margin-bottom:4px!important;justify-content:space-between}
.border-fill-picker select{width:110px;min-width:110px}
.border-colors-label{font-size:10px;font-weight:500;color:#37656d;line-height:28px;margin-right:auto;white-space:nowrap}
/* Stronger section separators in the wide editor only. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>aside>hr{height:2px;background:#83b8c4;border:0;opacity:1;margin:22px 0;border-radius:2px}
.frame-extra-controls,.background-transform{border-top:2px solid #83b8c4}
}
.theme-select-trigger{display:none}
.theme-select-menu{position:fixed;z-index:10000;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#f4ffff,#dcedf3);border:1px solid #8dbfc9;border-radius:14px;padding:5px;box-shadow:0 12px 30px #164e642b,0 1px 0 #fff inset;color:#215d68}
.theme-select-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:31px;padding:6px 10px;margin:1px 0;background:transparent;border:1px solid transparent;border-radius:9px;box-shadow:none;text-align:left;font-size:11px;color:#2c6571}
.theme-select-option[aria-selected=true]{background:linear-gradient(120deg,#d8f4f1,#bde3e9);border-color:#91c7ce;color:#096477;font-weight:700}
.theme-select-option[aria-selected=true]::after{content:'✓';margin-left:12px;color:#078592}
.theme-select-option.is-focused,.theme-select-option:hover{background:#cae9ed;border-color:#7bbbc6;outline:0;box-shadow:none}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
select.themed-native-select{display:none!important}
.theme-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;min-height:31px;height:31px;max-width:100%;padding:5px 9px;border:1px solid #a2ced8;border-radius:9px;background:linear-gradient(145deg,#f8ffff,#dfF1f5);box-shadow:0 1px 0 #fff inset;color:#1e6170;font-size:11px;white-space:nowrap}
.theme-select-trigger[aria-expanded=true]{border-color:#0d929f;box-shadow:0 0 0 2px #0d929f24}
.theme-select-value{overflow:hidden;text-overflow:ellipsis;min-width:0}
.theme-select-arrow{flex:none;font-size:14px;line-height:1;color:#337d8a}
.theme-select-count{width:47px;min-width:47px;height:28px;min-height:28px;padding:3px 6px;gap:5px}
.border-fill-picker .theme-select-trigger{width:110px}
.download-options .theme-select-trigger{display:flex;width:100%;margin-top:7px;min-height:40px;height:40px;font-size:10px}
}
/* Web-only horizontal display-ad placement; not part of native app UI. */
.web-top-ad{display:none}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.intro{gap:24px}
.intro>div:first-child{flex:0 1 370px;min-width:240px}
.web-top-ad{position:relative;display:flex;flex:1 1 480px;align-items:center;justify-content:center;min-width:0;max-width:728px;height:90px;margin-left:auto;background:#f4fbfca6;border:1px dashed #9bc6d0;border-radius:12px;overflow:hidden}
.web-ad-label{position:absolute;top:6px;left:10px;font-size:7px;letter-spacing:1.2px;color:#7299a4}
.web-ad-placeholder{display:flex;flex-direction:column;align-items:center;gap:5px;color:#70939e;font-size:12px}
.web-ad-placeholder>span{font-size:9px;color:#8aa7ae}
}
.editor-brand .brand-icon{padding:0;overflow:hidden;background:none;box-shadow:0 3px 9px #087c8e26}
.editor-brand .brand-icon img{display:block;width:100%;height:100%;object-fit:cover}
.intro-app-icon{display:none}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.intro>.intro-brand-group:first-child{display:flex;align-items:stretch;gap:18px;flex:0 1 510px;min-width:0}
.intro-brand-group .intro-app-icon{display:block;align-self:center;flex:0 0 auto;width:94px;height:94px;object-fit:cover;border-radius:22px;box-shadow:0 7px 18px #087c8e24}
.intro-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.intro-copy h1{white-space:nowrap;font-size:clamp(27px,2.6vw,37px)}
.intro-copy>p{line-height:1.5}
}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.intro{padding-block:14px;align-items:center}
.intro>.intro-brand-group:first-child{height:90px;align-items:center}
.intro-brand-group .intro-app-icon{width:90px;height:90px;border-radius:21px}
.intro-copy h1{margin-bottom:0}
}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.intro-copy{height:90px;justify-content:flex-start;padding-top:2px;gap:0;flex:1}
.intro-copy>small{font-size:8px;line-height:13px;letter-spacing:1.5px}
.intro-copy h1{font-size:clamp(23px,2.35vw,33px);line-height:1.16;margin:5px 0 5px;letter-spacing:-1.1px}
.intro-copy>p{display:block;margin:0;font-size:clamp(9px,.8vw,11px);line-height:1.4;color:#5a7f85;max-width:100%;text-wrap:pretty}
.intro-brand-group .intro-app-icon{image-rendering:auto;object-fit:contain;flex-shrink:0}
}
/* Desktop hero: title first, compact brand, full horizontal ad allocation. */
.editor-brand .brand-icon{display:none!important}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.intro{gap:20px;min-height:110px;padding-block:10px}
.intro>.intro-brand-group:first-child{flex:1 1 300px;min-width:260px;height:90px;gap:14px;align-items:center}
.intro-brand-group .intro-app-icon{width:66px;height:66px;border-radius:16px;align-self:center}
.intro-copy{height:auto;min-height:66px;justify-content:center;padding:0;gap:3px}
.intro-copy h1{order:0;font-size:clamp(22px,2vw,29px);line-height:1.15;letter-spacing:-.9px;margin:0}
.intro-copy>small{order:1;font-size:7px;line-height:12px;letter-spacing:1.3px}
.intro-copy>p{order:2;font-size:9px;line-height:1.4;margin:0}
#webTopAd{flex:0 1 728px;width:728px;max-width:728px;min-width:0;height:90px;margin-left:auto}
}
/* Selected icon 5 beside the centered wordmark. */
.editor-brand .brand-icon{display:grid!important;width:38px;height:38px;flex:0 0 38px;overflow:hidden;border-radius:11px}
.editor-brand .brand-icon img{width:100%;height:100%;object-fit:cover}
.photo-edit-controls{margin-top:12px;padding-top:10px;border-top:1px solid #bfdee3}
.photo-edit-controls .gesture-hint{display:none}
.photo-edit-controls>label{margin:7px 0!important;font-size:10px!important;line-height:16px}
.photo-edit-controls input[type=range]{height:18px!important;margin:2px 0 4px!important}
.photo-edit-controls>.row{gap:8px;margin-top:8px}
.photo-edit-controls>.row button{min-height:34px;font-size:10px}
#filters button{flex-basis:78px!important;min-width:0!important;height:88px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:9px 6px!important}
#filters button i{width:100%;height:36px!important;min-height:36px;margin:0!important;flex:none}
@media (max-width:900px) and (min-width:0px), (max-aspect-ratio:1/1){
#filters.vertical-grid{display:grid!important;grid-template-columns:repeat(var(--shelf-columns),minmax(0,1fr));grid-auto-rows:var(--shelf-row);gap:8px!important;align-content:start;overflow-x:hidden!important;overflow-y:auto!important;max-height:var(--shelf-height)!important;scroll-snap-type:none!important;touch-action:pan-y;padding:6px!important;box-sizing:border-box;width:100%}
#filters.vertical-grid>button{width:100%!important;min-width:0!important;height:var(--shelf-row)!important}
#filters.vertical-grid.compact-grid>button{gap:5px;padding-block:5px!important;font-size:9px}
#filters.compact-grid button i{height:28px!important;min-height:28px}
}
/* Compact effects: let the panel own vertical scrolling; never clip its first row. */
@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-efektler #filters{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(70px,1fr))!important;grid-auto-rows:clamp(71px,10svh,88px)!important;gap:8px!important;height:auto!important;max-height:none!important;overflow:visible!important;align-content:start!important;scroll-snap-type:none!important;touch-action:pan-y!important;padding:6px!important}
#panel-efektler #filters>button{width:100%!important;height:100%!important;min-width:0!important;padding:5px 6px!important;gap:5px!important}
#panel-efektler #filters::after{display:none!important;content:none!important}
#panel-efektler #filters i{height:32px!important;min-height:32px!important}
}
/* Match the canvas shelf column calculation and row size exactly. */
@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-efektler #filters.vertical-grid{grid-template-columns:repeat(var(--shelf-columns),minmax(0,1fr))!important;grid-auto-rows:var(--shelf-row)!important}
#panel-efektler #filters.vertical-grid>button{height:var(--shelf-row)!important}
#panel-efektler #filters:not(.vertical-grid){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y!important}
#panel-efektler #filters:not(.vertical-grid)>button{flex:0 0 78px!important;height:88px!important}
#panel-efektler #filters.vertical-grid.compact-grid i{height:28px!important;min-height:28px!important}
}

/* Portrait preview: move the editor brand into the existing footer. */
.footer-brand>img{display:none}
.footer-brand small{font:inherit;text-transform:lowercase}
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace>.photo-toolbar{display:none!important}
.workspace>.preview{flex-basis:calc(43svh + 50px);min-height:140px}
.preview .canvasarea{padding:6px 8px!important}
footer .footer-brand{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
footer .footer-brand>img{display:block;width:23px;height:23px;border-radius:7px;object-fit:cover}
footer .footer-brand>span{font-size:14px;font-weight:750}
footer .footer-brand small{font-size:7px;font-weight:500;letter-spacing:1px;text-transform:uppercase}
footer{padding-block:6px!important;min-height:35px}
}

/* Portrait tools occupy one card row; the preview receives the remaining space. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace>.preview{flex:1 1 0!important;min-height:140px}
.workspace .tool-panel.is-open{flex:0 0 172px!important;height:172px!important;max-height:172px!important;min-height:0!important;overflow-y:auto!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.download-options .export-field-label{display:none}
.download-options>label{margin:0!important}
.download-options select,.download-options .theme-select-trigger{margin-top:0!important;border:1px solid #91c8d4!important;border-radius:11px;background:#f5fcfd;min-height:40px}
.download-actions{margin-top:8px!important}
}

/* Compact portrait canvas/layout cards: reduce whitespace around their contents. */
@media (max-width:900px), (max-aspect-ratio:1/1){
#sizes button,#layouts button{height:76px!important;padding:5px 6px!important;gap:3px!important}
#sizes button{grid-template-rows:24px 13px 11px!important}
#sizes .size-icon{height:24px}
#sizes .size-name{line-height:13px}
#sizes small{line-height:11px}
#layouts button{grid-template-rows:28px 13px!important;row-gap:5px!important}
#layouts button>span{padding-bottom:0;line-height:13px}
#sizes.vertical-grid,#layouts.vertical-grid{grid-auto-rows:76px!important;gap:6px!important}
#sizes.vertical-grid>button,#layouts.vertical-grid>button{height:76px!important}
}

.background-option-row{display:contents}
.background-category-menu{display:none}
@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel h2,.background-heading,#panel-fotograflar>.hint,.download-panel>small{display:none!important}
.layout-heading{justify-content:center!important;min-height:30px;margin-bottom:5px}
.layout-heading .layout-count{margin:0 auto!important;justify-content:center!important;width:auto!important}
#panel-tuval #sizes,#panel-efektler #filters{margin-top:0!important}
.frame-extra-controls>.border-color-row{justify-content:flex-start!important;column-gap:6px!important;row-gap:5px!important}
.border-color-row>.border-fill-picker{justify-content:flex-start!important;gap:8px!important;margin-bottom:0!important}
.border-colors-label,.border-fill-picker>span{min-width:40px}
.border-color-row input[type=color],.border-color-slot .border-add,.border-fill-picker select{border:1px solid #91c8d4!important;border-radius:8px;background:#f5fcfd}
.background-option-row{display:flex;align-items:stretch;gap:7px;min-width:0}
.background-category-menu{display:block!important;float:none!important;flex:0 0 76px;width:76px!important;height:73px;margin:3px 0!important;padding:5px!important;min-width:0!important;border:1px solid #91c8d4;border-radius:12px;background:#f5fcfd;font-size:10px}
.background-option-row #backgrounds{flex:1;min-width:0;width:0;margin:0!important}
.background-option-row .theme-select-trigger{display:none!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.border-colors-label{margin-right:0!important;flex:0 0 40px!important;width:40px}
.border-fill-picker{gap:8px!important}
.border-fill-picker>span{flex:0 0 40px;width:40px}
.background-option-row{align-items:flex-start!important}
.background-category-menu{height:73px!important;min-height:73px!important;margin:3px 0!important;box-sizing:border-box}
.background-option-row #backgrounds{padding:3px!important;align-items:start}
.background-option-row #backgrounds .pattern-choice{height:73px!important;min-height:73px!important;box-sizing:border-box}
.compact-menu{padding:6px 7px!important;gap:5px!important;background-color:#42c3cd!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='70' viewBox='0 0 500 70'%3E%3Cpath d='M0 25Q65 0 130 25T260 25T390 25T520 25V70H0Z' fill='%230b9fad' fill-opacity='.35'/%3E%3Cpath d='M0 48Q85 20 170 48T340 48T510 48V70H0Z' fill='%23c0ffff' fill-opacity='.45'/%3E%3C/svg%3E")!important;background-size:500px 100%!important}
.compact-menu button{min-height:44px!important;padding:6px 9px!important;min-width:74px!important;gap:0!important}
.compact-menu button span{display:none!important;animation:none!important;transition:none!important;transform:none!important}
.workspace{border:2px solid #87bdc8!important}
}

/* All eight portrait canvas formats fit in two complete rows. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-tuval.is-open{padding:6px 8px!important;overflow:hidden!important}
#panel-tuval #sizes,#panel-tuval #sizes.vertical-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:72px!important;gap:6px!important;padding:3px!important;margin:0!important;height:156px!important;max-height:156px!important;overflow:hidden!important;width:100%;box-sizing:border-box}
#panel-tuval #sizes>button,#panel-tuval #sizes.vertical-grid>button{height:72px!important;min-width:0!important;width:100%!important;grid-template-rows:24px 12px 10px!important;gap:2px!important;padding:4px!important}
}

/* Effects use the same two-row portrait geometry as canvas formats. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-efektler.is-open{padding:6px 8px!important;overflow:hidden!important}
#panel-efektler #filters,#panel-efektler #filters.vertical-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:72px!important;gap:6px!important;padding:3px!important;margin:0!important;height:156px!important;max-height:156px!important;overflow:hidden!important;width:100%;box-sizing:border-box}
#panel-efektler #filters>button,#panel-efektler #filters.vertical-grid>button{height:72px!important;min-width:0!important;width:100%!important;padding:4px!important;gap:5px!important;flex:none!important}
#panel-efektler #filters i,#panel-efektler #filters.vertical-grid.compact-grid i{height:28px!important;min-height:28px!important;margin:0!important}
}

/* All portrait tool pages share the canvas page's top content inset. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-yerlesim.is-open,.workspace #panel-ayar.is-open,.workspace #panel-arkaplan.is-open,.workspace #panel-fotograflar.is-open{padding-top:6px!important}
#panel-yerlesim .layout-heading{margin-top:0!important}
#panel-ayar>label:first-of-type{margin-top:3px!important}
#panel-arkaplan .background-option-row{margin-top:0!important}
#panel-fotograflar #photos{margin-top:3px!important;padding-top:0!important}
}

/* Reserve space for the selected photo outline at the top of its shelf. */
@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-fotograflar #photos,#panel-fotograflar #photos.vertical-grid{padding-top:5px!important;padding-bottom:4px!important;margin-top:0!important;scroll-padding-top:5px;box-sizing:border-box}
#panel-fotograflar #photos>.photo.active{outline:0!important;box-shadow:inset 0 0 0 2px #0796a5!important;border:1px solid #0796a5!important}
}

/* Layout count and choices scroll together in the enclosing panel. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-yerlesim.is-open{overflow-y:auto!important;touch-action:pan-y}
#panel-yerlesim .layout-heading{position:static!important}
#panel-yerlesim #layouts,#panel-yerlesim #layouts.vertical-grid{height:auto!important;max-height:none!important;overflow:visible!important;scroll-snap-type:none!important;touch-action:pan-y}
}

.export-summary{display:none}
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-indir.is-open{display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:8px 12px!important;gap:8px}
#panel-indir .export-summary{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:10px;color:#216773;line-height:20px;min-height:22px}
.export-summary>span{padding:1px 9px;background:#d7eef1;border:1px solid #b1d7df;border-radius:20px;font-weight:600;white-space:nowrap}
#panel-indir .download-options,#panel-indir .download-actions{width:100%;max-width:360px;margin:0!important;flex:none}
#panel-indir .share-status:empty{display:none}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-indir .export-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:360px;justify-items:center}
.export-summary>span{width:max-content;max-width:100%;text-align:center}
.compact-menu{background-image:linear-gradient(135deg,#7cddff 0%,#329de8 50%,#1554b9 100%)!important;background-color:#329de8!important;background-size:100% 100%!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.frame-extra-controls>.border-color-row{width:max-content!important;max-width:100%!important;justify-self:center;margin-inline:auto!important;justify-content:flex-start!important}
.border-color-row>.border-fill-picker{justify-content:flex-start!important}
.border-colors-label{flex:0 0 40px!important;margin-right:2px!important}
}

/* Richer aqua surfaces and defined navigation separators in portrait. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace .tool-panel{background:radial-gradient(ellipse at 8% 0%,#e4fafa 0,transparent 65%),linear-gradient(135deg,#d3eef1 0%,#b8dfe7 100%)!important}
.workspace>.preview{background:radial-gradient(ellipse at 25% 15%,#e2f7f7 0,transparent 65%),linear-gradient(145deg,#c8e6eb,#a9d1dd)!important}
.compact-menu{background-image:linear-gradient(135deg,#65d1e0 0%,#239fb6 52%,#126c96 100%)!important;background-color:#239fb6!important;border-top:2px solid #67adbe!important;border-bottom:2px solid #458fa6!important;border-bottom-color:#458fa6!important;box-shadow:inset 0 1px 0 #d7ffff80,0 2px 5px #165c7617}
}

/* Center the intrinsic width of the complete border controls, including added colors. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.frame-extra-controls>.border-color-row{display:grid!important;grid-template-columns:40px repeat(3,max-content);align-items:center;justify-content:center!important;justify-self:center!important;width:max-content!important;max-width:100%!important;margin-inline:auto!important;gap:6px 8px!important}
.border-color-row>.border-fill-picker{grid-column:1/-1;grid-row:1;display:flex!important;justify-content:flex-start!important;width:auto!important;min-width:0;gap:8px!important;margin:0!important}
.border-color-row>.border-colors-label,.border-color-row>input,.border-color-row>.border-color-slot{grid-row:2;margin:0!important}
.border-colors-label{width:40px!important;min-width:40px!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-yerlesim.is-open{padding-inline:8px!important}
#panel-yerlesim #layouts,#panel-yerlesim #layouts.vertical-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding-inline:3px!important;width:100%!important;margin-inline:0!important}
#photos>.photo{touch-action:none!important;-webkit-user-drag:none}
#photos>.photo img{-webkit-user-drag:none;pointer-events:none}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-indir .export-summary{display:flex!important;justify-content:center!important;align-items:center!important;min-height:24px}
#panel-indir #exportPhotos{display:none!important}
#panel-indir #exportPixels{margin-inline:auto;align-self:center}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#layouts button canvas,#layouts.compact-grid button canvas{width:40px!important;min-width:40px!important;max-width:40px!important;height:28px!important;min-height:28px!important;max-height:28px!important;flex:none!important;transform:none!important}
#layouts button:active{transform:none!important}
#panel-ayar .frame-extra-controls{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
#panel-ayar>label,#panel-ayar .frame-extra-controls>label:not(.border-color-row),.photo-edit-controls>label,.background-transform-grid>label{padding-block:6px!important;border-bottom:1px solid #649cab55;margin-block:0!important}
.frame-extra-controls>.border-color-row{justify-self:start!important;justify-content:start!important;margin-left:0!important;margin-right:auto!important}
.background-transform-title{display:none!important}
#panel-fotograflar #photos>.photo{width:49px!important;height:49px!important;min-width:49px!important;min-height:49px!important;max-width:49px!important;max-height:49px!important;aspect-ratio:1;flex:0 0 49px!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-efektler #filters>button{position:relative!important;isolation:isolate;overflow:hidden!important;padding:0!important;justify-content:flex-end!important}
#panel-efektler #filters button i,#panel-efektler #filters.vertical-grid.compact-grid i{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;border-radius:inherit!important;background-size:cover!important;background-position:center!important;margin:0!important;z-index:-1;pointer-events:none}
#filters .effect-name{display:block;width:max-content;max-width:calc(100% - 8px);margin:0 auto 5px;padding:3px 6px;border-radius:5px;background:#ffffffed;color:#155766;font-size:9px;font-weight:650;line-height:12px;box-shadow:0 1px 3px #164b6026;z-index:1}
.compact-menu button{background:linear-gradient(145deg,#ffffff,#e5f7fb 48%,#b6dce8)!important;box-shadow:inset 0 2px 1px #ffffffed,inset 0 -3px 3px #5295ac40,0 3px 3px #104b6640!important;border-color:#87c0d0!important;text-shadow:0 1px #fff9}
.compact-menu button.active{background:linear-gradient(145deg,#24bdc8,#0795a7 45%,#05677f)!important;box-shadow:inset 0 2px 1px #a2ffffa6,inset 0 -3px 4px #00475d88,0 3px 4px #164d6855!important;text-shadow:0 1px 2px #00445e70}
.workspace{position:relative;box-shadow:inset 0 2px 5px #ffffffed,inset 3px 0 6px #ffffff80,inset -3px -4px 8px #24597542,0 5px 18px #235d6e24!important}
.workspace::after{content:'';position:absolute;inset:1px;border-radius:inherit;pointer-events:none;z-index:15;border:5px solid #d9fbff42;box-shadow:inset 1px 1px 2px #fff9,inset -2px -2px 4px #23637b35}
.workspace #panel-indir.is-open{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px;row-gap:6px;align-content:center;align-items:start}
#panel-indir .export-summary{display:none!important}
#panel-indir .download-options{grid-column:1;display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;max-width:none}
#panel-indir .download-actions{grid-column:2;display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;max-width:none}
#panel-indir .download-options select,#panel-indir .download-actions button{height:43px!important;min-height:43px!important}
#panel-indir .share-status{grid-column:1/-1}
.tool-panel label:has(input[type=range]){padding-block:6px!important;border-bottom:1px solid #477f9866!important;box-shadow:0 1px 0 #ffffff80;margin-block:0!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.compact-menu{padding-inline:11px!important;scroll-padding-inline:11px!important}
.compact-menu button.active{outline:none!important}
#sizes button,#layouts button,.background-category-menu,#backgrounds button,#filters button,.download-options select,.download-actions button{box-shadow:inset 0 2px 1px #ffffffed,inset 0 -3px 3px #5193aa38,0 2px 3px #20576e30!important;border-color:#8cbcca!important}
#sizes button,#layouts button,.background-category-menu,#backgrounds button,.download-options select{background:linear-gradient(145deg,#ffffff,#e7f7fa 45%,#c7e7ee)!important}
#sizes button.active,#layouts button.active,#backgrounds button.active{background:linear-gradient(145deg,#d6ffff,#a4e1e9 55%,#7ac5d4)!important;border-color:#098c9e!important;box-shadow:inset 0 2px 1px #ffffffed,inset 0 -3px 4px #13748e3b,0 2px 4px #15566a40!important}
#filters button.active{border-color:#078d9f!important;box-shadow:inset 0 0 0 1px #25beca,0 2px 4px #15566a40!important}
.tool-panel label:has(input[type=range]){background:linear-gradient(90deg,#24bfd116,#ffffff18);border-bottom-color:#40859d80!important}
.tool-panel label:has(input[type=range]) output{background:#a9e6ee!important;color:#0b5e72!important;border:1px solid #84c7d3;box-shadow:inset 0 1px #eaffff;font-weight:650}
.tool-panel input[type=range]{accent-color:#079daf!important}
.tool-panel input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#52b9c7,#a0d7df);height:5px;border-radius:5px;box-shadow:inset 0 1px 2px #246e8130}
.tool-panel input[type=range]::-webkit-slider-thumb{background:linear-gradient(135deg,#2ad1d5,#078599)!important;border:2px solid white!important;box-shadow:0 2px 4px #125d7955!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.frame-extra-controls>.border-color-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;max-width:100%!important}
.border-color-row>.border-colors-label,.border-color-row>.border-fill-picker>span{display:none!important}
.border-color-row>.border-fill-picker{order:-1;flex:0 0 auto!important;width:110px!important;margin-right:auto!important;gap:0!important}
.border-color-row #borderSlot3{display:flex!important}
.border-color-row>input,.border-color-row>.border-color-slot{flex:0 0 auto!important;grid-row:auto!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.photo-edit-controls{display:flex;flex-direction:column}
.photo-edit-controls>.row{order:-1;margin-top:0!important;margin-bottom:6px!important}
.border-color-row>.border-fill-picker{gap:8px!important;width:150px!important;flex-basis:150px!important}
}

/* Portrait banner sits above the editor, sharing its outer left/right edges. */
@media (max-width:900px), (max-aspect-ratio:1/1){
#adBanner{order:-1;width:92%;margin:4px 4% 0;padding:2px;min-height:56px;border:2px solid #8ebfcd;border-radius:12px;background:linear-gradient(135deg,#e5fafd,#cce8f0);box-shadow:inset 0 1px 2px #fff,0 2px 5px #245d711a}
#adBanner .ad-banner-slot{max-width:none;width:100%;height:48px;min-height:48px;border:1px solid #b1d4df;border-radius:8px}
body>main{padding-top:6px}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace>.preview{background:radial-gradient(ellipse at 22% 10%,#c3e4e9 0,transparent 68%),linear-gradient(145deg,#a9d0da,#82afc1)!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel.is-open{animation:studio-panel-enter .5s ease-out!important}
.compact-menu{scroll-behavior:smooth;scroll-snap-type:x proximity}
.compact-menu button{transition:background .25s,box-shadow .25s,border-color .25s!important}
#panel-indir .share-status,#panel-indir .share-status:empty{display:block!important;grid-column:1/-1;min-height:24px;height:24px;margin:0!important;padding:0 2px!important;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:10px}
#panel-indir .share-status:empty{visibility:hidden}
#panel-indir .download-options,#panel-indir .download-actions{align-self:start}
}
@keyframes studio-panel-enter{from{opacity:.3;filter:blur(4px);transform:translateY(4px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.tool-panel.is-open{animation:none!important}.compact-menu{scroll-behavior:auto}}

@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace>.preview .canvasarea{padding:12px!important;box-sizing:border-box}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-fotograflar #photos>.photo{border-radius:11px!important;overflow:hidden!important;clip-path:inset(0 round 11px);background-clip:padding-box;isolation:isolate;transform:none!important;transition:box-shadow .15s,border-color .15s}
#panel-fotograflar #photos>.photo.active{outline:none!important;background:linear-gradient(145deg,#d5f7fa,#addce6)!important;border:2px solid #0796a5!important;box-shadow:none!important}
#panel-fotograflar #photos>.photo.drop-target{outline:none!important;border:2px solid #07a2b3!important;box-shadow:inset 0 0 0 1px #fff8!important}
}

/* View-only canvas boundary; CSS is never part of image export. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.canvasarea>#canvas{outline:1px solid #111!important;outline-offset:0}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
main>footer{min-height:40px;padding:9px 4px 5px!important;align-items:center!important;gap:10px;box-sizing:border-box}
main>footer .footer-brand,main>footer #status{align-self:center;line-height:23px;margin:0}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
#panel-ayar .frame-extra-controls{border-top:0!important;margin-top:0!important;padding-top:0!important;gap:0!important}
#panel-ayar .border-slider-list{display:flex;flex-direction:column;gap:0}
#panel-ayar .border-slider-list>label{display:block!important;margin:0!important;padding:6px 0!important;font-size:10px}
#panel-ayar .border-slider-list input[type=range]{margin:5px 0!important;height:20px!important}
}

/* Current controls in wide mode; section ordering and badges remain unchanged. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-ayar .frame-extra-controls{border-top:0!important;margin-top:0!important;padding-top:0!important;gap:0!important}
#panel-ayar .border-slider-list{display:flex;flex-direction:column;gap:0}
#panel-ayar .border-slider-list>label,.photo-edit-controls>label,.background-transform-grid>label{display:block;margin:0!important;padding:6px 0!important;font-size:10px;border-bottom:1px solid #477f9866;background:linear-gradient(90deg,#24bfd116,#ffffff18)}
#panel-ayar .border-slider-list input[type=range]{margin:5px 0!important;height:20px!important}
.photo-edit-controls{display:flex;flex-direction:column}
.photo-edit-controls>.row{order:-1;margin-top:0!important;margin-bottom:6px!important}
.photo-edit-controls>.row button{min-height:36px;border-radius:11px;border:1px solid #a8d1dc;background:linear-gradient(145deg,#fff,#e3f3f7);color:#126476}
.photo-edit-controls>.row #remove{background:linear-gradient(145deg,#fff8fa,#f5e6eb);border-color:#dfbcc7;color:#965666}
#panel-ayar .border-colors-label{display:none!important}
#panel-ayar .border-fill-picker{justify-content:flex-start!important;gap:8px!important;margin:0 0 6px!important}
#layouts button canvas{width:40px!important;min-width:40px!important;max-width:40px!important;height:28px!important;object-fit:contain;transform:none!important}
#photos>.photo{width:36px!important;height:36px!important;max-width:36px;max-height:36px;aspect-ratio:1;border-radius:9px!important;overflow:hidden!important;clip-path:inset(0 round 9px);background-clip:padding-box}
#photos>.photo.active{outline:none!important;border:2px solid #0796a5!important;box-shadow:none!important}
#sizes button,#layouts button,#backgrounds button,#filters button,.download-actions button{box-shadow:inset 0 2px 1px #ffffffed,inset 0 -2px 2px #5193aa26,0 2px 3px #20576e25}
}

/* Expand desktop sidebars inward by 1.25x, retaining the portrait breakpoint. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace{grid-template-columns:262.5px minmax(0,1fr) 287.5px}
}
@media (min-width:1101px) and (min-aspect-ratio:1001/1000){
.workspace{grid-template-columns:312.5px minmax(0,1fr) 331.25px}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
main>footer{justify-content:center!important;gap:24px!important}
main>footer #status{max-width:58%;text-align:left}
}

/* Extend slider row surfaces to the portrait frame without moving controls. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.tool-panel label:has(input[type=range]){position:relative;isolation:isolate;background:none!important;border-bottom:0!important;box-shadow:none!important}
.tool-panel label:has(input[type=range])::before{content:"";position:absolute;inset:0 calc(-1 * var(--editor-inset,17px));z-index:-1;pointer-events:none;background:linear-gradient(90deg,#24bfd116,#ffffff18);border-bottom:1px solid #40859d80;box-shadow:0 1px 0 #ffffff80}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.background-transform-grid{display:flex!important;flex-direction:column!important;gap:0!important}
.background-transform-grid>label{width:100%;box-sizing:border-box}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace>.preview{background:radial-gradient(ellipse at 18% 12%,#a4f0ef 0,transparent 60%),linear-gradient(145deg,#60cbd6,#398aaf)!important}
}

.theme-toggle{display:none}
@media (max-width:900px), (max-aspect-ratio:1/1){
main>footer{gap:12px!important}
footer .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:44px;min-width:44px;height:27px;min-height:27px;padding:2px;border:0;background:transparent;box-shadow:none;font-size:20px}
.theme-toggle i{width:22px;height:12px;border-radius:12px;background:#8bb5c1;position:relative}
.theme-toggle i::after{content:'';position:absolute;left:2px;top:2px;width:8px;height:8px;border-radius:50%;background:white}
.theme-toggle[aria-checked=true] i{background:#0faabd}.theme-toggle[aria-checked=true] i::after{left:12px}
html.dark-theme{color-scheme:dark;background:#10212e;--ink:#d7f0f5;--muted:#9abbc8;--line:#416374;--green:#53ceda;--surface:#213e50}
.dark-theme body{background:linear-gradient(135deg,#112c3a,#152330);color:#d7f0f5}
.dark-theme .workspace{background:#193344!important;border-color:#4d7b8b!important;box-shadow:inset 0 1px 2px #759ba533,0 5px 16px #0005!important}
.dark-theme .workspace>.preview{background:radial-gradient(ellipse at 18% 12%,#22667a,transparent 65%),linear-gradient(145deg,#17485b,#102c42)!important}
.dark-theme .tool-panel,.dark-theme .workspace>aside{background:linear-gradient(135deg,#234a59,#192f41)!important;color:#d7f0f5}
.dark-theme .compact-menu{background:linear-gradient(135deg,#1c7486,#12374f)!important;border-color:#4b8595!important}
.dark-theme button,.dark-theme select,.dark-theme #sizes button,.dark-theme #layouts button,.dark-theme #backgrounds button,.dark-theme .background-category-menu{color:#d7f0f5!important;background:linear-gradient(145deg,#36596a,#213e50)!important;border-color:#52778a!important;box-shadow:inset 0 1px 1px #aac9d333,0 2px 3px #0006!important}
.dark-theme button.active,.dark-theme #sizes button.active,.dark-theme #layouts button.active,.dark-theme #backgrounds button.active,.dark-theme .primary{background:linear-gradient(145deg,#087d91,#07516b)!important;color:#fff!important;border-color:#40c9d4!important}
.dark-theme .theme-toggle{background:transparent!important;box-shadow:none!important}
.dark-theme .size-icon i{border-color:#6cdae3!important}
.dark-theme .tool-panel label,.dark-theme .hint,.dark-theme footer,.dark-theme footer b,.dark-theme .footer-brand,.dark-theme #status{color:#bad8e2!important}
.dark-theme output{color:#dbf8ff!important;background:#28586b!important;border-color:#477c8e!important}
.dark-theme .effect-name{color:#123a47!important}
.dark-theme .border-color-row,.dark-theme .background-colors{background:#234656!important;border-color:#4c7184!important}
.dark-theme input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#259fb3,#3a6276)!important}
.dark-theme #adBanner,.dark-theme .ad-banner-slot{background:linear-gradient(135deg,#234959,#192f41)!important;color:#a0c7d5!important;border-color:#4a7183!important}
.dark-theme .workspace::before,.dark-theme .workspace::after{opacity:.3}
.dark-theme dialog{background:#1b3546;color:#d7f0f5;border-color:#4a7183}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
main>footer>span{display:none!important}
main>footer{display:flex!important;justify-content:center!important;align-items:center!important;gap:14px!important;padding:6px 8px!important;min-height:40px;height:40px}
main>footer .theme-toggle,main>footer .footer-brand{align-self:center!important;margin:0!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
main>footer>#status{display:block!important;flex:0 1 auto;max-width:none;line-height:1.3!important;text-align:left;font-size:9px}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
footer .theme-toggle{width:48px;min-width:48px;height:25px;min-height:25px;padding:3px 5px!important;gap:4px!important;border:1px solid #86b8c7!important;border-radius:9px;background:linear-gradient(145deg,#f4fcfe,#d9edf3)!important;box-sizing:border-box;box-shadow:0 1px 2px #20576e20!important}
.theme-toggle>span{display:flex;align-items:center;justify-content:center;width:13px;height:16px;font-size:17px;line-height:1;transform:translateY(-1px)}
.theme-toggle>i{flex:none}
.dark-theme footer .theme-toggle{background:linear-gradient(145deg,#36596a,#213e50)!important;border-color:#52778a!important}
}

@media (max-width:900px), (max-aspect-ratio:1/1){
.workspace #panel-yerlesim.is-open{padding-bottom:6px!important}
#panel-yerlesim #layouts,#panel-yerlesim #layouts.vertical-grid{padding-bottom:3px!important;margin-bottom:0!important}
}

/* Raised dark surfaces: bright upper bevel and a compact lower cast shadow. */
@media (max-width:900px), (max-aspect-ratio:1/1){
.dark-theme .compact-menu button,.dark-theme #sizes button,.dark-theme #layouts button,.dark-theme #backgrounds button,.dark-theme #filters button,.dark-theme .background-category-menu,.dark-theme .download-options select,.dark-theme .download-actions button{
background:linear-gradient(145deg,#466d80 0%,#304f63 42%,#203b50 100%)!important;
border-color:#63899a!important;
box-shadow:inset 0 2px 1px #c9edf26b,inset 1px 0 1px #a4d5df29,inset 0 -2px 2px #071b3270,0 2px 1px #091c2a,0 4px 5px #0005!important}
.dark-theme .compact-menu button.active,.dark-theme #sizes button.active,.dark-theme #layouts button.active,.dark-theme #backgrounds button.active,.dark-theme .download-actions button.primary{
background:linear-gradient(145deg,#1599ad,#08778e 48%,#07516b)!important;border-color:#48c7d5!important;
box-shadow:inset 0 2px 1px #c2ffff80,inset 1px 0 1px #75f1f43b,inset 0 -2px 2px #02334799,0 2px 1px #062437,0 4px 5px #0005!important}
}

/* Desktop slider bands extend across each sidebar, with controls kept inset. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.tool-panel label:has(input[type=range]){position:relative;isolation:isolate;background:none!important;border-bottom:0!important;box-shadow:none!important;margin-block:0!important;padding-block:6px!important}
.tool-panel label:has(input[type=range])::before{content:"";position:absolute;inset:0 -20px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#24bfd116,#ffffff18);border-bottom:1px solid #40859d80;box-shadow:0 1px 0 #ffffff80}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
html.dark-theme{color-scheme:dark;background:#10212e;--ink:#d7f0f5;--muted:#9abbc8;--line:#416374;--green:#53ceda;--surface:#213e50}
.dark-theme body{background:linear-gradient(135deg,#112c3a,#152330);color:#d7f0f5}
.dark-theme .workspace{background:#193344!important;border-color:#4d7b8b!important;box-shadow:inset 0 1px 2px #759ba533,0 5px 16px #0005!important}
.dark-theme .workspace>.preview{background:radial-gradient(ellipse at 18% 12%,#22667a,transparent 65%),linear-gradient(145deg,#17485b,#102c42)!important}
.dark-theme .tool-panel,.dark-theme .workspace>aside{background:linear-gradient(135deg,#234a59,#192f41)!important;color:#d7f0f5}
.dark-theme .compact-menu{background:linear-gradient(135deg,#1c7486,#12374f)!important;border-color:#4b8595!important}
.dark-theme button,.dark-theme select,.dark-theme #sizes button,.dark-theme #layouts button,.dark-theme #backgrounds button,.dark-theme .background-category-menu{color:#d7f0f5!important;background:linear-gradient(145deg,#36596a,#213e50)!important;border-color:#52778a!important;box-shadow:inset 0 1px 1px #aac9d333,0 2px 3px #0006!important}
.dark-theme button.active,.dark-theme #sizes button.active,.dark-theme #layouts button.active,.dark-theme #backgrounds button.active,.dark-theme .primary{background:linear-gradient(145deg,#087d91,#07516b)!important;color:#fff!important;border-color:#40c9d4!important}
.dark-theme .theme-toggle{background:transparent!important;box-shadow:none!important}
.dark-theme .size-icon i{border-color:#6cdae3!important}
.dark-theme .tool-panel label,.dark-theme .hint,.dark-theme footer,.dark-theme footer b,.dark-theme .footer-brand,.dark-theme #status{color:#bad8e2!important}
.dark-theme output{color:#dbf8ff!important;background:#28586b!important;border-color:#477c8e!important}
.dark-theme .effect-name{color:#123a47!important}
.dark-theme .border-color-row,.dark-theme .background-colors{background:#234656!important;border-color:#4c7184!important}
.dark-theme input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#259fb3,#3a6276)!important}
.dark-theme #adBanner,.dark-theme .ad-banner-slot{background:linear-gradient(135deg,#234959,#192f41)!important;color:#a0c7d5!important;border-color:#4a7183!important}
.dark-theme .workspace::before,.dark-theme .workspace::after{opacity:.3}
.dark-theme dialog{background:#1b3546;color:#d7f0f5;border-color:#4a7183}.background-transform-grid{display:flex!important;flex-direction:column!important;gap:0!important}
.background-transform-grid>label{width:100%;box-sizing:border-box}
.photo-toolbar{justify-content:center!important;gap:14px!important}
.photo-toolbar>.editor-brand{margin:0!important}
.photo-toolbar>.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:48px;min-width:48px;height:27px;min-height:27px;padding:3px 5px;border:1px solid #86b8c7;border-radius:9px;background:linear-gradient(145deg,#f4fcfe,#d9edf3);box-sizing:border-box}
.theme-toggle>span{display:flex;align-items:center;justify-content:center;width:13px;height:16px;font-size:17px;line-height:1;transform:translateY(-1px)}
.theme-toggle i{flex:none;width:22px;height:12px;border-radius:12px;background:#8bb5c1;position:relative}
.theme-toggle i::after{content:'';position:absolute;left:2px;top:2px;width:8px;height:8px;border-radius:50%;background:white}
.theme-toggle[aria-checked=true] i{background:#0faabd}.theme-toggle[aria-checked=true] i::after{left:12px}
.dark-theme .photo-toolbar{background:#193748!important;border-color:#4a7183!important}
.dark-theme .editor-brand,.dark-theme .wordmark,.dark-theme h2,.dark-theme .intro *{color:#d7f0f5!important}
.dark-theme .theme-toggle{background:linear-gradient(145deg,#36596a,#213e50)!important;border-color:#52778a!important}
.dark-theme .preview{background:linear-gradient(145deg,#22667a,#102c42)!important}
.dark-theme .right,.dark-theme .left{background:linear-gradient(135deg,#234a59,#192f41)!important}
.dark-theme .tool-panel label:has(input[type=range])::before{background:linear-gradient(90deg,#3298b022,#ffffff05);border-color:#52778a}
.dark-theme #sizes button,.dark-theme #layouts button,.dark-theme #backgrounds button,.dark-theme .download-actions button{box-shadow:inset 0 2px 1px #c9edf26b,inset 0 -2px 2px #071b3270,0 3px 4px #0005!important}
}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-fotograflar #photos{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px 4px!important;justify-items:center;align-items:center;padding-inline:2px!important}
#panel-fotograflar #photos>.photo{margin:0!important;min-width:0!important;width:36px!important;height:36px!important}
.preview .canvasarea{overflow:hidden;touch-action:none}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-ayar .border-color-row{display:grid!important;grid-template-columns:28px 28px 28px;justify-content:start!important;gap:6px!important;margin:6px 0 0!important;padding:0 0 0 36px!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
#panel-ayar .border-color-row>.border-fill-picker{grid-column:1/-1;grid-row:1;order:-1;display:flex!important;justify-content:flex-start!important;align-items:center;gap:8px!important;margin:0 0 0 -36px!important;padding:0!important;width:auto!important;min-height:28px}
#panel-ayar .border-color-row>.border-fill-picker .theme-select-trigger{margin:0!important;width:110px!important;min-height:28px!important;height:28px!important}
#panel-ayar .border-color-row>input,#panel-ayar .border-color-slot{grid-row:2;margin:0!important;align-self:center}
#panel-ayar .border-colors-label{display:none!important}
#panel-ayar .border-color-row input[type=color],#panel-ayar .border-add{width:28px!important;height:28px!important;min-height:28px!important}
}

.desktop-gallery-trigger{display:none}
.option-gallery{width:min(760px,calc(100vw - 48px));max-height:80vh;box-sizing:border-box;padding:22px;border:1px solid #8dbdcb;border-radius:20px;background:#e9f6fa;color:#154b51;box-shadow:0 18px 60px #0005;overflow:auto}
.option-gallery::backdrop{background:#08273899;backdrop-filter:blur(4px)}
.option-gallery>h2{margin:0 40px 18px 0;font-size:17px}
.option-gallery-close{position:absolute;right:14px;top:12px;width:32px;min-height:32px;padding:0;font-size:22px}
.option-gallery-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.option-gallery-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:96px;min-width:0;padding:8px;border-radius:12px;font-size:11px}
.option-gallery-grid canvas{width:60px!important;height:42px!important;object-fit:contain;box-shadow:none;max-width:100%}
.option-gallery-grid .size-icon{height:28px;display:flex;align-items:center;justify-content:center}
.option-gallery-grid .size-icon i{display:block;border:1px solid #168eaa}
.option-gallery-grid small{font-size:10px}
.option-gallery-grid i:not(.size-icon i){display:block;width:100%;height:48px;border-radius:6px;background:linear-gradient(150deg,#b8d8d1,#247f87);background-size:cover;background-position:center}
.option-gallery-grid .effect-name{background:#f7ffff;padding:3px 5px;border-radius:5px;color:#154b51}
.dark-theme .option-gallery{background:#193748;color:#d7f0f5;border-color:#52778a}
.dark-theme .option-gallery h2{color:#d7f0f5}
.dark-theme .option-gallery-grid>button{background:linear-gradient(145deg,#466d80,#203b50);color:#d7f0f5;border-color:#63899a;box-shadow:inset 0 1px #c9edf266,0 3px 4px #0005}
.dark-theme .option-gallery-grid>button.active{background:linear-gradient(145deg,#1599ad,#07516b)!important;color:white!important;border-color:#48c7d5}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#sizes,#layouts,#filters,#backgrounds{display:none!important}
.desktop-gallery-trigger{display:flex!important;align-items:center;justify-content:space-between;width:100%;height:92px;padding:8px 12px;gap:12px;text-align:left}
.gallery-current-preview{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px}
.gallery-current-preview canvas{width:48px!important;height:36px!important;box-shadow:none;object-fit:contain}
.gallery-current-preview .size-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none}
.gallery-current-preview .size-icon i{display:block;border:1px solid #168eaa}
.gallery-current-preview>i{display:block;width:58px;height:44px;border-radius:6px;background:linear-gradient(150deg,#b8d8d1,#247f87);background-size:cover;background-position:center;flex:none}
.gallery-open-label{font-size:10px;white-space:nowrap;opacity:.8}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-ayar .border-color-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;padding:0!important;margin-top:6px!important;width:100%;min-width:0}
#panel-ayar .border-color-row>.border-fill-picker{order:-1;flex:1 1 auto!important;width:auto!important;min-width:0;margin:0!important;padding:0!important;gap:6px!important}
#panel-ayar .border-color-row>.border-fill-picker .theme-select-trigger{width:auto!important;min-width:65px!important;flex:1 1 auto!important;height:28px!important;padding-inline:6px!important}
#panel-ayar .border-color-row>.border-fill-picker select{width:80px;min-width:0}
#panel-ayar .border-color-row>input{flex:0 0 25px!important}
#panel-ayar .border-color-slot{display:flex;align-items:center;gap:1px;flex:0 0 auto!important;min-width:0}
#panel-ayar .border-color-row input[type=color],#panel-ayar .border-add{width:25px!important;min-width:25px!important;height:27px!important;min-height:27px!important;padding:3px!important}
#panel-ayar .border-remove{width:12px!important;min-width:12px!important;height:24px!important;min-height:24px!important;padding:0!important;font-size:12px}
#panel-ayar .border-color-slot:has(>input[hidden]){flex:0 0 auto!important}
}

/* Full-width raised section dividers in desktop sidebars. */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>aside>hr{display:block;height:6px!important;min-height:6px;border:0!important;border-radius:0;margin:22px -20px!important;width:calc(100% + 40px);overflow:visible;background:linear-gradient(180deg,#e1f6fa 0%,#91c3d0 35%,#5797ad 100%)!important;box-shadow:0 -3px 5px #386e7f24,0 4px 6px #204e6940,inset 0 1px #fff9!important}
.dark-theme .workspace>aside>hr{background:linear-gradient(180deg,#729ba9 0%,#3c7187 40%,#1b435b 100%)!important;box-shadow:0 -3px 5px #0004,0 4px 6px #0007,inset 0 1px #a6d9e366!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-yerlesim,#panel-tuval+hr{display:none!important}
.combined-gallery-trigger{height:auto;min-height:112px;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}
.combined-gallery-trigger .gallery-current-preview{grid-column:1;min-height:34px}
.combined-gallery-trigger .gallery-open-label{grid-column:2;grid-row:1/3}
}
.combined-option-gallery{width:min(1080px,calc(100vw - 48px));max-height:88vh}
.combined-option-gallery .option-gallery-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
.combined-layout-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 12px;gap:16px;padding-top:15px;border-top:2px solid #79adbd66}
.combined-layout-heading h3{font-size:15px;margin:0}
.combined-layout-heading label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}
.combined-layout-heading select{width:62px;min-height:32px}
.gallery-done{display:block;min-width:120px;margin:18px 0 0 auto}
@media(max-width:1000px){.combined-option-gallery .option-gallery-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.combined-option-gallery .option-gallery-grid>button{font-size:10px;padding:5px}}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.dark-theme select,.dark-theme option{color-scheme:dark!important;color:#d7f0f5!important;background-color:#234657!important}
.dark-theme .theme-select-menu{background:linear-gradient(145deg,#294b5d,#182f42)!important;border:1px solid #527b8e!important;box-shadow:0 8px 20px #0006,inset 0 1px #91bfcc33!important;color:#d7f0f5}
.dark-theme .theme-select-option{border-color:transparent!important;box-shadow:none!important}
.dark-theme .theme-select-option[aria-selected=true],.dark-theme .theme-select-option.is-focused,.dark-theme .theme-select-option:hover{background:linear-gradient(145deg,#137e94,#07516b)!important;border-color:#40a8bc!important;color:#fff!important}
.dark-theme .gallery-current-preview,.dark-theme .gallery-current-preview span,.dark-theme .gallery-open-label{color:#d7f0f5!important}
.dark-theme h2 small{background:#2c5366!important;color:#ccebf3!important}
.side-option-picker{max-height:310px;overflow-y:auto;overscroll-behavior:contain;margin-top:8px;padding:8px;border:1px solid #8dbdcb;border-radius:12px;background:#e8f5f8;box-shadow:inset 0 1px #fff8,0 3px 8px #1c4a6426;scrollbar-width:thin}
.side-option-picker .option-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.side-option-picker .option-gallery-grid>button{height:82px;min-width:0;padding:5px;font-size:10px}
.side-option-picker .option-gallery-grid canvas{width:100%!important;height:40px!important}
.dark-theme .side-option-picker{background:linear-gradient(145deg,#25495a,#192f41);border-color:#52778a;box-shadow:inset 0 1px #91bfcc33,0 3px 8px #0005}
.dark-theme .side-option-picker button{color:#d7f0f5!important;box-shadow:inset 0 1px #c9edf24d,0 2px 3px #0005!important}
.dark-theme .side-option-picker button.active{border-color:#48c7d5!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.combined-gallery-trigger{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr;min-height:76px!important;height:76px!important;padding:10px 16px!important;gap:0!important}
.combined-gallery-trigger .gallery-open-label{display:none!important}
.combined-gallery-trigger .gallery-current-preview{grid-row:1!important;min-height:0;justify-content:center;gap:0!important}
.combined-gallery-trigger .gallery-current-preview:first-child{grid-column:1!important;justify-content:flex-start}
.combined-gallery-trigger .gallery-current-preview:nth-child(2){grid-column:2!important}
.combined-gallery-trigger .gallery-current-preview>:not(.size-icon):not(canvas){display:none!important}
.combined-gallery-trigger .size-icon{width:40px!important;height:40px!important}
.combined-gallery-trigger canvas{width:58px!important;height:42px!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.combined-gallery-trigger{height:61px!important;min-height:61px!important;padding:8px 14px!important;position:relative}
.combined-gallery-trigger .size-icon{height:42px!important;width:auto!important}
.combined-gallery-trigger .size-icon i{height:42px!important;width:calc(42px * var(--chosen-canvas-ratio,0.5625))!important;box-sizing:border-box}
.combined-gallery-trigger::after{content:'→';grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:1px solid #81b7c7;background:linear-gradient(145deg,#effbfe,#badce8);color:#14586d;font-size:19px;line-height:1;box-shadow:0 2px 3px #174c6426}
.dark-theme .combined-gallery-trigger::after{background:linear-gradient(145deg,#416c80,#203f55);border-color:#638fa2;color:#d5f5ff;box-shadow:inset 0 1px #c9edf244,0 2px 3px #0005}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.dark-theme .combined-layout-heading label,.dark-theme .layout-count,.dark-theme .layout-count label{color:#e0f3fa!important}
.dark-theme .pattern-colors{background:linear-gradient(145deg,#294d5f,#1e3b4e)!important;border-color:#52778a!important;color:#d7f0f5!important;box-shadow:inset 0 1px #94c6d22b}
.dark-theme .pattern-colors-title,.dark-theme .pattern-colors label,.dark-theme .pattern-colors .row{color:#d7f0f5!important}
.side-option-picker .pattern-choice canvas{width:100%!important;height:48px!important;max-height:48px!important;object-fit:cover}
}

.desktop-bg-toggle{display:none}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.dark-theme .background-transform-title,.dark-theme .background-transform-title>span{color:#fff!important}
.desktop-fold{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .25s ease}
.desktop-fold.is-expanded{grid-template-rows:1fr;opacity:1}
.desktop-fold-inner{min-height:0;overflow:hidden}
.desktop-bg-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:35px;margin-top:12px;padding:7px 10px;font-size:11px}
.desktop-bg-fold .background-transform-title>span{display:none}
.desktop-bg-fold .background-transform-title{justify-content:flex-end}
.desktop-bg-fold .background-transform{margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.desktop-fold{transition:none!important}}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.desktop-gallery-trigger:not(.combined-gallery-trigger){height:61px!important;min-height:61px!important;padding:8px 12px!important}
/* Leave room inside the animated clip for the full-width slider surfaces. */
.desktop-photo-fold,.desktop-bg-fold{margin-inline:-20px}
.desktop-photo-fold>.desktop-fold-inner,.desktop-bg-fold>.desktop-fold-inner{padding-inline:20px}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>aside{padding-top:14px!important;padding-bottom:14px!important}
.workspace>aside>hr{margin-top:13px!important;margin-bottom:13px!important}
.workspace>aside .tool-panel>h2,.workspace>aside .background-heading{margin-top:0!important}
.workspace>aside .tool-panel>h2{margin-bottom:12px!important}
.workspace>aside .background-heading h2{margin-top:0!important}
#panel-ayar .border-color-row{margin-top:11px!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
#panel-indir{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;align-items:start}
#panel-indir>h2{grid-column:1/-1}
#panel-indir>small,#panel-indir>p,#panel-indir .export-summary,#panel-indir .download-options>.hint,#panel-indir .export-field-label{display:none!important}
#panel-indir .download-options{grid-column:1;display:flex!important;flex-direction:column;gap:8px!important;margin:0!important;width:100%}
#panel-indir .download-options>label{display:block!important;margin:0!important;width:100%;min-width:0}
#panel-indir .download-actions{grid-column:2;display:flex!important;flex-direction:column;gap:8px!important;margin:0!important;width:100%}
#panel-indir .theme-select-trigger,#panel-indir .download-actions button{width:100%!important;height:43px!important;min-height:43px!important;margin:0!important;box-sizing:border-box}
#panel-indir .share-status{grid-column:1/-1}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>.left{display:flex;flex-direction:column;box-sizing:border-box}
.workspace>.left>#panel-tuval,.workspace>.left>hr{flex:none}
.workspace>.left>#panel-ayar{flex:1 0 auto;display:flex;flex-direction:column;min-height:0}
#panel-ayar .border-slider-list{display:flex;flex-direction:column;flex:1 0 auto}
#panel-ayar .border-slider-list>label{flex:1 0 auto;display:flex!important;flex-direction:column;justify-content:center;position:relative;padding-block:7px!important}
#panel-ayar .border-slider-list>label>output{position:absolute;right:0;top:7px}
#panel-ayar .frame-extra-controls{flex:none}
#panel-indir,.dark-theme #panel-indir{background:transparent!important;box-shadow:none!important;border-radius:0!important}
}



@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>.right.two-photo-rows>hr{margin-top:9px!important;margin-bottom:9px!important}
.right.two-photo-rows .tool-panel>h2{margin-bottom:10px!important}
.right.two-photo-rows #photos{row-gap:5px!important}
.right.two-photo-rows #panel-fotograflar>.hint{margin-top:5px!important;margin-bottom:5px!important}
.right.two-photo-rows .pattern-colors{margin-top:8px!important}
.right.two-photo-rows .desktop-bg-toggle{margin-top:9px!important}
}
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>.right,.workspace>.right.two-photo-rows{display:flex!important;flex-direction:column;overflow:hidden!important;padding-top:14px!important;padding-bottom:14px!important;box-sizing:border-box}
.desktop-right-body{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;margin-inline:-20px;padding-inline:20px;scrollbar-width:thin;overscroll-behavior:contain}
.desktop-right-body>hr{height:6px!important;min-height:6px;border:0!important;margin:9px -20px!important;width:calc(100% + 40px);background:linear-gradient(180deg,#e1f6fa,#91c3d0 35%,#5797ad)!important;box-shadow:0 -3px 5px #386e7f24,0 4px 6px #204e6940!important}
.dark-theme .desktop-right-body>hr{background:linear-gradient(180deg,#729ba9,#3c7187 40%,#1b435b)!important;box-shadow:0 -3px 5px #0004,0 4px 6px #0007!important}
.desktop-right-body>hr:last-child{display:none!important}
.desktop-right-body .tool-panel>h2{margin-bottom:9px!important}
.right .desktop-gallery-trigger{height:61px!important;min-height:61px!important}
.workspace>.right>#panel-indir{flex:0 0 auto;position:relative;margin:10px 0 0!important;padding-top:17px!important;padding-bottom:0!important;align-self:stretch}
.workspace>.right>#panel-indir::before{content:'';position:absolute;top:0;left:-20px;right:-20px;height:6px;background:linear-gradient(180deg,#e1f6fa,#91c3d0 35%,#5797ad);box-shadow:0 -3px 5px #386e7f24,0 4px 6px #204e6940}
.dark-theme .workspace>.right>#panel-indir::before{background:linear-gradient(180deg,#729ba9,#3c7187 40%,#1b435b);box-shadow:0 -3px 5px #0004,0 4px 6px #0007}
.right #panel-indir .theme-select-trigger,.right #panel-indir .download-actions button{height:43px!important;min-height:43px!important}
.right #panel-indir .download-options,.right #panel-indir .download-actions{gap:8px!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.right.two-photo-rows #panel-fotograflar>.hint{display:none!important}
}

@media (min-width:901px) and (min-aspect-ratio:1001/1000){
.workspace>.right,.workspace>.right.two-photo-rows{display:block!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none}
.workspace>.right::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.desktop-right-body{display:contents!important}
.workspace>.right>#panel-indir{position:relative!important;flex:none!important;margin-top:13px!important}
.side-option-picker{max-height:none!important;overflow:visible!important;scrollbar-width:none!important}
.side-option-picker::-webkit-scrollbar{display:none!important}
}

/* Portrait web only: reserve the controls/footer, shrink the preview above them. */
@media (max-width:900px), (max-aspect-ratio:1/1){
body{height:100svh;height:100dvh;height:var(--browser-visible-height,100dvh)!important;max-height:var(--browser-visible-height,100dvh)!important;min-height:0!important;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px)}
body>main{flex:1 1 0!important;min-height:0!important;max-height:100%;padding-bottom:0!important}
.workspace{min-height:0!important;flex:1 1 0!important}
.workspace>.preview{min-height:0!important;flex:1 1 0!important}
.preview .canvasarea{min-height:0!important;height:auto!important;flex:1 1 0!important}
.compact-menu{flex-shrink:0!important}
main>footer{flex:0 0 40px!important}
#adBanner{flex-shrink:0!important}
}

/* Actual AdSense slots: reserved space with no placeholder overlay or clipping. */
.adsense-mount{width:100%;min-width:0;display:block!important}
@media(min-width:901px) and (min-aspect-ratio:1001/1000){
#webTopAd{overflow:visible!important;border:0!important;background:transparent!important;border-radius:0}
#desktopAdMount{height:90px}
}
@media(max-width:900px),(max-aspect-ratio:1/1){
#adBanner{padding:0!important;min-height:54px;overflow:visible!important}
#adBanner #mobileAdMount{height:50px!important;min-height:50px!important;border:0!important;background:transparent!important;overflow:visible}
}

/* Mobile banner gets a fixed budget; never consume the collage viewport. */
@media(max-width:900px),(max-aspect-ratio:1/1){
body>#adBanner{flex:0 0 54px!important;height:54px!important;min-height:54px!important;max-height:54px!important;padding:0!important;box-sizing:border-box;align-items:center}
#adBanner #mobileAdMount{flex:0 0 auto!important;height:50px!important;min-height:50px!important;max-height:50px!important;width:100%!important}
#mobileAdMount>.adsbygoogle{height:50px!important;min-height:50px!important;max-height:50px!important;width:100%!important}
.workspace>.preview{display:flex!important;flex-direction:column;min-height:0!important;overflow:hidden}
.workspace .tool-panel.is-open{box-sizing:border-box}
}

/* Fixed-size Adsterra creatives never resize the editor or crop an ad. */
.adsense-mount.adsterra-mount{display:flex!important;align-items:center;justify-content:center}
.adsterra-frame{display:block;border:0!important;margin:0!important;padding:0!important;flex:none;background:transparent;max-width:none!important;max-height:none!important}
