/* ==========================================================================
   FlowTask "MX" tasarım dili — native Mac uygulamasıyla aynı arayüz.
   Sıcak kâğıt zemin, koyu kenar çubuğu, Fraunces başlıklar, Geist gövde, 22 px kartlar.
   styles.css'ten sonra yüklenir; eski değişkenler bu paletle eşlenir.
   ========================================================================== */

:root {
  --mx-canvas: #F1ECE3;
  --mx-paper: #FFFDF9;
  --mx-edge: #E6DFD3;
  --mx-chip: #F4F1EC;
  --mx-column: #E9E3D8;
  --mx-column-edge: #DED7CB;
  --mx-line: #EEE9E0;
  --mx-row-line: #F1ECE4;
  --mx-tick: #E9E3D8;
  --mx-bar: #E3D9C7;
  --mx-hover: rgba(27, 26, 23, .05);
  --mx-ink: #1B1A17;
  --mx-ink-soft: #4F4B44;
  --mx-secondary: #6B665D;
  --mx-muted: #8C877D;
  --mx-faint: #A39D92;
  --mx-on-ink: #F4F1EC;
  --mx-sidebar: #1B1A17;
  --mx-sidebar-sel: #34322D;
  --mx-sidebar-text: #CFC9BE;
  --mx-sidebar-strong: #F4F1EC;
  --mx-sidebar-muted: #8C877D;
  --mx-sidebar-label: #77736C;
  --mx-sidebar-divider: #2E2C28;
  --mx-sidebar-progress: #6FD39A;
  --mx-focus: #1B1A17;
  --mx-focus-border: #45423C;
  --mx-focus-subtle: #B8B2A7;
  --mx-blue: #2B6FE0;
  --mx-link: #1F56B5;
  --mx-blue-soft: #EEF3FC;
  --mx-blue-chip: #E7EFFC;
  --mx-blue-chip-text: #1C3A6B;
  --mx-green: #1F8A4C;
  --mx-green-text: #1F7A45;
  --mx-green-soft: #E6F3EC;
  --mx-orange: #C2410C;
  --mx-orange-soft: #FDEFE2;
  --mx-amber: #E8892B;
  --mx-purple: #8E44AD;
  --mx-purple-soft: #F3E8FA;
  --mx-red: #C0322A;
  --mx-red-soft: #FBE9E7;
  --mx-highlight: #F3E8CC;
  --mx-note: #FBF1CF;
  --mx-note-ink: #3D3208;
  --mx-note-soft: #6B5A1E;
  --mx-heat-0: #F7F4EE;
  --mx-heat-1: #F1ECE3;
  --mx-heat-2: #EAE2D4;
  --mx-heat-3: #E0D5C2;
  --mx-heat-4: #D3C5AC;
  --mx-segment: #E6E0D5;
  --mx-serif: 'Fraunces', 'New York', Georgia, serif;
  --mx-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mx-card-shadow: 0 1px 0 var(--mx-edge);

  /* Eski değişkenler → MX paleti (modallar, formlar, çekmece de uyum sağlar). */
  --c-bg: var(--mx-canvas);
  --c-surface: var(--mx-paper);
  --c-surface-2: var(--mx-chip);
  --c-sidebar: color-mix(in srgb, var(--mx-canvas) 92%, transparent); /* çekmece başlığı, üst şerit, masaüstü başlık çubuğu */
  --c-label: var(--mx-ink);
  --c-label-2: var(--mx-secondary);
  --c-label-3: var(--mx-faint);
  --c-separator: var(--mx-line);
  --c-fill: var(--mx-chip);
  --c-accent: var(--mx-ink);
  --c-accent-soft: var(--mx-blue-soft);
  --c-accent-text: var(--mx-link);
  --bg: var(--mx-canvas);
  --text: var(--mx-ink);
  --muted: var(--mx-secondary);
  --faint: var(--mx-faint);
  --line: var(--mx-line);
  --line-soft: var(--mx-row-line);
  --blue: var(--mx-blue);
  --blue2: var(--mx-blue-soft);
  --glass: var(--mx-paper);
  --glass-bg: var(--mx-paper);
  --glass-border: var(--mx-edge);
  --white: var(--mx-paper);
  --font: var(--mx-sans);
}

