/* =====================================================================
   SEDAPT Panel · Bileşenler ve yerleşim
   Renkler tokens.css'ten gelir. Telefon düzeni en alttaki @media bloğunda.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 13px; line-height: 1.45; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Yerleşim ---------- */
.app { min-height: 100vh; display: flex; }
.side { width: var(--sidebar-w); flex: none; background: var(--side); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; position: sticky; top: 0; height: 100vh; }
.side .logo { display: block; margin-bottom: 14px; }
.side .logo img { display: block; width: 44px; height: 44px; border-radius: 10px; }
.nv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; padding: 8px 0; border-radius: 10px; color: var(--side-fg); text-decoration: none; font-size: 10.5px; font-weight: 500; }
.nv:hover { background: var(--side-hover); color: #fff; }
.nv[aria-current="page"] { background: var(--side-active); color: #fff; }
.nv .dot, .tab .dot { position: absolute; top: 6px; left: 50%; margin-left: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--new-dot); box-shadow: 0 0 0 2px var(--side); }
.side .sep { width: 32px; height: 1px; background: var(--side-active); margin: 8px 0; }
.side .me { margin-top: auto; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lavender-bg); color: var(--lavender-text); font-weight: 700; flex: none; }
.side .me .avatar { width: 38px; height: 38px; font-size: 13px; box-shadow: 0 0 0 2px var(--lavender); }
.side .me img.avatar { object-fit: cover; }

.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); flex: none; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.searchbox { display: flex; align-items: center; gap: 8px; width: 260px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); color: var(--muted); cursor: text; }
.searchbox span { flex: 1 1 auto; font-size: 12.5px; }
kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; white-space: nowrap; color: var(--muted); }
main.page { flex: 1 1 auto; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -.015em; }
.page-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tabbar { display: none; }

