/* DÖGM Merhale — turkuaz, koyu füme ve gold kurumsal paleti.
   Durum renkleri panodaki iş anlamlarını korur. */
:root {
  --teal: #0ba8a7;
  --teal-ink: #087b7a;
  --teal-soft: rgba(11, 168, 167, .11);
  --slate: #304957;
  --navy: var(--slate);
  --navy-2: #3d5e6b;
  --gold: #c5a253;
  --gold-2: #8a6925;
  --gold-soft: rgba(197, 162, 83, .14);
  --primary-bg: #087b7a;
  --primary-fg: #ffffff;
  --primary-hover: #066968;
  --bg: #f1f6f6;
  --surface: #ffffff;
  --surface-2: #f6f9f9;
  --surface-3: #e7efef;
  --col-bg: #e3eded;
  --col-btn: #d2e3e3;
  --col-btn-hover: #bfd6d6;
  --seg-on: #d2e3e3;
  --hover: rgba(48, 73, 87, .055);
  --text: #304957;
  --text-2: #435d68;
  --muted: #607781;
  --faint: #8ca1a7;
  --border: #dce7e8;
  --border-2: #bfd2d5;
  --link: #087b7a;
  --heat-0: #e3eded;
  --today-a: #ffffff;
  --today-b: #edf7f5;
  --header-bg: linear-gradient(105deg, #263d49 0%, #304957 58%, #236969 100%);
  --auth-bg: radial-gradient(900px 600px at 12% 12%, rgba(11, 168, 167, .14), transparent 65%), radial-gradient(800px 600px at 90% 90%, rgba(197, 162, 83, .13), transparent 65%), linear-gradient(135deg, #e6f0ef, #f6f8f5);
  --c-new: #fbbf24;
  --c-progress: #2dd4bf;
  --c-test: #64748b;
  --c-end: #f87171;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --red-chip-bg: #fee2e2;
  --red-chip-fg: #b91c1c;
  --ok: #16a34a;
  --focus: #0ba8a7;
  --focus-ring: 0 0 0 3px rgba(11, 168, 167, .23);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(48, 73, 87, .06), 0 1px 3px rgba(48, 73, 87, .08);
  --shadow-hover: 0 10px 24px -8px rgba(48, 73, 87, .22);
  --shadow-lg: 0 24px 60px -12px rgba(48, 73, 87, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --side-w: 236px;
  color-scheme: light;
}
[data-theme="dark"] {
  --teal-ink: #55d4ce;
  --teal-soft: rgba(11, 168, 167, .16);
  --gold: #d1b062;
  --gold-2: #dcc07e;
  --gold-soft: rgba(209, 176, 98, .14);
  --primary-bg: #0ba8a7;
  --primary-fg: #102b32;
  --primary-hover: #39c0bb;
  --bg: #15252d;
  --surface: #20343e;
  --surface-2: #263e49;
  --surface-3: #304957;
  --col-bg: #1a2d36;
  --col-btn: #304c58;
  --col-btn-hover: #3b5c68;
  --seg-on: #365765;
  --hover: rgba(255, 255, 255, .055);
  --text: #ecf4f3;
  --text-2: #c9dada;
  --muted: #9ab5b9;
  --faint: #78959e;
  --border: #344f5b;
  --border-2: #486b76;
  --link: #55d4ce;
  --heat-0: #304957;
  --today-a: #20343e;
  --today-b: #274a4d;
  --header-bg: linear-gradient(105deg, #13252e 0%, #263e49 58%, #205959 100%);
  --auth-bg: radial-gradient(900px 600px at 12% 12%, rgba(11, 168, 167, .17), transparent 65%), radial-gradient(800px 600px at 90% 90%, rgba(209, 176, 98, .08), transparent 65%), linear-gradient(135deg, #14272e, #20343e);
  --danger-bg: rgba(239, 68, 68, .14);
  --red-chip-bg: rgba(239, 68, 68, .18);
  --red-chip-fg: #fca5a5;
  --focus-ring: 0 0 0 3px rgba(11, 168, 167, .32);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
  --shadow-hover: 0 12px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
.department-name { padding: 10px 12px; background: var(--teal-soft); border-left: 3px solid var(--teal); border-radius: 8px; color: var(--text); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* tema değişirken renkler yumuşak geçsin (yalnız geçiş anında) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), fill .35s, box-shadow .35s !important;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg { display: block; }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.sm .ico, .ico.sm { width: 16px; height: 16px; }
[hidden] { display: none !important; }
::selection { background: var(--teal-soft); }

/* ------------------------------------------------------------- Kabuk */
.app-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 40;
  background: var(--header-bg); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
/* altın kıl çizgi: kurumsal imza, abartısız */
.app-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 18%, var(--gold) 82%, transparent 100%); opacity: .55;
}
.app-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 19px; letter-spacing: -.2px; min-width: 0; }
.app-header .brand-logo { height: 42px; width: auto; display: block; flex: none; }
/* Koyu temada kurum amblemi ve logo yazıları beyaz görünür. */
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .auth-vlogo { filter: brightness(0) invert(1); }
.app-header .brand-sep { width: 1px; height: 34px; background: linear-gradient(transparent, rgba(197, 162, 83, .7), transparent); flex: none; }
.app-header .brand-name { white-space: nowrap; font-weight: 400; }
.app-header .brand b { font-weight: 700; color: var(--gold); }
@media (max-width: 760px) { .app-header .brand-sep, .app-header .brand-name { display: none; } .app-header .brand-logo { height: 34px; } }
@media (max-width: 400px) { .app-header .brand-logo { height: 28px; } }
.app-header .spacer { flex: 1; }
.hbtn {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hbtn:hover { background: rgba(255, 255, 255, .09); }
.hbtn:active { transform: scale(.94); }
.hbtn.bell { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hbtn.bell:hover { background: rgba(255, 255, 255, .14); }
.hbtn .badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #304957; animation: badge-in .35s var(--ease);
}
@keyframes badge-in { from { transform: scale(.4); opacity: 0; } }

/* tema anahtarı: güneş ↔ ay */
.theme-btn .ico { position: absolute; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.theme-btn .i-sun { color: var(--gold); }
:root:not([data-theme="dark"]) .theme-btn .i-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-btn .i-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
.theme-btn.float { position: fixed; top: 16px; right: 16px; z-index: 5; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 24px; transition: background .2s var(--ease); }
.user-btn:hover { background: rgba(255, 255, 255, .07); }
.user-btn .name { font-weight: 500; font-size: 13px; }
.user-btn .avatar { background: #fff; color: #304957; width: 40px; height: 40px; font-size: 12px; border-color: rgba(197, 162, 83, .85); }
.user-btn .chev { width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.sidebar {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--side-w); z-index: 30;
  background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; overflow-y: auto;
  transition: transform .28s var(--ease);
}
.sidebar h6 { margin: 18px 10px 8px; font-size: 11px; letter-spacing: .08em; color: var(--faint); font-weight: 500; text-transform: uppercase; }
.sidebar h6:first-child { margin-top: 4px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none;
  color: var(--text-2); font-size: 13.5px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: var(--hover); }
.nav-link.active { background: var(--teal-soft); color: var(--text); font-weight: 500; }
.nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal);
  animation: grow-y .3s var(--ease);
}
@keyframes grow-y { from { transform: scaleY(0); } }
.nav-link .ico { color: var(--muted); width: 18px; height: 18px; }
.nav-link.active .ico { color: var(--teal-ink); }
.nav-link .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.nav-link .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-link .star { color: var(--gold); width: 15px; height: 15px; }
.ws-nav-row { position: relative; display: flex; align-items: center; border-radius: 8px; }
.ws-nav-row .nav-link { flex: 1; min-width: 0; width: auto; }
.ws-nav-row:hover { background: var(--hover); }
.ws-nav-row.active { background: var(--teal-soft); }
.ws-nav-row.active .nav-link { color: var(--text); font-weight: 500; }
.ws-nav-row.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.ws-nav-options { flex: none; margin-right: 4px; width: 30px; height: 30px; color: var(--muted); }
.department-selector { width: 100%; margin-bottom: 12px; text-overflow: ellipsis; font-size: 12px; }
.side-scrim { display: none; }

.main { padding: calc(var(--header-h) + 20px) 20px 24px calc(var(--side-w) + 20px); min-height: 100%; display: flex; flex-direction: column; transition: padding .28s var(--ease); }
body.side-collapsed .sidebar { transform: translateX(-100%); }
body.side-collapsed .main { padding-left: 20px; }
.footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 28px 0 4px; margin-top: auto; }
/* sayfa geçişi: kısa yukarı kayma + belirme */
.view-enter { animation: view-in .32s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-scrim { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(21, 37, 45, .45); z-index: 25; animation: fade .2s; }
  .main { padding: calc(var(--header-h) + 14px) 12px 20px 12px; }
  body.side-collapsed .main { padding-left: 12px; }
  .user-btn .name { display: none; }
}

/* ------------------------------------------------------------- Ortak */
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .grow { flex: 1; min-width: 220px; }
.page-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.page-sub { color: var(--muted); margin: 2px 0 0; font-size: 13px; }
.ws-title { font-size: 17px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.ws-title-bar { height: 5px; border-radius: 3px; margin-top: 6px; transform-origin: left; animation: bar-in .6s var(--ease); }
@keyframes bar-in { from { transform: scaleX(0); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 4px; font-size: 15px; }
.panel .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 14px; }
.count-pill { color: var(--muted); font-weight: 500; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13px;
  white-space: nowrap; text-decoration: none; color: var(--text);
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .hbtn:focus-visible, .nav-link:focus-visible, .tabs button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 6px 16px -8px rgba(48, 73, 87, .55); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 36px; padding: 0; }
.btn.lg { height: 44px; width: 44px; border-radius: 10px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.icon.sm { width: 30px; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); display: inline-flex; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-bg); }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.input, .select, textarea.input {
  height: 38px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 11px; background: var(--surface); color: var(--text); width: 100%; outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea.input { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--focus); box-shadow: var(--focus-ring); }
.input::placeholder { color: var(--faint); }
.input.err { border-color: var(--danger); }
.err-text { color: var(--danger); font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; font-size: 13px; white-space: nowrap; }
.check input { width: 16px; height: 16px; accent-color: var(--primary-bg); margin: 0; }

.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--border-2); border-radius: 11px; transition: background .25s var(--ease); cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); box-shadow: var(--shadow); }
.switch input:checked + span { background: var(--primary-bg); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.switch.red input:checked + span { background: var(--danger); }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.setting-row:first-of-type { border-top: 0; }
.setting-row .txt { flex: 1; }
.setting-row .txt b { display: block; font-weight: 500; }
.setting-row .txt small { color: var(--muted); }

.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--border-2); background: var(--surface); border-radius: 16px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; transition: background .18s, border-color .18s; }
.seg button.on { background: var(--seg-on); border-color: var(--seg-on); font-weight: 500; }
.seg button:disabled { cursor: not-allowed; opacity: .6; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex: none; border: 2px solid var(--surface); overflow: hidden; letter-spacing: -.3px;
}
.avatar.s3 { font-size: 9.5px; letter-spacing: -.5px; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; background: var(--surface-3); color: var(--muted); border-radius: 10px; font-size: 12px; }
.chip.red { background: var(--red-chip-bg); color: var(--red-chip-fg); }
.chip.dark { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1px rgba(197, 162, 83, .5); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--surface-3); font-size: 12.5px; }
.tag button { border: 0; background: none; cursor: pointer; padding: 0 4px; color: var(--muted); font-size: 15px; line-height: 1; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click td { transition: background .15s; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.rel { color: var(--faint); font-size: 12px; display: block; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-2); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s var(--ease), border-color .3s var(--ease); }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--teal-ink); border-color: var(--teal); }
.tabs .n { color: var(--faint); font-weight: 400; margin-left: 2px; }