[data-theme="dark"] {
  --mx-canvas: #141311;
  --mx-paper: #1F1E1B;
  --mx-edge: #0C0B0A;
  --mx-chip: #2A2825;
  --mx-column: #1A1917;
  --mx-column-edge: #34322D;
  --mx-line: #2E2C28;
  --mx-row-line: #2A2825;
  --mx-tick: #2E2C28;
  --mx-bar: #3A3731;
  --mx-hover: rgba(244, 241, 236, .06);
  --mx-ink: #F4F1EC;
  --mx-ink-soft: #CFC9BE;
  --mx-secondary: #A8A296;
  --mx-muted: #8C877D;
  --mx-faint: #6F6A62;
  --mx-on-ink: #1B1A17;
  --mx-sidebar: #0F0E0D;
  --mx-focus: #262420;
  --mx-link: #7FA8F0;
  --mx-blue-soft: #1E2A40;
  --mx-blue-chip: #1E2A40;
  --mx-blue-chip-text: #A9C4F2;
  --mx-green: #3FB872;
  --mx-green-text: #6FD39A;
  --mx-green-soft: #1C3326;
  --mx-orange: #F08A4B;
  --mx-orange-soft: #3A2618;
  --mx-purple: #C58BE0;
  --mx-purple-soft: #2F2238;
  --mx-red: #FF6B5E;
  --mx-red-soft: #3A1E1B;
  --mx-highlight: #4A3E22;
  --mx-note: #3A3218;
  --mx-note-ink: #F3E3A8;
  --mx-note-soft: #CBB977;
  --mx-heat-0: #1A1917;
  --mx-heat-1: #23211E;
  --mx-heat-2: #2C2924;
  --mx-heat-3: #37322A;
  --mx-heat-4: #443C30;
  --mx-segment: #2A2825;
  --mx-card-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

/* ---------- Temel ---------- */
body { background: var(--mx-canvas); color: var(--mx-ink); font-family: var(--mx-sans); }
.app { background: var(--mx-canvas); }
.brand-title, .page-head h1, .mx-serif { font-family: var(--mx-serif); }

/* ---------- Koyu kenar çubuğu ---------- */
.app { grid-template-columns: 228px 1fr; }
.rail {
  width: 228px; background: var(--mx-sidebar); backdrop-filter: none; border-right: 0;
  color: var(--mx-sidebar-strong); padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 18px;
}
.rail .brand-row { padding: 2px 8px 0; }
.rail .workspace { padding: 0; background: transparent; }
.rail .workspace .brand-title, #workspaceName {
  font-family: var(--mx-serif); font-size: 24px; font-weight: 600; letter-spacing: -.3px; color: var(--mx-sidebar-strong);
}
.rail .workspace .brand-tagline { display: none; }
.rail .icon { color: var(--mx-sidebar-text); }
.rail-new {
  height: 36px; border: 0; border-radius: 10px; background: var(--mx-sidebar-strong); color: #1B1A17;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer;
}
.rail-new svg { width: 15px; height: 15px; stroke-width: 2.4; }
.rail-new kbd { margin-left: auto; font: inherit; font-size: 11px; font-weight: 500; color: #77736C; background: none; border: 0; padding: 0; }
.rail-new:hover { filter: brightness(.96); }
.rail nav { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.rail .nav {
  height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--mx-sidebar-text);
  font-size: 13px; font-weight: 400; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
}
.rail .nav svg { width: 16px; height: 16px; stroke-width: 1.8; color: inherit; opacity: 1; }
.rail .nav b { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--mx-sidebar-muted); background: none; padding: 0; min-width: 0; }
.rail .nav b:empty { display: none; }
.rail .nav:hover { background: rgba(255, 255, 255, .05); }
.rail .nav.active { background: var(--mx-sidebar-sel); color: #fff; font-weight: 600; }
.rail .works { margin: 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.rail .works header {
  display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--mx-sidebar-label);
}
.rail .works header button { width: 22px; height: 22px; border: 0; background: transparent; color: var(--mx-sidebar-label); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.rail .works header button:hover { background: rgba(255, 255, 255, .06); color: var(--mx-sidebar-strong); }
.rail .works header button svg { width: 13px; height: 13px; stroke-width: 2.2; }
#projectNav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; scrollbar-width: none; }
#projectNav::-webkit-scrollbar { display: none; }
.rail .project-btn {
  height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--mx-sidebar-text);
  font-size: 13px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; width: 100%;
}
.rail .project-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.rail .project-btn small { font-size: 12px; color: var(--mx-sidebar-muted); background: none; padding: 0; }
.rail .project-btn:hover { background: rgba(255, 255, 255, .05); }
.rail .project-btn.active { background: var(--mx-sidebar-sel); color: #fff; font-weight: 600; }
.rail .project-btn .project-logo { width: 20px; height: 20px; border-radius: 50%; font-size: 7px; flex: 0 0 auto; }
.mx-rail-progress { width: 34px; height: 4px; border-radius: 2px; background: var(--mx-sidebar-sel); overflow: hidden; flex: 0 0 auto; }
.mx-rail-progress i { display: block; height: 4px; border-radius: 2px; background: var(--mx-sidebar-progress); }
.rail .spacer { display: none; }
.rail .account {
  margin-top: auto; border: 0; border-top: 1px solid var(--mx-sidebar-divider); border-radius: 0; background: transparent;
  color: var(--mx-sidebar-strong); padding: 10px 8px 0; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
}
.rail .account:hover { background: transparent; }
.rail .account b { font-size: 13px; font-weight: 600; color: var(--mx-sidebar-strong); }
.rail .account small { font-size: 11px; color: var(--mx-sidebar-muted); }
.rail .account .avatar { width: 30px; height: 30px; }
.rail .account > span:last-child { color: var(--mx-sidebar-muted); }
.rail .app-download a { color: var(--mx-sidebar-text); }

/* ---------- Üst şerit: yalnız arama + simgeler (Yeni görev kenar çubuğunda) ---------- */
.app main { background: var(--mx-canvas); }
.topbar {
  background: transparent; backdrop-filter: none; border-bottom: 0; height: 56px; padding: 0 28px; gap: 8px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .search {
  height: 34px; border-radius: 10px; background: var(--mx-paper); border: 0; box-shadow: inset 0 0 0 1px var(--mx-column-edge);
  color: var(--mx-muted); font-size: 12px;
}
.topbar .search kbd { background: var(--mx-chip); border: 0; color: var(--mx-muted); }
.topbar .icon { color: var(--mx-ink-soft); }
.topbar .icon:hover { background: var(--mx-hover); }
@media (min-width: 901px) {
  .topbar #addTask { display: none; }
  .topbar { justify-content: flex-end; }
  .topbar .search { margin-right: auto; width: 280px; }
}
.content { padding: 4px 28px 28px; max-width: none; }

/* ---------- Ortak parçalar ---------- */
.mx-card { background: var(--mx-paper); border-radius: 22px; box-shadow: var(--mx-card-shadow); }
.mx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mx-head h2 { margin: 0; font-family: var(--mx-serif); font-size: 20px; font-weight: 600; color: var(--mx-ink); }
.mx-head small, .mx-meta { font-size: 12px; color: var(--mx-muted); }
.mx-link { border: 0; background: none; padding: 0; color: var(--mx-link); font-size: 12px; cursor: pointer; }
.mx-link:hover { text-decoration: underline; }
.mx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: var(--mx-muted); text-transform: uppercase; }
.mx-title { margin: 0; font-family: var(--mx-serif); font-weight: 600; letter-spacing: -.8px; line-height: 1.02; color: var(--mx-ink); }
.mx-title i { font-weight: 500; }
.mx-title .mx-soft { color: #857F75; font-style: italic; font-weight: 500; }
.mx-btn {
  height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--mx-ink); color: var(--mx-on-ink);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.mx-btn svg { width: 14px; height: 14px; stroke-width: 2.2; }
.mx-btn.secondary { background: var(--mx-paper); color: var(--mx-ink); box-shadow: inset 0 0 0 1px var(--mx-column-edge); }
.mx-btn.blue { background: var(--mx-blue); color: #fff; }
.mx-btn:hover { filter: brightness(.97); }
.mx-pill-tabs { display: flex; gap: 6px; }
.mx-pill-tabs button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: transparent; color: var(--mx-ink-soft);
  font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--mx-column-edge); cursor: pointer; display: inline-flex; gap: 5px; align-items: center;
}
.mx-pill-tabs button .count-pill { opacity: .6; background: none; padding: 0; color: inherit; font-size: inherit; }
.mx-pill-tabs button.active { background: var(--mx-ink); color: var(--mx-on-ink); font-weight: 600; box-shadow: none; }
.mx-segment { display: flex; background: var(--mx-segment); border-radius: 12px; padding: 3px; gap: 2px; }
.mx-segment button {
  height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--mx-secondary);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.mx-segment button.active { background: var(--mx-paper); color: var(--mx-ink); }
.mx-avatar { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #fff; display: inline-grid; place-items: center; overflow: hidden; }
.mx-avatar.tile { border-radius: 30%; background: var(--mx-ink); color: var(--mx-on-ink); font-weight: 700; }
.mx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-ring { flex: 0 0 auto; display: block; }
.mx-due {
  height: 22px; padding: 0 8px; border-radius: 6px; background: var(--mx-chip); color: var(--mx-ink-soft);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.mx-due.today { background: var(--mx-blue-chip); color: var(--mx-blue-chip-text); }
.mx-due.late { background: var(--mx-red-soft); color: var(--mx-red); }
.mx-due.round { height: 24px; border-radius: 12px; padding: 0 9px; }
.mx-due svg { width: 11px; height: 11px; stroke-width: 2.2; }
.mx-check {
  width: 18px; height: 18px; border-radius: 50%; border: 1.8px solid var(--mx-faint); background: transparent; flex: 0 0 auto;
  padding: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
}
.mx-check.focus { border-color: var(--mx-blue); }
.mx-check.done { background: var(--mx-green); border-color: var(--mx-green); }
.mx-check.done::after { content: '✓'; font-size: 10px; font-weight: 700; line-height: 1; }
.mx-check:hover { border-color: var(--mx-green); }
.mx-empty { padding: 28px 10px; text-align: center; color: var(--mx-muted); font-size: 13px; }
.mx-field {
  height: 32px; border: 0; border-radius: 10px; background: var(--mx-chip); padding: 0 10px; display: flex; align-items: center; gap: 8px;
}
.mx-field svg { width: 14px; height: 14px; stroke: var(--mx-blue); stroke-width: 2.4; flex: 0 0 auto; }
.mx-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; color: var(--mx-ink); }
.mx-field input::placeholder { color: var(--mx-muted); }
.mx-row {
  display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 6px; border-radius: 10px; cursor: pointer;
}
.mx-row:hover { background: var(--mx-hover); }
.mx-row.focus { background: var(--mx-blue-soft); }
.mx-row .mx-row-title { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-row.focus .mx-row-title { font-weight: 600; }
.mx-row.done .mx-row-title { color: var(--mx-muted); text-decoration: line-through; }
.mx-row .mx-meta { white-space: nowrap; font-size: 11px; }
.mx-group-head { display: flex; align-items: center; gap: 8px; height: 30px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--mx-ink-soft); }
.mx-group-head em { font-style: normal; color: var(--mx-faint); font-weight: 500; }
.mx-group-head::after { content: ''; flex: 1; height: 1px; background: var(--mx-line); margin-left: 6px; }
.mx-toggle { border: 0; background: none; padding: 8px 6px 0; color: var(--mx-secondary); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Kokpit (bento) ---------- */
.mx-bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 214px 440px 300px; gap: 16px;
}
.mx-hero { grid-column: span 7; position: relative; overflow: hidden; padding: 22px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.mx-hero-day {
  position: absolute; right: -10px; top: -42px; font-family: var(--mx-serif); font-size: 230px; font-weight: 600; line-height: 1;
  letter-spacing: -8px; color: var(--mx-canvas); pointer-events: none; user-select: none;
}
.mx-hero-top { position: relative; display: flex; flex-direction: column; gap: 4px; }
.mx-hero-title { font-size: 40px; }
.mx-hero-sub { margin: 0; font-size: 15px; color: var(--mx-secondary); }
.mx-hero-bottom { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mx-ticks { display: flex; gap: 4px; }
.mx-ticks i { flex: 1; height: 10px; border-radius: 3px; background: var(--mx-tick); }
.mx-ticks i.on { background: var(--mx-green); }
.mx-hero-foot { font-size: 12px; color: var(--mx-secondary); }
.mx-hero-foot b { color: var(--mx-green-text); }

.mx-focus {
  grid-column: span 5; background: var(--mx-focus); color: #F4F1EC; border-radius: 22px; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0;
}
.mx-focus-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mx-focus-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--mx-focus-subtle); }
.mx-focus-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mx-focus-subtle); min-width: 0; }
.mx-focus-main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.mx-focus-timer { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.mx-focus-clock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mx-focus-clock b { font-family: var(--mx-serif); font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.mx-focus-clock small { font-size: 10px; color: var(--mx-muted); }
.mx-focus-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mx-focus-title {
  border: 0; background: none; padding: 0; color: #F4F1EC; text-align: left; cursor: pointer;
  font-family: var(--mx-serif); font-size: 28px; font-weight: 600; line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mx-focus-sub { font-size: 12px; color: var(--mx-focus-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-focus-actions { display: flex; gap: 8px; }
.mx-focus-btn {
  height: 40px; padding: 0 14px; border: 1px solid var(--mx-focus-border); border-radius: 12px; background: transparent;
  color: #F4F1EC; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mx-focus-btn.primary { flex: 1; background: var(--mx-blue); border-color: var(--mx-blue); color: #fff; }
.mx-focus-btn:disabled { opacity: .45; cursor: default; }
.mx-focus-btn:not(:disabled):hover { filter: brightness(1.08); }

.mx-flow { grid-column: span 7; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.mx-flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mx-flow-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.mx-quick { width: 280px; }
.mx-flow-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }

.mx-stack { grid-column: span 5; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 0; }
.mx-brands, .mx-week { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mx-muted-link { color: var(--mx-muted); }
.mx-ring-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; }
.mx-ring-item { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; padding: 2px; text-align: left; cursor: pointer; border-radius: 12px; color: inherit; }
.mx-ring-item:hover { background: var(--mx-hover); }
.mx-ring-wrap { position: relative; width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; }
.mx-ring-wrap .mx-ring { position: absolute; inset: 0; }
.mx-ring-text { display: flex; flex-direction: column; min-width: 0; }
.mx-ring-text b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-ring-text small { font-size: 11px; color: var(--mx-muted); }
.mx-bars { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 0; }
.mx-bar { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 0; }
.mx-bar i { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--mx-bar); max-height: calc(100% - 40px); }
.mx-bar.today i { background: var(--mx-ink); }
.mx-bar-n { font-size: 11px; font-weight: 600; color: var(--mx-muted); }
.mx-bar-d { font-size: 11px; color: var(--mx-muted); font-weight: 500; }
.mx-bar.today .mx-bar-n, .mx-bar.today .mx-bar-d { color: var(--mx-ink); font-weight: 700; }

.mx-assigned { grid-column: span 6; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.mx-assigned-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--mx-row-line); cursor: pointer; }
.mx-assigned-row:last-child { border-bottom: 0; }
.mx-assigned-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-assigned-text b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-assigned-text small { font-size: 12px; color: var(--mx-secondary); }
.mx-activity { grid-column: span 6; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.mx-timeline { position: relative; display: flex; flex-direction: column; }
.mx-timeline::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--mx-line); }
.mx-timeline-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; }
.mx-act-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--mx-paper); }
.mx-act-icon svg { width: 13px; height: 13px; }
.mx-act-text { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-act-text span { color: var(--mx-secondary); }
.mx-timeline-row small { font-size: 11px; color: var(--mx-muted); white-space: nowrap; }
.mx-row-project { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 1180px) {
  .mx-bento { grid-template-rows: auto; }
  .mx-hero, .mx-focus, .mx-flow, .mx-stack, .mx-assigned, .mx-activity { grid-column: span 12; }
  .mx-hero, .mx-focus { min-height: 214px; }
  .mx-flow { max-height: 520px; }
  .mx-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .mx-brands, .mx-week { min-height: 212px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .mx-hero { grid-column: span 7; } .mx-focus { grid-column: span 5; }
  .mx-assigned, .mx-activity { grid-column: span 6; }
}

/* ---------- Marka çalışma alanı ---------- */
.mx-brand { display: flex; flex-direction: column; gap: 16px; }
.mx-brand-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 24px 28px 20px; display: flex; align-items: center; gap: 22px;
  background: color-mix(in srgb, var(--brand) 18%, var(--mx-paper)); border: 0; box-shadow: none;
}
.mx-brand-watermark {
  position: absolute; right: 140px; top: -70px; width: 300px; height: 300px; border-radius: 50%; object-fit: cover; opacity: .12; pointer-events: none;
}
.mx-brand-logo { position: relative; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 4px var(--mx-paper), 0 12px 28px color-mix(in srgb, var(--brand) 28%, transparent); }
.mx-brand-headings { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mx-brand .project-badge-row { display: flex; gap: 8px; align-items: center; }
.mx-brand .type-badge {
  height: 22px; padding: 0 9px; border-radius: 11px; background: color-mix(in srgb, var(--mx-paper) 70%, transparent);
  color: color-mix(in srgb, var(--mx-ink) 75%, transparent); font-size: 11px; font-weight: 700; letter-spacing: .6px; display: inline-flex; align-items: center; border: 0;
}
.mx-brand .status-dot-badge { font-size: 12px; font-weight: 600; color: var(--mx-green-text); display: inline-flex; align-items: center; gap: 5px; background: none; padding: 0; }
.mx-brand .status-dot-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mx-green); }
.mx-brand .status-dot-badge.archived { color: var(--mx-orange); }
.mx-brand .status-dot-badge.archived i { background: var(--mx-amber); }
.mx-brand-name { margin: 0; font-family: var(--mx-serif); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: var(--mx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-brand-stats { display: flex; gap: 22px; font-size: 13px; color: color-mix(in srgb, var(--mx-ink) 70%, transparent); flex-wrap: wrap; }
.mx-brand-stats b { font-family: var(--mx-serif); font-size: 20px; color: var(--mx-ink); }
.mx-brand-team { position: relative; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; cursor: pointer; color: inherit; }
.mx-brand-team small { font-size: 11px; color: color-mix(in srgb, var(--mx-ink) 60%, transparent); }
.mx-brand-team-stack { display: flex; }
.mx-brand-team-stack > * { margin-left: -8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, var(--mx-paper)); }
.mx-brand-team-stack .avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; overflow: hidden; }
.mx-brand-team-stack .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-brand-team-plus { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--mx-paper) 75%, transparent); display: grid; place-items: center; color: color-mix(in srgb, var(--mx-ink) 75%, transparent); }
.mx-brand-team-plus svg { width: 15px; height: 15px; stroke-width: 2.2; }
.mx-brand-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.mx-brand-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mx-brand-ring b { font-family: var(--mx-serif); font-size: 28px; font-weight: 600; line-height: 1; color: var(--mx-ink); }
.mx-brand-ring small { font-size: 10px; color: color-mix(in srgb, var(--mx-ink) 60%, transparent); }