/* ---------- Düğmeler ---------- */
.btn, .btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--radius-s); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn { border: 0; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #B81D31; }
.btn2 { border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 500; }
.btn2:hover { background: #F7F8FA; }
.btn2.danger-text { color: var(--danger); }
.btn:disabled, .btn2:disabled { opacity: .55; cursor: not-allowed; }
.ib { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.ib:hover { background: #EEF0F3; color: var(--ink); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 12px; cursor: pointer; }

/* ---------- Kart, çip, kutucuk ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.card-head h2 { font-family: var(--font-body); font-size: 13px; font-weight: 650; }
.card-head a { font-weight: 500; text-decoration: none; }
.row { border-top: 1px solid var(--line); }
a.row, .row.clickable { display: block; text-decoration: none; color: inherit; }
a.row:hover, .row.clickable:hover { background: var(--hover); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
button.chip, a.chip { border: 0; cursor: pointer; text-decoration: none; padding: 4px 12px; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .chip { background: var(--gray-bg); color: var(--ink); }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Ton sınıfları: t-peach, t-sky, ... bir öğeye o tonun zemin/yazı rengini verir */
.t-peach  { --t-bg: var(--peach-bg);  --t-mid: var(--peach-mid);  --t-deep: var(--peach-deep);  --t-text: var(--peach-text); }
.t-sky  { --t-bg: var(--sky-bg);  --t-mid: var(--sky-mid);  --t-deep: var(--sky-deep);  --t-text: var(--sky-text); }
.t-mint { --t-bg: var(--mint-bg); --t-mid: var(--mint-mid); --t-deep: var(--mint-deep); --t-text: var(--mint-text); }
.t-yellow { --t-bg: var(--yellow-bg); --t-mid: var(--yellow-mid); --t-deep: var(--yellow-deep); --t-text: var(--yellow-text); }
.t-rose  { --t-bg: var(--rose-bg);  --t-mid: var(--rose-mid);  --t-deep: var(--rose-deep);  --t-text: var(--rose-text); }
.t-gray  { --t-bg: var(--gray-bg);  --t-mid: var(--gray-mid);  --t-deep: var(--gray-deep);  --t-text: var(--gray-text); }
.t-lavender  { --t-bg: var(--lavender-bg);  --t-mid: var(--lavender-mid);  --t-deep: var(--lavender-deep);  --t-text: var(--lavender-text); }
.chip[class*="t-"] { background: var(--t-bg); color: var(--t-text); }
.chip[class*="t-"] svg { color: var(--t-deep); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--t-bg); color: var(--t-text); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
a.tile:hover { filter: brightness(.98); }
.tile .tl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tile .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--t-mid); color: var(--t-deep); display: inline-flex; align-items: center; justify-content: center; }
.tile .tv { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .ts { font-size: 12px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 12.5px; }
.input, .textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
.textarea { resize: vertical; min-height: 80px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-error { padding: 10px 12px; border-radius: var(--radius); background: var(--rose-bg); color: var(--rose-text); font-weight: 500; }
.inline-add { display: flex; gap: 8px; }
.inline-add .input { flex: 1 1 auto; min-width: 0; }

/* ---------- Karşılama bandı ---------- */
.hero { background: var(--side); border-radius: var(--radius-xl); padding: 22px 40px 26px; display: flex; flex-direction: column; gap: 14px; }
.hero .brand { display: flex; align-items: center; justify-content: center; gap: 24px; }
.hero .brand img { height: 52px; width: auto; display: block; }
.hero .brand p { margin: 0; color: var(--lavender); font-family: var(--font-head); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: .02em; }
.hero .greet { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hero .date { color: var(--side-fg); font-size: 13.5px; }
.hero h1 { font-family: var(--font-greet); font-size: 40px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.hero h1 em { position: relative; display: inline-block; color: var(--lavender); }
.hero h1 em svg { position: absolute; left: 0; bottom: -8px; width: 110%; height: 10px; }
.hero .note { margin: 10px 0 0; color: var(--side-fg); font-size: 15px; }

/* ---------- Toplantı listesi ---------- */
.row.meet-row, .meet-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 24px; gap: 14px; align-items: center; padding: 10px 16px; }
.datebox { width: 46px; border-radius: 7px; overflow: hidden; text-align: center; background: var(--peach-bg); color: var(--peach-text); }
.datebox b { display: block; background: var(--peach-mid); font-size: 10px; letter-spacing: .06em; padding: 1px 0; }
.datebox span { display: block; font-size: 17px; font-weight: 700; padding: 1px 0 3px; }
.meet-row .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meet-row .s { color: var(--muted); }

/* ---------- Toplantı detayı ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.prose { padding: 14px 18px; }
.prose p { margin: 6px 0 0; white-space: pre-wrap; }
.decisions-head { background: var(--peach-bg); color: var(--peach-text); border-radius: var(--radius) var(--radius) 0 0; }
.decisions-head h2 { display: inline-flex; align-items: center; gap: 10px; color: var(--peach-text); }
.decisions-head .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--peach-mid); color: var(--peach-deep); display: inline-flex; align-items: center; justify-content: center; }
.decision { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; }
.decision .n { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--peach-bg); color: var(--peach-text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.decision .body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.decision .tools { display: flex; flex: none; }
.decision.is-new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--peach-bg); } to { background: transparent; } }
.decisions-add { padding: 10px 14px; border-top: 1px solid var(--line); }
.detail-grid.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.detail-grid.split-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mbrand { display: none; }

/* ---------- Fikirler ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.idea-grid > .empty { grid-column: 1 / -1; }
.idea-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--t-deep); }
.idea-card h2 { font-family: var(--font-body); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.idea-card p { margin: 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-card .foot { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; min-height: 32px; }
.idea-card .tools { margin-left: auto; display: inline-flex; }
.idea-card.editing { box-shadow: 0 0 0 2px var(--accent); }
.idea-card.is-new { animation: glow 1.8s ease-out; }
@keyframes glow { from { box-shadow: 0 0 0 4px var(--lavender); } to { box-shadow: 0 0 0 0 var(--lavender); } }

/* ---------- Haftalık raporlar ---------- */
.heat { display: inline-block; width: 22px; height: 22px; border-radius: 4px; background: var(--heat-0); border: 0; padding: 0; flex: none; }
button.heat { cursor: pointer; }
button.heat:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat.h0 { background: var(--heat-0); } .heat.h1 { background: var(--heat-1); } .heat.h2 { background: var(--heat-2); }
.heat.h3 { background: var(--heat-3); } .heat.h4 { background: var(--heat-4); } .heat.missed { background: var(--heat-missed); }
.heat.current { box-shadow: inset 0 0 0 2px var(--accent); }
.heat.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend .heat { width: 11px; height: 11px; border-radius: 3px; }
.legend .heat.current { box-shadow: inset 0 0 0 1.5px var(--accent); background: #fff; }
.heat-scroll { overflow-x: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.heat-row { display: flex; align-items: center; gap: 5px; }
.heat-row .who { width: 70px; flex: none; font-weight: 500; }
.heat-row .wk { width: 22px; flex: none; text-align: center; font-size: 10px; color: var(--muted); }
.heat-row .pct { margin-left: 10px; white-space: nowrap; }
.week-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.week-title { font-family: var(--font-body); font-size: 15px; font-weight: 650; }
.week-bar .hint { margin-left: auto; font-size: 12px; }
.report-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.report-col { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.report-col.mine { box-shadow: 0 0 0 2px var(--accent); }
.report-col .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-col h3 { font-family: var(--font-body); font-size: 14px; font-weight: 650; }
.report-col .ro { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress [role="progressbar"] { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--heat-0); overflow: hidden; }
.progress [role="progressbar"] span { display: block; height: 100%; border-radius: 999px; background: #CBD0D8; transition: width .35s ease; }
.progress span.h1 { background: var(--heat-1); } .progress span.h2 { background: var(--heat-2); } .progress span.h3 { background: var(--heat-3); } .progress span.h4 { background: var(--heat-4); }
.report-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.report-items li { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 36px; }
.report-items .check-row { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.report-items .box { width: 18px; height: 18px; flex: none; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: #fff; box-shadow: inset 0 0 0 1.5px #9AA0AA; color: #fff; }
.report-items .box.on { background: var(--mint-deep); box-shadow: inset 0 0 0 1.5px var(--mint-deep); }
.report-col:not(.mine) .box:not(.on) { box-shadow: inset 0 0 0 1.5px #CDD2DB; }
.report-items input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-items .text { overflow-wrap: anywhere; }
.report-items .text.done { text-decoration: line-through; color: var(--muted); }
.report-items .tools { display: inline-flex; opacity: .55; }
.report-items li:hover .tools, .report-items li:focus-within .tools { opacity: 1; }
.report-items .tools .ib { width: 26px; height: 26px; }
.report-items > li > .input { flex: 1 1 auto; }
.empty-note { margin: 0; padding: 4px 0; }

/* ---------- Görevler ---------- */
.segmented { display: inline-flex; background: #E9EBEF; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; border-radius: 8px; padding: 6px 12px; background: transparent; font-weight: 500; cursor: pointer; color: var(--ink); }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: #fff; font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segmented button[aria-pressed="true"][class*="t-"] { background: var(--t-bg); color: var(--t-text); }
.board-tabs { display: none; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board > .empty { grid-column: 1 / -1; }
.column { background: #ECEEF2; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.column-empty { margin: 0; padding: 10px 6px; font-size: 12.5px; }
.task-card { text-align: left; width: 100%; border: 1px solid var(--border); border-left: 3px solid var(--t-deep); border-radius: var(--radius); background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; color: var(--ink); }
.task-card:hover { box-shadow: 0 2px 8px rgba(19,30,75,.08); }
.task-card .title { font-weight: 600; overflow-wrap: anywhere; }
.task-card .from { display: inline-flex; align-items: center; gap: 5px; color: var(--peach-deep); font-size: 12px; }
.task-card .foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.task-card .who { font-weight: 500; color: var(--ink); }
.due.late, dd.late { color: var(--rose-deep); font-weight: 600; }
.task-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 16px; text-align: left; cursor: pointer; color: var(--ink); }
.task-row:hover { background: var(--hover); }
.task-row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .due { font-size: 12px; color: var(--muted); }
.decision-tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; white-space: normal; }
.task-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 0; border-radius: 999px; padding: 3px 10px; background: var(--t-bg); color: var(--t-text); font-size: 12px; cursor: pointer; }
.task-pill span:first-of-type { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.task-pill .who { opacity: .85; }
dialog.task-modal { width: min(640px, calc(100vw - 32px)); padding: 24px; position: relative; }
dialog.task-modal .close { position: absolute; top: 12px; right: 12px; }
.task-detail { display: flex; flex-direction: column; gap: 16px; }
.task-top { display: flex; flex-direction: column; gap: 10px; padding-right: 32px; }
.task-top h2 { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.task-meta { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; }
.task-meta dt { color: var(--muted); font-weight: 500; }
.task-meta dd { margin: 0; overflow-wrap: anywhere; }
.task-desc { margin: 0; white-space: pre-wrap; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); overflow-wrap: anywhere; }
.comments-box { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comment .head { display: flex; align-items: center; gap: 8px; }
.comment .tools { margin-left: auto; display: inline-flex; }
.comment .tools .ib { width: 26px; height: 26px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .edit { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.comment-add { display: flex; gap: 8px; align-items: flex-end; }
.comment-add .textarea { min-height: 44px; }

/* ---------- Tablo benzeri listeler ---------- */
.table-head, .table-row { display: grid; gap: 12px; align-items: center; padding: 10px 16px; }
.table-row { border-top: 1px solid var(--line); }
.person { display: flex; flex-direction: column; min-width: 0; }
.person b { font-weight: 600; }
.person span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Boş durum ---------- */
.empty { border: 1.5px dashed #CDD2DB; border-radius: var(--radius-l); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 24px; text-align: center; }
.empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--lavender-bg); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; animation: float 4s ease-in-out infinite; }
.empty h2 { font-size: 17px; }
.empty p { margin: 0; max-width: 380px; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -3px); } }

/* ---------- Yükleme ---------- */
.sk { background: linear-gradient(90deg, #E9EBEF 0%, #F4F5F7 50%, #E9EBEF 100%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: var(--radius-s); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.boot { position: fixed; inset: 0; z-index: 100; background: var(--side); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity .25s; }
.boot.done { opacity: 0; pointer-events: none; }
.bubbles { position: relative; width: 132px; height: 104px; }
.bubbles .b1 { position: absolute; left: 0; top: 0; width: 96px; height: 70px; border-radius: 22px; background: rgba(198, 207, 240, .45); animation: float 3s ease-in-out infinite; }
.bubbles .b2 { position: absolute; right: 0; bottom: 14px; width: 104px; height: 70px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bubbles .b2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--side); animation: typing 1.2s ease-in-out infinite; }
.bubbles .b2 i:nth-child(2) { animation-delay: .15s; } .bubbles .b2 i:nth-child(3) { animation-delay: .3s; }
.bubbles .tail { position: absolute; right: 22px; bottom: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid #fff; transform: skewX(-20deg); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-7px); opacity: 1; } }
.boot img { height: 34px; width: auto; }
.boot p { margin: 0; color: var(--side-fg); font-size: 14px; }

/* ---------- Pencere (dialog) ---------- */
dialog.modal { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 22px; box-shadow: var(--shadow-pop); color: var(--ink); }
dialog.modal.wide { width: min(560px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(19, 30, 75, .45); }
dialog.modal form { display: flex; flex-direction: column; gap: 14px; }
dialog.modal h2 { font-size: 18px; font-weight: 700; }
dialog.modal .danger-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; }
dialog.modal .foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Bildirim şeridi (kaydedildi / hata) ---------- */
.notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-pop); font-weight: 500; max-width: calc(100vw - 32px); }
.notice.error { background: var(--rose-deep); }

/* ---------- Telefon ---------- */
@media (max-width: 1100px) and (min-width: 761px) { .idea-grid, .report-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 760px) {
  body { font-size: 14px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .topbar { height: 56px; padding: 0 12px; position: sticky; top: 0; z-index: 20; }
  .searchbox { width: var(--tap); height: var(--tap); justify-content: center; padding: 0; border: 0; }
  .searchbox span, .searchbox kbd { display: none; }
  main.page { padding: 14px 14px 24px; gap: 12px; }
  .page-head h1 { font-size: 20px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 12px; border-radius: var(--radius-l); }
  .tile .tv { font-size: 22px; }
  .card { border-radius: var(--radius-l); }
  .detail-grid, .detail-grid.split, .detail-grid.split-wide { grid-template-columns: minmax(0, 1fr); }
  .decision .tools .move { display: none; }
  .idea-grid { grid-template-columns: 1fr; }
  .report-cols { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: minmax(0, 1fr) auto; }
  .task-row .due { display: none; }
  .board-tabs { display: flex; }
  .board-tabs button { flex: 1 1 0; min-height: 40px; }
  .board { grid-template-columns: 1fr; }
  .board .column { display: none; background: none; padding: 0; }
  .board .column.active { display: flex; }
  .board .column-head { display: none; }
  .task-card { padding: 12px 14px; }
  dialog.task-modal { padding: 18px; max-height: calc(100vh - 24px); }
  .task-meta { grid-template-columns: 80px 1fr; }
  .comment-add { flex-direction: column; align-items: stretch; }
  .week-bar .hint { display: none; }
  .report-items .tools { opacity: 1; }
  .report-items .tools .ib { width: 36px; height: 36px; }
  .report-items .box { width: 22px; height: 22px; }
  .decision { padding: 12px 10px 12px 14px; }
  .crumbs:empty { display: none; }
  .mbrand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); }
  .mbrand img { width: 30px; height: 30px; border-radius: 8px; }
  .crumbs:not(:empty) + .mbrand { display: none; }
  .hero { padding: 18px 16px 20px; }
  .hero .brand { flex-direction: column; gap: 6px; }
  .hero .brand img { height: 26px; }
  .hero .brand p { display: none; }
  .hero h1 { font-size: 30px; }
  .hero .note { font-size: 13px; }
  .input, .textarea { font-size: 15px; min-height: var(--tap); }   /* iPhone 16px altı yazıda yakınlaştırır; 15px + yükseklik yeterli */
  .btn, .btn2 { min-height: var(--tap); }
  .ib { width: 40px; height: 40px; }
  .row.meet-row, .meet-row { grid-template-columns: 46px minmax(0, 1fr) 20px; }
  .meet-row .r { display: none; }
  .table-head { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
  .tab { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 8px; text-decoration: none; color: #6B7280; font-size: 11px; font-weight: 500; }
  .tab[aria-current="page"] { color: var(--accent); font-weight: 650; }
  .tab .dot { box-shadow: 0 0 0 2px var(--surface); margin-left: 6px; top: 4px; }
  .notice { bottom: calc(var(--tabbar-h) + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Son girişinden beri ---------- */
.new-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--new-dot); }
.since-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.since-bar[hidden] { display: none; }
.since-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.since-bar .chip { text-decoration: none; padding: 3px 10px; font-size: 12px; }
.since-bar .chip:hover { filter: brightness(.97); text-decoration: underline; }
.since-more { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: none; }
.since-more:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Değişiklik logu ---------- */
.lock-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.log-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.log-selects { display: flex; gap: 8px; }
.log-selects .select { width: auto; min-width: 140px; }
.log-row { display: grid; grid-template-columns: 116px 100px 104px 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 16px; }
.log-head { padding-top: 12px; padding-bottom: 8px; }
.log-row .when { color: var(--muted); font-size: 12.5px; }
.log-row .who { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.person-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-deep); }
.log-row .what { display: flex; align-items: center; gap: 10px; min-width: 0; }
.log-row .what > a, .log-row .what > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .what a { color: var(--ink); text-decoration: none; font-weight: 500; }
.log-row .what a:hover { text-decoration: underline; }
.log-row .gone { color: var(--muted); text-decoration: line-through; }
.log-toggle { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; }
.log-toggle:hover { color: var(--ink); }
.log-toggle svg { transform: rotate(90deg); transition: transform .15s; }
.log-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.log-diff { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 8px; }
.log-diff[hidden] { display: none; }
.log-change { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.log-change .lbl { grid-column: 1 / -1; }
.log-change .old, .log-change .new { border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-change .old { background: var(--rose-bg); color: var(--rose-text); }
.log-change .tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
.log-change .new { background: var(--mint-bg); color: var(--mint-text); }

@media (max-width: 760px) {
  .since-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .since-bar .since-title, .since-bar .chip, .since-more { flex: none; }
  .log-selects { width: 100%; }
  .log-selects .select { flex: 1 1 0; min-width: 0; }
  .log-head { display: none; }
  .log-row { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 8px; padding: 10px 14px; }
  .log-row .when { grid-column: 1 / -1; order: -1; }
  .log-row .type { justify-self: end; font-size: 12px; }
  .log-row .what { grid-column: 1 / -1; }
  .log-diff { grid-column: 1 / -1; }
  .log-change { grid-template-columns: minmax(0, 1fr); }
}
.task-card.is-new { animation: glow 1.8s ease-out; }

/* ---------- Sayfa geçişi ----------
   Panel çok sayfalı: her menü tıklaması yeni bir HTML yükler. Destekleyen tarayıcılarda (Chrome, Edge, Safari 18+)
   eski sayfa yenisi hazır olana kadar ekranda kalır ve içerik kısa bir geçişle değişir.
   Sol menü ve alt çubuğa ayrı ad verildiği için onlar yerinde sabit durur, sadece içerik değişir. */
@view-transition { navigation: auto; }
.side { view-transition-name: side-nav; }
.tabbar { view-transition-name: tab-bar; }
::view-transition-group(*) { animation-duration: .16s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
img.avatar { object-fit: cover; display: block; }
.photo-box { display: flex; align-items: center; gap: 14px; }
.photo-box .avatar { box-shadow: 0 0 0 2px var(--lavender); font-size: 20px; }
.photo-box.busy { opacity: .55; pointer-events: none; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-actions .muted { flex-basis: 100%; font-size: 12px; }

/* ---------- Belgeler ---------- */
.doc-toolbar { display: flex; gap: 10px; align-items: center; }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.doc-grid > .empty, .doc-grid > .card:only-child:not(.doc-card) { grid-column: 1 / -1; }
.doc-card { padding: 16px; border-top: 3px solid var(--danger); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); min-height: 150px; }
.doc-card:hover { box-shadow: 0 4px 14px rgba(19, 30, 75, .08); }
.doc-card .top { display: flex; align-items: center; justify-content: space-between; }
.doc-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--danger); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.doc-card .title { font-weight: 650; font-size: 14px; }
.doc-card .snippet { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card .foot { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.doc-card .files { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 761px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .doc-toolbar .input { max-width: none !important; } }
.doc-text { padding: 0 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.6; }
.doc-files.busy { opacity: .6; pointer-events: none; }
.doc-files .files { list-style: none; margin: 0; padding: 0; }
.doc-files .file { border-top: 1px solid var(--line); padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.file-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-info .name { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info .name:hover { text-decoration: underline; }
.file-info .muted { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.file-tools { display: flex; gap: 2px; flex: none; }
.kind { flex: none; width: 42px; height: 42px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; background: var(--gray-bg); color: var(--ink); }
.k-pdf { background: var(--rose-bg); color: var(--rose-text); }
.k-word { background: var(--sky-bg); color: var(--sky-text); }
.k-excel { background: var(--mint-bg); color: var(--mint-text); }
.k-powerpoint { background: var(--peach-bg); color: var(--peach-text); font-size: 9px; }
.k-png, .k-jpg { background: var(--lavender-bg); color: var(--lavender-text); }
.versions { margin-left: 54px; font-size: 12.5px; }
.versions summary { cursor: pointer; color: var(--muted); }
.versions ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ver { display: flex; align-items: center; gap: 10px; }
.ver .num { font-weight: 700; width: 26px; }
.ver .who { flex: 1 1 auto; color: var(--muted); }
.drop { margin: 12px 16px 16px; border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; color: var(--ink); }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, transparent); outline: none; }
.drop .muted { font-size: 12px; }
@media (max-width: 760px) {
  .page-head .actions:has(.segmented) { flex-wrap: wrap; }
  .versions { margin-left: 0; }
  .drop .muted { display: none; }
}

/* ---------- Arama (Ctrl+K) ---------- */
.search-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--muted); cursor: pointer; min-width: 220px; font: inherit; }
.search-btn:hover { border-color: var(--gray-mid); color: var(--ink); }
.search-btn .label { flex: 1 1 auto; text-align: left; }
.search-btn kbd { font: 600 11px var(--font-body); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface); color: var(--muted); }
dialog.palette { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); margin: 80px auto auto; padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow-pop); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
dialog.palette:not([open]) { display: none; }
dialog.palette::backdrop { background: rgba(19, 30, 75, .45); }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; height: 54px; border-bottom: 1px solid var(--border); color: var(--muted); flex: none; }
.palette-head input { flex: 1 1 auto; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); background: transparent; min-width: 0; }
.palette-head input::-webkit-search-cancel-button { display: none; }
.palette-list { overflow-y: auto; padding: 4px 0 8px; flex: 1 1 auto; }
.palette-group { padding: 10px 16px 4px; }
.palette-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 16px; text-decoration: none; color: var(--ink); }
.palette-item[aria-selected="true"] { background: #EEF1FB; box-shadow: inset 3px 0 0 var(--accent); }
.palette-ic { width: 28px; height: 28px; flex: none; border-radius: 7px; background: var(--gray-bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.palette-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.palette-text .t { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-text .s { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.palette-text .c { color: var(--muted); font-size: 12px; }
.palette mark { background: #FBF0C9; color: inherit; border-radius: 3px; padding: 0 2px; }
.palette-hint { margin: 0; padding: 18px 16px; color: var(--muted); }
.palette-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); background: #FAFBFC; color: var(--muted); font-size: 12px; flex: none; }
@media (max-width: 760px) {
  .search-btn { min-width: 0; padding: 0 9px; border: 0; background: transparent; }
  .search-btn .label, .search-btn kbd { display: none; }
  dialog.palette { margin-top: 12px; max-height: calc(100vh - 24px); }
  .palette-foot span:first-child { display: none; }
}

/* ---------- Takvim ---------- */
.ib.bordered { border: 1px solid var(--border); background: var(--surface); }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cal-nav { display: inline-flex; gap: 4px; }
.cal-title { margin: 0; font-size: 16px; font-weight: 650; min-width: 130px; }
.cal-legend { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; }
.cal-board { overflow: hidden; }
.cal-grid { display: flex; flex-direction: column; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px; font-size: 11px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.cal-cell { min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); cursor: pointer; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: #FAFBFD; }
.cal-cell.weekend { background: #FCFCFD; }
.cal-cell.out { background: #F7F8FA; }
.cal-cell.out .num { color: #B9BEC7; }
.cal-cell .num { font-weight: 600; font-size: 12.5px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.cal-cell.today .num { background: var(--accent); color: #fff; }
.cal-cell.focus { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-pill { display: block; width: 100%; text-align: left; border: 0; padding: 2px 6px; border-radius: 4px; font: 600 11px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--t-bg); color: var(--t-text); cursor: pointer; }
.cal-pill:hover { filter: brightness(.96); }
.cal-pill b { font-weight: 750; }
.cal-pill.done { text-decoration: line-through; opacity: .65; }
.cal-more { border: 0; background: transparent; padding: 0 6px; text-align: left; font-size: 11px; color: var(--muted); cursor: pointer; }
.cal-more:hover { color: var(--ink); text-decoration: underline; }
.cal-day-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; }
.cal-day-list .cal-pill { font-size: 12.5px; padding: 6px 10px; white-space: normal; }
.cal-agenda { display: none; list-style: none; margin: 0; padding: 0; }
.cal-agenda li { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cal-agenda li:first-child { border-top: 0; }
.cal-agenda .day { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.cal-agenda .pills { display: flex; flex-direction: column; gap: 4px; }
.cal-agenda .cal-pill { font-size: 13px; padding: 6px 10px; white-space: normal; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-legend { margin-left: 0; width: 100%; }
}
