/* Banner Stüdyosu */
.bn { --bn-col: var(--tl-surface); }
.bn-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.bn-col { background: var(--bn-col); border: 1px solid var(--tl-line); border-radius: 18px; padding: 16px; box-shadow: var(--tl-shadow); min-width: 0; }
.bn-days-col, .bn-edit-col { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; }
.bn-h { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; }
.bn-stage-col .bn-h { margin-top: 18px; }
.bn-step { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--tl-accent), var(--tl-accent-2)); }

/* gün seçimi */
.bn-search { position: relative; display: block; margin-bottom: 10px; }
.bn-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tl-muted); font-size: 13px; }
.bn-search input { width: 100%; padding: 10px 12px 10px 34px; border-radius: 11px; border: 1px solid var(--tl-line); background: var(--tl-surface-2); color: var(--tl-text); font: 500 14px var(--tl-font); }
.bn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bn-chips button { border: 1px solid var(--tl-line); background: var(--tl-surface); color: var(--tl-muted); font: 700 12.5px var(--tl-font); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.bn-chips button.is-on { background: var(--tl-text); color: var(--tl-surface); border-color: var(--tl-text); }
.bn-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.bn-day { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid transparent; background: none; color: var(--tl-text); padding: 9px 10px; border-radius: 10px; cursor: pointer; font: 600 14px/1.3 var(--tl-font); }
.bn-day:hover { background: var(--tl-surface-2); }
.bn-day.is-on { background: color-mix(in srgb, var(--tl-accent) 12%, transparent); border-color: color-mix(in srgb, var(--tl-accent) 40%, transparent); }
.bn-day-name { flex: 1; min-width: 0; }
.bn-day small { display: block; color: var(--tl-muted); font-weight: 600; font-size: 12px; margin-top: 1px; }
.bn-day-dot { flex: none; align-self: flex-start; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--tl-accent); }
.bn-cat-milli .bn-day-dot { background: #E30A17; } .bn-cat-dini .bn-day-dot { background: #0f766e; } .bn-cat-anma .bn-day-dot { background: #475569; }
.bn-cat-vefat .bn-day-dot { background: #000; box-shadow: 0 0 0 1px var(--tl-muted); } .bn-cat-ozel .bn-day-dot { background: #db2777; } .bn-cat-genel .bn-day-dot { background: #2563eb; }
.bn-empty { color: var(--tl-muted); padding: 10px; font-size: 14px; }

/* sahne */
.bn-stagebar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 12px; }
.bn-size { flex: 1 1 260px; margin: 0 !important; }
.bn-custom { display: flex; align-items: center; gap: 6px; }
.bn-custom[hidden] { display: none; }
.bn-custom input { width: 92px; }
.bn-custom small { color: var(--tl-muted); }
.bn-dim { margin-left: auto; color: var(--tl-muted); font-size: 13px; font-weight: 600; padding-bottom: 10px; }
.bn-canvas-wrap { position: relative; display: grid; place-items: center; min-height: 240px; padding: 18px; border-radius: 14px; background: repeating-conic-gradient(var(--tl-surface-2) 0 25%, var(--tl-surface) 0 50%) 0 0 / 22px 22px; border: 1px solid var(--tl-line); }
.bn-canvas { display: block; max-width: 100%; border-radius: 4px; box-shadow: 0 10px 34px rgba(0,0,0,.22); }
.bn-loading { position: absolute; inset: auto 12px 12px auto; font-size: 13px; color: var(--tl-muted); background: var(--tl-surface); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--tl-line); }
.bn-loading[hidden] { display: none; }
.bn-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.bn-design { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 2px solid var(--tl-line); background: var(--tl-surface-2); cursor: pointer; color: var(--tl-text); font: 700 12.5px var(--tl-font); transition: border-color .15s, transform .15s; }
.bn-design:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tl-accent) 45%, var(--tl-line)); }
.bn-design.is-on { border-color: var(--tl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tl-accent) 22%, transparent); }
.bn-design canvas { display: block; max-width: 100%; height: auto; border-radius: 4px; background: var(--tl-line); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* düzenleme */
.bn-sec { border: 1px solid var(--tl-line); border-radius: 12px; margin-bottom: 10px; background: var(--tl-surface); }
.bn-sec > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.bn-sec > summary::-webkit-details-marker { display: none; }
.bn-sec > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--tl-muted); border-bottom: 2px solid var(--tl-muted); transform: rotate(45deg); transition: transform .15s; }
.bn-sec[open] > summary::after { transform: rotate(-135deg); }
.bn-sec > summary i { color: var(--tl-accent); width: 18px; text-align: center; }
.bn-sec > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.bn-sec > *:last-child { margin-bottom: 14px; }
.bn-field { display: block; margin-bottom: 10px; }
.bn-field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--tl-muted); margin-bottom: 4px; }
.bn input[type=text], .bn input[type=number], .bn select, .bn textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--tl-line); background: var(--tl-surface-2); color: var(--tl-text); font: 500 14px/1.4 var(--tl-font); }
.bn textarea { resize: vertical; min-height: 44px; }
.bn input:focus, .bn select:focus, .bn textarea:focus { border-color: var(--tl-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tl-accent) 20%, transparent); }
.bn-range input { width: 100%; accent-color: var(--tl-accent); }
.bn-inline { display: flex; align-items: center; gap: 10px; }
.bn-inline > span { margin: 0; }
.bn input[type=color] { width: 44px; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--tl-line); background: var(--tl-surface-2); cursor: pointer; }
.bn-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 8px; cursor: pointer; }
.bn-check input { margin-top: 3px; accent-color: var(--tl-accent); }
.bn-row2 { display: flex; flex-wrap: wrap; gap: 0 16px; }
.bn-row2 [hidden] { display: none; }
.bn-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.bn-logo-prev { flex: none; width: 76px; height: 56px; border-radius: 10px; border: 1px dashed var(--tl-line); display: grid; place-items: center; color: var(--tl-muted); background: repeating-conic-gradient(var(--tl-surface-2) 0 25%, var(--tl-surface) 0 50%) 0 0 / 12px 12px; overflow: hidden; }
.bn-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bn-logo-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bn-logo-btns [hidden] { display: none; }
.bn-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-sw { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--tl-line); padding: 0; cursor: pointer; overflow: hidden; background: none; }
.bn-sw i, .bn-sw b { position: absolute; inset: 0; }
.bn-sw b { inset: 50% 0 0 50%; border-top-left-radius: 100%; }
.bn-sw.is-on { border-color: var(--tl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tl-accent) 25%, transparent); }
.bn-note { font-size: 13px; color: var(--tl-muted); margin: 0 0 10px; }
.bn-export { position: sticky; bottom: -16px; background: var(--bn-col); padding: 12px 0 2px; margin-top: 4px; border-top: 1px solid var(--tl-line); }
.bn-seg { display: flex; padding: 3px; gap: 3px; background: var(--tl-surface-2); border: 1px solid var(--tl-line); border-radius: 11px; margin-bottom: 10px; }
.bn-seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font: 800 13px var(--tl-font); color: var(--tl-muted); cursor: pointer; }
.bn-seg button.is-on { background: var(--tl-surface); color: var(--tl-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bn-download { margin: 2px 0 8px; }
.bn-copy { width: 100%; margin-bottom: 8px; }
.bn-copy[hidden] { display: none; }
.bn-privacy i { color: var(--tl-ok); margin-right: 4px; }

/* özgür düzenleme */
.bn-freebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.bn-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 800; font-size: 14px; user-select: none; }
.bn-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bn-switch-ui { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--tl-line); transition: background .15s; flex: none; }
.bn-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bn-switch input:checked + .bn-switch-ui { background: linear-gradient(135deg, var(--tl-accent), var(--tl-accent-2)); }
.bn-switch input:checked + .bn-switch-ui::after { transform: translateX(20px); }
.bn-switch input:focus-visible + .bn-switch-ui { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tl-accent) 30%, transparent); }
.bn-freetools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-surface); }
.bn-freetools[hidden], .bn-insp[hidden], .bn-iconpick[hidden], .bn-draft[hidden], .bn-freehint[hidden], .bn-freenote[hidden] { display: none; }
.bn-tb { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--tl-text); font: 700 13px var(--tl-font); padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.bn-tb:hover { background: var(--tl-surface-2); }
.bn-tb:disabled { opacity: .35; cursor: default; background: none; }
.bn-tb[aria-expanded="true"] { background: color-mix(in srgb, var(--tl-accent) 14%, transparent); color: var(--tl-accent); }
.bn-tb i { font-size: 14px; }
.bn-tb-danger { color: #dc2626; }
.bn-tb-sep { width: 1px; height: 22px; background: var(--tl-line); margin: 0 4px; }
.bn-lockbg { margin: 0 6px 0 8px; font-size: 12.5px; color: var(--tl-muted); }
.bn-lockbg input { margin-top: 2px; }

.bn-iconpick { border: 1px solid var(--tl-line); border-radius: 14px; background: var(--tl-surface); padding: 12px; margin-bottom: 10px; box-shadow: var(--tl-shadow); }
.bn-iconpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin-bottom: 10px; }
.bn-ic { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; padding: 8px; display: grid; place-items: center; cursor: pointer; transition: transform .12s, border-color .12s; }
.bn-ic:hover { transform: translateY(-1px); border-color: var(--tl-accent); }
.bn-ic img { max-width: 100%; max-height: 100%; }
.bn-iconpick-own { width: auto; }
.bn-ornpick-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-bottom: 0; }
.bn-ornpick-grid .bn-ic { aspect-ratio: 3 / 2; padding: 6px; grid-template-rows: 1fr auto; gap: 2px; font: 700 11px var(--tl-font); color: rgba(255,255,255,.85); }
.bn-ornpick-grid .bn-ic img { max-height: 46px; }