.mx-brand-toolbar { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; background: none; border: 0; position: static; }
.mx-brand-toolbar .back-pill-btn { display: none; }
.mx-brand-toolbar .project-nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mx-brand .has-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: 4px; display: inline-block; }
.mx-icon-btn {
  width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--mx-paper); box-shadow: inset 0 0 0 1px var(--mx-column-edge);
  color: var(--mx-ink-soft); display: grid; place-items: center; cursor: pointer;
}
.mx-icon-btn svg { width: 15px; height: 15px; stroke-width: 2; }
.mx-icon-btn:hover { color: var(--mx-ink); }
.mx-icon-btn.danger-hover:hover { color: var(--mx-red); }

.mx-board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 14px; align-items: start; padding: 0; overflow: visible; }
.mx-board-layout .board-columns-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; overflow: visible; padding: 0; }
.mx-brand .board-column {
  background: var(--mx-column); border: 0; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  min-height: 560px; width: auto; min-width: 0; box-shadow: none;
}
.mx-brand .board-col-header { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 4px; margin: 0; border: 0; background: none; }
.mx-brand .col-title-left { display: flex; align-items: center; gap: 8px; }
.mx-brand .col-title-left h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mx-ink); font-family: var(--mx-sans); }
.mx-brand .col-count-bubble { background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--mx-muted); min-width: 0; height: auto; }
.mx-brand .col-dot { width: 8px; height: 8px; border-radius: 50%; }
.mx-brand .col-dot.status-todo { background: var(--mx-muted); }
.mx-brand .col-dot.status-progress { background: var(--mx-blue); }
.mx-brand .col-dot.status-review { background: var(--mx-amber); }
.mx-col-add { border: 0; background: none; color: var(--mx-secondary); cursor: pointer; padding: 0; display: grid; place-items: center; }
.mx-col-add svg { width: 16px; height: 16px; }
.mx-brand .board-cards-stack { display: flex; flex-direction: column; gap: 8px; min-height: 96px; border-radius: 14px; padding: 0; background: none; }
.mx-brand .board-cards-stack.drag-over { outline: 2px dashed var(--mx-blue); outline-offset: 2px; background: color-mix(in srgb, var(--mx-blue) 7%, transparent); }
.mx-brand .board-empty-col {
  height: 96px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--mx-faint) 60%, transparent);
  display: grid; place-items: center; color: var(--mx-muted); font-size: 12px; background: none;
}
.mx-brand .board-task-card {
  background: var(--mx-paper); border: 0; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 0 var(--mx-column-edge); cursor: pointer;
}
.mx-brand .board-task-card:hover { box-shadow: 0 1px 0 var(--mx-column-edge), 0 6px 18px rgba(27, 26, 23, .08); }
.mx-brand .board-task-card.dragging { opacity: .35; }
.mx-brand .bcard-top { display: flex; align-items: baseline; gap: 5px; }
.mx-brand .bcard-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--mx-ink); }
.mx-brand .prio-dot { color: var(--mx-red); font-size: 9px; }
.mx-brand .bcard-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mx-brand .bcard-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mx-brand .meta-chip { font-size: 11px; color: var(--mx-muted); background: none; display: inline-flex; align-items: center; gap: 3px; padding: 0; }
.mx-brand .meta-chip svg { width: 11px; height: 11px; }
.mx-done-drop { margin-top: auto; min-height: 0 !important; }
.mx-done-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.mx-done-list .board-task-card { opacity: .7; }
.mx-done-card {
  width: 100%; border: 0; border-radius: 14px; background: var(--mx-paper); box-shadow: 0 1px 0 var(--mx-column-edge);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--mx-ink);
}
.mx-done-card b { display: block; font-size: 13px; font-weight: 600; }
.mx-done-card small { display: block; font-size: 12px; color: var(--mx-secondary); }
.mx-done-card > span:nth-child(2) { flex: 1; }
.mx-done-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--mx-green-soft); color: var(--mx-green-text); display: grid; place-items: center; flex: 0 0 auto; }
.mx-chev { width: 14px; height: 14px; color: var(--mx-faint); transition: transform .15s; }
.mx-chev.open { transform: rotate(90deg); }

.mx-brand-aside { background: var(--mx-paper); border-radius: 20px; box-shadow: 0 1px 0 var(--mx-column-edge); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 64px; }
.mx-brand-aside h2 { margin: 0; font-size: 20px; font-weight: 600; }
.mx-info-rows > div { display: flex; justify-content: space-between; align-items: center; height: 34px; border-bottom: 1px solid var(--mx-row-line); font-size: 12px; }
.mx-info-rows span { color: var(--mx-secondary); }
.mx-info-rows b { font-weight: 600; }
.mx-aside-box { border-radius: 14px; background: var(--mx-chip); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mx-aside-box-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.mx-aside-box-title svg { width: 15px; height: 15px; stroke: var(--mx-green-text); stroke-width: 2.2; }
.mx-aside-box p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--mx-secondary); }
.mx-aside-box .mx-btn { justify-content: center; height: 32px; }
.mx-aside-team { display: flex; flex-direction: column; gap: 8px; }
.mx-aside-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--mx-muted); }
.mx-aside-member { display: flex; align-items: center; gap: 10px; }
.mx-aside-member .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; overflow: hidden; flex: 0 0 auto; }
.mx-aside-member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-aside-member b { display: block; font-size: 13px; font-weight: 600; }
.mx-aside-member small { display: block; font-size: 11px; color: var(--mx-secondary); }
.mx-aside-team .mx-btn { justify-content: center; height: 32px; }
.mx-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 14px; align-items: start; }
.mx-list-card { padding: 14px 18px; border-radius: 20px; }

/* Ortak görev satırı (taskCard) ve liste başlıkları Mac görünümünde */
.project-tasks-list { display: flex; flex-direction: column; gap: 2px; background: none; border: 0; box-shadow: none; padding: 0; }
.project-task-row {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; border-radius: 12px;
  background: transparent; border: 0; box-shadow: none; margin: 0;
}
.project-task-row:hover { background: var(--mx-hover); }
.project-task-row .ptask-title-text { font-size: 14px; color: var(--mx-ink); }
.project-task-row.done .ptask-title-text { color: var(--mx-muted); text-decoration: line-through; }
.project-task-row .ptask-meta-tags { gap: 8px; }
.check {
  width: 18px; height: 18px; border-radius: 50%; border: 1.8px solid var(--mx-faint); background: transparent; flex: 0 0 auto; cursor: pointer;
}
.check.done { background: var(--mx-green); border-color: var(--mx-green); }
.status-chip { border-radius: 8px; font-size: 11px; font-weight: 600; }
.tasks-group-header h2, .section-head h2 { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--mx-secondary); }

@media (max-width: 1180px) {
  .mx-board-layout, .mx-list-layout { grid-template-columns: 1fr; }
  .mx-brand-aside { position: static; }
  .mx-brand-ring { width: 84px; height: 84px; }
}

/* Eski "liquid glass" katmanı !important ile cam arka plan zorluyordu; MX kâğıt kartlarıyla değiştirilir. */
.mx-brand-hero.project-hero-card {
  background: color-mix(in srgb, var(--brand) 18%, var(--mx-paper)) !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none; -webkit-backdrop-filter: none; margin: 0;
}
.project-tasks-list { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.metric, .member-card, .info-card, .project-pill-card, .project-card-full, .empty-project-state, .info-box-card, .calendar-agenda section {
  background: var(--mx-paper) !important; border: 0 !important; box-shadow: var(--mx-card-shadow) !important;
  backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 22px;
}
.mx-brand .bcard-footer { border-top: 0; padding-top: 0; margin-top: 0; }
.mx-brand-logo .mx-avatar { border-radius: 50%; }

/* ---------- Sayfa başlığı ---------- */
.mx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.mx-page-head > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mx-page-title { font-size: 52px; letter-spacing: -1.2px; line-height: .95; }
.mx-page-sub { margin: 4px 0 0; font-size: 14px; color: var(--mx-secondary); }
.mx-page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mx-empty-card { padding: 48px 20px; text-align: center; }
.mx-empty-card h2 { margin: 0 0 6px; font-size: 22px; }
.mx-empty-card p { margin: 0; color: var(--mx-secondary); font-size: 13px; }

/* ---------- Markalar ---------- */
.mx-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.mx-brand-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .12s; }
.mx-brand-card:hover { transform: translateY(-1px); box-shadow: 0 1px 0 var(--mx-edge), 0 10px 24px rgba(27, 26, 23, .07); }
.mx-brand-card.archived { opacity: .7; }
.mx-brand-card-top { display: flex; align-items: center; gap: 12px; }
.mx-ring-56 { width: 56px; height: 56px; }
.mx-brand-card-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mx-brand-card-name b { font-family: var(--mx-serif); font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-brand-card-name small { font-size: 12px; color: var(--mx-secondary); }
.mx-overdue-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mx-red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.mx-brand-card-stats { display: flex; gap: 18px; font-size: 12px; color: var(--mx-secondary); }
.mx-brand-card-stats b { font-family: var(--mx-serif); font-size: 18px; color: var(--mx-ink); }
.mx-brand-card-next { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--mx-chip); font-size: 12px; color: var(--mx-ink-soft); }
.mx-brand-card-next > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bana atananlar ---------- */
.mx-assigned-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.mx-assigned-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.mx-assigned-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.mx-assigned-card-head b { font-size: 18px; font-weight: 600; }
.mx-assigned-card-head em { font-style: normal; font-size: 12px; color: var(--mx-faint); font-weight: 500; }

