:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #0d1424;
  --ink2: #2b3550;
  --muted: #5d6882;
  --line: #e3e7ef;
  --line2: #eef1f6;
  --brand: #2f5bff;
  --brand2: #4f74ff;
  --brand-soft: #eef2ff;
  --side: #0d1424;
  --side2: #18213a;
  --red: #d0533b;
  --red-soft: #fbe9e5;
  --amber: #b7791f;
  --amber-soft: #fbf1df;
  --blue: #2f62d0;
  --blue-soft: #e6edfb;
  --green: #1f8a5b;
  --green-soft: #e1f4ea;
  --violet: #7a4fd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,20,.04), 0 6px 24px rgba(16,24,20,.05);
  --shadow-lg: 0 24px 64px rgba(16,24,20,.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.ic { flex: none; display: block; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }

/* giriş */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(900px 560px at 85% 10%, rgba(47,91,255,.55), transparent 65%), #0d1424; color: #eef1f8; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; max-width: 440px; }
.auth-art p { color: #aab3cc; max-width: 420px; margin: 0; }
.auth-art .feats { display: grid; gap: 12px; margin-top: 28px; }
.auth-art .feat { display: flex; gap: 10px; align-items: center; color: #dfe4f2; }
.auth-art .feat span.dotf { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.auth-main { display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.auth-card p.sub { margin: 0 0 26px; color: var(--muted); }
.logo { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; font-weight: 800; }

/* düzen */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #c3cadb; padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.side .brand small { display: block; font-weight: 500; font-size: 12px; color: #7f948c; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5f746c; padding: 14px 12px 6px; font-weight: 600; }
.nav-btn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #aebcb7; font-weight: 500; position: relative; }
.nav-btn:hover { background: var(--side2); color: #fff; }
.nav-btn.active { background: linear-gradient(90deg, rgba(79,116,255,.26), rgba(79,116,255,.06)); color: #fff; }
.nav-btn.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand2); }
.nav-btn .lbl { flex: 1; }
.nav-btn .count { background: #e0634a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side .spacer { flex: 1; min-height: 16px; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; background: var(--side2); }
.side .who b { color: #fff; display: block; font-weight: 600; font-size: 13.5px; }
.side .who small { color: #7f948c; font-size: 12px; }
.side .who .x { margin-left: auto; color: #7f948c; cursor: pointer; padding: 4px; border-radius: 6px; }
.side .who .x:hover { color: #fff; background: rgba(255,255,255,.08); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(244,246,248,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.search { position: relative; flex: 1; max-width: 460px; }
.search > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px !important; background: #fff; border-radius: 11px !important; }
.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow: auto; }
.results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }
.results .r { display: flex; gap: 10px; align-items: center; color: var(--ink2); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.results .r:hover { background: var(--bg); }
.results .r small { color: var(--muted); display: block; }
.topbar .date { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }
.dd { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 30; }
.menu button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 8px; color: var(--ink2); font-weight: 500; }
.menu button:hover { background: var(--bg); color: var(--ink); }
.content { padding: 8px 32px 64px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin-top: 6px; }
.crumb:hover { color: var(--ink); }

/* bileşenler */
.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 10px; font-weight: 600; white-space: nowrap; color: var(--ink2); }
.btn:hover { border-color: #cfd6da; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 12px rgba(31,122,92,.25); }
.btn.primary:hover { background: #196a4f; }
.btn.danger { color: var(--red); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand2); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 14px; margin-bottom: 12px; color: var(--ink2); }
.err { background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 20px 12px; }
.card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.card-head .hsub { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 4px 20px 20px; }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 28px; margin-bottom: 6px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { border-color: #cfd6da; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.kpi .n.sm { font-size: 19px; line-height: 1.3; }
.kpi .n { font-size: 27px; font-weight: 750; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi.hero { background: radial-gradient(420px 220px at 100% 0, rgba(47,91,255,.55), transparent 70%), #0d1424; color: #fff; border-color: transparent; }
.kpi.hero .top, .kpi.hero .foot { color: #aab3cc; }
.kpi.hero .ico { background: rgba(255,255,255,.12); color: #fff; }
.t-green { background: var(--green-soft); color: var(--green); }
.t-red { background: var(--red-soft); color: var(--red); }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-amber { background: var(--amber-soft); color: var(--amber); }
.t-violet { background: #efe8fb; color: var(--violet); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 99px; }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.kpi.hero .delta { background: rgba(255,255,255,.14); color: #fff; }

.g2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.g2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mb { margin-bottom: 18px; }

/* liste */
.list { list-style: none; margin: 0; padding: 0 8px 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.item:hover { background: #f7f9fa; }
.item .body { flex: 1; min-width: 0; cursor: pointer; }
.item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.done .title { text-decoration: line-through; color: var(--muted); }
.item .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1px; align-items: center; }
.item .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c6cfcb; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; transition: .15s; }
.tick:hover { border-color: var(--brand2); background: var(--brand-soft); }
.tick.on { background: var(--brand); border-color: var(--brand); }
.tick.on::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.tick.half { border-color: var(--blue); background: var(--blue-soft); }
.pri { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pri.yuksek { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.pri.normal { background: #9fb3ab; }
.pri.dusuk { background: #d3dcd8; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: #eef1f3; color: #55635e; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.late { color: var(--red); font-weight: 600; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; letter-spacing: .02em; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar select, .toolbar input { width: auto; min-width: 170px; }
.tabs { display: inline-flex; background: #e9edf0; border-radius: 11px; padding: 3px; gap: 2px; }
.tabs button { all: unset; cursor: pointer; padding: 6px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #5d6b66; display: inline-flex; align-items: center; gap: 6px; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.utabs button { all: unset; cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.utabs button.on { color: var(--ink); border-color: var(--brand); }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fafbfc; }
table.t td { padding: 12px 20px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f7f9fa; }
.cell-u { display: flex; align-items: center; gap: 10px; }
.cell-u small { display: block; color: var(--muted); font-size: 12.5px; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card > table.t { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }

/* kanban */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.kcol { background: #eaeef1; border-radius: var(--radius); padding: 10px; min-height: 200px; transition: background .15s, box-shadow .15s; }
.kcol.over { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand2); }
.kcol h4 { margin: 4px 6px 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--ink2); }
.kcol h4 .n { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.kcard:hover { border-color: #cfd6da; }
.kcard.dragging { opacity: .45; }
.kcard .title { font-weight: 600; margin-bottom: 6px; }
.kcard .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* müşteri kartları */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; box-shadow: var(--shadow); transition: .15s; }
.ccard:hover { border-color: #cfd6da; transform: translateY(-1px); }
.ccard .h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ccard .h b { display: block; font-size: 15px; }
.ccard .h small { color: var(--muted); }
.ccard .m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line2); }
.ccard .m div { font-size: 12px; color: var(--muted); }
.ccard .m b { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.phead { display: flex; gap: 16px; align-items: center; }
.phead h2 { margin: 0; }
.contact { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* grafikler */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-size: 11px; fill: #87958f; font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.donut-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }
.dlist { flex: 1; min-width: 160px; display: grid; gap: 8px; }
.dlist .d { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dlist .d b { margin-left: auto; font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 12px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; gap: 8px; }
.hbar .top b { font-variant-numeric: tabular-nums; }
.hbar .track { height: 8px; background: #edf1f3; border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand2), var(--brand)); }
.progress { height: 6px; background: #edf1f3; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; background: var(--brand2); border-radius: 99px; }
.kpi.hero .progress { background: rgba(255,255,255,.15); }
.kpi.hero .progress div { background: #8fe0bd; }
.note { font-size: 12.5px; color: var(--muted); }

/* yorumlar */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-height: 340px; overflow: auto; }
.msg { padding: 10px 13px; border-radius: 12px; background: #f1f4f6; max-width: 85%; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); }
.msg .h { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg .x { white-space: pre-wrap; }
.desc { white-space: pre-wrap; background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(10,18,15,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .14s ease-out; }
.modal { background: #fff; width: 100%; max-width: 580px; border-radius: 18px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal.wide { max-width: 740px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.modal-body { padding: 20px 24px; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fafbfc; position: sticky; bottom: 0; }
.x-btn { all: unset; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 8px; }
.x-btn:hover { background: var(--bg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0e1915; color: #fff; padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 99; font-weight: 500; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--red); }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 8px; }
pre.preview { white-space: pre-wrap; font: 13.5px/1.55 -apple-system, sans-serif; background: #eef5f2; border-radius: 12px; padding: 14px 16px; margin: 0; }
code { background: #eef1f3; padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.only-m { display: none !important; }

/* çalışma alanı geçişi */
.wsw { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--side2); border-radius: 11px; padding: 3px; margin: 0 2px 8px; }
.wsw button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #9aa4bd; }
.wsw button:hover { color: #fff; }
.wsw button.on { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ws-ilab { --brand: #2f62d0; --brand2: #4a7be6; --brand-soft: #e6edfb; --side: #0d1322; --side2: #172036; }
.ws-ilab .nav-btn.active { background: linear-gradient(90deg, rgba(74,123,230,.32), rgba(74,123,230,.08)); }
.ws-ilab .kpi.hero { background: linear-gradient(135deg, #3463d1 0%, #1a2c66 100%); }
.ws-ilab .kpi.hero .top, .ws-ilab .kpi.hero .foot { color: #c4d3f5; }
.ws-ilab .btn.primary { box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 12px rgba(47,98,208,.28); }
.ws-ilab .btn.primary:hover { background: #2853b4; }
.ws-ilab .logo { background: linear-gradient(135deg, #4a7be6, #2f62d0); }
/* zil ve bildirimler */
.bell { position: relative; padding: 8px 10px; }
.dot-n { position: absolute; top: -5px; right: -5px; background: #e0634a; color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 6px; border: 2px solid var(--bg); }
.npanel { width: 360px; max-height: 480px; overflow: auto; padding: 6px; }
.nhead { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; }
.menu .nitem { align-items: flex-start; white-space: normal; }
.nitem .ico, .pop .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.nitem b { display: block; font-size: 13.5px; color: var(--ink); }
.nitem small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.nitem.new { background: var(--brand-soft); }
#pops { position: fixed; top: 74px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); }
.pop { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid #2f5bff; border-radius: 14px; padding: 12px 10px 12px 14px; box-shadow: var(--shadow-lg); animation: slidein .25s ease-out; transition: opacity .35s, transform .35s; }
.pop.out { opacity: 0; transform: translateX(30px); }
.pop .pb { flex: 1; min-width: 0; cursor: pointer; }
.pop b { display: block; font-size: 14px; }
.pop small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: pre-line; line-height: 1.55; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
/* hafta ve takvim */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wday { background: #f6f8fa; border-radius: 11px; padding: 8px; min-height: 110px; cursor: pointer; border: 1px solid transparent; min-width: 0; }
.wday:hover { border-color: var(--line); }
.wday.today { background: var(--brand-soft); border-color: var(--brand2); }
.wh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.wh b { text-transform: capitalize; color: var(--ink2); }
.wh span { font-weight: 700; font-size: 15px; color: var(--ink); }
.chip { font-size: 12px; line-height: 1.35; padding: 4px 7px; border-radius: 7px; margin-bottom: 4px; background: #fff; border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.chip:hover { background: #f3f5f7; }
.chip.done { opacity: .5; text-decoration: line-through; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.cal-h { padding: 8px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfc; border-bottom: 1px solid var(--line); }
.cal-d { min-height: 112px; padding: 6px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); cursor: pointer; min-width: 0; background: #fff; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d:hover { background: #fafbfc; }
.cal-d.off { background: #f8f9fa; cursor: default; }
.cal-d .chip { background: #f6f8fa; }
.num-d { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 2px 4px 6px; }
.cal-d.today .num-d { background: var(--brand); color: #fff; display: inline-block; border-radius: 99px; padding: 1px 8px; margin-left: 0; }
.cal-d.has-late { box-shadow: inset 0 3px 0 var(--red); }
.more { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.qbtn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink2); background: #fff; box-sizing: border-box; }
.qbtn:hover { border-color: var(--c); color: var(--c); }
.qbtn span { font-size: 16px; }
@media (max-width: 860px) {
  .wsw { margin: 0 6px 0 0; flex: none; display: inline-grid; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .cal-d { min-height: 70px; padding: 3px; }
  .cal-d .chip { font-size: 10.5px; padding: 2px 4px; }
  .npanel { width: calc(100vw - 32px); right: -60px; }
  #pops { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; }
}
.pboard { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; padding: 0 16px 16px; }
.pboard .kcol { min-height: 160px; }
.pmoney { color: var(--ink); font-weight: 700; }
.pb { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.psr { border: 1px solid var(--line); border-radius: 12px; max-height: 520px; overflow-y: auto; }
.psrow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line2); cursor: pointer; margin: 0; }
.psrow:last-child { border-bottom: 0; }
.psrow:hover { background: #f7f9fa; }
.psrow.added { opacity: .6; cursor: default; }
.psrow input { width: 17px; height: 17px; flex: none; }
.pmain { flex: 1; min-width: 0; }
.pmain b { display: block; }
.pmain small { display: block; color: var(--muted); font-size: 12.5px; }
.pmain .addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.star { font-weight: 700; color: var(--amber); font-size: 13px; }
.star small { color: var(--muted); font-weight: 500; }
.pgrid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.pbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pbh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pbh b { display: inline-flex; align-items: center; gap: 7px; }
.presp { background: var(--green-soft); color: #155a43; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.presp.red { background: var(--red-soft); color: #8a3322; }
.presp b { display: block; }
.presp small { display: block; opacity: .75; margin-bottom: 4px; }
.timeline { max-height: 240px; overflow-y: auto; }
.tl { display: flex; gap: 10px; padding: 6px 0; }
.tl .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.tl b { display: block; font-size: 13.5px; font-weight: 600; }
.tl small { color: var(--muted); font-size: 12px; }
.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.wa-btn:hover { background: #1fb457; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tagrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tagrow .em { width: 56px; text-align: center; font-size: 18px; }
.tagrow .lb { flex: 1; }
.tagrow .cl { width: 46px; height: 38px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: #fff; flex: none; }
.pkrow { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.goal { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.goal span, .link { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.btn { text-decoration: none; }
.item .wa-btn { margin-left: 8px; padding: 5px 8px; }
.tagtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tagtabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.tagtabs button:hover { border-color: var(--c); }
.tagtabs button.on { background: var(--c); border-color: var(--c); color: #fff; }
.tagtabs .n { font-size: 12px; background: rgba(0,0,0,.07); border-radius: 99px; padding: 1px 7px; }
.tagtabs button.on .n { background: rgba(255,255,255,.25); }
.itbl tr.done td { color: var(--muted); }
.itbl tr.done td b { color: var(--muted); }
.itbl .nowrap { white-space: nowrap; }
.itbl td small { color: var(--muted); font-weight: 600; }
.itbl td.late { color: var(--red); font-weight: 600; }
.stsel { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.stsel[style] { background: color-mix(in srgb, var(--sc) 12%, #fff); border-color: color-mix(in srgb, var(--sc) 35%, #fff); color: var(--sc); max-width: 230px; }
.stsel.st-devam { background: #eaf0fc; border-color: #c9d8f6; color: #2f62d0; }
.stsel.st-tamam { background: var(--green-soft); border-color: #bfe3d1; color: #1f8a5b; }
.kbrand { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.brandtxt { color: var(--ink); }
.show-m { display: none; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .g2, .g2e { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 25; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; gap: 2px; }
  .side .brand, .side .who, .side .spacer, .side .sec { display: none; }
  .nav-btn { flex: none; padding: 8px 11px; gap: 7px; }
  .nav-btn.active::before { display: none; }
  .topbar { position: static; padding: 12px 16px; flex-wrap: wrap; }
  .topbar .date { display: none; }
  .content { padding: 4px 16px 64px; }
  .kpi .n { font-size: 21px; }
  .kpi.hero { grid-column: span 2; }
  .kpis { gap: 12px; }
  .board { grid-template-columns: 1fr; }
  .pboard { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .pgrid { grid-template-columns: 1fr; }
  .psrow { flex-wrap: wrap; }
  .pside { justify-content: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .show-m { display: block; }
  table.t.itbl thead { display: none; }
  table.t.itbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
  table.t.itbl td { padding: 0; border: 0; display: block; }
  table.t.itbl td.hide-m { display: none; }
  table.t.itbl td:nth-child(1) { order: 1; font-size: 13px; }
  table.t.itbl td:nth-child(2) { order: 2; }
  table.t.itbl td[data-stop] { order: 3; margin-left: auto; }
  table.t.itbl td:nth-child(4) { order: 4; width: 100%; }
  .only-m { display: flex !important; }
  .page-head h2 { font-size: 22px; }
}
@media print {
  body { background: #fff; }
  .side, .topbar, .no-print, #toast { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .hide-m { display: table-cell !important; }
}
/* ---------- web sitesi & dosya kasası ---------- */
.pad { padding: 18px 20px; }
.pad0 { padding: 0 20px 10px; margin: 0; }
.card.pad h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card.pad + .card.pad { margin-top: 14px; }
form.card.pad h4 { margin: 22px 0 6px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; word-break: break-word; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ed-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; min-width: 0; }
.ed-title { width: 100%; border: 0; font-size: 30px; font-weight: 700; line-height: 1.2; font-family: inherit; letter-spacing: -0.02em; padding: 4px 0; outline: none; color: var(--ink); }
.ed-path { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); margin: 6px 0 14px; flex-wrap: wrap; }
.ed-path input { border: 1px dashed var(--line); border-radius: 6px; padding: 3px 6px; font: inherit; color: var(--ink); min-width: 240px; flex: 1; }
.edbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f4f6f8; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.edbar.mini { position: static; margin-bottom: 6px; }
.edbar .tb { all: unset; cursor: pointer; min-width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 7px; font-size: 13px; font-weight: 700; color: #3d4a46; }
.edbar .tb:hover { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.edbar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.ed-body { min-height: 480px; outline: none; padding: 4px 2px; }
.ed-body.small { min-height: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.prose-ed { font: 17px/1.7 Georgia, "Times New Roman", serif; color: #1f2a2a; }
.prose-ed h2 { font-size: 24px; font-weight: 700; line-height: 1.25; font-family: system-ui, sans-serif; margin: 1.3em 0 .4em; }
.prose-ed h3 { font-size: 19px; font-weight: 700; line-height: 1.3; font-family: system-ui, sans-serif; margin: 1.2em 0 .3em; }
.prose-ed img { max-width: 100%; height: auto; border-radius: 8px; }
.prose-ed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.prose-ed blockquote { border-left: 3px solid #e8c547; margin: 1em 0; padding-left: 14px; font-style: italic; }
.prose-ed a { color: #1f4fd6; }
.ed-html { width: 100%; min-height: 480px; font: 13px/1.55 ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.ed-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 14px; }
.dirty { color: #b7791f; font-weight: 600; }
.ed-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding-bottom: 20px; }
.ed-side .card.pad + .card.pad { margin-top: 0; }
.ed-cover { width: 100%; border-radius: 8px; aspect-ratio: 2/1; object-fit: cover; }
.dropbtn { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 22px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.dropbtn:hover { border-color: var(--brand); color: var(--brand); }
.catlist { display: grid; gap: 4px; max-height: 200px; overflow-y: auto; }
.snip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-family: Arial, sans-serif; }
.snip small { color: #4d5156; font-size: 12px; }
.snip b { display: block; color: #1a0dab; font-weight: 400; font-size: 17px; line-height: 1.3; margin: 3px 0; }
.snip p { margin: 0; color: #4d5156; font-size: 13px; line-height: 1.45; }
.cnt { float: right; font-weight: 500; color: var(--muted); font-size: 12px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.checks li { position: relative; padding-left: 20px; line-height: 1.4; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; }
.checks li.ok::before { background: #1f8a5b; }
.checks li.warn::before { background: #e0a21b; }
.checks li.bad::before { background: #d64545; }
.seo-score { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; }
.seo-score.g { background: #1f8a5b; } .seo-score.a { background: #e0a21b; } .seo-score.r { background: #d64545; }
.pthumb { width: 54px; height: 27px; object-fit: cover; border-radius: 5px; float: left; margin: 2px 10px 0 0; }
.linkbtn { all: unset; cursor: pointer; font-size: 13px; margin-top: 10px; display: inline-block; }
.danger-t { color: #c0392b; }
.rows { display: grid; gap: 8px; margin-bottom: 8px; }
.rrow { display: flex; gap: 8px; align-items: flex-start; }
.rrow input, .rrow textarea { flex: 1; min-width: 0; }
.rrow textarea { flex: 2; }
.imgpick { display: flex; align-items: center; gap: 10px; }
.imgpick img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.adv { margin: 14px 0; }
.adv summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.howto { background: #f3f6ff; border: 1px solid #dbe3ff; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px; }
.howto ol { margin: 6px 0 0; padding-left: 18px; }
.howto code { background: #fff; padding: 1px 5px; border-radius: 4px; }
.warnbox { background: #fff8e6; border-color: #f1dca2; margin-bottom: 14px; }
.fgh { margin: 18px 0 10px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.fgh:first-child { margin-top: 0; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: 0 8px 20px -10px rgba(0,0,0,.25); transform: translateY(-1px); }
.fthumb { position: relative; aspect-ratio: 4/3; background: repeating-conic-gradient(#f3f5f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; }
.fthumb img { width: 100%; height: 100%; object-fit: contain; }
.fic { font-size: 40px; }
.fic.big { font-size: 64px; text-align: center; padding: 30px; }
.fplay { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.fdur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 5px; font-weight: 600; }
.flock { position: absolute; left: 6px; top: 6px; background: #fff; border-radius: 6px; padding: 3px 4px; color: #b7791f; display: grid; }
.fmeta { padding: 9px 11px; display: grid; gap: 2px; }
.fmeta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta span { font-size: 12px; color: var(--muted); }
.fprev { background: #0f1412; border-radius: 10px; margin-bottom: 14px; display: grid; place-items: center; min-height: 160px; overflow: hidden; }
.fprev img, .fprev video { max-width: 100%; max-height: 60vh; display: block; }
.fprev .empty { color: #aab; }
.fedit { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dropzone { min-height: 120px; border-radius: 12px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 4px; }
.dropzone.over { background: #f1f6ff; outline-color: var(--brand); }
.upl { margin-bottom: 14px; display: grid; gap: 10px; }
.uprow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.uprow .progress { grid-column: 1 / -1; margin: 0; }
.upn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .ed-side { position: static; max-height: none; } }
@media (max-width: 720px) { .ed-main { padding: 16px; } .ed-title { font-size: 24px; } .fgrid { grid-template-columns: repeat(2, 1fr); } }

.logo.brandmk { background: none !important; width: 38px; height: 38px; padding: 0; }
.logo.brandmk svg { display: block; }