.bn-canvas-box { position: relative; line-height: 0; }
.bn-overlay { position: absolute; left: 0; top: 0; touch-action: none; }
.bn-overlay[hidden] { display: none; }
.bn.is-free .bn-canvas { box-shadow: 0 0 0 2px var(--tl-accent), 0 10px 34px rgba(0,0,0,.22); }
.bn .bn-inline-edit { position: absolute; min-height: 0; border-radius: 0; box-shadow: none; z-index: 3; margin: 0; border: 0; outline: 2px dashed var(--tl-accent); resize: none; overflow: hidden; white-space: pre-wrap; transform-origin: center center; box-sizing: border-box; }
.bn-inline-edit[hidden] { display: none; }

.bn-insp { border: 1px solid var(--tl-line); border-radius: 14px; background: var(--tl-surface); padding: 10px 12px; margin-top: 10px; }
.bn-insp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bn-insp-name { font-size: 13.5px; margin-right: auto; }
.bn-insp-acts { display: flex; flex-wrap: wrap; gap: 2px; }
.bn-insp-fields { align-items: flex-end; margin-top: 8px; }
.bn-insp-fields .bn-field { margin: 0; flex: 0 1 150px; }
.bn-insp-fields .bn-insp-text { flex: 1 1 260px; }
.bn-insp-fields [hidden] { display: none; }
.bn-freehint { font-size: 12.5px; color: var(--tl-muted); margin: 8px 2px 0; }
.bn-freehint kbd { font: 700 11px var(--tl-font); padding: 1px 5px; border: 1px solid var(--tl-line); border-bottom-width: 2px; border-radius: 5px; background: var(--tl-surface-2); }
.bn-freenote { font-size: 13px; line-height: 1.45; background: color-mix(in srgb, var(--tl-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tl-accent) 35%, transparent); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.bn-freenote i { color: var(--tl-accent); margin-right: 4px; }
.bn.is-free .bn-edit-col .bn-sec { opacity: .45; pointer-events: none; }
.bn.is-free .bn-edit-col .bn-sec > summary::after { display: none; }

.bn-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); font-size: 13.5px; font-weight: 600; }
.bn-draft span { margin-right: auto; }