/* ---------- Kişisel ---------- */
.mx-personal { display: flex; flex-direction: column; gap: 16px; }
.mx-personal-hero {
  position: relative; overflow: hidden; border-radius: 26px; background: var(--mx-sidebar); color: #F4F1EC; padding: 26px 30px;
  display: flex; align-items: center; gap: 28px; min-height: 190px; box-sizing: border-box;
}
.mx-personal-house { position: absolute; right: 200px; top: -40px; width: 300px; height: 300px; fill: #F4F1EC; stroke: none; opacity: .06; pointer-events: none; }
.mx-personal-headings { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mx-personal-badge {
  align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 12px; background: #34322D; color: #CFC9BE;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; display: inline-flex; align-items: center; gap: 6px;
}
.mx-personal-badge svg { width: 11px; height: 11px; stroke-width: 2.4; }
.mx-personal-headings .mx-title { color: #F4F1EC; font-size: 52px; letter-spacing: -1.2px; }
.mx-personal-sub { font-size: 14px; color: #B8B2A7; }
.mx-personal-sub b { color: #F4F1EC; }
.mx-personal-tabs { position: relative; display: flex; background: #2A2825; border-radius: 12px; padding: 3px; gap: 2px; }
.mx-personal-tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #CFC9BE; font-size: 12px; font-weight: 600; cursor: pointer; }
.mx-personal-tabs button.active { background: #F4F1EC; color: #1B1A17; }
.mx-personal-ring { position: relative; width: 112px; height: 112px; flex: 0 0 auto; }
.mx-personal-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mx-personal-ring b { font-family: var(--mx-serif); font-size: 32px; font-weight: 600; line-height: 1; }
.mx-personal-ring small { font-size: 10px; color: #8C877D; }
.mx-personal-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.mx-personal-body.full { grid-template-columns: 1fr; }
.mx-personal-list { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.mx-pquick { height: 46px; border-radius: 14px; background: var(--mx-chip); padding: 0 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.mx-pquick svg { width: 16px; height: 16px; stroke: var(--mx-blue); stroke-width: 2.4; }
.mx-pquick input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--mx-ink); }
.mx-pquick input::placeholder { color: var(--mx-muted); }
.mx-pquick kbd { font: inherit; font-size: 11px; color: var(--mx-muted); padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--mx-column-edge); background: none; border: 0; }
.mx-psection { display: flex; flex-direction: column; gap: 8px; }
.mx-psection-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--mx-secondary); }
.mx-psection-head.late { color: var(--mx-red); }
.mx-ptask {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 18px; border-radius: 16px; background: var(--mx-paper);
  box-shadow: 0 0 0 1px var(--mx-line); cursor: pointer; box-sizing: border-box;
}
.mx-ptask:hover { box-shadow: 0 0 0 1px var(--mx-column-edge), 0 4px 14px rgba(27, 26, 23, .05); }
.mx-ptask.done .mx-ptask-text span { color: var(--mx-muted); text-decoration: line-through; }
.mx-ptask-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-ptask-text span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-ptask-text small { font-size: 12px; color: var(--mx-secondary); }
.mx-ptask .mx-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--mx-secondary); }
.mx-ptask .mx-meta.late { color: var(--mx-red); font-weight: 600; }
.mx-ptask .mx-meta svg { width: 12px; height: 12px; }
.mx-days { display: flex; flex-direction: column; align-items: flex-end; }
.mx-days b { font-family: var(--mx-serif); font-size: 24px; font-weight: 600; line-height: 1; }
.mx-days small { font-size: 11px; color: var(--mx-muted); }
.mx-check.big { width: 22px; height: 22px; border-width: 2px; }
.mx-check.ready { border-color: var(--mx-green); }
.mx-ptask.rich { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
.mx-ptask-top { display: flex; align-items: center; gap: 14px; }
.mx-ptask-rich-title { flex: 1; min-width: 0; font-family: var(--mx-serif); font-size: 22px; font-weight: 600; }
.mx-ptask-progress { display: flex; align-items: center; gap: 12px; padding-left: 36px; }
.mx-ptask-progress > span { flex: 1; height: 6px; border-radius: 3px; background: var(--mx-line); overflow: hidden; }
.mx-ptask-progress i { display: block; height: 6px; border-radius: 3px; background: var(--mx-green); }
.mx-ptask-progress b { font-size: 12px; font-weight: 600; color: var(--mx-secondary); }
.mx-ptask-progress b.ok { color: var(--mx-green-text); }
.mx-ready-chip { margin-left: 36px; align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--mx-green-soft); color: var(--mx-green-text); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.mx-done-toggle { margin-top: auto; align-self: flex-start; border: 0; background: none; padding: 0; color: var(--mx-green-text); font-size: 12px; font-weight: 700; letter-spacing: .6px; cursor: pointer; }
.mx-personal-aside { display: flex; flex-direction: column; gap: 16px; }
.mx-note-card { background: var(--mx-note); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.mx-note-head { display: flex; align-items: center; justify-content: space-between; }
.mx-note-head h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--mx-note-ink); }
.mx-note-head .mx-link { color: var(--mx-note-soft); font-size: 11px; }
.mx-note-card textarea {
  height: 150px; resize: none; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .6); padding: 12px 14px;
  font: inherit; font-size: 14px; line-height: 1.5; color: var(--mx-note-ink); outline: none;
}
[data-theme="dark"] .mx-note-card textarea { background: rgba(0, 0, 0, .18); }
.mx-note-card textarea::placeholder { color: var(--mx-note-soft); opacity: .8; }
.mx-note-actions { display: flex; gap: 8px; }
.mx-note-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .6); color: var(--mx-note-ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.mx-note-btn.primary { background: var(--mx-note-ink); color: var(--mx-note); }
.mx-note-latest { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--mx-note-ink); }
.mx-note-latest b { font-size: 13px; }
.mx-note-latest span { font-size: 12px; color: var(--mx-note-soft); }
.mx-note-empty { font-family: var(--mx-serif); font-size: 12px; color: var(--mx-note-soft); }
.mx-pboard-mini { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.mx-pboard-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-pboard-counts button { border: 0; border-radius: 14px; background: var(--mx-chip); padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; color: var(--mx-ink); }
.mx-pboard-counts span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mx-secondary); }
.mx-pboard-counts .col-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.col-dot.status-todo { background: var(--mx-muted); } .col-dot.status-progress { background: var(--mx-blue); } .col-dot.status-review { background: var(--mx-amber); }
.mx-pboard-counts b { font-family: var(--mx-serif); font-size: 28px; font-weight: 600; line-height: 1; }
.mx-pboard-counts b.zero { color: var(--mx-faint); }
.mx-personal-board .mx-three-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mx-personal-board .board-column { min-height: 420px; }
.mx-notes-page { padding: 22px 24px; }
.mx-notes-page .pn-section { margin-top: 0; }