/* ------------------------------------------------------------ Anasayfa */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ws-card {
  background: var(--surface); border-radius: 12px; border: 1px solid var(--border); padding: 16px 16px 14px; cursor: pointer; position: relative;
  box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); text-decoration: none; display: block;
}
.ws-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(197, 162, 83, .45); }
.ws-card .bar { height: 5px; border-radius: 3px; width: 64px; margin-bottom: 12px; transition: width .35s var(--ease); }
.ws-card:hover .bar { width: 96px; }
.ws-card h4 { margin: 0 34px 10px 0; font-size: 14px; text-transform: uppercase; line-height: 1.35; }
.ws-card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.ws-card .fav { position: absolute; top: 10px; right: 10px; }
.ws-card .fav.on { color: var(--gold); }
.ws-card-content { display: block; color: inherit; text-decoration: none; }
.ws-card.has-options .fav { right: 44px; }
.ws-card.has-options h4 { margin-right: 68px; }
.ws-card-options { position: absolute; top: 10px; right: 10px; }
.dist { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.dist span { display: block; height: 100%; }
.section-title { font-size: 15px; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .ico { color: var(--gold); }
.section-title:first-child { margin-top: 0; }

/* -------------------------------------------------------------- Pano */
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.board-tools .search { position: relative; width: 220px; }
.board-tools .search .ico { position: absolute; left: 10px; top: 9px; color: var(--muted); width: 18px; height: 18px; }
.board-tools .search input { padding-left: 34px; }
.board-tools .usel { width: 200px; }
.progress {
  display: flex; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface-3); margin-bottom: 12px;
}
.progress span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 700; min-width: 0; overflow: hidden; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); transition: width .5s var(--ease); }
.board { display: flex; gap: 16px; overflow-x: auto; align-items: flex-start; padding-bottom: 10px; flex: 1; min-height: 0; }
.column {
  flex: 0 0 320px; background: var(--col-bg); border-radius: 12px; padding: 10px; display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 190px); min-height: 160px;
}
.col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.col-pill { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; border-radius: 12px; padding: 0 10px; color: #fff; font-weight: 700; font-size: 16px; }
.col-pill .num { background: #fff; color: #304957; border-radius: 8px; min-width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; padding: 0 6px; }
.col-head .btn { background: var(--col-btn); border: 0; height: 40px; width: 40px; border-radius: 10px; color: var(--text-2); }
.col-head .btn:hover { background: var(--col-btn-hover); }
.col-body { overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 12px; padding: 6px; min-height: 60px; flex: 1; border-radius: 8px; transition: background .2s; }
.col-body.drop { background: var(--gold-soft); outline: 2px dashed rgba(197, 162, 83, .6); }
.card {
  background: var(--surface); border-radius: 10px; padding: 14px 14px 12px; box-shadow: var(--shadow); cursor: pointer; position: relative;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(4px); } }
.card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card.dragging { opacity: .45; transform: rotate(-1.5deg) scale(.98); }
.card.ghost-gap { margin-top: 26px; }
.card .top { display: flex; align-items: center; gap: 6px; }
.card .top .grow { display: flex; gap: 6px; flex-wrap: wrap; }
.card .title { margin: 10px 0 12px; padding-left: 9px; border-left: 4px solid var(--c-new); font-size: 15px; color: var(--text); line-height: 1.4; word-break: break-word; font-weight: 500; }
.card.seen .title { color: var(--muted); font-weight: 400; }
.card .bottom { display: flex; align-items: center; gap: 8px; }
.card .id { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 13px; }
.card .meta-ic { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); font-size: 12px; }
.card .urgent-flag { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px var(--surface); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 3px rgba(239, 68, 68, .35); } 50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px rgba(239, 68, 68, 0); } }
.card .menu-btn { margin: -6px -6px -6px 0; }
.card.readonly { cursor: pointer; }
.drop-marker { height: 4px; border-radius: 2px; background: var(--gold); margin: -8px 0; }

