/* Poppins — yerel dosyalardan (internet gerekmez) */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Black.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }

:root {
  --brand-blue: #0072ce;
  --brand-green: #84bd00;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #0e2233;
  --ink-2: #3c4d5c;
  --muted: #7a8794;
  --line: #e7ebef;
  --navy: #052032;
  --accent: #0072ce;
  --accent-soft: #e5f0fa;

  --sky: #e4eef7;   --sky-ink: #3f6c93;
  --sage: #e4efe7;  --sage-ink: #4b7a5c;
  --sand: #f5eee3;  --sand-ink: #8a6a3f;
  --blush: #f7e9e8; --blush-ink: #a35c5a;
  --lav: #ecebf6;   --lav-ink: #625a9b;
  --stone: #eceef0; --stone-ink: #55616c;
  --rose: #fbe7e6;  --rose-ink: #b2443f;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14,34,51,.04), 0 4px 16px rgba(14,34,51,.05);
  --shadow-lg: 0 10px 40px rgba(14,34,51,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.brand-title { font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: -2px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--navy); font-weight: 600; }
.nav a.disabled { opacity: .5; pointer-events: none; }
.nav .soon { margin-left: auto; font-size: 10px; background: var(--stone); color: var(--stone-ink); padding: 2px 7px; border-radius: 99px; font-weight: 600; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 12px; }

.main { padding: 34px 40px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0; max-width: 620px; }
h2 { font-size: 16px; margin: 0 0 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.hero {
  padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
}
.hero h1 { font-size: 28px; }
.hero-art { display: flex; gap: 10px; align-items: flex-end; }
.hero-art span { display: block; border-radius: 10px; background: var(--navy); opacity: .9; position: relative; overflow: hidden; }
.hero-art span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, #fff 45%, rgba(255,255,255,0) 100%); }
.hero-art .a { width: 60px; height: 80px; } .hero-art .b { width: 54px; height: 96px; } .hero-art .c { width: 54px; height: 96px; }
.hero-art .a::before { background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 55%, rgba(228,238,247,0) 100%); }
.hero-art .b::before { background: linear-gradient(180deg, var(--blush) 0%, var(--blush) 60%, rgba(247,233,232,0) 100%); }
.hero-art .c::before { background: linear-gradient(180deg, var(--sage) 0%, var(--sage) 50%, rgba(228,239,231,0) 100%); }

.module-card {
  padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.module-card .icon svg { width: 22px; height: 22px; }
.module-card h3 { margin: 0; font-size: 16px; }
.module-card p { margin: 0; color: var(--muted); }
.module-card .go { margin-top: auto; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.module-card.soon { border-style: dashed; box-shadow: none; background: transparent; pointer-events: none; }
.module-card.soon .go { color: var(--muted); }

/* tones */
.tone-sky   { background: var(--sky);   color: var(--sky-ink); }
.tone-sage  { background: var(--sage);  color: var(--sage-ink); }
.tone-sand  { background: var(--sand);  color: var(--sand-ink); }
.tone-blush { background: var(--blush); color: var(--blush-ink); }
.tone-lav   { background: var(--lav);   color: var(--lav-ink); }
.tone-stone { background: var(--stone); color: var(--stone-ink); }
.tone-rose  { background: var(--rose);  color: var(--rose-ink); }

/* ---------- Template cards ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 40px; min-width: 240px;
}
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; height: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 99px;
  cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: 13px;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tpl-card { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; transition: transform .15s, box-shadow .15s; }
a.tpl-card { color: inherit; text-decoration: none; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tpl-card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.tpl-cover { height: 150px; position: relative; display: grid; place-items: center; }
.tpl-cover svg { width: 46px; height: 46px; opacity: .9; }
.tpl-cover .ratio { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.7); padding: 3px 8px; border-radius: 99px; }
.tpl-cover .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.65) 1.2px, transparent 1.3px); background-size: 16px 16px; opacity: .6; }
.tpl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-body h3 { margin: 0; font-size: 16px; }
.tpl-body p { margin: 0; color: var(--muted); font-size: 13px; }
.tpl-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.tpl-meta .open { font-weight: 600; color: var(--accent); font-size: 13px; display: flex; align-items: center; gap: 4px; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5,32,50,.25); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(520px, 100vw);
  background: var(--surface); z-index: 50; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 24px 18px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.drawer-head .icon svg { width: 22px; height: 22px; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-head p { margin: 0; color: var(--muted); font-size: 13px; }
.icon-btn { margin-left: auto; border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { padding: 8px 24px 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

.step { padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.step-num { width: 24px; height: 24px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 12px; display: grid; place-items: center; }
.step-hint { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: auto; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 10px 12px; outline: none; transition: border-color .15s, background .15s;
}
.textarea { resize: vertical; min-height: 84px; }
.input:focus, .select:focus, .textarea:focus { border-color: #b9cde0; background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }

.output {
  background: var(--surface-2); border: 1px dashed #cfd8e1; border-radius: 12px;
  padding: 14px 16px; white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); min-height: 80px;
}
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: #0c3049; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { flex: 1; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-weight: 500; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(330px, 400px) 1fr; gap: 22px; align-items: start; }
.panel { padding: 6px 20px 20px; }
.panel-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel-sec:last-child { border-bottom: 0; }
.sec-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; cursor: pointer; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button small { font-weight: 500; color: var(--muted); font-size: 11px; }
.seg button.active { background: var(--surface); box-shadow: var(--shadow); color: var(--navy); }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
.seg button[data-variant="kent"].active { box-shadow: inset 0 -3px 0 #cd080d, var(--shadow); }
.seg button[data-variant="kirsal"].active { box-shadow: inset 0 -3px 0 #447510, var(--shadow); }
.panel-sec[hidden] { display: none; }

.layouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.layout-thumb.dark::after { background: linear-gradient(180deg, rgba(0,0,0,0), #000); }
.layout-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.layout-opt.active { border-color: var(--navy); color: var(--navy); }
.layout-thumb { width: 100%; aspect-ratio: 3/4; border-radius: 7px; background: var(--stone); position: relative; overflow: hidden; }
.layout-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, rgba(5,32,50,0), var(--navy)); }
.layout-thumb i { position: absolute; display: block; border-radius: 3px; background: #9fb0bf; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--navy); }

.range-row { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.range-row output { text-align: right; color: var(--muted); font-weight: 500; }
input[type=range] { accent-color: var(--navy); width: 100%; }

.upload {
  border: 1.5px dashed #cdd6df; border-radius: 12px; padding: 16px; text-align: center; color: var(--muted);
  cursor: pointer; transition: background .15s, border-color .15s; display: block;
}
.upload:hover, .upload.drag { background: var(--accent-soft); border-color: var(--accent); }
.upload strong { color: var(--ink); display: block; }
.upload input { display: none; }
.img-actions { display: flex; gap: 8px; margin-top: 10px; }

.preview-wrap { position: sticky; top: 24px; padding: 20px; height: calc(100vh - 160px); min-height: 520px; display: flex; flex-direction: column; }
.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.preview-top .meta { color: var(--muted); font-size: 13px; }
.stage {
  background: repeating-conic-gradient(#eef1f4 0% 25%, #f7f8fa 0% 50%) 50% / 22px 22px;
  border-radius: 14px; padding: 20px; display: grid; place-items: center;
  flex: 1; min-height: 0;
}
.canvas-box { position: relative; height: 100%; max-width: 100%; box-shadow: 0 12px 40px rgba(5,32,50,.18); border-radius: 6px; overflow: hidden; }
.canvas-box canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.canvas-box.can-drag canvas { cursor: grab; }
.canvas-box.can-drag canvas:active { cursor: grabbing; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.guide { position: absolute; left: 0; right: 0; pointer-events: none; background: rgba(232, 92, 92, .07); }
.guide.g-top { border-bottom: 1.5px dashed rgba(232, 92, 92, .9); }
.guide.g-bottom { border-top: 1.5px dashed rgba(232, 92, 92, .9); }
.guide-label { position: absolute; right: 6px; font-size: 10px; font-weight: 700; color: #b33; background: rgba(255,255,255,.9); padding: 1px 6px; border-radius: 6px; }
.guide.g-top .guide-label { bottom: 4px; }
.guide.g-bottom .guide-label { top: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.toggle input { accent-color: var(--navy); width: 16px; height: 16px; }

/* ---------- Kurumsal renkler ---------- */
.brand-colors { display: flex; gap: 14px; flex-wrap: wrap; }
.brand-color { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; cursor: pointer; text-align: left; min-width: 250px; }
.brand-color .sw { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.brand-color strong { display: block; font-size: 14px; }
.brand-color code { font-family: inherit; color: var(--muted); font-size: 13px; letter-spacing: .03em; }
.brand-color .copy-ic { margin-left: auto; color: var(--muted); }
.brand-color .copy-ic svg { width: 16px; height: 16px; }
.brand-color:hover { box-shadow: var(--shadow-lg); }

/* ---------- Bülten paneli ---------- */
.list-card { padding: 24px 28px 28px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.list-head h2 { margin: 0; font-size: 18px; }
.count-pill { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.bulletin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bulletin-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.bulletin-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bulletin-card[hidden] { display: none; }
.bulletin-thumb { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.bulletin-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bulletin-thumb span { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; padding: 20px; text-align: center; }
.bulletin-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bulletin-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bulletin-meta .issue { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.bulletin-meta .period { font-size: 12px; font-weight: 700; color: var(--brand-blue); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; }
.bulletin-card h3 { margin: 4px 0 0; font-size: 17px; }
.bulletin-card .sub { margin: 0; color: var(--muted); font-size: 13px; }
.bulletin-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.link-danger { border: 0; background: none; color: #b5523d; cursor: pointer; font-size: 13px; padding: 6px 8px; border-radius: 8px; }
.link-danger:hover { background: var(--rose); }

/* ---------- Bülten düzenleyici ---------- */
.editor-layout { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 22px; align-items: start; }
.editor-panel { padding: 24px 26px; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.editor-head h1 { font-size: 24px; margin: 4px 0 0; }
.back-link { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; margin-top: 18px; }
.back-link:hover { color: var(--brand-blue); }
.editor-sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.field-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; }
.field-grid-4 .span-2 { grid-column: span 2; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 10px; }
.eyebrow.muted { color: var(--muted); }
.cards-title { margin: 4px 0 0; font-size: 18px; }
.cards-title span { color: var(--muted); font-weight: 500; }
.btn-ghost-wide { width: 100%; border-style: dashed; color: var(--muted); margin-top: 4px; }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--navy); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 20px; }
.save-state { font-size: 12px; color: var(--muted); margin-left: 4px; }
.save-state.dirty { color: #b07a2a; }
.save-state.err { color: #b5523d; }

.item-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.item-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; user-select: none; }
.item-head .num { width: 24px; height: 24px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.item-head .name { font-weight: 600; color: var(--navy); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-head .tools { display: flex; gap: 2px; align-items: center; }
.mini-btn { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.mini-btn:hover { background: var(--line); color: var(--ink); }
.mini-btn[disabled] { opacity: .3; pointer-events: none; }
.item-head .chev { transition: transform .15s; }
.item-card.collapsed .chev { transform: rotate(-90deg); }
.item-card.collapsed .item-body { display: none; }
.item-body { padding: 4px 14px 14px; }
.item-body .input, .item-body .textarea, .item-body .select { background: #fff; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 44px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.color-row .hint { margin: 0; }
.color-row .mini-link { border: 0; background: none; color: var(--brand-blue); font-size: 12px; cursor: pointer; padding: 0; }
.img-field { display: flex; gap: 12px; align-items: center; }
.img-thumb { width: 96px; height: 64px; border-radius: 8px; background: #e9edf1 center / cover no-repeat; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.img-field .upload { flex: 1; padding: 10px; font-size: 12px; }
.img-sliders { margin-top: 10px; }
.text-tip { font-size: 11.5px; color: var(--muted); margin-top: -6px; margin-bottom: 12px; }

.preview-col { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 48px); }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 10px; flex-wrap: wrap; }
.preview-bar .muted, .muted { color: var(--muted); font-size: 13px; }
.paper-stage { background: #e7eaee; border-radius: 16px; padding: 22px; overflow: auto; flex: 1; min-height: 0; }
.paper { display: block; width: 100%; max-width: 794px; margin: 0 auto; background: #fff; box-shadow: 0 6px 24px rgba(5,32,50,.12); }

/* ---------- İntranet görseli ---------- */
.crop-layout { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 22px; align-items: start; }
.crop-stage { background: repeating-conic-gradient(#eef1f4 0% 25%, #f7f8fa 0% 50%) 50% / 22px 22px; border-radius: 14px; padding: 20px; display: grid; place-items: center; }
.crop-box { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 1557 / 1030; box-shadow: 0 12px 40px rgba(5,32,50,.18); border-radius: 4px; overflow: hidden; background: #fff; }
.crop-box canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.crop-box.can-drag canvas { cursor: grab; }
.crop-box.can-drag canvas:active { cursor: grabbing; }
.crop-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; pointer-events: none; }
.thirds { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.queue { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.queue button { width: 64px; height: 44px; border-radius: 8px; border: 2px solid transparent; background: #ddd center / cover no-repeat; cursor: pointer; padding: 0; position: relative; }
.queue button.active { border-color: var(--navy); }
.queue button.done::after { content: "✓"; position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 99px; background: var(--brand-green); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .studio, .editor-layout, .crop-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; max-height: none; }
  .preview-wrap { position: static; order: -1; height: auto; }
  .stage { height: 60vh; flex: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .nav { flex-direction: row; }
  .nav-label, .sidebar-foot, .brand-sub { display: none; }
  .nav a span.txt { white-space: nowrap; }
  .main { padding: 22px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}