@media (max-width: 1180px) {
  .mx-personal-body { grid-template-columns: 1fr; }
  .mx-personal-aside { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- Takvim ---------- */
.mx-calendar { display: flex; flex-direction: column; gap: 16px; }
.mx-cal-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mx-cal-title { display: flex; align-items: flex-end; gap: 18px; }
.mx-cal-title .mx-title { font-size: 52px; letter-spacing: -1.2px; line-height: .95; }
.mx-cal-nav { display: flex; align-items: center; gap: 4px; padding-bottom: 4px; }
.mx-round-btn { width: 34px; height: 34px; border: 0; border-radius: 17px; background: var(--mx-paper); box-shadow: 0 1px 0 var(--mx-column-edge); display: grid; place-items: center; cursor: pointer; color: var(--mx-ink); }
.mx-round-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.mx-today-btn { height: 34px; border-radius: 17px; padding: 0 14px; }
.mx-cal-tools { display: flex; align-items: center; gap: 14px; }
.mx-cal-stat { font-size: 12px; color: var(--mx-secondary); }
.mx-cal-stat b { font-family: var(--mx-serif); font-size: 18px; color: var(--mx-ink); }
.mx-cal-stat strong { color: var(--mx-ink); }
.mx-cal-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.mx-cal-month { padding: 10px 12px 12px; border-radius: 24px; display: flex; flex-direction: column; }
.mx-cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 30px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--mx-muted); }
.mx-cal-weekdays span { padding-left: 10px; }
.mx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mx-cal-grid.rows-5 { grid-auto-rows: minmax(132px, calc((100vh - 290px) / 5)); }
.mx-cal-grid.rows-6 { grid-auto-rows: minmax(112px, calc((100vh - 290px) / 6)); }
.mx-cal-grid.rows-4 { grid-auto-rows: minmax(150px, calc((100vh - 290px) / 4)); }
.mx-cal-day {
  border-radius: 14px; padding: 8px 8px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; cursor: pointer;
  color: var(--mx-ink); outline: none; position: relative;
}
.mx-cal-day.heat-0 { background: var(--mx-heat-0); } .mx-cal-day.heat-1 { background: var(--mx-heat-1); } .mx-cal-day.heat-2 { background: var(--mx-heat-2); }
.mx-cal-day.heat-3 { background: var(--mx-heat-3); } .mx-cal-day.heat-4 { background: var(--mx-heat-4); }
.mx-cal-day.heat-out { background: transparent; }
.mx-cal-day.heat-out .mx-cal-day-head b { opacity: .3; }
.mx-cal-day.today { background: var(--mx-ink); color: var(--mx-on-ink); }
.mx-cal-day.selected { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mx-ink) 55%, transparent); }
.mx-cal-day.drag-over, .mx-cal-week-col.drag-over { box-shadow: inset 0 0 0 2px var(--mx-blue); }
.mx-cal-day:focus-visible { box-shadow: inset 0 0 0 2px var(--mx-blue); }
.mx-cal-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.mx-cal-day-head b { font-family: var(--mx-serif); font-size: 18px; font-weight: 600; line-height: 1; }
.mx-cal-day.today .mx-cal-day-head b { font-size: 26px; }
.mx-cal-day-head small { font-size: 10px; font-weight: 600; opacity: .7; white-space: nowrap; }
.mx-cal-chip {
  height: 20px; padding: 0 6px 0 3px; border-radius: 6px; background: color-mix(in srgb, var(--mx-paper) 75%, transparent);
  display: flex; align-items: center; gap: 5px; font-size: 11px; min-width: 0; cursor: pointer;
}
.mx-cal-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-cal-chip.on-today { background: #34322D; color: #F4F1EC; }
.mx-cal-chip.done span { text-decoration: line-through; opacity: .6; }
.mx-cal-chip.ghost { background: transparent; border: 1px dashed color-mix(in srgb, var(--mx-faint) 70%, transparent); font-style: italic; cursor: default; opacity: .75; }
.mx-cal-chip.ghost svg { width: 10px; height: 10px; flex: 0 0 auto; }
.mx-cal-more { border: 0; background: none; padding: 0 3px; text-align: left; font-size: 11px; color: inherit; opacity: .7; cursor: pointer; }
.mx-cal-week { padding: 10px; border-radius: 24px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-height: 520px; }
.mx-cal-week-col { border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mx-cal-week-head { border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.mx-cal-week-head small { font-size: 11px; font-weight: 700; letter-spacing: .6px; opacity: .7; }
.mx-cal-week-head b { font-family: var(--mx-serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.mx-cal-week-head.heat-0 { background: var(--mx-heat-0); } .mx-cal-week-head.heat-1 { background: var(--mx-heat-1); } .mx-cal-week-head.heat-2 { background: var(--mx-heat-2); }
.mx-cal-week-head.heat-3 { background: var(--mx-heat-3); } .mx-cal-week-head.heat-4 { background: var(--mx-heat-4); }
.mx-cal-week-head.today { background: var(--mx-ink); color: var(--mx-on-ink); }
.mx-cal-week-list { display: flex; flex-direction: column; gap: 6px; }
.mx-cal-week-card { background: var(--mx-paper); border-radius: 10px; box-shadow: 0 1px 0 var(--mx-column-edge), 0 0 0 1px var(--mx-line); padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.mx-cal-week-card b { font-size: 12px; font-weight: 600; line-height: 1.3; }
.mx-cal-week-card.done b { color: var(--mx-muted); text-decoration: line-through; }
.mx-cal-week-card span { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--mx-muted); }
.mx-cal-agenda { padding: 12px 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 2px; }
.mx-agenda-head { margin-top: 12px; height: auto; }
.mx-agenda-head b { font-size: 20px; color: var(--mx-ink); }
.mx-agenda-head small { font-size: 12px; color: var(--mx-muted); font-weight: 400; }
.mx-cal-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 64px; }
.mx-cal-today { position: relative; overflow: hidden; background: var(--mx-sidebar); color: #F4F1EC; border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.mx-cal-today-num { position: absolute; right: -6px; top: -30px; font-family: var(--mx-serif); font-size: 170px; font-weight: 600; line-height: 1; color: #2A2825; pointer-events: none; }
.mx-cal-today > *:not(.mx-cal-today-num) { position: relative; }
.mx-cal-today-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #6FA5FF; }
.mx-cal-today b { font-size: 34px; font-weight: 600; line-height: 1.05; }
.mx-cal-today-sub { font-size: 13px; color: #B8B2A7; }
.mx-cal-today-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mx-cal-today-progress > i { flex: 1; height: 6px; border-radius: 3px; background: #34322D; overflow: hidden; }
.mx-cal-today-progress > i > i { display: block; height: 6px; border-radius: 3px; background: #6FD39A; }
.mx-cal-today-progress b { font-family: var(--mx-sans); font-size: 12px; font-weight: 600; }
.mx-cal-list { padding: 6px 16px; border-radius: 22px; display: flex; flex-direction: column; }
.mx-cal-list-row { display: flex; align-items: center; gap: 10px; height: 40px; border-bottom: 1px solid var(--mx-row-line); cursor: pointer; }
.mx-cal-list-row:last-child { border-bottom: 0; }
.mx-cal-list-row span:not(.mx-avatar) { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-cal-add { border: 0; background: none; height: 44px; color: var(--mx-secondary); font-size: 13px; cursor: pointer; text-align: left; }
.mx-cal-next { background: var(--mx-column); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.mx-cal-next-head { display: flex; justify-content: space-between; align-items: baseline; }
.mx-cal-next-head b { font-size: 18px; font-weight: 600; }
.mx-cal-next-head small { font-size: 12px; color: var(--mx-secondary); }
.mx-cal-next-row { display: flex; align-items: center; gap: 10px; height: 30px; font-size: 12px; color: var(--mx-ink-soft); }
.mx-cal-next-row span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- İşlem geçmişi ---------- */
.mx-activity-page { display: flex; flex-direction: column; }
.mx-act-search { height: 36px; width: 260px; border-radius: 12px; background: var(--mx-paper); box-shadow: 0 1px 0 var(--mx-column-edge); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--mx-muted); }
.mx-act-search svg { width: 15px; height: 15px; }
.mx-act-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--mx-ink); }
.mx-act-search input::placeholder { color: var(--mx-muted); }
.mx-act-search kbd { font: inherit; font-size: 11px; background: none; border: 0; color: var(--mx-muted); }
.mx-act-tiles { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mx-act-total { background: var(--mx-sidebar); color: #F4F1EC; border-radius: 20px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mx-act-total > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.mx-act-total small { font-size: 12px; color: #B8B2A7; }
.mx-act-total b { font-size: 34px; font-weight: 600; line-height: 1; white-space: nowrap; }
.mx-act-total em { font-style: normal; font-size: 15px; font-weight: 500; color: #B8B2A7; }
.mx-spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.mx-spark i { width: 6px; border-radius: 3px; background: #6FA5FF; }
.mx-act-kind {
  border: 0; text-align: left; border-radius: 20px; padding: 14px 16px; background: var(--mx-column); display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; color: var(--mx-ink); min-width: 0;
}
.mx-act-kind.active { background: var(--mx-paper); box-shadow: 0 0 0 2px var(--mx-ink); }
.mx-act-kind span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-act-kind span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
[data-theme="dark"] .mx-act-kind[data-mx-act-kind="all"] span i { color: #1B1A17; }
.mx-act-kind b { font-size: 26px; font-weight: 600; line-height: 1; }
.mx-act-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.mx-act-feed { padding: 6px 22px 10px; border-radius: 24px; min-height: 480px; }
.mx-act-day { display: flex; align-items: center; gap: 12px; height: 44px; }
.mx-act-day b { font-size: 20px; font-weight: 600; }
.mx-act-day small { font-size: 12px; color: var(--mx-muted); white-space: nowrap; }
.mx-act-day::after { content: ''; flex: 1; height: 1px; background: var(--mx-line); }
.mx-act-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 12px; margin: 0 -12px; border-radius: 14px; cursor: pointer; }
.mx-act-row:hover { background: var(--mx-hover); }
.mx-act-row.selected { background: var(--mx-chip); box-shadow: inset 3px 0 0 var(--act); }
.mx-act-avatar { position: relative; width: 36px; height: 36px; flex: 0 0 auto; }
.mx-act-avatar .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; overflow: hidden; }
.mx-act-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-act-avatar > i { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--act); border: 2px solid var(--mx-paper); color: #fff; display: grid; place-items: center; }
.mx-act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mx-act-line { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-act-line b { font-weight: 600; }
.mx-act-line em { font-style: normal; color: var(--act); font-weight: 500; }
.mx-act-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mx-secondary); white-space: nowrap; overflow: hidden; }
.mx-act-row > small { font-size: 12px; color: var(--mx-muted); white-space: nowrap; }
.mx-undo { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--mx-canvas); color: var(--mx-ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.mx-act-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 64px; }
.mx-act-hero { background: var(--mx-sidebar); color: #F4F1EC; border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.mx-act-hero-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #B8B2A7; }
.mx-act-hero b { font-size: 32px; font-weight: 600; line-height: 1.05; }
.mx-act-pill { align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 13px; background: color-mix(in srgb, var(--pill) 16%, transparent); color: var(--pill); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.mx-act-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--pill); }
.mx-act-story { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.mx-story { display: flex; flex-direction: column; flex: 1; }
.mx-story-row { display: flex; gap: 14px; }
.mx-story-rail { display: flex; flex-direction: column; align-items: center; width: 22px; flex: 0 0 auto; }
.mx-story-rail i { width: 22px; height: 22px; border-radius: 50%; color: #fff; display: grid; place-items: center; }
.mx-story-rail em { flex: 1; width: 2px; background: var(--mx-line); min-height: 30px; }
.mx-story-row > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.mx-story-row b { font-size: 14px; font-weight: 600; }
.mx-story-row small { font-size: 12px; color: var(--mx-secondary); }
.mx-story-actions { display: flex; gap: 8px; margin-top: auto; }
.mx-story-actions .mx-btn { flex: 1; justify-content: center; height: 40px; border-radius: 12px; font-size: 13px; }
.mx-soft-btn { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--mx-green-soft); color: var(--mx-green-text); font-size: 13px; font-weight: 600; cursor: pointer; }

@media (max-width: 1180px) {
  .mx-cal-body, .mx-act-body { grid-template-columns: 1fr; }
  .mx-cal-aside, .mx-act-aside { position: static; }
  .mx-act-tiles { grid-template-columns: repeat(2, 1fr); }
  .mx-act-total { grid-column: span 2; }
}

/* ---------- ⌘K komut paleti ---------- */
.command-layer { background: rgba(27, 26, 23, .18); backdrop-filter: blur(4px); padding-top: 150px; }
.command {
  width: min(620px, calc(100% - 26px)); border-radius: 20px; background: color-mix(in srgb, var(--mx-paper) 96%, transparent);
  backdrop-filter: blur(30px); box-shadow: 0 0 0 1px rgba(27, 26, 23, .08), 0 40px 100px rgba(27, 26, 23, .35); overflow: hidden;
}
.command-input { height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--mx-line); }
.command-input svg { width: 20px; height: 20px; color: var(--mx-secondary); }
.command-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; color: var(--mx-ink); }
.command-input input::placeholder { color: var(--mx-faint); }
.command-input kbd { font: inherit; font-size: 11px; color: var(--mx-muted); background: none; border: 0; }
.mx-scope { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--mx-line); font-size: 11px; font-weight: 600; color: var(--mx-secondary); display: inline-flex; align-items: center; white-space: nowrap; }
.mx-results { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.mx-result-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--mx-muted); padding: 8px 10px 4px; }
.mx-result { height: 46px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--mx-ink); background: none; border: 0; }
.mx-result.action { height: 42px; }
.mx-result.active { background: var(--mx-ink); color: var(--mx-on-ink); }
.mx-result-title { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-result.active .mx-result-title { font-weight: 600; }
.mx-result mark { background: var(--mx-highlight); color: inherit; border-radius: 3px; padding: 0 1px; }
.mx-result.active mark { background: rgba(255, 255, 255, .18); }
.mx-result-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mx-secondary); white-space: nowrap; }
.mx-result.active .mx-result-meta { color: color-mix(in srgb, var(--mx-on-ink) 75%, transparent); }
.mx-result kbd { font: inherit; font-size: 11px; color: var(--mx-muted); background: none; border: 0; }
.mx-result .mx-check { pointer-events: none; }
.mx-result-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--mx-chip); color: var(--mx-ink-soft); display: grid; place-items: center; flex: 0 0 auto; }
.mx-result-icon.blue { background: var(--mx-blue-chip); color: var(--mx-blue); }
.mx-result-icon svg { width: 14px; height: 14px; stroke-width: 2.2; }
.mx-result-empty { padding: 10px; font-size: 13px; color: var(--mx-muted); }
.mx-command-foot { height: 38px; padding: 0 20px; border-top: 1px solid var(--mx-line); display: flex; align-items: center; gap: 18px; font-size: 11px; color: var(--mx-muted); }
.mx-command-foot b { color: var(--mx-ink-soft); }
.mx-command-foot em { margin-left: auto; font-style: normal; font-family: var(--mx-serif); font-size: 13px; font-weight: 600; color: var(--mx-ink-soft); }

/* ---------- Görev çekmecesi, pencereler, bildirim paneli ---------- */
.drawer { background: var(--mx-paper); backdrop-filter: none; box-shadow: -20px 0 60px rgba(27, 26, 23, .16); border-radius: 22px 0 0 22px; }
.drawer-title textarea, #editTitle { font-family: var(--mx-serif); font-weight: 600; color: var(--mx-ink); background: transparent; }
.notes, .comment-field, .comment-body { background: var(--mx-chip); border-color: transparent; color: var(--mx-ink); }
.modal-card { background: var(--mx-paper); border-radius: 22px; box-shadow: 0 0 0 1px rgba(27, 26, 23, .06), 0 30px 80px rgba(27, 26, 23, .25); }
.modal-head h2 { font-family: var(--mx-serif); font-weight: 600; }
.field { background: var(--mx-chip); border-color: transparent; color: var(--mx-ink); border-radius: 10px; }
.field:focus { border-color: var(--mx-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mx-blue) 18%, transparent); }
.primary { background: var(--mx-ink); color: var(--mx-on-ink); border-radius: 10px; }
.secondary { background: var(--mx-paper); color: var(--mx-ink); box-shadow: inset 0 0 0 1px var(--mx-column-edge); border: 0; border-radius: 10px; }
.notice-panel { background: var(--mx-paper); border: 0; border-radius: 18px; box-shadow: 0 0 0 1px rgba(27, 26, 23, .08), 0 24px 60px rgba(27, 26, 23, .22); }
.toast { background: var(--mx-ink); color: var(--mx-on-ink); border-radius: 12px; }
.avatar { background: var(--mx-chip); color: var(--mx-ink-soft); }
.rail .avatar.dark, .rail .account .avatar { background: #34322D; color: #F4F1EC; }

/* ---------- Telefon ve dar ekran ---------- */
@media (max-width: 900px) {
  .app { display: block; }
  .rail { width: 260px; z-index: 45; }
  .topbar { padding: 0 14px 0 58px; height: 56px; background: color-mix(in srgb, var(--mx-canvas) 92%, transparent); backdrop-filter: blur(16px); }
  .topbar .mobile-title { font-family: var(--mx-serif); font-size: 20px; font-weight: 600; color: var(--mx-ink); }
  #openNav { position: absolute; left: 10px; top: 10px; }
  .content { padding: 10px 16px 96px; }
  .mx-bento { grid-template-columns: 1fr; gap: 12px; }
  .mx-hero, .mx-focus, .mx-flow, .mx-stack, .mx-assigned, .mx-activity { grid-column: auto !important; }
  .mx-stack { grid-template-columns: 1fr; }
  .mx-hero { min-height: 190px; padding: 18px 20px; }
  .mx-hero-title { font-size: 32px; }
  .mx-hero-day { font-size: 170px; top: -28px; }
  .mx-hero-sub { font-size: 14px; }
  .mx-focus { padding: 18px; }
  .mx-focus-title { font-size: 22px; }
  .mx-focus-timer { width: 76px; height: 76px; }
  .mx-focus-timer .mx-ring { width: 76px !important; height: 76px !important; }
  .mx-focus-clock b { font-size: 20px; }
  .mx-flow { max-height: none; padding: 16px; }
  .mx-flow-head { flex-direction: column; align-items: stretch; }
  .mx-quick { width: auto; }
  .mx-ring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-page-title, .mx-cal-title .mx-title, .mx-personal-headings .mx-title { font-size: 36px; }
  .mx-page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .mx-page-actions { justify-content: flex-start; }
  .mx-act-search { width: 100%; box-sizing: border-box; }
  .mx-brand-hero { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .mx-brand-logo .mx-avatar { width: 64px !important; height: 64px !important; font-size: 22px !important; }
  .mx-brand-name { font-size: 32px; white-space: normal; }
  .mx-brand-team { order: 4; flex-direction: row; align-items: center; }
  .mx-brand-ring { width: 76px; height: 76px; margin-left: auto; }
  .mx-brand-ring .mx-ring { width: 76px !important; height: 76px !important; }
  .mx-brand-ring b { font-size: 22px; }
  .mx-brand-watermark { display: none; }
  .mx-brand-toolbar { flex-wrap: wrap; }
  .mx-brand-toolbar .back-pill-btn { display: inline-flex; }
  .mx-brand-toolbar .project-nav-actions { width: 100%; margin-left: 0; }
  .mx-brand-toolbar .project-nav-actions .mx-btn { margin-left: auto; }
  .mx-board-layout .board-columns-row, .mx-personal-board .mx-three-cols { grid-template-columns: 1fr; }
  .mx-brand .board-column { min-height: 0; }
  .mx-personal-hero { flex-wrap: wrap; padding: 20px; gap: 14px; min-height: 0; }
  .mx-personal-house { right: -40px; }
  .mx-personal-ring { width: 84px; height: 84px; }
  .mx-personal-ring .mx-ring { width: 84px !important; height: 84px !important; }
  .mx-personal-tabs { order: 3; width: 100%; }
  .mx-personal-tabs button { flex: 1; }
  .mx-personal-aside { grid-template-columns: 1fr; }
  .mx-personal-list { padding: 16px; }
  .mx-ptask { padding: 8px 14px; }
  .mx-cal-header { align-items: flex-start; }
  .mx-cal-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .mx-cal-month { padding: 8px; }
  .mx-cal-grid { gap: 3px; }
  .mx-cal-grid.rows-4, .mx-cal-grid.rows-5, .mx-cal-grid.rows-6 { grid-auto-rows: 64px; }
  .mx-cal-day { padding: 5px; border-radius: 10px; }
  .mx-cal-day .mx-cal-chip, .mx-cal-day .mx-cal-more { display: none; }
  .mx-cal-day-head { flex-direction: column; gap: 2px; }
  .mx-cal-day-head small { font-size: 9px; }
  .mx-cal-week { grid-template-columns: 1fr; min-height: 0; }
  .mx-act-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mx-act-feed { padding: 6px 14px; }
  .mx-act-sub { display: none; }
  .mx-assigned-grid { grid-template-columns: 1fr; }
  .mx-brand-grid { grid-template-columns: 1fr; }
  .drawer { border-radius: 0; }
  .command-layer { padding-top: calc(env(safe-area-inset-top) + 12px); }
  .mx-command-foot { display: none; }

  .mobile-tabbar {
    display: grid; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; border-radius: 22px;
    background: var(--mx-sidebar); box-shadow: 0 14px 36px rgba(27, 26, 23, .28); border: 0; backdrop-filter: none;
  }
  .mobile-tabbar button { color: #8C877D; border-radius: 14px; }
  .mobile-tabbar button.active { color: #F4F1EC; background: #34322D; }
  .mobile-tabbar .tab-fab { background: #F4F1EC; color: #1B1A17; border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
}
@media (max-width: 900px) {
  .mx-brand-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
  .mx-brand-logo { grid-column: 1; grid-row: 1; }
  .mx-brand-headings { grid-column: 2 / 4; grid-row: 1; }
  .mx-brand-team { grid-column: 1 / 3; grid-row: 2; justify-self: start; order: 0; }
  .mx-brand-ring { grid-column: 3; grid-row: 2; margin: 0; }
  .mx-brand-stats { gap: 14px; }
  .mx-brand-stats b { font-size: 17px; }
  .mx-brand-name { font-size: 28px; overflow-wrap: anywhere; }
  .mx-brand-toolbar .mx-pill-tabs { order: 3; width: 100%; }
  .mx-brand-toolbar .mx-pill-tabs button { flex: 1; justify-content: center; }
}
@media (max-width: 900px) {
  /* Üst şerit: menü solda, arama + simgeler sağda tek sırada (eski mutlak konumlandırma kaldırıldı). */
  .topbar { justify-content: flex-end; gap: 4px; padding: 0 12px 0 56px; }
  .topbar > .search, .topbar .actions { position: static; }
  .topbar > .search { width: 36px; height: 36px; padding: 0; justify-content: center; margin-right: 2px; box-shadow: none; background: transparent; }
  .topbar > .search span, .topbar > .search kbd { display: none; }
  .topbar .actions { gap: 2px; }
}
/* Grid öğeleri uzun (tek satır) metinler yüzünden genişlemesin. */
.mx-cal-body > *, .mx-act-body > *, .mx-personal-body > *, .mx-list-layout > *, .mx-board-layout > *, .mx-bento > *, .mx-assigned-grid > *, .mx-brand-grid > * { min-width: 0; }
@media (max-width: 900px) { .mx-personal-list { min-height: 0; } }
.ibox-title h3, .info-overview-identity h2, .mx-brand .tasks-group-header h2 { font-family: var(--mx-serif); font-weight: 600; letter-spacing: 0; }
.ibox-title h3 { font-size: 17px; }
.rail .app-download { border-top: 1px solid var(--mx-sidebar-divider); border-color: var(--mx-sidebar-divider); background: transparent; }
.rail .app-download a, .rail .app-download-alt { color: var(--mx-sidebar-muted); }
.rail .app-download a:hover { color: var(--mx-sidebar-strong); }

/* ---- Bugünün akışı: durum çipi ---- */
.mx-status { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--mx-chip); color: var(--mx-secondary); }
.mx-status.progress { background: var(--mx-blue-chip); color: var(--mx-blue-chip-text); }
.mx-status.review, .mx-status.approval { background: var(--mx-orange-soft); color: var(--mx-orange); }

/* ---- Geciken görev ayıklama kartı ---- */
.mx-triage { position: relative; margin: 0 0 22px; padding-bottom: 2px; }
.mx-triage-card { position: relative; z-index: 2; background: var(--mx-paper); border-radius: 22px; box-shadow: var(--mx-card-shadow); padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.mx-triage.stack1::after, .mx-triage.stack2::after, .mx-triage.stack2::before { content: ''; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 30px; border-radius: 0 0 20px 20px; background: var(--mx-edge); z-index: 1; }
.mx-triage.stack2::before { left: 28px; right: 28px; bottom: -12px; background: var(--mx-column); z-index: 0; }
.mx-triage-head { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.mx-triage-late { background: var(--mx-red-soft); color: var(--mx-red); font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.mx-triage-count { color: var(--mx-muted); }
.mx-triage-brand { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--mx-secondary); }
.mx-triage-title { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 19px; font-weight: 600; color: var(--mx-ink); line-height: 1.3; font-family: inherit; }
.mx-triage-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx-triage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mx-triage-actions .mx-btn { min-height: 36px; padding: 0 16px; justify-content: center; }
.mx-triage-actions .mx-btn.primary { background: var(--mx-ink); color: var(--mx-on-ink); }
.mx-triage-actions .mx-btn.done { color: var(--mx-green-text); }
.mx-triage-date { position: relative; cursor: pointer; overflow: hidden; }
.mx-triage-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mx-triage-later { margin-left: auto; font-size: 13px; padding: 8px 4px; }
.mx-triage-ok { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 12px 18px; border-radius: 16px; background: var(--mx-green-soft); color: var(--mx-green-text); font-size: 14px; }
.mx-triage-ok span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mx-green); color: #fff; }
@media (max-width: 760px) { .mx-triage-actions .mx-btn { flex: 1 1 calc(50% - 8px); } .mx-triage-later { margin-left: 0; } }

/* ---- Marka ekip paneli ---- */
.modal-card.mx-team-card { width: min(560px, 100%); }
.mx-team-body { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.mx-team-body h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--mx-muted); font-weight: 700; }
.mx-team-invite { background: var(--mx-chip); border-radius: 16px; padding: 14px 16px; }
.mx-team-invite p, .mx-team-note { margin: 0 0 10px; font-size: 12.5px; color: var(--mx-secondary); }
.mx-team-invite-row { display: flex; gap: 8px; }
.mx-team-invite-row .field { flex: 1; min-width: 0; }
.mx-team-list { display: flex; flex-direction: column; border-top: 1px solid var(--mx-row-line); }
.mx-team-member { border-bottom: 1px solid var(--mx-row-line); }
.mx-team-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.mx-team-row:disabled { cursor: default; }
.mx-team-row:not(:disabled):hover { background: var(--mx-hover); }
.mx-team-row .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; overflow: hidden; flex: 0 0 auto; }
.mx-team-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-team-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-team-id b { font-size: 14px; font-weight: 600; } .mx-team-id em { font-style: normal; font-weight: 400; color: var(--mx-muted); }
.mx-team-id small { font-size: 12px; color: var(--mx-secondary); }
.mx-team-count { font-size: 12px; font-weight: 600; color: var(--mx-blue-chip-text); background: var(--mx-blue-chip); padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.mx-team-count.zero { background: none; color: var(--mx-muted); font-weight: 400; }
.mx-team-row .mx-chev { width: 14px; height: 14px; stroke: var(--mx-muted); fill: none; stroke-width: 2.4; transition: transform .15s; }
.mx-team-row.open .mx-chev { transform: rotate(90deg); }
.mx-team-tasks { padding: 0 0 8px 46px; display: flex; flex-direction: column; gap: 2px; }
.mx-team-task { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font: inherit; font-size: 13px; color: inherit; }
.mx-team-task:hover { background: var(--mx-hover); }
.mx-team-task > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-team-manage { align-self: flex-start; }
@media (max-width: 600px) { .mx-team-invite-row { flex-direction: column; } }
.mx-team-tasks[hidden] { display: none; }

/* ---- Kokpit düzeni: ızgara satırı 100 px; paneller --w sütun × --h satır ---- */
.mx-bento { grid-template-rows: none; grid-auto-rows: 100px; grid-auto-flow: dense; }
.mx-bento > .mx-panel { grid-column: span var(--w, 6); grid-row: span var(--h, 2); min-width: 0; min-height: 0; position: relative; display: flex; }
.mx-bento > .mx-panel > .mx-card, .mx-bento > .mx-panel > .mx-focus { flex: 1; min-width: 0; min-height: 0; width: auto; grid-column: auto; }
/* Saat */
.mx-clock { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.mx-clock-time { font-family: var(--mx-serif); font-size: clamp(34px, 4vw, 56px); font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.mx-clock-date { font-size: 13px; color: var(--mx-secondary); text-transform: capitalize; }
.mx-clock-zone { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--mx-row-line); font-size: 12px; color: var(--mx-secondary); }
.mx-clock-zone b { font-size: 16px; color: var(--mx-ink); font-variant-numeric: tabular-nums; }
/* Hava durumu */
.mx-weather { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.mx-weather-now { display: flex; align-items: center; gap: 12px; }
.mx-weather-ico { color: var(--mx-amber); display: inline-flex; }
.mx-weather-now > b { font-family: var(--mx-serif); font-size: 44px; font-weight: 600; line-height: 1; }
.mx-weather-txt { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.mx-weather-txt small { font-size: 11.5px; font-weight: 400; color: var(--mx-secondary); }
.mx-weather-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.mx-weather-days span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; background: var(--mx-chip); font-size: 12px; }
.mx-weather-days small { color: var(--mx-muted); text-transform: capitalize; } .mx-weather-days em { font-style: normal; color: var(--mx-muted); font-size: 11px; }
.mx-weather-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.mx-weather-empty p { margin: 0; font-size: 13px; color: var(--mx-secondary); }
/* Panel ayar penceresi */
.mx-set-body { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; min-width: min(420px, 80vw); }
.mx-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.mx-set-note { margin: 0; font-size: 12.5px; color: var(--mx-secondary); }
.mx-city-form { display: flex; gap: 8px; } .mx-city-form .field { flex: 1; }
.mx-city-results { display: flex; flex-direction: column; }
.mx-city-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.mx-city-item:hover { background: var(--mx-hover); } .mx-city-item small { color: var(--mx-secondary); font-size: 12px; }
@media (max-width: 1180px) {
  .mx-bento { grid-auto-rows: auto; }
  .mx-bento > .mx-panel { grid-column: span 12; grid-row: auto; }
  .mx-bento > .mx-panel-hero, .mx-bento > .mx-panel-focus { min-height: 214px; }
  .mx-bento > .mx-panel-brands, .mx-bento > .mx-panel-week, .mx-bento > .mx-panel-weather, .mx-bento > .mx-panel-clock { min-height: 190px; }
  .mx-bento > .mx-panel-flow { max-height: 520px; }
}
@media (max-width: 760px) {
  .mx-bento > .mx-panel { grid-column: auto !important; }
  .mx-cockpit-bar { margin-top: 0; }
}

/* ---- Ayarlar: yazı boyutu, bildirim tercihleri, yasal bağlantılar, hesap silme ---- */
html[data-fs="small"] { zoom: .92; }
html[data-fs="large"] { zoom: 1.1; }
.settings-switch-row, .settings-perm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--mx-row-line, var(--c-separator)); }
.settings-switch-row span, .settings-perm-row div { display: flex; flex-direction: column; gap: 2px; }
.settings-switch-row small, .settings-perm-row small { color: var(--mx-secondary, var(--c-label-2)); font-size: 12.5px; }
.settings-switch-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--mx-ink, #1B1A17); flex: 0 0 auto; }
.settings-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; font-size: 13px; }
.settings-legal b { width: 100%; font-size: var(--t-footnote, 13px); color: var(--mx-secondary, var(--c-label-2)); }
.settings-legal a { color: var(--mx-link, #1F56B5); text-decoration: none; padding: 6px 0; }
.settings-legal a:hover { text-decoration: underline; }
.delete-account-zone .danger-text { color: var(--red, #C0322A); }
.delete-account-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.delete-account-zone[hidden], #deleteAccountConfirm[hidden], #deleteAccountStart[hidden] { display: none; }
#deleteAccountConfirm label { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: left; }

/* ---- Görev penceresi: geniş ekranda sağda tam boy, perde yok, içerik sola kayar ---- */
:root { --task-side-w: min(460px, 36vw); }
body.task-side-open .drawer { top: 12px; bottom: 12px; right: 12px; width: var(--task-side-w); border-radius: 22px; border: 1px solid var(--mx-edge); box-shadow: 0 18px 50px rgba(27, 26, 23, .16); }
body.task-side-push .app main { padding-right: calc(var(--task-side-w) + 24px); transition: padding-right .2s ease; }
body.task-side-push .mx-brand-aside { display: none; }
body.task-side-push .mx-list-layout, body.task-side-push .mx-board-layout { grid-template-columns: minmax(0, 1fr); }
body.task-side-open .drawer-head { height: 52px; padding: 0 16px; border-radius: 22px 22px 0 0; background: var(--mx-paper); }
.drawer .drawer-body { padding: 18px 20px 28px; }
.drawer .props { grid-template-columns: 1fr 1fr; gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; margin-top: 16px; }
.drawer .prop { background: var(--mx-chip); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.drawer .prop label { font-size: 11px; color: var(--mx-muted); margin-bottom: 2px; }
.drawer .prop select, .drawer .prop input { font-size: 13px; font-weight: 600; color: var(--mx-ink); width: 100%; }
.drawer .props-more { margin-top: 10px; }
.drawer .props-more > summary { cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--mx-secondary); padding: 6px 2px; }
.drawer .props-more > summary::-webkit-details-marker { display: none; }
.drawer .props-more > summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
.drawer .props-more[open] > summary::before { transform: rotate(90deg); }
.drawer .props-more > summary small { font-weight: 400; color: var(--mx-muted); margin-left: 6px; }
.drawer .props-more .props { margin-top: 4px; }
.drawer .prop { display: flex; flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 0; }
.drawer .prop select, .drawer .prop input[type="date"], .drawer .prop input[type="time"] { text-align: left; text-align-last: left; padding: 2px 0; background: transparent; border: 0; cursor: pointer; }
.drawer .prop .prop-extra { margin-top: 2px; }

/* ---- Kokpit düzenleme (iOS widget mantığı) ---- */
.mx-cockpit-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -6px 0 8px; min-height: 30px; }
.mx-cockpit-edit { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--mx-muted); cursor: pointer; }
.mx-cockpit-edit:hover { background: var(--mx-hover); color: var(--mx-ink); }
.mx-cockpit-bar.editing { position: sticky; top: 8px; z-index: 30; justify-content: flex-end; gap: 10px; padding: 6px 6px 6px 16px; margin: 0 0 14px auto; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--mx-paper); box-shadow: 0 8px 28px rgba(27,26,23,.14), 0 0 0 1px var(--mx-edge); }
.mx-cockpit-hint { font-size: 12.5px; color: var(--mx-secondary); }
.mx-cockpit-bar.editing .mx-soft-btn, .mx-cockpit-bar.editing .mx-btn { min-height: 32px; padding: 0 14px; border-radius: 999px; }
.mx-cockpit-bar.editing .mx-btn.primary { background: var(--mx-ink); color: var(--mx-on-ink); }
.mx-bento.editing > .mx-panel { cursor: grab; touch-action: none; user-select: none; border-radius: 22px; }
.mx-bento.editing > .mx-panel > :not(.mx-panel-remove):not(.mx-panel-gear):not(.mx-panel-resize):not(.mx-panel-size) { pointer-events: none; }
.mx-bento.editing > .mx-panel::after { content: ''; position: absolute; inset: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--mx-column-edge); pointer-events: none; }
.mx-bento.editing > .mx-panel:hover::after, .mx-bento.editing > .mx-panel:focus-visible::after { box-shadow: inset 0 0 0 2px var(--mx-blue); }
.mx-bento.editing > .mx-panel:focus-visible { outline: none; }
.mx-bento.editing > .mx-panel.dragging { z-index: 40; cursor: grabbing; transition: none !important; box-shadow: 0 24px 60px rgba(27,26,23,.28); scale: 1.02; }
.mx-bento.editing > .mx-panel.resizing::after { box-shadow: inset 0 0 0 2px var(--mx-blue); }
body.mx-cockpit-dragging { cursor: grabbing; }
.mx-panel-remove { position: absolute; top: -8px; left: -8px; z-index: 6; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--mx-paper); color: var(--mx-ink); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(27,26,23,.25), 0 0 0 1px var(--mx-edge); display: grid; place-items: center; }
.mx-panel-remove:hover { background: var(--mx-red); color: #fff; }
.mx-panel-gear { position: absolute; top: 10px; right: 10px; z-index: 6; width: 28px; height: 28px; border-radius: 9px; border: 0; background: var(--mx-chip); color: var(--mx-ink); cursor: pointer; display: grid; place-items: center; }
.mx-panel-size { position: absolute; right: 30px; bottom: 10px; z-index: 6; font-size: 11px; font-weight: 600; color: var(--mx-muted); opacity: 0; transition: opacity .15s; }
.mx-bento.editing > .mx-panel:hover .mx-panel-size, .mx-panel.resizing .mx-panel-size { opacity: 1; }
.mx-panel-resize { position: absolute; right: 4px; bottom: 4px; z-index: 6; width: 22px; height: 22px; cursor: nwse-resize; border-radius: 0 0 18px 0; }
.mx-panel-resize::before { content: ''; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-right: 2px solid var(--mx-faint); border-bottom: 2px solid var(--mx-faint); border-radius: 0 0 4px 0; }
.mx-panel-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--mx-column-edge); }
.mx-tray-label { width: 100%; font-size: 12px; font-weight: 600; color: var(--mx-muted); }
.mx-tray-item { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--mx-paper); color: var(--mx-ink); font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 0 0 1px var(--mx-edge); }
.mx-tray-item b { color: var(--mx-blue); font-size: 16px; }
.mx-tray-item:hover { box-shadow: 0 0 0 1px var(--mx-blue); }
@media (prefers-reduced-motion: reduce) { .mx-bento.editing > .mx-panel { transition: none !important; } }
@media (max-width: 760px) { .mx-cockpit-hint { display: none; } .mx-panel-resize, .mx-panel-size { display: none; } }

/* ---- Sadeleştirme: gecikmiş bağlantısı, ayıklama penceresi, sessiz durum etiketi, tek sayfa ayarlar ---- */
.mx-late-link { border: 0; background: none; padding: 0; font: inherit; color: var(--mx-red); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--mx-red) 40%, transparent); text-underline-offset: 3px; }
.mx-late-link:hover { text-decoration-color: currentColor; }
.modal-card.mx-triage-modal { width: min(560px, 100%); }
.mx-triage-modal .mx-triage { margin: 8px 0 4px; }
.mx-triage-modal .mx-triage-card { box-shadow: 0 0 0 1px var(--mx-edge); }
.mx-triage-modal .mx-triage-ok { margin: 8px 0 0; }
.mx-status { background: none !important; padding: 0 !important; height: auto; gap: 5px; font-weight: 500; font-size: 11.5px; }
.mx-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.mx-status.progress { color: var(--mx-blue); }
.mx-status.review, .mx-status.approval { color: var(--mx-orange); }
.settings-group-title { margin: 22px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mx-muted); }
.settings-switch-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--mx-column-edge); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.settings-switch-row input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.settings-switch-row input[type="checkbox"]:checked { background: var(--mx-green); }
.settings-switch-row input[type="checkbox"]:checked::after { transform: translateX(16px); }
.settings-switch-row input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
:root { --task-side-w: min(440px, 34vw); }
body.task-side-push .mx-brand-name { font-size: clamp(28px, 2.6vw, 52px); }
.settings-switch-row .sw-text, .settings-perm-row .sw-text { display: flex !important; flex-direction: column; gap: 2px; min-width: 0; }
.settings-switch-row .sw-text b, .settings-perm-row .sw-text b { font-size: 14px; font-weight: 600; color: var(--mx-ink); }
.settings-switch-row .sw-text small, .settings-perm-row .sw-text small { font-size: 12.5px; font-weight: 400; color: var(--mx-secondary); }
.settings-group-title + .theme-settings-row, .settings-group-title + div > .settings-perm-row { border-top: 0; padding-top: 6px; }
.mx-cockpit-bar.editing .mx-soft-btn { background: var(--mx-chip); color: var(--mx-ink); }
.mx-triage-actions .mx-btn.done { color: var(--mx-green-text); font-weight: 700; }