@media (max-width: 700px) {
  .column { flex-basis: 86vw; max-height: none; }
  .board-tools .search, .board-tools .usel { width: 100%; }
  .board-tools.collapsed { display: none; }
}

/* ------------------------------------------------------------ Modal */
.modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(21, 37, 45, .55); backdrop-filter: blur(2px); animation: fade .2s; }
.modal {
  position: relative; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .24s var(--ease); border: 1px solid var(--border);
}
.modal.wide { max-width: 860px; }
.modal.mid { max-width: 640px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 10px; }
.modal-head h3 { margin: 0; font-size: 18px; flex: 1; }
.modal-body { padding: 6px 20px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border); }
.close-x { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-fg); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; transition: transform .25s var(--ease); }
.close-x:hover { transform: rotate(90deg); }
.close-x .ico { width: 16px; height: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.confirm-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.confirm-body { text-align: center; }
.confirm-body h3 { margin: 0 0 6px; }

/* -------------------------------------------------------- İş detayı */
.wm-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 8px; }
.wm-id { font-weight: 700; font-style: italic; font-size: 17px; color: var(--gold-2); }
.status-select { height: 30px; border: 1px solid var(--border-2); border-radius: 7px; padding: 0 8px; background: var(--surface); font-size: 14px; color: var(--text-2); cursor: pointer; }
.wm-body { padding: 4px 22px 16px; overflow-y: auto; }
.wm-title { display: flex; align-items: center; gap: 6px; margin: 6px 0 14px 16px; }
.wm-title h2 { margin: 0; font-size: 17px; font-weight: 700; border-bottom: 2px dotted var(--text-2); line-height: 1.35; word-break: break-word; }
.wm-title input { font-size: 16px; font-weight: 600; }
.wm-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.wm-tools .users-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 0; }
.wm-tools .users-btn .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.wm-tools .users-btn span.t { border-bottom: 2px dotted var(--text-2); font-size: 15px; }
.wm-tools .urgent { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 15px; margin-left: 6px; }
.wm-dates { color: var(--muted); font-size: 12.5px; margin: -6px 0 12px 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.box { border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; position: relative; margin-bottom: 8px; }
.box .edit-btn { position: absolute; top: 10px; right: 10px; }
.content-view { font-size: 15.5px; line-height: 1.6; color: var(--text-2); word-break: break-word; padding-right: 80px; }
.content-view.clamp { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.content-view:empty::before { content: "İçerik eklenmemiş."; color: var(--faint); font-style: italic; }
.counter { text-align: right; color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.counter.over { color: var(--danger); font-weight: 700; }
.box h4 { margin: 0 0 12px; font-size: 15px; }
.acc { border: 1px solid var(--border); border-radius: 6px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; font-size: 15px; }
.acc-body { padding: 4px 20px 20px; }
.dropzone {
  border: 2px dashed var(--border-2); border-radius: 6px; background: var(--surface-2); text-align: center; padding: 18px 14px; color: var(--muted);
  font-size: 13.5px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: var(--gold-soft); }
.dropzone .ico { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--text-2); transition: transform .3s var(--ease); }
.dropzone:hover .ico { transform: translateY(-3px); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.file-item .fi { width: 36px; height: 36px; border-radius: 6px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--text-2); text-transform: uppercase; flex: none; overflow: hidden; }
.file-item .fi img { width: 100%; height: 100%; object-fit: cover; }
.file-item .nm { flex: 1; min-width: 0; }
.file-item .nm b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .nm small { color: var(--muted); }
.pending { font-size: 12.5px; color: var(--muted); }
.privacy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.privacy-row b { font-size: 15px; }
.comments { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
.comments h4 { margin: 0 0 12px; font-size: 17px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment .bubble { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.comment .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.comment .who b { color: var(--text); font-weight: 500; }
.comment .ct { margin-top: 4px; word-break: break-word; }
.comment .ct p { margin: 0 0 4px; }
.wm-foot { display: flex; align-items: center; gap: 4px; padding: 10px 22px 14px; border-top: 1px solid var(--border); }
.wm-foot .icon-btn .ico { width: 24px; height: 24px; }

.log-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.log-item .n { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); flex: none; }
.log-item .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.log-item .chips span { border: 1px solid var(--border-2); border-radius: 14px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
.log-item .d { font-style: italic; color: var(--text-2); margin-top: 3px; font-size: 13.5px; }

/* --------------------------------------------------------- Editör */
.rte { border: 1px solid var(--border-2); border-radius: 8px; background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.rte:focus-within { border-color: var(--focus); box-shadow: var(--focus-ring); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: 8px 8px 0 0; position: sticky; top: 0; z-index: 2; }
.rte-bar button, .rte-bar select { height: 30px; min-width: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); padding: 0 6px; font-size: 13px; }
.rte-bar button:hover, .rte-bar select:hover { background: var(--surface-3); }
.rte-bar button.on { background: var(--seg-on); }
.rte-bar select option { background: var(--surface); color: var(--text); }
.rte-bar .sep { width: 1px; background: var(--border-2); margin: 4px 3px; }
.rte-bar .ico { width: 17px; height: 17px; }
.rte-area { min-height: 140px; max-height: 50vh; overflow-y: auto; padding: 12px 14px; outline: none; font-size: 15px; line-height: 1.6; }
.rte.compact .rte-area { min-height: 64px; }
.rte-area:empty::before { content: attr(data-ph); color: var(--faint); font-style: italic; pointer-events: none; }
.rich p { margin: 0 0 8px; }
.rich blockquote { margin: 6px 0; border-left: 4px solid var(--gold); padding: 2px 12px; color: var(--muted); }
.rich pre { background: #304957; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; border: 1px solid var(--border); }
.rich code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.rich pre code { background: none; padding: 0; }
.rich table { border-collapse: collapse; margin: 8px 0; width: 100%; }
.rich td, .rich th { border: 1px solid var(--border-2); padding: 6px 8px; min-width: 40px; }
.rich ul, .rich ol { padding-left: 24px; margin: 4px 0 8px; }
.rich h1 { font-size: 22px; margin: 8px 0; } .rich h2 { font-size: 19px; margin: 8px 0; } .rich h3 { font-size: 17px; margin: 6px 0; }
.rich a { color: var(--link); }
.pop {
  position: fixed; z-index: 200; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 190px; animation: pop .18s var(--ease);
}
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; color: var(--text-2); transition: background .15s; }
.pop .mi:hover { background: var(--hover); }
.pop .mi.danger { color: var(--danger); }
.pop .mi .ico { width: 17px; height: 17px; color: var(--muted); }
.pop .mi.on { font-weight: 700; }
.pop .mh { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.swatches { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; padding: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .1); cursor: pointer; transition: transform .15s var(--ease); }
.swatches button:hover { transform: scale(1.12); }

/* -------------------------------------------------- Kullanıcı seçici */
.picker-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--surface-2); }
.picker-item .nm { flex: 1; min-width: 0; }
.picker-item .nm small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.picker-item input { width: 17px; height: 17px; accent-color: var(--primary-bg); }
.selected-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* -------------------------------------------------------- Bildirim */
.notif-pop { width: 380px; max-width: calc(100vw - 20px); padding: 0; max-height: 70vh; display: flex; flex-direction: column; }
.notif-pop .nh { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-pop .nl { overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.notif:hover { background: var(--surface-2); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex: none; }
.notif.seen .dot { background: transparent; }
.notif.seen .m { color: var(--muted); }
.notif .m { font-size: 13.5px; }
.notif small { color: var(--faint); }

/* ------------------------------------------------------------ Takvim */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--border); }
.cal-tools .grp { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 3px; gap: 2px; }
.cal-tools .grp button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background .18s, box-shadow .18s; }
.cal-tools .grp button.on { background: var(--surface); box-shadow: var(--shadow); }
.cal-tools .ttl { flex: 1; text-align: center; font-weight: 700; font-size: 16px; min-width: 140px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { text-align: center; padding: 10px 4px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.cal-cell { min-height: 118px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px; cursor: pointer; min-width: 0; transition: background-color .15s; }
.cal-grid > :nth-child(7n) { border-right: 0; }
.cal-cell .dn { text-align: right; font-size: 17px; margin-bottom: 4px; }
.cal-cell.other .dn { color: var(--faint); }
.cal-cell.today { background: repeating-linear-gradient(135deg, var(--today-a), var(--today-a) 8px, var(--today-b) 8px, var(--today-b) 10px); }
.cal-cell.today .dn { font-weight: 700; color: var(--gold-2); }
.cal-cell:hover { background-color: var(--surface-2); }
.ev { display: block; font-size: 12px; padding: 2px 6px; border-radius: 4px; color: #fff; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 0; width: 100%; text-align: left; transition: filter .15s; }
.ev:hover { filter: brightness(.92); }
.ev.more { background: none; color: var(--muted); padding: 0 4px; }
.cal-week { display: grid; grid-template-columns: 60px repeat(7, minmax(0, 1fr)); }
.cal-week.day { grid-template-columns: 60px minmax(0, 1fr); }
.cal-week .hcell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px; text-align: center; font-size: 13px; }
.cal-week .hcell.today { font-weight: 700; color: var(--gold-2); }
.cal-week .allday { border-right: 1px solid var(--border); border-bottom: 2px solid var(--border-2); padding: 4px; min-height: 36px; }
.cal-week .time { font-size: 11px; color: var(--faint); text-align: right; padding: 2px 6px; border-right: 1px solid var(--border); height: 44px; }
.cal-week .slot { border-right: 1px solid var(--border); border-bottom: 1px solid var(--surface-2); height: 44px; padding: 1px 3px; cursor: pointer; }
.agenda .ag-day { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.agenda .ag-date { width: 120px; flex: none; font-weight: 700; }
.agenda .ag-date small { display: block; color: var(--muted); font-weight: 400; }
.agenda .ag-ev { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.agenda .ag-ev .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding: 10px 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 700px) { .cal-cell { min-height: 74px; padding: 3px; } .cal-cell .dn { font-size: 13px; } .ev { font-size: 10px; padding: 1px 3px; } }

/* ------------------------------------------------------------ Isı haritası */
.heat { display: flex; gap: 3px; overflow-x: auto; padding: 4px 0; }
.heat .wk { display: flex; flex-direction: column; gap: 3px; }
.heat .d { width: 13px; height: 13px; border-radius: 3px; background: var(--heat-0); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.heat-legend .d { width: 12px; height: 12px; border-radius: 3px; }
.heat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.heat-stats div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.heat-stats b { display: block; font-size: 18px; }
.heat-stats small { color: var(--muted); }

/* ------------------------------------------------------------ Giriş */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 20px; background: var(--auth-bg); }
/* kart dikeyde altın noktada: üst boşluk : alt boşluk = 1 : φ */
.auth-wrap::before { content: ""; flex: 1 1 0; }
.auth-wrap::after { content: ""; flex: 1.618 1 0; }
.auth-wrap > .auth-card { flex: none; }
.auth-card {
  position: relative; width: 100%; max-width: 400px; background: var(--surface); color: var(--text); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: pop .45s var(--ease);
}
/* kartın üstünde ince altın çizgi */
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent); }
.auth-card .logo { display: flex; flex-direction: column; align-items: center; }
/* Altın oran ölçeği: taban 16px → ad 26px (16φ), logo→ad 16px, ad→form 26px (16φ), üst boşluk 42px (26φ);
   logo genişliği ≈ içerik genişliği / φ² (344 × 0,382 ≈ 130px → yükseklik 168px, oran 0,774) */
.auth-card { padding-top: 42px; }
.auth-card .logo { gap: 16px; margin-bottom: 26px; }
.auth-card .auth-vlogo { height: 168px; width: auto; display: block; animation: logo-in .7s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.auth-card h1 { margin: 0; }
.auth-card h1.auth-name { font-size: 26px; font-weight: 400; letter-spacing: .2px; line-height: 1.15; color: var(--text); text-align: center; }
.auth-card h1.auth-name b { font-weight: 700; color: var(--gold-2); }
.auth-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.auth-card p.sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.auth-card .btn.primary { width: 100%; height: 44px; font-size: 14px; letter-spacing: .08em; margin-top: 6px; }
.auth-card .link { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; cursor: pointer; background: none; border: 0; width: 100%; transition: color .15s; }
.auth-card .link:hover { color: var(--gold-2); }
.auth-foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }
@media (max-height: 700px), (max-width: 400px) { .auth-card { padding-top: 26px; } .auth-card .auth-vlogo { height: 130px; } .auth-card .logo { gap: 10px; margin-bottom: 16px; } }
.pw-rules { list-style: none; padding: 0; margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.pw-rules li { transition: color .2s; }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { content: "● "; }

/* ------------------------------------------------------------ Bildirim kutusu */
/* Merhale: hareketli kurumsal karşılama ve ortak kayıt görünümü. */
.merhale-entry { min-height: 100svh; display: flex; align-items: center; padding: 36px; background: var(--auth-bg); }
.merhale-entry > .theme-btn.float { background: var(--slate); color: #fff; box-shadow: 0 2px 10px rgba(48, 73, 87, .18); }
.merhale-layout { width: min(1240px, 100%); margin: auto; display: grid; grid-template-columns: 1.12fr 1fr; border: 1px solid var(--border); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 80px rgba(48, 73, 87, .16); }
.merhale-hero { position: relative; min-width: 0; min-height: 690px; overflow: hidden; isolation: isolate; padding: 40px 44px 28px; display: flex; flex-direction: column; color: #f6f8fb; background: linear-gradient(145deg, #304957, #203a43 60%, #1c5b5b); }
.merhale-hero::after { content: ''; z-index: -1; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(#8eaabe .7px, transparent .7px); background-size: 24px 24px; mask-image: linear-gradient(transparent, #000); }
.merhale-glow { position: absolute; z-index: -1; width: 330px; height: 330px; border-radius: 50%; filter: blur(65px); opacity: .16; pointer-events: none; animation: merhale-drift 14s ease-in-out infinite alternate; }
.glow-one { background: var(--teal); top: 120px; right: -150px; }
.glow-two { background: #d1ad60; left: -130px; bottom: -130px; animation-delay: -7s; }
.merhale-institution { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.merhale-institution .brand-logo { display: block; height: 54px; max-width: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.merhale-institution > span { font-size: 10px; letter-spacing: .19em; color: #b2cccd; }
.merhale-story { flex: 1; padding-top: 48px; }
.merhale-eyebrow { font-size: 10px; letter-spacing: .15em; color: #e4c480; margin: 0 0 17px; }
.merhale-story h1 { margin: 0 0 25px; display: flex; align-items: baseline; gap: 12px; line-height: 1; letter-spacing: -.035em; }
.merhale-story h1 span { font-weight: 400; font-size: 25px; letter-spacing: .02em; color: #d0e1df; }
.merhale-story h1 strong { font-family: Georgia, serif; font-size: clamp(48px, 5.5vw, 76px); font-weight: 400; color: #e8c985; }
.merhale-story h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 16px; }
.merhale-description { max-width: 380px; font-size: 14px; line-height: 1.8; color: #bdd2d2; margin: 0; }
.merhale-scene { margin: 18px -12px 0; }
.merhale-scene svg { display: block; width: 100%; height: 200px; overflow: visible; }
.merhale-track { opacity: .45; }
.merhale-flow { animation: merhale-flow 9s linear infinite; opacity: .65; }
.merhale-orbit { transform-origin: 290px 160px; animation: merhale-orbit 26s ease-in-out infinite alternate; }
.merhale-node { transform-box: fill-box; transform-origin: center; animation: merhale-node 6s ease-in-out infinite; }
.merhale-node.n2 { animation-delay: -4.5s; }.merhale-node.n3 { animation-delay: -3s; }.merhale-node.n4 { animation-delay: -1.5s; }
.merhale-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bdd2d2; font-size: 11px; margin-top: 12px; }
.merhale-hero-foot > span { display: flex; align-items: center; gap: 7px; }
.merhale-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #e4c480; box-shadow: 0 0 10px #d6b66c; }
.merhale-motion { border: 1px solid rgba(178, 197, 212, .22); border-radius: 20px; padding: 7px 10px; font: inherit; background: transparent; color: #cbdedc; cursor: pointer; }
.merhale-motion:hover { border-color: #e4c480; color: #e4c480; }.merhale-motion:focus-visible { outline: 2px solid #e4c480; outline-offset: 3px; }
.motion-paused *, .motion-paused::after { animation-play-state: paused !important; }
.merhale-form-pane { display: flex; align-items: center; justify-content: center; padding: 48px; min-width: 0; background: var(--surface); }
.merhale-auth-card.auth-card { width: 100%; max-width: 390px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.merhale-auth-card::before { display: none; }
.merhale-form-heading { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .13em; color: var(--muted); margin-bottom: 35px; }
.merhale-form-mark { display: flex; padding: 10px; border-radius: 12px; color: var(--teal-ink); background: var(--teal-soft); }
.merhale-auth-card h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.03em; margin-bottom: 10px; }
.merhale-auth-card p.sub { font-size: 13.5px; line-height: 1.7; margin-bottom: 27px; }
.merhale-auth-card .input { min-height: 48px; border-radius: 10px; }
.merhale-auth-card .btn.primary { height: 49px; border-radius: 10px; letter-spacing: .04em; }
.merhale-auth-card .auth-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 10.5px; }
.merhale-selected-unit { color: var(--muted); background: var(--teal-soft); border-left: 2px solid var(--teal); padding: 10px 12px; border-radius: 5px; line-height: 1.6; font-size: 12px; margin: -4px 0 18px; overflow-wrap: anywhere; }
.merhale-entry.register .merhale-form-pane { padding-top: 32px; padding-bottom: 32px; }
.merhale-entry.register .merhale-form-heading { margin-bottom: 22px; }
@keyframes merhale-flow { to { stroke-dashoffset: -228; } }
@keyframes merhale-drift { to { transform: translate(50px, -40px) scale(1.15); } }
@keyframes merhale-node { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-5px); filter: drop-shadow(0 5px 8px rgba(200, 202, 168, .25)); } }
@keyframes merhale-orbit { to { transform: rotate(-12deg); } }
@media (max-width: 1000px) { .merhale-entry { padding: 22px; }.merhale-hero { padding: 32px 28px 24px; }.merhale-form-pane { padding: 36px 30px; }.merhale-hero-foot { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .merhale-entry { padding: 16px; align-items: flex-start; }.merhale-layout { grid-template-columns: 1fr; border-radius: 18px; }
  .merhale-hero { min-height: auto; padding: 25px 28px 22px; }.merhale-institution .brand-logo { height: 42px; }.merhale-institution > span { display: none; }
  .merhale-story { padding-top: 25px; }.merhale-eyebrow { font-size: 9px; }.merhale-story h1 { margin-bottom: 18px; }.merhale-story h1 strong { font-size: 52px; }.merhale-story h2 { font-size: 24px; }
  .merhale-description { display: none; }.merhale-scene { position: absolute; width: 240px; right: -45px; top: 110px; opacity: .25; pointer-events: none; }.merhale-hero-foot { margin-top: 22px; }
  .merhale-scene svg { height: auto; }
  .merhale-form-pane { padding: 32px 25px; }.merhale-form-heading { margin-bottom: 24px; }.merhale-auth-card h2 { font-size: 23px; }
}
@media (max-width: 420px) { .merhale-entry { padding: 10px; }.merhale-hero { padding: 24px 20px 18px; }.merhale-form-pane { padding: 28px 20px; }.merhale-story h1 strong { font-size: 46px; }.merhale-story h1 span { font-size: 21px; }.merhale-hero-foot { font-size: 10px; } }
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast { background: #304957; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toast-in .3s var(--ease); max-width: 380px; border-left: 3px solid var(--gold); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } }
.toast.err { background: #8f1d1d; border-left-color: #fca5a5; }
.toast.ok { background: #14532d; border-left-color: #86efac; }
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--muted); gap: 10px; }
.spin { width: 22px; height: 22px; border: 3px solid var(--border-2); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg); color: var(--text); font-weight: 700; }
.splash .mark { width: 64px; height: 64px; border-radius: 50%; background: #304957; color: var(--gold); display: flex; align-items: center; justify-content: center; animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 50% { transform: scale(.94); opacity: .8; } }
.splash .mark .ico { width: 38px; height: 38px; }

/* hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* Renkli ürün logosu: özgün renkler iki temada da korunur. */
.merhale-logo-plate { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(48,73,87,.1); border-radius: 12px; padding: 12px 16px; max-width: 100%; }
.merhale-product-logo { display: block; width: 100%; height: auto; object-fit: contain; filter: none; }
.app-header .header-logo-plate { flex: none; width: 144px; padding: 5px 9px; border-radius: 8px; }
.merhale-story h1.hero-logo-plate { width: min(340px, 100%); padding: 18px 22px; margin-bottom: 25px; }
.form-logo-plate { width: 175px; padding: 10px 14px; }
.auth-card .logo .merhale-logo-plate { width: 230px; }
@media (max-width: 760px) { .app-header .header-logo-plate { width: 115px; }.merhale-story h1.hero-logo-plate { width: min(270px,100%); padding: 14px 18px; margin-bottom: 18px; } }
@media (max-width: 400px) { .app-header .brand { gap: 8px; }.app-header .brand-logo { height: 24px; }.app-header .header-logo-plate { width: 96px; padding: 4px 6px; }.app-header .hbtn { padding: 6px; } }
/* Giriş ekranı: tarayıcı %100 ölçeğinde pencere yüksekliğine uyum. */
@media (min-width: 761px) and (min-height: 540px) {
  .merhale-entry:not(.register) { --entry-pad: clamp(12px, 2.5dvh, 28px); height: 100dvh; min-height: 0; padding: var(--entry-pad); }
  .merhale-entry:not(.register) .merhale-layout { height: 100%; min-height: 0; }
  .merhale-entry:not(.register) .merhale-hero { min-height: 0; padding: clamp(18px, 3dvh, 32px) clamp(24px, 3vw, 44px) 20px; }
  .merhale-entry:not(.register) .merhale-institution { gap: 10px; flex: none; }
  .merhale-entry:not(.register) .merhale-institution .brand-logo { height: clamp(32px, 6dvh, 48px); }
  .merhale-entry:not(.register) .merhale-story { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-top: clamp(12px, 2.5dvh, 28px); }
  .merhale-entry:not(.register) .merhale-eyebrow { margin-bottom: 10px; }
  .merhale-entry:not(.register) .hero-logo-plate { width: min(320px, 34dvh, 100%); flex: none; padding: 12px 18px; margin-bottom: clamp(12px, 2dvh, 20px); }
  .merhale-entry:not(.register) .merhale-story h2 { font-size: clamp(22px, 3.6dvh, 32px); margin-bottom: 12px; }
  .merhale-entry:not(.register) .merhale-description { font-size: 13px; line-height: 1.6; }
  .merhale-entry:not(.register) .merhale-scene { flex: 1; min-height: 0; margin: 10px -20px 0; display: flex; align-items: center; }
  .merhale-entry:not(.register) .merhale-scene svg { height: 100%; max-height: none; }
  .merhale-entry:not(.register) .merhale-hero-foot { flex: none; margin-top: 10px; }
  .merhale-entry:not(.register) .merhale-form-pane { min-height: 0; padding: clamp(18px, 3dvh, 36px) clamp(24px, 3vw, 48px); }
  .merhale-entry:not(.register) .merhale-form-heading { margin-bottom: clamp(14px, 2.5dvh, 26px); }
  .merhale-entry:not(.register) .merhale-auth-card p.sub { margin-bottom: 20px; }
  .merhale-entry:not(.register) .auth-foot { margin-top: clamp(16px, 3dvh, 28px); padding-top: 14px; }
}
@media (min-width: 761px) and (min-height: 540px) and (max-height: 700px) {
  .merhale-entry:not(.register) .merhale-institution > span, .merhale-entry:not(.register) .merhale-description { display: none; }
  .merhale-entry:not(.register) .merhale-story h2 { font-size: 22px; }
  .merhale-entry:not(.register) .merhale-scene { max-height: none; }
  .merhale-entry:not(.register) .form-logo-plate { width: 140px; padding: 6px 10px; }
  .merhale-entry:not(.register) .merhale-form-heading { margin-bottom: 12px; }
  .merhale-entry:not(.register) .merhale-auth-card h2 { font-size: 23px; margin-bottom: 6px; }
  .merhale-entry:not(.register) .merhale-auth-card p.sub { margin-bottom: 14px; }
  .merhale-entry:not(.register) .merhale-auth-card .input { min-height: 42px; }
  .merhale-entry:not(.register) .merhale-auth-card .btn.primary { height: 44px; }
  .merhale-entry:not(.register) .auth-foot { margin-top: 16px; padding-top: 12px; }
}
@media (max-width: 760px) and (min-height: 600px) {
  .merhale-entry:not(.register) { height: 100dvh; min-height: 0; padding: 10px; }
  .merhale-entry:not(.register) .merhale-layout { height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  .merhale-entry:not(.register) .merhale-hero { padding: 16px 20px; min-height: 0; }
  .merhale-entry:not(.register) .merhale-institution, .merhale-entry:not(.register) .merhale-eyebrow,
  .merhale-entry:not(.register) .merhale-description, .merhale-entry:not(.register) .merhale-scene,
  .merhale-entry:not(.register) .merhale-hero-foot, .merhale-entry:not(.register) .merhale-form-heading { display: none; }
  .merhale-entry:not(.register) .merhale-story { padding: 0; display: flex; align-items: center; gap: 16px; }
  .merhale-entry:not(.register) .hero-logo-plate { width: 140px; max-width: 48%; padding: 8px 10px; margin: 0; flex: none; }
  .merhale-entry:not(.register) .merhale-story h2 { font-size: 18px; margin: 0; }
  .merhale-entry:not(.register) .merhale-form-pane { padding: 18px 24px; min-height: 0; }
  .merhale-entry:not(.register) .merhale-auth-card p.sub { margin-bottom: 18px; }
  .merhale-entry:not(.register) .auth-foot { margin-top: 20px; padding-top: 14px; }
}