.bn-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.55); }
.bn-modal[hidden] { display: none; }
.bn-modal-box { width: min(440px, 100%); background: var(--tl-surface); color: var(--tl-text); border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.bn-modal-box h3 { margin: 0 0 8px; font-size: 17px; }
.bn-modal-box p { margin: 0 0 16px; color: var(--tl-muted); font-size: 14px; line-height: 1.5; }
.bn-modal-btns { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) {
  .bn-tb span { display: none; }
  .bn-insp-fields .bn-field { flex: 1 1 45%; }
}

@media (max-width: 1260px) { .bn-grid { grid-template-columns: 240px minmax(0, 1fr) 300px; } }
@media (max-width: 1020px) {
  .bn-grid { grid-template-columns: 1fr; }
  .bn-stage-col { order: -1; }
  .bn-days-col, .bn-edit-col { position: static; max-height: none; overflow: visible; }
  .bn-days { max-height: 300px; overflow: auto; }
  .bn-export { position: sticky; bottom: 0; padding-bottom: 12px; z-index: 5; }
  .bn-designs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 520px) {
  .tl-tool-app { padding: 0 10px; }
  .bn-col { padding: 12px; border-radius: 14px; }
  .bn-canvas-wrap { padding: 10px; min-height: 160px; }
  .bn-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