/* ==========================================================================
   Panel içi uyum: her Kokpit paneli kendi genişlik/yüksekliğine göre düzenini değiştirir (container query).
   Masaüstünde paneller sabit satır yüksekliğinde olduğundan hem en hem boy sorgulanır; dar ekranda yalnız en.
   ========================================================================== */
.mx-bento > .mx-panel { container: panel / inline-size; }
@media (min-width: 1181px) { .mx-bento > .mx-panel { container: panel / size; } }
.mx-bento > .mx-panel > * { overflow: hidden; }

/* Gün özeti */
.mx-hero-title { font-size: clamp(26px, 6cqw, 46px); }
.mx-hero-day { font-size: clamp(140px, 30cqw, 260px); }
.mx-hero-foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container panel (max-width: 520px) { .mx-hero-day { display: none; } .mx-hero { padding: 18px 20px; } }
@container panel (max-width: 420px) {
  .mx-hero-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .mx-hero-foot { white-space: normal; }
}

/* Şimdi odaklan */
.mx-focus-title { font-size: clamp(19px, 5.4cqw, 34px); }
@container panel (max-width: 460px) {
  .mx-focus { padding: 18px; gap: 10px; }
  .mx-focus-main { gap: 14px; }
  .mx-focus-timer { width: 68px; height: 68px; }
  .mx-focus-timer .mx-ring { width: 68px !important; height: 68px !important; }
  .mx-focus-clock b { font-size: 18px; }
  .mx-focus-actions { flex-wrap: wrap; }
  .mx-focus-btn.primary { flex: 1 1 100%; }
  .mx-focus-btn:not(.primary) { flex: 1; }
}
@container panel (max-width: 320px) {
  .mx-focus-timer, .mx-focus-sub, .mx-focus-brand { display: none; }
}
@container panel (max-height: 200px) { .mx-focus-sub { display: none; } .mx-focus { padding-top: 14px; padding-bottom: 14px; } }

/* Bugünün akışı */
@container panel (max-width: 560px) {
  .mx-flow { padding: 16px 18px; }
  .mx-flow-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .mx-quick { width: auto; }
  .mx-flow .mx-row .mx-meta:not(.mx-row-project) { display: none; }
}
@container panel (max-width: 400px) {
  .mx-flow .mx-status { font-size: 0; gap: 0; }
  .mx-flow .mx-status i { width: 8px; height: 8px; }
}

/* Markalar: genişliğe göre sütun sayısı kendiliğinden, yüksekliğe göre daha çok marka */
.mx-brands { overflow: hidden; }
.mx-ring-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: min-content; overflow: hidden; min-height: 0; }
.mx-ring-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container panel (max-width: 300px) {
  .mx-ring-grid { grid-template-columns: 1fr; }
  .mx-brands .mx-head small, .mx-brands .mx-muted-link { display: none; }
}
@container panel (max-height: 180px) { .mx-ring-text small { display: none; } }

/* Bu hafta */
@container panel (max-width: 320px) {
  .mx-bars { gap: 5px; }
  .mx-bar-n { display: none; }
  .mx-week .mx-head small { display: none; }
}
@container panel (max-height: 190px) { .mx-bar-n { display: none; } }

/* Bana atananlar ve Son işlemler: büyüdükçe daha çok satır, daralınca ikincil bilgi gizlenir */
.mx-assigned, .mx-activity { overflow: hidden; }
@container panel (max-width: 420px) {
  .mx-assigned-text small { display: none; }
  .mx-assigned-row .mx-avatar, .mx-assigned-row > .project-logo { transform: scale(.85); }
  .mx-act-text span { display: none; }
}
@container panel (max-width: 300px) { .mx-assigned-row .mx-due { display: none; } .mx-timeline-row small { display: none; } }

/* Saat: boyuta göre büyüyen rakamlar; alçakta tek satır */
.mx-clock-time { font-size: clamp(26px, min(24cqw, 40cqh), 110px); white-space: nowrap; }
.mx-clock { overflow: hidden; }
@container panel (max-height: 190px) { .mx-clock .mx-eyebrow { display: none; } }
@container panel (max-height: 120px) {
  .mx-clock { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 18px; }
  .mx-clock-date { display: none; }
}
@container panel (max-width: 200px) { .mx-clock-date { font-size: 11px; } .mx-clock-zone span { display: none; } }

/* Hava durumu: dar → yalnız anlık; geniş → anlık solda, günler sağda */
@container panel (max-width: 300px) { .mx-weather-txt small { display: none; } .mx-weather-now > b { font-size: 36px; } }
@container panel (max-height: 200px) { .mx-weather-days { display: none; } }
@container panel (min-width: 520px) {
  .mx-weather { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 24px; align-items: center; }
  .mx-weather > .mx-eyebrow { grid-column: 1 / -1; }
  .mx-weather-days { margin-top: 0; }
}
/* Uzun / büyük odak paneli: boşluk dağılmasın, zamanlayıcı ve başlık büyüsün */
@container panel (min-height: 300px) and (min-width: 420px) {
  .mx-focus { justify-content: center; gap: 26px; }
  .mx-focus-head { position: absolute; top: 22px; left: 24px; right: 24px; }
  .mx-focus { position: relative; padding-top: 56px; }
  .mx-focus-timer { width: 128px; height: 128px; }
  .mx-focus-timer .mx-ring { width: 128px !important; height: 128px !important; }
  .mx-focus-clock b { font-size: 32px; }
  .mx-focus-title { font-size: clamp(24px, 6cqw, 40px); -webkit-line-clamp: 3; }
  .mx-focus-btn { height: 46px; }
}

/* ---- Kokpit akışı: kaydırarak tamamla / yarına ertele ---- */
.mx-swipe { position: relative; border-radius: 10px; overflow: hidden; touch-action: pan-y; overscroll-behavior-x: none; }
/* Trackpad'de yatay kaydırma tarayıcının "geri git" hareketini tetiklemesin. */
html, body { overscroll-behavior-x: none; }
.mx-swipe > .mx-row { position: relative; z-index: 1; background: var(--mx-paper); will-change: transform; }
.mx-swipe > .mx-row.focus { background: var(--mx-blue-soft); }
.mx-swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .1s; }
.mx-swipe-bg span { display: inline-flex; align-items: center; gap: 6px; opacity: .75; transition: transform .15s, opacity .15s; }
.mx-swipe-bg .r { margin-left: auto; }
.mx-swipe.dir-right .mx-swipe-bg { opacity: 1; background: var(--mx-green); }
.mx-swipe.dir-left .mx-swipe-bg { opacity: 1; background: var(--mx-blue); }
.mx-swipe.dir-right .mx-swipe-bg .r, .mx-swipe.dir-left .mx-swipe-bg .l { visibility: hidden; }
.mx-swipe.armed .mx-swipe-bg span { opacity: 1; transform: scale(1.06); }
.mx-swipe.swiping { cursor: grabbing; user-select: none; }
.mx-swipe.leaving { transition: max-height .2s .15s ease, opacity .2s .15s; }

/* ---- FlowTask Pro: deneme/abonelik şeridi ve penceresi ---- */
.mx-access-banner { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #2966DB; color: #fff; font-size: 13px; font-weight: 600; }
.mx-access-banner.expired { background: #C72129; }
.mx-access-banner span { flex: 1; min-width: 0; }
.mx-access-banner button { border: 0; border-radius: 999px; padding: 6px 14px; background: rgba(255,255,255,.22); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mx-access-banner button:hover { background: rgba(255,255,255,.32); }
.mx-pro-card { max-width: 460px; }
.mx-pro-body { display: grid; gap: 14px; padding: 4px 2px 6px; }
.mx-pro-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--mx-ink); font-size: 14px; }
.mx-pro-how { margin: 0; font-size: 13.5px; color: var(--mx-secondary, var(--mx-muted)); line-height: 1.5; }
.mx-pro-how b { color: var(--mx-ink); font-weight: 600; }
.mx-pro-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--mx-muted); }
.mx-pro-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-pro-note { font-size: 13px; color: var(--mx-muted); }

/* Abone olmayan kullanıcıda logonun yanında "Free" */
.mx-free-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .7; font: 700 10.5px/1.2 Geist, Inter, system-ui, sans-serif; letter-spacing: .04em; vertical-align: middle; cursor: pointer; }
.mx-free-badge:hover { opacity: 1; }

/* Telefon: üst çubukta menü düğmesinin yanında logo (+ Free) */
.mx-mobile-brand { display: none; }
@media (max-width: 600px) {
  .topbar .mx-mobile-brand { display: inline-flex; align-items: center; position: absolute; left: 52px; bottom: 14px; font-family: var(--mx-serif); font-size: 20px; font-weight: 600; color: var(--mx-ink); letter-spacing: -.2px; }
}

/* Abone hesap: logo yanında aynı yazı tipinde "Pro" + onay rozeti */
.mx-pro-mark { display: inline-flex; align-items: center; gap: .22em; margin-left: .26em; font: inherit; color: inherit; white-space: nowrap; }
.mx-pro-seal { width: .66em; height: .66em; color: currentColor; --mx-seal-check: var(--mx-sidebar, #141414); }
.topbar .mx-pro-seal { --mx-seal-check: var(--mx-paper, #fff); }
#workspaceName { white-space: nowrap; }

/* Kupon kodu (Pro penceresi) ve Süper Admin › Kuponlar */
.mx-pro-coupon { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--mx-line, rgba(0,0,0,.08)); }
.mx-pro-coupon label { font-size: 13px; font-weight: 600; color: var(--mx-ink); }
.mx-pro-coupon > div { display: flex; gap: 8px; }
.mx-pro-coupon input { flex: 1; min-width: 0; text-transform: none; }
.mx-pro-coupon small { font-size: 12.5px; color: var(--mx-muted); min-height: 1em; }
.mx-pro-coupon small.error { color: var(--mx-red, #C72129); }
.admin-promo-new { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr auto; gap: 10px; align-items: end; margin: 8px 0 16px; }
.admin-promo-list { display: grid; gap: 12px; }
.admin-promo { border: 1px solid var(--mx-line, rgba(0,0,0,.1)); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.admin-promo-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.admin-promo-head small { display: block; color: var(--mx-muted); font-size: 12px; }
.admin-promo-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.admin-promo-count { font-size: 12.5px; font-weight: 600; color: var(--mx-green, #2E7D32); white-space: nowrap; }
.admin-promo-count.full { color: var(--mx-red, #C72129); }
.admin-promo-edit { display: grid; grid-template-columns: 140px auto 1fr auto; gap: 10px; align-items: end; }
.admin-promo-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding-bottom: 8px; }
.admin-promo-users { display: grid; gap: 6px; }
.admin-promo-user { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.admin-promo-user small { display: block; color: var(--mx-muted); font-size: 11.5px; }
@media (max-width: 700px) { .admin-promo-new, .admin-promo-edit { grid-template-columns: 1fr; } }
