/* Karanix Çalışma Alanı — neutral surfaces, accent #009F92 / #005952 / #7ADCD0, running colour #FB5206, Urbanist. */
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/urbanist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/urbanist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #F8F7F4; --surface: #FFFFFF; --surface-2: #F1EFEA; --line: #D4D1C7; --text: #0A0A0A; --muted: #616161;
  --accent: #005952; --teal: #009F92; --orange: #FB5206; --on-accent: #FFFFFF;
  --done-bg: rgba(0,159,146,.12); --run-bg: rgba(251,82,6,.12); --wait-bg: rgba(10,10,10,.06); --you-bg: rgba(0,89,82,.10);
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0A0A; --surface: #141414; --surface-2: #1A1A1A; --line: #262626; --text: #F8F7F4; --muted: #B5B5B5;
    --accent: #7ADCD0; --on-accent: #0A0A0A; --done-bg: rgba(122,220,208,.12); --run-bg: rgba(251,82,6,.18); --wait-bg: rgba(255,255,255,.06); --you-bg: rgba(122,220,208,.08);
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0A; --surface: #141414; --surface-2: #1A1A1A; --line: #262626; --text: #F8F7F4; --muted: #B5B5B5;
  --accent: #7ADCD0; --on-accent: #0A0A0A; --done-bg: rgba(122,220,208,.12); --run-bg: rgba(251,82,6,.18); --wait-bg: rgba(255,255,255,.06); --you-bg: rgba(122,220,208,.08);
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Urbanist, system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--wait-bg); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* page frame: 16 / 32 / 48 / 64 / 80 px side padding, full width */
.wrap { padding: 28px 16px 64px; }
@media (min-width: 640px) { .wrap { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px) { .wrap { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1024px) { .wrap { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1280px) { .wrap { padding-left: 80px; padding-right: 80px; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .in { display: flex; align-items: center; gap: 16px; padding: 10px 16px; min-height: 56px; }
@media (min-width: 640px) { .topbar .in { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px) { .topbar .in { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1024px) { .topbar .in { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1280px) { .topbar .in { padding-left: 80px; padding-right: 80px; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--teal); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; }
.brand .mark i { background: var(--bg); border-radius: 2px; opacity: .9; }
.brand .mark i:nth-child(2) { opacity: .45; }
.brand .long { display: none; }
@media (max-width: 479px) { .brand .short { display: none; } .topnav { margin-left: 0; } .topnav a { padding: 6px 8px; } .topbar .in { gap: 8px; } }
@media (min-width: 640px) { .brand .long { display: inline; } .brand .short { display: none; } }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.topnav a:hover { color: var(--text); background: var(--wait-bg); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--wait-bg); }
.spacer { flex: 1; }
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 8px; font: inherit; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--you-bg); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.usermenu .name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 768px) { .usermenu .name { display: inline; } }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 30; }
.menu a, .menu button { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0; padding: 8px 10px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--wait-bg); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu .lbl { padding: 6px 10px 2px; font-size: 12px; color: var(--muted); }
.theme-row { display: flex; gap: 4px; padding: 4px 6px 6px; }
.theme-row button { flex: 1; text-align: center; border: 1px solid var(--line); padding: 5px 6px; font-size: 13px; }
.theme-row button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* buttons, inputs */
.btn { font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 9px 16px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.cta { background: var(--orange); border-color: var(--orange); color: #0A0A0A; }
.btn.danger { background: transparent; border-color: var(--orange); color: var(--text); }
.btn.danger:hover { background: var(--run-bg); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 84px; }
select { width: auto; padding: 7px 10px; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: 2px solid color-mix(in srgb, var(--teal) 35%, transparent); outline-offset: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.form-error { border: 1px solid var(--orange); background: var(--run-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.notice { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.notice.ok { border-color: var(--teal); background: var(--done-bg); }
.linkbox { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.linkbox input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
.card > p:first-child { margin-top: 0; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pagehead h1 { font-size: 30px; font-weight: 700; margin: 0; }
.pagehead .sub { color: var(--muted); margin-top: 4px; max-width: 70ch; }

/* auth pages */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 32px 16px; }
.auth .card { width: 100%; max-width: 440px; padding: 28px; box-shadow: var(--shadow); }
.auth h1 { font-size: 26px; margin: 0 0 6px; }
.auth .sub { color: var(--muted); margin: 0 0 20px; }
.auth .foot { margin-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.formcard { max-width: 560px; }

/* rooms grid */
.rooms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.roomcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; transition: border-color .15s; min-height: 170px; }
.roomcard:hover { border-color: var(--teal); }
.roomcard h2 { margin: 0; font-size: 18px; }
.roomcard .desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.roomcard .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 10px; }
.empty h2 { margin: 0 0 8px; font-size: 20px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 52ch; }

/* chips */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--wait-bg); color: var(--muted); }
.chip.bitti, .chip.ok { background: var(--done-bg); color: var(--accent); }
.chip.suruyor, .chip.live { background: var(--run-bg); color: var(--text); }
.chip.karar, .chip.sizde, .chip.role { background: var(--you-bg); color: var(--accent); }
.chip.karar, .chip.sizde { outline: 1px dashed var(--accent); }
.chip.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* room screen */
.roomhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.roomhead h1 { font-size: 26px; margin: 0; }
.roomhead .codebtn { font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.roomlayout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .roomlayout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; } }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 0; list-style: none; padding-left: 0; }
.tabs a { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--wait-bg); }
.tabs a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 3px 0 0 var(--teal); border: 1px solid var(--line); }
@media (min-width: 1024px) {
  .tabs { flex-direction: column; border-bottom: 0; position: sticky; top: 76px; align-self: start; overflow: visible; }
  .tabs a { justify-content: space-between; }
}
.panel { min-width: 0; }
.panel > h2.ph { font-size: 22px; margin: 0 0 4px; }
.panel > p.ph-sub { color: var(--muted); margin: 0 0 20px; }

/* placeholder (phase 2 tabs) */
.soonbox { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; background: var(--surface); max-width: 760px; }
.soonbox .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text); background: var(--run-bg); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.soonbox h3 { margin: 0 0 12px; font-size: 20px; }
.soonbox ul { margin: 0 0 16px; padding-left: 20px; }
.soonbox li { margin-bottom: 6px; }

/* tables */
.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.person .n { font-weight: 600; }
.person .e { font-size: 13px; color: var(--muted); }

/* permission grid */
.permgrid { border-collapse: collapse; font-size: 14px; width: 100%; }
.permgrid th, .permgrid td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.permgrid th:first-child, .permgrid td:first-child { text-align: left; }
.permgrid thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.permgrid td.na { color: var(--muted); }
.permgrid td.diff { background: var(--you-bg); }
.permgrid input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.permgrid .yes { color: var(--accent); font-weight: 700; }
.permpanel { margin: 4px 0 8px; padding: 16px; background: var(--surface-2); border-radius: 10px; }

/* activity */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .what b { font-weight: 600; }
.feed .at { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* settings sections */
.settings { display: grid; gap: 16px; max-width: 760px; }
.settings .card h2 { font-size: 17px; }
.settings .card .lead { color: var(--muted); margin: -6px 0 14px; font-size: 14px; }
.card.dangerzone { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }

/* toasts, dialog */
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); }
.toast.hata { background: var(--orange); color: #0A0A0A; }
.toast.uyari { background: var(--orange); color: #0A0A0A; }
.dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 22px; max-width: 440px; width: calc(100vw - 32px); }
.dialog::backdrop { background: rgba(10,10,10,.45); }
.dialog p { margin: 0 0 18px; }

/* ---------- overview (ported from the single-project tracker) ---------- */
.ov header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ov h2.title { font-size: 26px; font-weight: 700; margin: 0; }
.ov .sub { color: var(--muted); margin-top: 4px; }
.ov .big { display: flex; align-items: baseline; gap: 10px; }
.ov .big b { font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; }
.ov .bar { height: 10px; border-radius: 6px; background: var(--wait-bg); overflow: hidden; margin: 8px 0 28px; display: flex; }
.ov .bar i { display: block; height: 100%; }
.ov .grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
@media (min-width: 1280px) { .ov .grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.ov .now { border-left: 4px solid var(--orange); }
.ov .ovtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; }
.ov .ovtabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.ov .ovtabs button:hover { color: var(--text); }
.ov .ovtabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.ov .ovtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov .ovtabs .n { font-weight: 400; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.ov .stack { margin-bottom: 28px; }
.ov .livewrap { max-width: 720px; }
.ov .more { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 8px 0 0; cursor: pointer; }
.ov .more:hover { text-decoration: underline; }
.ov .ph li.morerow { padding-top: 4px; }
.ov .ph li.morerow .more { padding: 2px 0; font-size: 13px; font-weight: 600; }
.ov .now .t { font-size: 20px; font-weight: 600; }
.ov .phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.ov .phases-done { margin-top: 16px; display: grid; gap: 4px; }
.ov .phases-done h3, .ov .phases-open h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.ov .phases-open { margin-top: 18px; }
.ov .phases-done .ph { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 7px 12px; }
.ov .phases-done .ph .n { min-width: 150px; }
.ov .phases-done .ph .t2 { font-weight: 600; flex: 1 1 220px; }
.ov .phases-done .ph .time { margin: 0; }
.ov .phases-done .ph .pbar { display: none; }
.ov .ph { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.ov .ph .n { color: var(--muted); font-size: 13px; }
.ov .ph.bitti { background: var(--done-bg); border-color: transparent; }
.ov .ph.suruyor { background: var(--run-bg); border-color: var(--orange); }
.ov .ph.karar { border-style: dashed; border-color: var(--accent); }
.ov .ph .time { font-size: 13px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ov .ph .time b { color: var(--text); font-weight: 600; }
.ov .ph .pbar { height: 4px; border-radius: 3px; background: var(--wait-bg); margin-top: 8px; overflow: hidden; }
.ov .ph .pbar i { display: block; height: 100%; background: var(--orange); width: 0; }
.ov .ph.bitti .pbar i { background: var(--teal); }
.ov .ph ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.ov .ph li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--muted); }
.ov .ph li.suruyor { color: var(--orange); font-weight: 600; }
.ov .ph li.bitti { color: var(--accent); }
.ov .eta { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin: -8px 0 24px; font-variant-numeric: tabular-nums; }
.ov .eta .k { color: var(--muted); font-size: 14px; }
.ov .eta .v { font-size: 22px; font-weight: 700; }
.ov .eta .v.o { color: var(--orange); }
.ov .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ov table.files { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ov table.files th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ov table.files td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ov table.files td.f { word-break: break-all; }
.ov .add { color: var(--accent); } .ov .del { color: var(--orange); }
.ov .files-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ov .files-sum span.g { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.ov .files-sum b { font-weight: 600; }
.ov .hosts { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.ov .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--teal); }
.ov .dot.bad { background: var(--orange); }
.ov .filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ov .filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ov .filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ov section.items { margin-bottom: 32px; }
.ov section.items > h3 { font-size: 20px; margin: 0 0 12px; }
.ov details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.ov summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; }
.ov summary::-webkit-details-marker { display: none; }
.ov .no { color: var(--muted); font-variant-numeric: tabular-nums; }
.ov .ititle { min-width: 0; }
.ov .meta { color: var(--muted); font-size: 13px; }
.ov .chip { font-size: 13px; padding: 3px 10px; }
.ov .chip.bitti { background: var(--done-bg); color: var(--accent); }
.ov .chip.suruyor { background: var(--run-bg); color: var(--orange); }
.ov .chip.bekliyor { background: var(--wait-bg); color: var(--muted); }
.ov .body { padding: 0 14px 14px 60px; font-size: 14px; color: var(--muted); }
.ov .body p { margin: 6px 0; }
.ov .body b { color: var(--text); font-weight: 600; }
.ov .log li { margin-bottom: 8px; } .ov .log { padding-left: 18px; margin: 0; }
.ov .rel { font-size: 14px; } .ov .rel div { padding: 6px 0; border-bottom: 1px solid var(--line); } .ov .rel div:last-child { border: 0; }
.ov .card { margin-bottom: 0; }
.ov .filescard { margin-bottom: 28px; }
@media (max-width: 640px) { .ov summary { grid-template-columns: 28px 1fr; } .ov summary .chip { grid-column: 2; justify-self: start; } .ov .body { padding-left: 14px; } }

/* ---------- phase 2: shared bits ---------- */
.spacer { flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.toolbar input[type="search"] { width: auto; flex: 1 1 200px; min-width: 160px; }
.toolbar .check.inline, .check.inline { margin: 0; }
.segbar { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seg { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg[aria-pressed="true"] .muted { color: inherit; opacity: .75; }
.segbar .hint { margin-left: 8px; }
.lbl { font-weight: 600; font-size: 14px; }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid2 .field select, .field input[type="date"] { width: 100%; }
input[type="date"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.chip.tag { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.chip.pri-acil { background: var(--orange); color: #0A0A0A; }
.chip.pri-yuksek { background: var(--run-bg); color: var(--text); outline: 1px solid var(--orange); }
.chip.pri-dusuk { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.chip.late { background: var(--run-bg); color: var(--text); outline: 1px solid var(--orange); }
.chip.yapilacak, .chip.incelemede { background: var(--wait-bg); color: var(--text); }
.chip.incelemede { outline: 1px dashed var(--accent); }
.mv { font: inherit; font-size: 13px; line-height: 1; min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; padding: 0 6px; }
.mv:hover:not([disabled]) { border-color: var(--teal); }
.mv[disabled] { opacity: .35; cursor: default; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kvs { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 14px; }
.kv dt { font-size: 13px; color: var(--muted); } .kv dd { margin: 2px 0 0; font-weight: 600; }
.radios { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 0; margin: 0 0 14px; }
.radios legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.radios .check.sub { margin-left: 26px; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; }
.pad { padding: 12px; margin: 0; }
.tabs .tabcount { font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #0A0A0A; display: inline-grid; place-items: center; }

/* Markdown */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h3, .md h4, .md h5 { margin: 1em 0 .4em; } .md h3 { font-size: 19px; } .md h4 { font-size: 17px; } .md h5 { font-size: 15px; }
.md p { margin: 0 0 .7em; }
.md ul, .md ol { margin: 0 0 .7em; padding-left: 22px; }
.md ul.tasks { list-style: none; padding-left: 4px; }
.md ul.tasks input { accent-color: var(--teal); margin-right: 4px; }
.md pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 0 0 .7em; padding: 2px 0 2px 14px; border-left: 3px solid var(--teal); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.md.inline p { margin: 0; }
.mention { color: var(--accent); font-weight: 600; background: var(--you-bg); border-radius: 4px; padding: 0 3px; }
.mdeditor { display: grid; gap: 8px; }
.md-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; min-height: 84px; background: var(--surface); }
.mentionwrap { position: relative; }
.mentions { position: absolute; left: 0; top: 100%; z-index: 40; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; max-width: 100%; }
.mentions li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.mentions li.on, .mentions li:hover { background: var(--you-bg); }

/* side panel */
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--text); }
.drawer.wide { width: min(760px, 100vw); }
.drawer::backdrop { background: rgba(10,10,10,.45); }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.drawer-head h2 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.drawer-body { padding: 18px 20px 40px; display: grid; gap: 16px; overflow-y: auto; }
.drawer-body > div { display: grid; gap: 16px; min-width: 0; }
.drawer-body > div:empty { display: none; }
.drawer-body .card h3, .thread h3 { font-size: 15px; margin: 0 0 10px; }
@media (max-width: 640px) { .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; } }

/* tasks */
.board { position: relative; display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
@media (max-width: 640px) { .board { grid-auto-columns: 85%; } }
.board .col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.col h3 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin: 2px 4px 10px; }
.col h3 .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.col-suruyor h3 { box-shadow: inset 0 -2px 0 var(--orange); padding-bottom: 6px; }
.col-bitti h3 { box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 6px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; min-height: 64px; flex: 1; }
.taskcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.taskcard[draggable="true"] { cursor: grab; }
.taskcard.dragging { opacity: .45; }
.taskcard.done .tc-title { color: var(--muted); }
.drop-ph { height: 44px; border: 2px dashed var(--teal); border-radius: 10px; background: var(--done-bg); }
.empty-col { padding: 10px 6px; list-style: none; }
.tc-title { font: inherit; font-weight: 600; text-align: left; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
.tc-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; }
.tc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.moves { display: grid; grid-template-columns: repeat(2, 28px); gap: 3px; }
.who .avatar { width: 26px; height: 26px; font-size: 12px; }
.tasklist { display: grid; gap: 18px; }
.tasklist .col h3 { font-size: 16px; margin: 0 0 8px; justify-content: flex-start; gap: 10px; }
.tasklist .cards { gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.tasklist .taskcard { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.tasklist .taskcard:last-child { border-bottom: 0; }
.tasklist .tc-side { flex-direction: row; align-items: center; }
.tasklist .moves { grid-template-columns: repeat(4, 28px); }
.tc-desc { margin-top: 2px; }
.taskform .field .lbl { margin-bottom: 0; }
.checklist .progress, .progress { height: 6px; border-radius: 4px; background: var(--wait-bg); overflow: hidden; margin: 0 0 10px; }
.progress i { display: block; height: 100%; background: var(--teal); }
.cl-items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.cl-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.cl-items li:hover { background: var(--wait-bg); }
.cl-items li.dragging { opacity: .45; }
.cl-row { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; flex: 1; }
.cl-row input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.cl-t { overflow-wrap: anywhere; } .cl-t.done { text-decoration: line-through; color: var(--muted); }
.cl-acts { display: inline-flex; gap: 3px; flex: none; }
.comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
/* only the comment rows are avatar + body grids; a list inside a comment's Markdown stays an ordinary list */
.comments > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.comments .md li, .comments .c-body li { display: list-item; grid-template-columns: none; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.c-head .avatar { width: 24px; height: 24px; font-size: 11px; }
.comments > li.from-claude .c-body { border-left: 3px solid var(--teal); padding-left: 10px; }
/* Markdown lists keep their bullets and indent inside drawers too (the drawer resets plain lists) */
dialog.drawer .md ul, dialog.drawer .c-body ul { list-style: disc; padding-left: 22px; margin: 0 0 .7em; }
dialog.drawer .md ol, dialog.drawer .c-body ol { list-style: decimal; padding-left: 22px; margin: 0 0 .7em; }
dialog.drawer .md ul.tasks { list-style: none; padding-left: 4px; }
.avatar.claude { background: var(--teal); color: #0A0A0A; }

/* notes */
.notegrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.notecard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.notecard.pinned { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.nc-head { align-items: flex-start; flex-wrap: nowrap; }
.nc-snip { margin: 0; overflow-wrap: anywhere; }
.sharedoc { max-width: 820px; margin: 0 auto; }
.sharedoc h1 { font-size: 30px; margin: 4px 0; }

/* messages */
.chat { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .chat { grid-template-columns: 240px minmax(0, 1fr); } }
.chanlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; align-self: start; }
.chanlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chanlist h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 8px 6px; }
.chanlist a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.chanlist a:hover { background: var(--wait-bg); }
.chanlist a[aria-current="true"] { background: var(--you-bg); font-weight: 600; }
.chanlist .hash { width: 28px; text-align: center; font-weight: 700; color: var(--accent); }
.chanlist .cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chanlist .unread { font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #0A0A0A; display: grid; place-items: center; }
@media (max-width: 899px) { .chanlist ul { display: flex; flex-wrap: wrap; gap: 4px; } .chanlist h3 { width: 100%; margin: 8px 4px 2px; } }
.chatmain { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 60vh; min-width: 0; }
.chathead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chathead h3 { margin: 0; font-size: 16px; }
.chatlog { position: relative; flex: 1; overflow-y: auto; padding: 8px 16px; max-height: 62vh; min-height: 280px; }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.msg .mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.msg .macts { margin-left: auto; display: inline-flex; gap: 10px; opacity: .65; }
.msg:hover .macts, .msg:focus-within .macts { opacity: 1; }
.msg.mine .mb { background: var(--you-bg); border-radius: 10px; padding: 6px 10px; }
.deleted { font-style: italic; margin: 0; }
.dayline { text-align: center; font-size: 12px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 10px; }
.dayline::before, .dayline::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty-chat { text-align: center; padding: 32px 0; }
.typing { min-height: 22px; padding: 0 16px; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; }
.composerrow { display: flex; gap: 8px; align-items: flex-end; }
.composerrow > .mentionwrap, .composerrow > textarea { flex: 1; min-width: 0; }
.composer textarea { min-height: 48px; }

/* Claude inbox */
.claudelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.claudecard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 6px; }
.claudecard.st-yeni { box-shadow: inset 3px 0 0 var(--orange); }
.claudecard.st-bitti { opacity: .8; }
.chip.cst-yeni { background: var(--orange); color: #0A0A0A; }
.chip.cst-okundu { background: var(--you-bg); color: var(--accent); }
.chip.cst-suruyor { background: var(--run-bg); color: var(--text); }
.chip.cst-bitti { background: var(--done-bg); color: var(--accent); }
.claudeform h3 { font-size: 16px; margin: 0 0 12px; }

/* bell */
.bell { position: relative; }
.bellbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.bellbtn:hover { border-color: var(--muted); }
.bellcount { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #0A0A0A; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bellpanel { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
@media (max-width: 479px) { .bellpanel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; } }
.bellhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.bellhead h2 { font-size: 15px; margin: 0; }
.belllist { list-style: none; margin: 0; padding: 4px; }
.belllist a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.belllist a:hover { background: var(--wait-bg); }
.belllist li.unread a { background: var(--you-bg); }
.belllist li.unread .what { font-weight: 600; }
.belllist .meta { font-size: 12px; color: var(--muted); }

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

/* Maddeler: one summary above each group (waiting work, decisions) */
.eta.qstrip { margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; }
.eta.qstrip .qt { font-weight: 700; margin-right: 6px; }
.eta.qstrip.wait { border-style: dashed; }
.qheads { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 12px; }
.qheads .eta.qstrip { margin: 0; flex: 1 1 360px; }

/* Maddeler: badges on the left, the time and the state on the right */
.ov summary { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 12px 16px; }
.ov .ititle { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ov .itext { font-size: 15px; line-height: 1.4; }
.ov .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ov .badge { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ov .badge.code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ov .badge.sev-critical, .ov .badge.sev-high { background: var(--run-bg); color: var(--text); }
.ov .iright { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.ov .itime { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ov .itime:empty { display: none; }
.ov .itime .tsize { color: var(--muted); }
.ov .itime .tend { color: var(--accent); font-weight: 600; }
.ov .itime .tleft { color: var(--orange); }
@media (max-width: 720px) { .ov summary { grid-template-columns: 28px minmax(0, 1fr); } .ov .iright { grid-column: 2; justify-content: flex-start; } .ov .itime { align-items: flex-start; text-align: left; } }
/* "Tümü": one small box per state */
.ov .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.ov .tile { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.ov .tile:hover { border-color: var(--teal); }
.ov .tile .tl { font-size: 13px; color: var(--muted); }
.ov .tile b { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov .tile .ts { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov .tile.bitti b { color: var(--accent); }
.ov .tile.suruyor b { color: var(--orange); }
.ov .tile.karar { border-style: dashed; }
.eta.qstrip.done { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.eta.qstrip.run { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
/* Günlük and Son yayınlar: grouped by day, the time in a narrow column */
.ov .daygroup + .daygroup { margin-top: 18px; }
.ov .daygroup h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ov .daygroup .log { list-style: none; padding: 0; margin: 0; }
.ov .daygroup .log li, .ov .rels li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 6px 0; margin: 0; line-height: 1.45; }
.ov .lt { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ov .rels { list-style: none; padding: 0; margin: 0; }
.ov .rels li { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; }
.ov .rels details { background: none; border: 0; margin: 0; }
.ov .rels details summary { display: block; padding: 0; cursor: pointer; }
.ov .rels details[open] summary .rs { font-weight: 600; }
.ov .rels .rfull { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.ov .rels .rh { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.ov .eta.qstrip + section.items, .ov .tiles + section.items { margin-top: 18px; }

/* Yönetim: role summaries, permission lists, team chips */
.rolesum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; cursor: pointer; }
.permlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.person-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 500; }
.chipx { font: inherit; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: 15px; line-height: 1; }
.chipx:hover { color: var(--orange); }
/* Ekip › Rol izinleri */
.roleperm { border-top: 1px solid var(--line); padding: 10px 0; }
.roleperm > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; cursor: pointer; list-style: none; }
.roleperm > summary::-webkit-details-marker { display: none; }
.roleperm[open] > summary { margin-bottom: 10px; }
.permgrid td.diff { background: var(--you-bg); }

/* Biten aşamalar: "Ne yapıldı" and the panel that opens from the right */
.ov .phases-done .ph .phmore { margin-left: 8px; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(620px, 100vw); max-width: 100vw; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0; background: var(--surface); color: var(--text); overflow-y: auto; }
dialog.drawer::backdrop { background: rgba(0, 0, 0, .5); }
dialog.drawer > header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
dialog.drawer > header h2 { margin: 4px 0 0; font-size: 20px; }
dialog.drawer .dmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 22px 0; font-variant-numeric: tabular-nums; }
dialog.drawer .dmeta .k { color: var(--muted); font-size: 13px; }
dialog.drawer .dsec { padding: 16px 22px; border-bottom: 1px solid var(--line); }
dialog.drawer .dsec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
dialog.drawer ul { list-style: none; padding: 0; margin: 0; }
dialog.drawer .dsteps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 4px 0; }
dialog.drawer .dsteps li.bitti > span:first-child { color: var(--accent); }
dialog.drawer .ditems li { padding: 10px 0; border-top: 1px solid var(--line); }
dialog.drawer .ditems li:first-child { border-top: 0; padding-top: 0; }
dialog.drawer .ditems .dt { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; font-weight: 600; }
dialog.drawer .ditems .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 38px; }
dialog.drawer .ditems p { margin: 6px 0 0 38px; }
dialog.drawer .dlogs li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 14px; }
dialog.drawer .badge { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
dialog.drawer .badge.sev-critical, dialog.drawer .badge.sev-high { background: var(--run-bg); color: var(--text); }
dialog.drawer .badge.code, dialog.drawer .rh { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* the page header stays on screen while scrolling (the wrapper sticks; the bar alone had no room to) */
#ust { position: sticky; top: 0; z-index: 30; }
/* the brand: the karanix.com logo for the theme, the product name, and the role badge */
.brandmark { display: inline-flex; align-items: center; gap: 10px; }
.brandmark img { height: 28px; width: auto; display: block; }
.brandmark .logo-koyu { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brandmark .logo-acik { display: none; } :root:not([data-theme="light"]) .brandmark .logo-koyu { display: block; } }
:root[data-theme="dark"] .brandmark .logo-acik { display: none; }
:root[data-theme="dark"] .brandmark .logo-koyu { display: block; }
.brandmark .product { font-size: 17px; font-weight: 600; color: var(--text); padding-left: 10px; border-left: 1px solid var(--line); line-height: 22px; }
.brand-role { font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); white-space: nowrap; }
.auth .authbrand { display: flex; justify-content: center; margin: 0 0 18px; }
.auth .authbrand .brandmark img { height: 34px; }
.auth .authbrand .product { font-size: 19px; }
@media (max-width: 479px) { .brandmark .product { display: none; } .brandmark img { height: 24px; } }

/* role badges: super admin orange, the team's roles turquoise, a customer red; dashed and see-through */
.brand-role.super, .rolebadge.super { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 65%, transparent); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.brand-role.musteri, .rolebadge.musteri { color: #DC2626; border-color: color-mix(in srgb, #DC2626 60%, transparent); background: color-mix(in srgb, #DC2626 10%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-role.musteri, :root:not([data-theme="light"]) .rolebadge.musteri { color: #F87171; border-color: color-mix(in srgb, #F87171 60%, transparent); } }
:root[data-theme="dark"] .brand-role.musteri, :root[data-theme="dark"] .rolebadge.musteri { color: #F87171; border-color: color-mix(in srgb, #F87171 60%, transparent); }
.brand-role.yok, .rolebadge.yok { color: var(--muted); border-color: var(--line); background: transparent; }
.rolebadge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); white-space: nowrap; }
.rolebadge .gizliisaret { font-weight: 500; opacity: .8; }

/* the header menus (Odalar, Yönetim): a button that opens a list with icons; the current place is marked */
.navdrop { position: relative; }
.navbtn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 6px 10px 6px 12px; border-radius: 999px; cursor: pointer; }
.navbtn:hover, .navbtn[aria-expanded="true"] { color: var(--text); background: var(--wait-bg); }
.navbtn[aria-current="page"] { color: var(--text); background: var(--wait-bg); }
.navbtn .ico { transition: transform .15s; opacity: .7; }
.navbtn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.menu.navmenu { left: 0; right: auto; min-width: 260px; }
.navmenu a { display: flex; align-items: center; gap: 10px; }
.navmenu a .ico { flex: none; color: var(--muted); }
.navmenu a .mt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navmenu a .mr { font-size: 12px; color: var(--muted); }
.navmenu a.on { background: var(--you-bg); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); }
.navmenu a.on .ico { color: var(--accent); }
.navmenu .navlist { max-height: 320px; overflow-y: auto; }
@media (max-width: 479px) { .menu.navmenu { position: fixed; left: 8px; right: 8px; top: 60px; min-width: 0; } }

/* narrow screens: Odalar and Yönetim move into one menu button; the bar keeps to the screen width */
.mobilenav { display: none; }
@media (max-width: 760px) {
  .topnav { display: none; }
  .mobilenav { display: block; }
  .mobilebtn { padding: 8px; }
  .menu.mobilemenu { position: fixed; left: 8px; right: 8px; top: 62px; min-width: 0; max-height: calc(100vh - 80px); overflow-y: auto; }
  .topbar .in { gap: 8px; padding: 8px 12px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-role { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 400px) { .brand-role { display: none; } }

/* a picture in the round avatar, over the initials */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; }
.avatar.pic img { opacity: 1; }
/* Hesap: the avatar picker, two-step setup */
.avpreview { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.avpreview .avatar { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface); }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.avgrid button { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.avgrid button img { width: 100%; height: 100%; display: block; }
.avgrid button[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent); }
.avgrid button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.qrbox { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 10px 0; }
.qrbox svg { width: 180px; height: 180px; background: #FFFFFF; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; max-width: 360px; }
.statusline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }

/* the assistant's status chip (K5): a pulsing dot while it works */
.chip.claude-durum { display: inline-flex; align-items: center; gap: 6px; }
.chip.claude-durum .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: kca-pulse 1.6s ease-in-out infinite; }
@keyframes kca-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chip.claude-durum .dot { animation: none; } }

/* the queue buttons on a card (Öne al / Sıradaki / Beklet) and on a task-backed overview item */
.taskcard .queue { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.taskcard .queue .btn.small { padding: 2px 6px; font-size: 11px; line-height: 1.3; }
.tasklist .queue { flex-direction: row; }
.ov .queue { display: inline-flex; gap: 4px; margin-left: 6px; }
.ov .queue .btn.small { padding: 1px 6px; font-size: 11px; }
.chip.claude-gordu { color: var(--teal); border-color: var(--teal); }

/* a note's history (K9) */
.nothist > summary { cursor: pointer; font-weight: 600; }
.versions { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.versions > li { border-top: 1px solid var(--line); padding-top: 8px; }
.versions .row { align-items: center; gap: 8px; }

/* several plans in one room (K8) */
.planbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

/* boards (P1-1): the tabs above the task toolbar, the editor rows */
.boardbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.boardbar .tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.boardbar .btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.boardbar .btn .n { margin-left: 6px; font-size: 11px; opacity: .8; }
.colrow { align-items: center; gap: 8px; flex-wrap: wrap; }
.colrow input[type="color"] { width: 36px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }

/* room labels (P1-2): a coloured chip keeps the text readable on a light tint of the label's colour */
.chip.tag.renkli { background: color-mix(in srgb, var(--etiket) 18%, var(--surface)); border-color: color-mix(in srgb, var(--etiket) 60%, var(--line)); box-shadow: inset 3px 0 0 var(--etiket); padding-left: 10px; }
.labelrow { align-items: center; gap: 8px; flex-wrap: wrap; }
.labelrow input[type="color"] { width: 36px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }

/* sub-tasks (P1-3): the parent chip on a card is a button; the panel block lists the children */
.chip.linkchip { cursor: pointer; font: inherit; font-size: 12px; }
.chip.linkchip:hover { text-decoration: underline; }
.subtasks .subrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subtasks .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.subtasks .linkbtn:hover { text-decoration: underline; }
.subtasks h3 .count { margin-left: 8px; font-weight: 500; color: var(--muted); font-size: 13px; }

/* task types (P1-4): a bug is marked in orange, a request in the accent; the bug record sits under the form */
.chip.tur-hata { background: var(--orange); color: #0A0A0A; }
.chip.tur-istek { background: var(--surface-2); color: var(--text); outline: 1px solid var(--accent); }
.bugfields { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 4px; margin: 0 0 12px; }
.bugfields legend { font-weight: 700; padding: 0 6px; }
.bug dd.pre { white-space: pre-wrap; }

/* comments (P1-6): the audience chip next to the author */
.c-head .chip.small { font-size: 11px; padding: 1px 8px; margin-left: 6px; }

/* customers (P1-7): the company cards on Yönetim › Müşteriler */
.custgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 10px; }
.custcard { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.custcard:hover { border-color: var(--accent); }
.custcard.arsiv { opacity: .7; }
.custcard .meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.custcard .meta .warn { color: var(--orange); font-weight: 700; }

/* task history (P1-9) */
.history summary { cursor: pointer; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary::before { content: '▸ '; color: var(--muted); }
.history[open] summary::before { content: '▾ '; }
.history ul { margin-top: 10px; }
.histrow { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }

/* İşlerim (P1-11) */
.workrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.workrow > a:first-child { font-weight: 600; }
.workrow .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.workrow > a:last-child { margin-left: auto; }
.late-text { color: var(--orange); }

/* attachments (P1-12) */
.filerow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.filerow .thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.fileicon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.filemeta { flex: 1 1 160px; min-width: 0; }
.filemeta a { font-weight: 600; word-break: break-all; }
.dropzone { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--surface-2); }

/* ===== M7 — tasarım: tam renkli çerçeveler, kırılmayan araç çubukları, kompakt masaüstü, mobilde uygulama hissi ===== */
/* coloured state as a full border, never a stripe on one side */
.tabs a[aria-current="page"] { box-shadow: none; border: 1px solid var(--teal); }
.notecard.pinned { box-shadow: none; border: 1px solid var(--teal); }
.claudecard.st-yeni { box-shadow: none; border: 1px solid var(--orange); }
.chip.tag.renkli { box-shadow: none; border: 1px solid var(--etiket); padding-left: 10px; }
.col-suruyor h3, .col-bitti h3 { box-shadow: none; border-bottom: 2px solid var(--orange); padding-bottom: 6px; }
.col-bitti h3 { border-bottom-color: var(--teal); }
.chip.pri-yuksek, .chip.late { outline: none; border: 1px solid var(--orange); }
.chip.incelemede, .chip.karar, .chip.sizde { outline: none; border: 1px dashed var(--accent); }
.btn:hover { border-color: var(--accent); }
.btn.danger { border: 1px solid var(--orange); }
/* toolbars never break buttons onto a second line: they scroll sideways instead */
.toolbar, .boardbar, .boardbar .tabs, .segbar, .ov .filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; max-width: 100%; }
.toolbar > *, .boardbar > *, .segbar > * { flex: 0 0 auto; }
.toolbar input[type="search"] { flex: 1 0 160px; }
.boardbar { padding-bottom: 4px; }
.btn, .seg { white-space: nowrap; }
/* compact desktop: tighter page gutters and rhythm from 1024px up */
@media (min-width: 1024px) {
  .wrap, .topbar .in { padding-left: 40px; padding-right: 40px; }
  .pagehead { margin-bottom: 16px; }
  .roomhead { margin-bottom: 12px; }
  .toolbar { margin-bottom: 10px; }
  .card { padding: 14px 16px; }
  .roomlayout { gap: 20px; }
}
@media (min-width: 1280px) { .wrap, .topbar .in { padding-left: 56px; padding-right: 56px; } }
/* phones: app feel — bigger touch targets, no zoom on inputs, full-width primary actions */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 42px; padding: 9px 14px; }
  .btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  .seg { min-height: 36px; }
  .moves button, .queue button { min-width: 36px; min-height: 36px; }
  .tabs a { padding: 10px 14px; }
  .pagehead { margin-bottom: 14px; }
  .card { padding: 14px; border-radius: 12px; }
  .board { gap: 10px; }
  .drawer, .drawer.wide { width: 100vw; border-left: 0; }
}

/* ===== M1 — mobil kabuk: alttan açılan sayfalar, kaydırma kilidi, alt sekme çubuğu ===== */
.grabber { display: none; }
.tabbar { display: none; }
@media (max-width: 767px) {
  /* every drawer and dialog rises from the bottom */
  .drawer, .drawer.wide { margin: auto 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 92vh; border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(10,10,10,.25); animation: sheet-up .22s ease-out; }
  .drawer-in { max-height: 92vh; }
  .drawer-head { padding-top: 6px; }
  .grabber { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 8px auto 2px; }
  .dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; border: 0; border-top: 1px solid var(--line); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
  .dialog .row.end { flex-wrap: nowrap; }
  .dialog .row.end .btn { flex: 1; }
  /* menus, the bell and the profile open as bottom sheets too */
  .menu, .menu.navmenu, .mobilemenu, .bellpanel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; min-width: 0; max-height: 75vh; overflow-y: auto; border-radius: 18px 18px 0 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(10,10,10,.25); padding: 12px 12px calc(12px + 64px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; z-index: 40; }
  .menu a, .menu button, .navmenu a { padding: 12px 12px; font-size: 16px; border-radius: 10px; }
  /* thin, even borders on the top-bar buttons */
  .usermenu > button, .bellbtn, .navbtn.mobilebtn { border: 1px solid var(--line); }
  /* while a sheet is open the page behind does not scroll */
  body:has(.mobilemenu:not([hidden])), body:has(.bellpanel:not([hidden])), body:has(.usermenu .menu:not([hidden])), body:has(dialog[open]) { overflow: hidden; }
  /* the bottom tab bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .tabitem { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; text-decoration: none; cursor: pointer; }
  .tabitem.on { color: var(--accent); }
  .tabitem svg { width: 22px; height: 22px; }
  .topbar .mobilenav > .mobilebtn { display: none; }
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
/* the top bar's blur would turn fixed sheets into its own children's coordinate space; on phones it goes plain */
@media (max-width: 767px) { .topbar { backdrop-filter: none; background: var(--bg); } }

/* ===== M8 — Genel bakış üst şeridi: tek satır özet kutuları, telefonda ikişer ===== */
.ov header { margin-bottom: 12px; }
.ov .big b { font-size: 38px; }
.ov .eta:not(.qstrip) { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 0 0 10px; align-items: stretch; }
.ov .eta:not(.qstrip) > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.ov .eta:not(.qstrip) > span > .k { font-size: 12px; }
.ov .eta:not(.qstrip) > span > .v { font-size: 18px; line-height: 1.2; }
.ov .eta:not(.qstrip) > span.k { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 4px 2px; border: 0; background: none; font-size: 12px; }
.qheads { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.qheads .eta.qstrip { margin: 0; padding: 8px 12px; gap: 6px 16px; flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: baseline; }
.qheads .eta.qstrip .qt { font-size: 14px; }
.qheads .eta.qstrip .v { font-size: 16px; }
.qheads .eta.qstrip .k { font-size: 12px; }
@media (max-width: 767px) {
  .ov header { gap: 8px; align-items: center; }
  .ov .big b { font-size: 30px; }
  .ov .eta:not(.qstrip) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov .eta:not(.qstrip) > span > .v { font-size: 16px; }
  .qheads { flex-direction: column; }
}

/* ===== M18 — telefonda hızlı ekleme (+) ve Taşı sayfası; alttan sayfaların arkası buzlu cam ===== */
.fab { display: none; }
.tasi-btn { display: none; }
.sheetlist .btn { justify-content: flex-start; min-height: 44px; }
@media (max-width: 767px) {
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 30px; line-height: 1; box-shadow: 0 6px 20px rgba(10,10,10,.28); z-index: 34; cursor: pointer; }
  .moves, .queue { display: none; }
  .tasi-btn { display: inline-flex; }
  .taskcard .tc-side { flex-direction: row; align-items: center; gap: 8px; }
  /* frosted glass behind every bottom sheet (owner, 29 Oct): the page underneath blurs and dims */
  .drawer::backdrop, .dialog::backdrop { background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
  body:has(.mobilemenu:not([hidden]))::after, body:has(.bellpanel:not([hidden]))::after, body:has(.usermenu .menu:not([hidden]))::after { content: ''; position: fixed; inset: 0; z-index: 25; background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
  .mobilemenu, .bellpanel, .usermenu .menu { z-index: 40; }
}

/* room cards (M6) */
.roomcard.fav { box-shadow: 0 0 0 1px var(--oda, var(--teal)) inset; }
.favbtn { font: inherit; font-size: 16px; line-height: 1; background: none; border: 1px solid var(--line); border-radius: 999px; width: 28px; height: 28px; cursor: pointer; color: var(--muted); }
.favbtn.on { color: var(--orange); border-color: var(--orange); }
.roomlogo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.nowline { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nowline .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); display: inline-block; }
/* while a sheet from the top bar is open, the bar gives up its own layer so the frosted overlay (25) covers it and the sheet (40) stays above */
@media (max-width: 767px) {
  body:has(.mobilemenu:not([hidden])) .topbar, body:has(.bellpanel:not([hidden])) .topbar, body:has(.usermenu .menu:not([hidden])) .topbar { z-index: auto; }
  .topbar .in { position: relative; z-index: auto; }
}

/* ===== sahip geri bildirimi (29 Ekim, öğleden sonra) ===== */
/* 1) telefonda sağ üstte hamburger menü; profil resmi üst çubuktan kalkar (profil alt çubukta) */
@media (max-width: 767px) {
  .topbar .mobilenav > .mobilebtn { display: inline-flex; width: 40px; height: 40px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 5px; }
  .topbar .usermenu > button { display: none; }
  .topbar .in { gap: 8px; }
  .topbar .mobilenav { order: 3; }
  .topbar .bell { order: 2; }
}
/* 2) bildirim ve menü düğmeleri: 5px köşe, ince çerçeve */
.bellbtn, .navbtn.mobilebtn { border-radius: 5px; border: 1px solid var(--line); }
/* 3) Genel bakış bekleyen / karar kutuları: başlık + satır satır değerler, masaüstünde yan yana, telefonda alt alta ve kısa */
.qheads .eta.qstrip { display: grid; grid-template-columns: 1fr; gap: 0; padding: 10px 14px; align-content: start; flex: 1 1 280px; min-height: 0; }
.qheads .eta.qstrip .qt { font-size: 14px; font-weight: 700; padding-bottom: 6px; margin: 0; }
.qheads .eta.qstrip > span:not(.qt) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.qheads .eta.qstrip > span:not(.qt) .k { font-size: 13px; }
.qheads .eta.qstrip > span:not(.qt) .v { font-size: 15px; }
.qheads .eta.qstrip > span.k { display: block; font-size: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.qheads .eta.qstrip > span.v { font-size: 14px; font-weight: 600; padding: 5px 0; border-top: 1px solid var(--line); }
@media (max-width: 767px) { .qheads .eta.qstrip { flex: 0 0 auto; } }

/* ===== telefon sıkılaştırma (29 Ekim, bölüm bölüm ekran görüntüsüyle) ===== */
@media (max-width: 767px) {
  /* oda başlığı: tek bakışta ad + kod + rol; proje satırı ve asistan çipi küçük */
  .roomhead { gap: 6px 10px; margin-bottom: 8px; }
  .roomhead h1 { font-size: 20px; flex: 1 1 100%; }
  .roomhead .chip { font-size: 11px; padding: 2px 8px; }
  .roomhead > .muted.small { display: none; }
  .roomhead .claude-chip, .roomhead .chip.claude { font-size: 11px; }
  /* sayfa açıklama satırları telefonda gizli; başlıklar küçük */
  .ph-sub, .pagehead .sub, .ov header .sub { display: none; }
  h2.ph { font-size: 20px; margin: 4px 0 10px; }
  .pagehead h1 { font-size: 24px; }
  .wrap { padding-top: 10px; }
  .tabs { padding-bottom: 4px; margin-bottom: 8px; }
  .tabs a { padding: 8px 10px; font-size: 14px; }
  /* görev kartı: sıra ve ok düğmeleri yok, yalnız Taşı */
  .taskcard .queue, .taskcard .moves, .tasklist .queue { display: none; }
  .taskcard { padding: 10px; }
  .taskcard .tc-side { flex-direction: row; align-items: center; gap: 6px; }
  .ov .queue { display: none; }
  /* tablolar sıkı */
  table.data th, table.data td { padding: 6px 6px; font-size: 13px; }
  table.data select { min-height: 32px; font-size: 14px; }
  /* formlarda ipuçları ve geniş boşluklar */
  .hint { display: none; }
  .field { margin-bottom: 10px; }
  .card h2 { font-size: 16px; }
  .card .lead, .card p.small.muted { font-size: 13px; }
  .grid2 { grid-template-columns: 1fr; }
  /* genel bakış */
  .ov header h2.title { font-size: 18px; }
  .ov .big b { font-size: 26px; }
  .ov .eta:not(.qstrip) > span { padding: 6px 10px; }
}
@media (max-width: 767px) {
  /* çekmece içeriği ekrandan taşmasın */
  .drawer, .drawer-in, .drawer-body { overflow-x: hidden; }
  .drawer-body > *, .drawer-body form, .drawer-body .card { min-width: 0; max-width: 100%; }
  .drawer-body input, .drawer-body select, .drawer-body textarea { max-width: 100%; box-sizing: border-box; }
  .drawer-body .segbar, .drawer-body .row { flex-wrap: wrap; overflow: visible; }
  /* tablo satırlarında işlem düğmeleri yan yana ve küçük */
  table.data td .row { flex-wrap: nowrap; gap: 6px; }
  table.data .btn, table.data .btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
}
@media (max-width: 767px) {
  /* the profile tab shows the person's own picture (owner, 29 Oct) */
  .tabitem.tabavatar .avatar, .tabitem.tabavatar img { width: 26px; height: 26px; border-radius: 999px; border: 2px solid transparent; }
  .tabitem.tabavatar.on .avatar, .tabitem.tabavatar.on img { border-color: var(--accent); }
}
/* the hoisted sheets (phones): fixed to the bottom, above the frosted overlay and the top bar */
#sheets { display: contents; }
@media (max-width: 767px) {
  #sheets > .menu, #sheets > .mobilemenu, #sheets > .bellpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; }
  body:has(#sheets > .mobilemenu:not([hidden]))::after, body:has(#sheets > .bellpanel:not([hidden]))::after, body:has(#sheets > .menu:not([hidden]))::after { content: ''; position: fixed; inset: 0; z-index: 25; background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
  body:has(#sheets > .mobilemenu:not([hidden])), body:has(#sheets > .bellpanel:not([hidden])), body:has(#sheets > .menu:not([hidden])) { overflow: hidden; }
  .topbar { z-index: 20 !important; }
}
@media (max-width: 767px) {
  /* profile tab: picture only, rounded square, as tall as icon + label on the other tabs */
  .tabitem.tabavatar > span { display: none; }
  .tabitem.tabavatar .avatar, .tabitem.tabavatar img { width: 38px; height: 38px; border-radius: 5px; border: 2px solid transparent; font-size: 14px; }
  .tabitem.tabavatar.on .avatar, .tabitem.tabavatar.on img { border-color: var(--accent); }
}
@media (max-width: 767px) {
  /* while any sheet is open the top bar itself is frosted and inert; the sheet is the only crisp thing */
  body:has(#sheets > .mobilemenu:not([hidden])) .topbar, body:has(#sheets > .bellpanel:not([hidden])) .topbar, body:has(#sheets > .menu:not([hidden])) .topbar, body:has(dialog.drawer[open]) .topbar, body:has(dialog.dialog[open]) .topbar { filter: blur(6px); opacity: .55; pointer-events: none; }
  /* the profile tab keeps its picture, hides only the label */
  .tabitem.tabavatar > span:not(.avatar) { display: none; }
  .tabitem.tabavatar > span.avatar { display: inline-grid; }
}
@media (max-width: 767px) {
  .tabbar .tabitem.tabavatar .avatar, .tabbar .tabitem.tabavatar .avatar img, .tabbar .tabitem.tabavatar .avatar.pic { border-radius: 5px !important; overflow: hidden; width: 38px; height: 38px; }
}

/* ===== nabız şeridi: üst çubuğun altında akan canlı özet (tıklanmaz) ===== */
.nabiz { position: sticky; top: 56px; z-index: 19; overflow: hidden; white-space: nowrap; background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 30px; height: 30px; pointer-events: none; user-select: none; }
.nabiz .track { display: inline-flex; gap: 36px; padding-left: 100%; animation: nabiz-kay linear infinite; will-change: transform; }
.nabiz .ni { display: inline-flex; align-items: center; gap: 8px; }
.nabiz .ni.stat { font-weight: 700; color: var(--orange); }
.nabiz .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal); display: inline-block; }
@keyframes nabiz-kay { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (max-width: 767px) { .nabiz { font-size: 12px; } body:has(#sheets > .mobilemenu:not([hidden])) .nabiz, body:has(#sheets > .bellpanel:not([hidden])) .nabiz, body:has(#sheets > .menu:not([hidden])) .nabiz, body:has(dialog[open]) .nabiz { filter: blur(6px); opacity: .55; } }

/* ===== Genel bakış tasarım turu (29 Ekim öğleden sonra) ===== */
/* header as a banner */
.ov header { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; align-items: center; }
.ov header h2.title { font-size: 20px; margin: 0; }
.ov .big { display: grid; justify-items: end; gap: 0; }
.ov .big b { font-size: 40px; }
/* queue / decision as fold-outs */
.qheads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.qbox { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qbox.wait { border-style: dashed; }
.qbox > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.qbox > summary::-webkit-details-marker { display: none; }
.qbox .qarrow { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.qbox[open] .qarrow { transform: rotate(-135deg); }
.qbox .eta.qstrip { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
.qbox .eta.qstrip .qt { display: none; }
/* layered progress bar with legend */
.ov .statebar { margin: 0 0 18px; }
.ov .bar { height: 12px; border-radius: 999px; margin: 0 0 8px; background: var(--wait-bg); box-shadow: inset 0 0 0 1px var(--line); }
.ov .bar i { transition: width .4s; }
.ov .bar i + i { border-left: 2px solid var(--surface); }
.ov .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.ov .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* the "now" card: no side stripe */
.ov .now { border-left: 1px solid var(--line); border-top: 3px solid var(--teal); }
/* finished phases behind one button */
.ov details.phases-done > summary { list-style: none; cursor: pointer; display: inline-block; margin: 6px 0; }
.ov details.phases-done > summary::-webkit-details-marker { display: none; }
.ov details.phases-done[open] > summary .btn { background: var(--text); color: var(--bg); border-color: var(--text); }
/* open phases: tidy cards */
.ov .phases-open h3 { margin: 10px 0 8px; }
.ov .phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.ov .phases .ph { padding: 12px 14px 12px; border-radius: 12px; background: var(--surface); display: grid; gap: 6px; }
.ov .phases .ph > .n { font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; }
.ov .phases .ph > div:nth-child(2) { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ov .phases .ph.suruyor { background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 12%, var(--surface)), var(--surface)); border-color: var(--orange); }
.ov .phases .ph.suruyor > .n { color: var(--orange); font-weight: 700; }
.ov .phases .ph .pbar { height: 6px; margin-top: 4px; }
.ov .phases .ph ul { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.ov .phases .ph li { padding: 3px 0; align-items: baseline; }
.ov .phases .ph li.bitti { color: var(--accent); }
.ov .phases .ph li.bitti span:first-child { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ov .phases .ph li.suruyor { color: var(--text); font-weight: 600; }
.ov .phases .ph li span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 767px) {
  .ov header { padding: 12px 14px; }
  .ov .big { justify-items: start; }
  .qheads { grid-template-columns: 1fr; }
  .ov .phases { grid-template-columns: 1fr; }
}
/* ===== nabız şeridi — kayan bant, canlı rozet, renkli haplar ===== */
.nabiz { height: 34px; line-height: 34px; display: flex; align-items: center; background: linear-gradient(90deg, #052c28 0%, #0a0a0a 55%, #1a0c05 100%); color: #f3f1ec; border-bottom: 1px solid rgba(255,255,255,.08); }
.nabiz::before { content: 'CANLI'; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #0a0a0a; background: var(--teal); height: 100%; position: relative; z-index: 2; }
.nabiz::after { content: ''; position: absolute; left: 0; right: 0; height: 100%; pointer-events: none; }
.nabiz { position: sticky; }
.nabiz .track { gap: 14px; padding-left: 40vw; }
.nabiz .ni { padding: 0 11px; height: 22px; line-height: 22px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12.5px; font-weight: 500; color: #f3f1ec; }
.nabiz .ni.stat { background: var(--orange); color: #0a0a0a; font-weight: 800; }
.nabiz .ni.stat::before { content: '◆ '; }
.nabiz .ni .dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(0,159,146,.25); animation: nabiz-dot 1.6s ease-in-out infinite; }
@keyframes nabiz-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.nabiz .sr-only { position: absolute; }
@media (max-width: 767px) { .nabiz { height: 30px; line-height: 30px; } .nabiz::before { padding: 0 8px 0 12px; font-size: 10px; } .nabiz .track { padding-left: 100vw; } .nabiz .ni { font-size: 12px; height: 20px; line-height: 20px; } }

/* ===== nabız bandı — sakin, okunur, her ekranda (yeniden) ===== */
.nabiz { position: sticky; top: 56px; z-index: 19; display: flex; align-items: stretch; height: 32px; background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12.5px; }
.nabiz::before, .nabiz::after { content: none; }
.nabiz .canli { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--on-accent); background: var(--accent); }
.nabiz .canli i { width: 7px; height: 7px; border-radius: 999px; background: #fff; animation: nabiz-dot 1.4s ease-in-out infinite; }
.nabiz .band { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; }
.nabiz .band::before, .nabiz .band::after { content: ''; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 1; pointer-events: none; }
.nabiz .band::before { left: 0; background: linear-gradient(90deg, var(--surface-2), transparent); }
.nabiz .band::after { right: 0; background: linear-gradient(270deg, var(--surface-2), transparent); }
.nabiz .track { display: flex; width: max-content; height: 32px; align-items: center; padding: 0; animation: nabiz-kay2 linear infinite; will-change: transform; }
.nabiz .half { display: inline-flex; align-items: center; gap: 10px; padding-right: 10px; }
.nabiz .ni { display: inline-flex; align-items: center; gap: 6px; height: 22px; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); white-space: nowrap; font-weight: 500; }
.nabiz .ni.stat { background: var(--you-bg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); font-weight: 700; }
.nabiz .ni.stat::before { content: none; }
.nabiz .ni.olay { color: var(--muted); }
.nabiz .ni.asistan .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); box-shadow: none; animation: none; }
.nabiz .ni.asistan.on { border-color: var(--teal); color: var(--text); font-weight: 700; }
.nabiz .ni.asistan.on .dot { background: var(--teal); animation: nabiz-dot 1.4s ease-in-out infinite; }
.nabiz .ni.mesai.on { border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); }
@keyframes nabiz-kay2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 767px) { .nabiz { height: 30px; font-size: 12px; } .nabiz .track { height: 30px; } .nabiz .canli { padding: 0 10px; font-size: 10px; } body:has(#sheets > .mobilemenu:not([hidden])) .nabiz, body:has(#sheets > .bellpanel:not([hidden])) .nabiz, body:has(#sheets > .menu:not([hidden])) .nabiz, body:has(dialog[open]) .nabiz { filter: blur(6px); opacity: .55; } }
/* the clock and the fullscreen button in the top bar */
.clock { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; font-variant-numeric: tabular-nums; margin-right: 4px; }
.clock .ct { font-size: 14px; font-weight: 700; }
.clock .cd { font-size: 11px; color: var(--muted); }
.fsbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.fsbtn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* the pulse band sits above the top bar (owner, 29 Oct): it scrolls away, the bar stays */
.nabiz { position: relative; top: auto; z-index: 21; border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .nabiz { top: auto; } }
/* the band always moves (owner, 29 Oct) — slower when the system asks for less motion */
.nabiz .track { animation-name: nabiz-kay2 !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; animation-play-state: running !important; }
.nabiz { height: 32px; }
@media (prefers-reduced-motion: reduce) { .nabiz .track { animation-duration: 80s !important; } }

/* layered progress bar: every state its own colour, grows in */
.ov .bar { height: 14px; display: flex; gap: 2px; background: transparent; box-shadow: none; }
.ov .bar i { border-radius: 4px; transition: width .9s cubic-bezier(.2,.8,.2,1); border-left: 0 !important; }
.ov .bar i.suruyor { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px) !important; background-size: 17px 17px; animation: bar-akis 1s linear infinite; }
@keyframes bar-akis { from { background-position: 0 0; } to { background-position: 17px 0; } }
.ov .legend { gap: 6px 10px; }
.ov .legend > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.ov .legend > span.all { font-weight: 700; background: var(--text); color: var(--bg); border-color: var(--text); }
.ov .legend b { font-variant-numeric: tabular-nums; }
.ov .legend em { font-style: normal; color: var(--muted); font-size: 11.5px; }
/* clock and fullscreen on phones and tablets too (owner, 29 Oct): compact on phones */
@media (max-width: 767px) {
  .clock { display: inline-flex; margin-right: 0; }
  .clock .ct { font-size: 13px; }
  .clock .cd { font-size: 10px; }
  .fsbtn { display: grid; width: 40px; height: 40px; }
  .topbar .in { gap: 6px; }
  .topbar .brand .brandmark img { height: 22px; }
}
@media (max-width: 380px) { .clock .cd { display: none; } }
.fsbtn[hidden] { display: none !important; }
@media (min-width: 768px) and (max-width: 1023px) { .usermenu .name { display: none; } .usermenu > button { padding: 4px; } .topbar .in { gap: 10px; } }

/* ===== Genel bakış alt sekmeleri: düzenli, kompakt (masaüstü, tablet, telefon) ===== */
/* sub-tab bar: one line, scrolls, clear active state */
.ov .ovtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.ov .ovtabs::-webkit-scrollbar { display: none; }
.ov .ovtabs [role=tab] { flex: none; white-space: nowrap; }
/* Maddeler: filter chips one line; state tiles compact */
.ov .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ov .filters::-webkit-scrollbar { display: none; }
.ov .filters button { flex: none; white-space: nowrap; padding: 6px 12px; font-size: 13.5px; }
.ov .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.ov .tile { padding: 10px 12px; gap: 2px; }
.ov .tile b { font-size: 22px; }
.ov .tile .ts { font-size: 12px; line-height: 1.35; }
.ov section.items > h3 { font-size: 16px; margin: 6px 0 8px; }
/* item rows: number · title + meta · time + state; actions small and on one line */
.ov section.items details { border-radius: 10px; margin-bottom: 6px; }
.ov section.items summary { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; align-items: start; }
.ov section.items summary .no { color: var(--muted); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ov .itext { font-size: 14.5px; font-weight: 600; }
.ov .ititle { gap: 6px; }
.ov .ititle > a.small { display: none; }
.ov .ititle .queue { display: inline-flex; gap: 4px; margin: 0; }
.ov .ititle .queue .btn.small { min-height: 26px; padding: 2px 8px; font-size: 12px; }
.ov .ititle > .queue, .ov .ititle > .badges { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ov .iright { gap: 12px; }
.ov .itime { font-size: 12.5px; }
.ov .body { padding: 0 14px 12px 56px; font-size: 13.5px; }
/* changed files: a tidy table on wide screens, cards on phones */
.ov table.files { font-size: 13px; }
.ov table.files td.f code { word-break: break-all; }
/* releases and log: time column narrow, rows separated */
.ov .rels li, .ov .daygroup .log li { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding: 7px 0; }
.ov .rels li:last-child, .ov .daygroup .log li:last-child { border-bottom: 0; }
.ov .rels .rs { font-weight: 500; }
@media (max-width: 1023px) { .ov .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ov .card { padding: 12px; }
  .ov .tile b { font-size: 20px; }
  .ov section.items summary { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .ov section.items .iright { grid-column: 2; justify-content: space-between; width: 100%; }
  .ov section.items .itime { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .ov .body { padding: 0 12px 12px 12px; }
  .ov .rels li { grid-template-columns: 44px minmax(0, 1fr); }
  .ov .rels .rh { grid-column: 2; justify-self: start; }
  .ov .daygroup .log li { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
  /* changed files as cards */
  .ov table.files thead { display: none; }
  .ov table.files, .ov table.files tbody, .ov table.files tr, .ov table.files td { display: block; width: 100%; }
  .ov table.files tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
  .ov table.files td { border: 0; padding: 2px 0; }
  .ov table.files td.f { font-weight: 600; }
  .ov table.files td:empty { display: none; }
}

/* masaüstü üst çubuk: rozet, gezinme düğmeleri, saat, tam ekran, zil ve profil aynı boy, aynı çerçeve, 5px köşe */
@media (min-width: 768px) {
  .topbar .brand-role, .topbar .navbtn, .topbar .clock, .topbar .fsbtn, .topbar .bellbtn, .topbar .usermenu > button {
    height: 40px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 5px; display: inline-flex; align-items: center; background: var(--surface);
  }
  .topbar .brand-role { padding: 0 12px; font-size: 13px; border-style: solid; }
  .topbar .navbtn { padding: 0 12px; gap: 6px; color: var(--text); }
  .topbar .navbtn[aria-expanded="true"], .topbar .navbtn.on { background: var(--surface-2); }
  .topbar .clock { padding: 0 10px; flex-direction: column; justify-content: center; align-items: flex-end; margin: 0; }
  .topbar .fsbtn, .topbar .bellbtn { width: 40px; justify-content: center; padding: 0; }
  .topbar .usermenu > button { padding: 0 10px 0 4px; gap: 8px; }
  .topbar .usermenu > button .avatar { width: 30px; height: 30px; border-radius: 5px; }
  .topbar .topnav { gap: 6px; }
}
.topbar .fsbtn, .topbar .bellbtn, .topbar .clock, .topbar .usermenu > button { flex: none; }

/* sahip geri bildirimi: saat çerçevesiz; rol rozeti düz çerçeve, zeminsiz; profil kesik çerçeve, koyu zemin */
@media (min-width: 768px) {
  .topbar .clock { border: 0 !important; background: none !important; padding: 0 6px; }
  .topbar .brand-role { background: transparent !important; border-style: solid !important; }
  .topbar .usermenu > button { border-style: dashed !important; background: var(--text) !important; color: var(--bg) !important; }
}
/* Agent Team chip on a room card: never wider than the card */
.roomcard .chip.claude-durum, .roomcard .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; min-width: 0; }
.roomcard .chip.claude-durum > span:last-child, .roomcard .meta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.roomcard { min-width: 0; overflow: hidden; }
/* the greeting on the rooms page */
.greet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%, color-mix(in srgb, var(--orange) 8%, var(--surface))); }
.greet .gh { font-size: 22px; line-height: 1.2; }
.greet .gh b { font-weight: 800; }
.greet .gs { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.greet .gstats { display: flex; flex-wrap: wrap; gap: 8px; }
.greet .gstats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.greet .gstats b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.greet .gstats span.on { border-color: var(--teal); }
.greet .gstats span.on b { color: var(--accent); }
@media (max-width: 767px) { .greet { padding: 12px 14px; } .greet .gh { font-size: 18px; } .greet .gstats b { font-size: 16px; } }

/* Maddeler süzgeç özetleri (Bitti / Sürüyor / Bekliyor / Karar): başlık + satır satır değerler, kart */
#gb-panel .eta.qstrip { display: grid; grid-template-columns: 1fr; gap: 0; padding: 12px 16px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
#gb-panel .eta.qstrip.wait { border-style: dashed; }
#gb-panel .eta.qstrip.run { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
#gb-panel .eta.qstrip.done { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
#gb-panel .eta.qstrip .qt { display: block; font-size: 15px; font-weight: 700; padding-bottom: 8px; margin: 0; }
#gb-panel .eta.qstrip > span:not(.qt) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
#gb-panel .eta.qstrip > span:not(.qt) .k { font-size: 13px; color: var(--muted); }
#gb-panel .eta.qstrip > span:not(.qt) .v { font-size: 16px; font-weight: 700; }
#gb-panel .eta.qstrip > span.k, #gb-panel .eta.qstrip > span.v { display: block; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
#gb-panel .eta.qstrip > span.v { font-weight: 600; }

/* Maddeler süzgeci: uygulama tarzı eşit kutular (renkli nokta, etiket, büyük sayı) — masaüstü, tablet, telefon */
.ov .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0 0 14px; }
.ov .filters .fseg { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; white-space: normal; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.ov .filters .fseg:hover { border-color: var(--muted); }
.ov .filters .fseg:active { transform: scale(.98); }
.ov .filters .fseg .fl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.ov .filters .fseg .fd { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--muted); }
.ov .filters .fseg .fn { font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ov .filters .fseg-hepsi .fd { background: var(--text); }
.ov .filters .fseg-bitti .fd { background: #009F92; }
.ov .filters .fseg-suruyor .fd { background: #FB5206; }
.ov .filters .fseg-bekliyor .fd { background: #b9b4a8; }
.ov .filters .fseg-karar .fd { background: #7c5cff; }
.ov .filters .fseg[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface); color: var(--text); }
.ov .filters .fseg[aria-pressed="true"] .fl { color: var(--text); }
.ov .filters .fseg-bitti[aria-pressed="true"] { border-color: #009F92; box-shadow: inset 0 0 0 1px #009F92; }
.ov .filters .fseg-suruyor[aria-pressed="true"] { border-color: #FB5206; box-shadow: inset 0 0 0 1px #FB5206; }
.ov .filters .fseg-karar[aria-pressed="true"] { border-color: #7c5cff; box-shadow: inset 0 0 0 1px #7c5cff; }
.ov .filters .fseg-hepsi[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ov .filters .fseg-hepsi[aria-pressed="true"] .fl { color: var(--bg); }
.ov .filters .fseg-hepsi[aria-pressed="true"] .fd { background: var(--bg); }
@media (max-width: 767px) {
  .ov .filters { gap: 6px; }
  .ov .filters .fseg { min-height: 58px; padding: 8px 8px; border-radius: 10px; gap: 4px; }
  .ov .filters .fseg .fl { font-size: 11px; gap: 4px; }
  .ov .filters .fseg .fd { width: 7px; height: 7px; }
  .ov .filters .fseg .fn { font-size: 18px; }
}

/* bell panel: turn on push on this device */
.pushrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 0 0 6px; background: var(--you-bg); border-radius: 10px; }
.pushrow[hidden] { display: none; }

/* profile sheet (owner, 29 Oct): the account header is the way into Hesabım; sign-out red and dashed */
.usermenu .menu a.acchead, #sheets .menu a.acchead { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 2px 0 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); text-decoration: none; }
.menu a.acchead:hover, .menu a.acchead.on { border-color: var(--orange); }
.menu a.acchead .avatar { width: 40px; height: 40px; font-size: 15px; flex: 0 0 auto; }
.menu a.acchead .who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.menu a.acchead .who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu a.acchead .who span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu a.acchead .who em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--orange); }
.menu a.acchead .ico { color: var(--muted); flex: 0 0 auto; }
.menu button.logoutbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px dashed var(--red, #d93636); border-radius: 5px; background: transparent; color: var(--red, #d93636); font-weight: 600; }
.menu button.logoutbtn:hover { background: color-mix(in srgb, var(--red, #d93636) 10%, transparent); }

/* room card: pinned rooms (Lucide pin) */
.favbtn { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; padding: 0; }
.favbtn .ico { transform: rotate(35deg); }
.favbtn.on .ico { transform: none; }
.favbtn.on .ico path { fill: currentColor; }
.favbtn.on .ico path:first-child { fill: none; }

/* room card: who is working, looping */
.workline { position: relative; overflow: hidden; height: 26px; border-radius: 5px; background: color-mix(in srgb, var(--teal) 8%, var(--surface)); font-size: 12.5px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.workline .wt { display: flex; width: max-content; height: 26px; align-items: center; animation: nabiz-kay2 linear infinite; will-change: transform; }
.workline .wh { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; }
.workline .wi { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--muted); }
.workline .wi b { color: var(--text); font-weight: 600; }
.workline .wi .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); display: inline-block; }
.workline .wi.on .dot, .workline .wi.team .dot { background: var(--teal); animation: nabiz-dot 1.6s ease-in-out infinite; }
.workline .wi.team b { color: var(--orange); }
.roomcard:hover .workline .wt { animation-play-state: paused; }

/* Genel bakış › open phases: one size closed, the arrow at the right opens them, long step lists scroll inside */
.ov .phases { align-items: start; }
.ov .phases .ph { height: 232px; grid-template-rows: auto auto auto auto minmax(0, 1fr); overflow: hidden; align-content: start; }
.ov .phases .ph.wide { height: auto; max-height: 480px; }
.ov .phases .ph .phhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ov .phases .ph .phhead .n { font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov .phases .ph.suruyor .phhead .n { color: var(--orange); font-weight: 700; }
.ov .phases .ph .pt { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov .phases .ph.wide .pt { -webkit-line-clamp: unset; display: block; }
.ov .phases .ph ul { min-height: 0; overflow: hidden; margin-bottom: 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.ov .phases .ph.wide ul { overflow-y: auto; max-height: 300px; -webkit-mask-image: none; mask-image: none; overscroll-behavior: contain; }
.phtoggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.phtoggle:hover { border-color: var(--orange); color: var(--text); }
.phtoggle .arr { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.phtoggle[aria-expanded="true"] .arr { transform: translateY(2px) rotate(-135deg); }
@media (max-width: 767px) { .ov .phases .ph { height: 232px; } }
/* Sistem ayarları › Giriş tanıtımı */
.introedit { display: grid; gap: 12px; margin: 12px 0; }
.introstep { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.introstep legend { font-weight: 700; padding: 0 6px; }
.introstep textarea { width: 100%; box-sizing: border-box; }

/* ===== Sign-in (owner, 29 Oct) — karanix.com's language: black ground, hairlines, orange, mono details ===== */
.authx, .intro {
  --k-bg: #F8F7F4; --k-panel: rgba(255,255,255,.86); --k-line: #E2DFD7; --k-line2: #ECEAE3; --k-text: #0A0A0A; --k-muted: #616161; --k-dim: #9A978F;
  --k-or: #FB5206; --k-tq: #005952; --k-btn: #0A0A0A; --k-btn-tx: #FFFFFF; --k-in: rgba(255,255,255,.7); --k-term: rgba(255,255,255,.92);
  --k-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.authx, .intro) {
  --k-bg: #0A0A0A; --k-panel: rgba(10,10,10,.84); --k-line: #262626; --k-line2: #1C1C1C; --k-text: #FFFFFF; --k-muted: #A3A3A3; --k-dim: #5C5C5C;
  --k-tq: #7ADCD0; --k-btn: #FFFFFF; --k-btn-tx: #0A0A0A; --k-in: rgba(255,255,255,.02); --k-term: rgba(14,14,14,.92);
} }
:root[data-theme="dark"] :is(.authx, .intro) {
  --k-bg: #0A0A0A; --k-panel: rgba(10,10,10,.84); --k-line: #262626; --k-line2: #1C1C1C; --k-text: #FFFFFF; --k-muted: #A3A3A3; --k-dim: #5C5C5C;
  --k-tq: #7ADCD0; --k-btn: #FFFFFF; --k-btn-tx: #0A0A0A; --k-in: rgba(255,255,255,.02); --k-term: rgba(14,14,14,.92);
}
body.authmode #ust, body.authmode .nabiz, body.authmode .tabbar, body.authmode .skip { display: none !important; }
body.authmode { overflow-x: hidden; background: #0A0A0A; }
body.authmode #icerik { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.authx { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--k-bg); color: var(--k-text); isolation: isolate; }
.ax-ground { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.intro .ax-ground { position: absolute; z-index: 0; }
.authx .brandmark .product, .intro .brandmark .product { display: inline-block !important; color: var(--k-text); }
.ax-brandrow .brandmark img { height: 34px; }
.ax-brandrow .brandmark .product { font-size: 18px; }
.ax-brandrow.small .brandmark img { height: 28px; }
.ax-brandrow.small .brandmark .product { font-size: 16px; }
@keyframes k-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- layout: the centre on the left, the form panel on the right --- */
.ax-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 34vw); min-height: 100vh; min-height: 100dvh; }
.ax-hero { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; }
.ax-hero > .ax-brandrow { padding: 30px 56px 0; animation: k-up .6s both; }
.ax-copy { align-self: center; padding: 40px 56px 8px; display: grid; gap: 22px; justify-items: start; }
.ax-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--k-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k-muted); animation: k-up .6s .05s both; }
.ax-badge i { width: 8px; height: 8px; background: var(--k-or); box-shadow: 0 0 12px var(--k-or); animation: k-blink 2.4s steps(2, jump-none) infinite; }
@keyframes k-blink { 50% { opacity: .35; } }
.ax-title { margin: 0; font-size: clamp(46px, 6vw, 96px); font-weight: 600; line-height: .96; letter-spacing: -.035em; color: var(--k-text); }
.ax-title .ln { display: block; animation: k-up .7s .1s both; }
.ax-title .ln + .ln { animation-delay: .2s; }
.ax-title .mark { position: relative; display: inline-block; }
.ax-title .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--k-or); transform-origin: left; animation: k-bar 1s .7s cubic-bezier(.7,0,.2,1) both; }
@keyframes k-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ax-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--k-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--k-muted); animation: k-up .7s .3s both; }
.ax-tags span { display: inline-flex; align-items: center; gap: 10px; }
.ax-tags span::before { content: ""; width: 5px; height: 5px; background: var(--k-dim); }
.ax-tags span:first-child::before { background: var(--k-or); }
.ax-play { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--k-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; animation: k-up .7s .4s both; }
.ax-play .pl { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--k-line); border-radius: 50%; position: relative; }
.ax-play .pl::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--k-or); opacity: 0; animation: k-ring 2.4s ease-out infinite; }
@keyframes k-ring { 0% { opacity: .8; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.ax-play .u { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--k-text) 30%, transparent); text-underline-offset: 6px; }
.ax-play:hover .u { text-decoration-color: var(--k-text); }
.ax-earth { position: relative; height: clamp(230px, 36vh, 400px); min-height: 0; }
.ax-globe { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity .8s; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.ax-globe.ready { opacity: 1; }
.ax-globe:active { cursor: grabbing; }

/* the typing terminal */
.ax-term { position: absolute; right: 40px; bottom: 26px; width: min(360px, 46%); border: 1px solid var(--k-line); border-radius: 8px; background: var(--k-term); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); overflow: hidden; animation: k-up .8s .6s both; pointer-events: none; }
.ax-termbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--k-line); font-family: var(--k-mono); font-size: 11px; color: var(--k-dim); }
.ax-termbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--k-line); }
.ax-termbar i:first-child { background: var(--k-or); }
.ax-termbar span { margin-left: 8px; }
.ax-termbody { height: 150px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-family: var(--k-mono); font-size: 12px; line-height: 1.55; overflow: hidden; }
.ax-termbody .tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--k-text); }
.ax-termbody .tl.p { color: var(--k-text); }
.ax-termbody .tl.o { color: var(--k-tq); }
.ax-termbody .tl.k { color: var(--k-muted); }
.ax-termbody .tl:not(.done)::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--k-or); animation: k-blink 1s steps(2, jump-none) infinite; }

/* the facts in ruled cells */
.ax-factswrap { position: relative; z-index: 1; }
.ax-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--k-line); background: var(--k-panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ax-fact { padding: 18px 24px; min-width: 0; }
.ax-fact:first-child { padding-left: 56px; }
.ax-fact + .ax-fact { border-left: 1px solid var(--k-line); }
.ax-fact dt { display: flex; align-items: center; gap: 7px; font-family: var(--k-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--k-muted); }
.ax-fact dt svg { color: var(--k-tq); flex: 0 0 auto; }
.ax-fact dd { margin: 7px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--k-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-clock { font-family: var(--k-mono); font-variant-numeric: tabular-nums; }
.ax-live { width: 8px; height: 8px; border-radius: 50%; background: var(--k-dim); flex: 0 0 auto; }
.ax-live.on { background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: k-live 2s ease-out infinite; }
@keyframes k-live { to { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }

/* the form panel */
.ax-panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; border-left: 1px solid var(--k-line); background: var(--k-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ax-runner { position: absolute; left: -1px; top: 0; width: 1px; height: 140px; background: linear-gradient(to bottom, transparent, var(--k-or), transparent); animation: k-run 5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes k-run { 0% { transform: translateY(-140px); } 100% { transform: translateY(100vh); } }
.ax-paneltop { display: flex; justify-content: flex-end; align-items: center; padding: 26px 40px 0; }
.ax-paneltop .ax-brandrow { display: none; }
.ax-theme { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--k-line); border-radius: 8px; background: transparent; color: var(--k-text); cursor: pointer; transition: border-color .2s, transform .3s; }
.ax-theme:hover { border-color: var(--k-text); transform: rotate(-15deg); }
.ax-formwrap { align-self: center; width: 100%; max-width: 420px; justify-self: center; padding: 24px 40px; box-sizing: content-box; animation: k-up .7s .25s both; }
.ax-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--k-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k-muted); }
.ax-kicker svg { color: var(--k-or); }
.ax-panel .card { background: none; border: 0; box-shadow: none; padding: 0; color: var(--k-text); }
.ax-panel h1 { margin: 0 0 8px; font-size: 38px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: var(--k-text); }
.ax-panel .sub { margin: 0 0 30px; font-size: 15px; color: var(--k-muted); }
.ax-panel .field { margin-bottom: 20px; }
.ax-panel .field > label { font-family: var(--k-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k-muted); margin-bottom: 4px; }
.ax-panel .field .hint { font-size: 12.5px; color: var(--k-dim); }
.ax-panel .form-error, .ax-panel .notice { border-radius: 6px; }

/* the framed inputs (Neurofield-like) */
.nf { --nf-c: var(--k-dim); position: relative; display: flex; align-items: center; height: 54px; padding: 0 24px; border: 1px solid var(--k-line2); background: var(--k-in);
  background-image: linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c)), linear-gradient(var(--nf-c), var(--nf-c));
  background-repeat: no-repeat; background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px;
  background-position: -1px -1px, -1px -1px, calc(100% + 1px) -1px, calc(100% + 1px) -1px, -1px calc(100% + 1px), -1px calc(100% + 1px), calc(100% + 1px) calc(100% + 1px), calc(100% + 1px) calc(100% + 1px);
  margin: 10px 0 0; transition: border-color .25s, box-shadow .25s; }
.nf.focus { --nf-c: var(--k-or); border-color: color-mix(in srgb, var(--k-or) 35%, var(--k-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-or) 8%, transparent), inset 0 0 30px -18px var(--k-or); }
.nf > input, .nf .pwbox input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; padding: 0 !important; color: var(--k-text); font-family: var(--k-mono); font-size: 14.5px; letter-spacing: .04em; }
.nf input::placeholder { color: var(--k-dim); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.nf .pwbox { flex: 1; display: flex; align-items: center; height: 100%; min-width: 0; }
.nf .pweye { position: static; transform: none; width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--k-muted); cursor: pointer; margin-right: -6px; }
.nf .pweye:hover, .nf .pweye[aria-pressed="true"] { color: var(--k-or); }
.nf-plus { position: absolute; width: 9px; height: 9px; pointer-events: none; transition: transform .4s, opacity .3s; }
.nf-plus::before, .nf-plus::after { content: ""; position: absolute; background: var(--k-dim); }
.nf-plus::before { left: 4px; top: 0; width: 1px; height: 9px; }
.nf-plus::after { top: 4px; left: 0; height: 1px; width: 9px; }
.nf-plus.tl { left: -16px; top: -16px; } .nf-plus.tr { right: -16px; top: -16px; } .nf-plus.bl { left: -16px; bottom: -16px; } .nf-plus.br { right: -16px; bottom: -16px; }
.nf.focus .nf-plus { transform: rotate(90deg); }
.nf.focus .nf-plus::before, .nf.focus .nf-plus::after { background: var(--k-or); }
.nf-ticks { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 3px; pointer-events: none; }
.nf-ticks:first-of-type { left: 7px; }
.nf > .nf-ticks:last-child { right: 7px; }
.nf-ticks i { display: block; width: 7px; height: 2px; background: var(--k-or); opacity: .22; }
.nf.focus .nf-ticks i { animation: nf-tick 1.4s ease-in-out infinite; }
.nf.focus .nf-ticks i:nth-child(2) { animation-delay: .1s; } .nf.focus .nf-ticks i:nth-child(3) { animation-delay: .2s; } .nf.focus .nf-ticks i:nth-child(4) { animation-delay: .3s; } .nf.focus .nf-ticks i:nth-child(5) { animation-delay: .4s; } .nf.focus .nf-ticks i:nth-child(6) { animation-delay: .5s; }
.nf.typing .nf-ticks i { animation-duration: .35s; }
.nf.filled:not(.focus) .nf-ticks i { opacity: .55; }
@keyframes nf-tick { 0%, 100% { opacity: .2; } 50% { opacity: 1; box-shadow: 0 0 6px var(--k-or); } }
.nf-scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nf-scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -35%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--k-or) 16%, transparent), transparent); }
.nf.focus .nf-scan::after { animation: nf-scan 1.1s cubic-bezier(.6,0,.3,1); }
@keyframes nf-scan { to { left: 105%; } }
.capswarn { margin-top: 8px; font-family: var(--k-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--k-or, var(--orange)); }
.capswarn[hidden] { display: none; }
.pwbox { position: relative; }
.pweye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }

.ax-panel .authopts { margin: 4px 0 24px; font-size: 14px; gap: 12px; flex-wrap: wrap; }
.ax-panel .check { color: var(--k-text); font-size: 14px; }
.ax-panel .check input { accent-color: var(--k-or); }
.ax-panel .authopts a, .ax-panel .foot a { color: var(--k-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--k-text) 30%, transparent); text-underline-offset: 5px; }
.ax-panel .authopts a:hover, .ax-panel .foot a:hover { text-decoration-color: var(--k-or); }
.ax-panel .btn { height: 52px; border-radius: 8px; border: 1px solid var(--k-line); background: transparent; color: var(--k-text); }
.ax-panel button[type="submit"], .ax-panel .btn.primary { position: relative; width: 100%; height: 56px; border: 0; border-radius: 8px; background: var(--k-btn); color: var(--k-btn-tx); font-family: var(--k-mono); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; transition: transform .15s, box-shadow .25s; }
.ax-panel button[type="submit"]::after { content: "→"; font-family: inherit; transition: transform .25s; }
.ax-panel button[type="submit"]:hover::after { transform: translateX(5px); }
.ax-panel button[type="submit"]::before, .ax-panel .btn.primary::before { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--k-or) 45%, transparent), transparent); transform: skewX(-20deg); animation: k-sheen 5s ease-in-out infinite; }
@keyframes k-sheen { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.ax-panel button[type="submit"]:hover, .ax-panel .btn.primary:hover { box-shadow: 0 0 0 1px var(--k-or), 0 18px 40px -16px var(--k-or); }
.ax-panel button[type="submit"]:active { transform: scale(.99); }
.ax-panel .foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--k-muted); display: grid; gap: 6px; }
.ax-panelfoot { display: grid; gap: 6px; justify-items: center; padding: 0 40px 26px; text-align: center; font-family: var(--k-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted); }
.ax-panelfoot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ax-panelfoot .sq { width: 6px; height: 6px; background: #22C55E; }
.ax-panelfoot .legal { color: var(--k-dim); letter-spacing: .06em; }

/* tablets and phones: one column, the form after the globe, the facts last */
@media (max-width: 1080px) {
  .ax-grid { display: flex; flex-direction: column; }
  .ax-hero { display: contents; }
  .ax-hero > .ax-brandrow { order: 1; padding: 18px 18px 0; padding-right: 70px; }
  .ax-copy { order: 2; padding: 26px 18px 6px; gap: 16px; }
  .ax-earth { order: 3; height: clamp(170px, 30vh, 260px); margin-top: 6px; }
  .ax-panel { order: 4; border-left: 0; border-top: 1px solid var(--k-line); }
  .ax-factswrap { order: 5; }
  .ax-runner { left: 0; top: -1px; width: 140px; height: 1px; background: linear-gradient(to right, transparent, var(--k-or), transparent); animation-name: k-run-x; }
  @keyframes k-run-x { 0% { transform: translateX(-140px); } 100% { transform: translateX(100vw); } }
  .ax-paneltop { position: fixed; top: 12px; right: 12px; padding: 0; z-index: 5; }
  .ax-theme { background: var(--k-panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .ax-formwrap { max-width: 520px; padding: 30px 20px 26px; box-sizing: border-box; }
  .ax-panel h1 { font-size: 30px; }
  .ax-panel .sub { margin-bottom: 22px; }
  .ax-panelfoot { padding: 0 18px 22px; }
  .ax-title { font-size: clamp(44px, 13vw, 72px); }
  .ax-tags { font-size: 10.5px; gap: 6px 16px; }
  .ax-badge { font-size: 10px; letter-spacing: .12em; }
  .ax-term { right: 14px; bottom: 10px; width: min(300px, calc(100% - 28px)); }
  .ax-termbody { height: 96px; font-size: 11px; }
  .ax-facts { grid-template-columns: 1fr 1fr; }
  .ax-fact, .ax-fact:first-child { padding: 14px 18px; }
  .ax-fact:nth-child(3) { border-left: 0; }
  .ax-fact:nth-child(n+3) { border-top: 1px solid var(--k-line); }
  .ax-fact dd { font-size: 13.5px; }
}

/* ===== The intro: a short film — the turning globe in the circle, the steps beside it ===== */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--k-bg); color: var(--k-text); overflow: hidden; animation: k-fade .4s ease both; }
.intro.out { animation: k-fadeout .32s ease both; }
@keyframes k-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-fadeout { to { opacity: 0; transform: scale(1.015); } }
.ix-frame { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 24px 48px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; max-width: 1440px; margin: 0 auto; }
.ix-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ix-topr { display: flex; align-items: center; gap: 18px; font-family: var(--k-mono); font-size: 12px; letter-spacing: .14em; color: var(--k-muted); }
.ix-count { font-variant-numeric: tabular-nums; }
.ix-chip { padding: 4px 8px; border: 1px solid var(--k-or); color: var(--k-or); border-radius: 4px; font-size: 10.5px; }
.ix-skip { border: 0; background: none; padding: 8px 2px; font-family: var(--k-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k-text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--k-text) 35%, transparent); cursor: pointer; }
.ix-skip:hover { text-decoration-color: var(--k-or); }
.ix-skip[hidden] { display: inline-block !important; visibility: hidden; }
.ix-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; min-height: 0; }
.ix-orb { position: relative; justify-self: center; width: min(44vw, 64vh, 640px); aspect-ratio: 1; }
.ix-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--k-or) 14%, transparent), transparent 65%); filter: blur(30px); animation: k-breathe 6s ease-in-out infinite; }
@keyframes k-breathe { 50% { transform: scale(1.08); opacity: .7; } }
.ix-globe { position: relative; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity .9s; }
.ix-globe.ready { opacity: 1; }
.ix-text { min-width: 0; touch-action: pan-y; user-select: none; }
.ix-slide { display: grid; gap: 20px; }
.ix-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--k-mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--k-muted); animation: k-up .6s both; }
.ix-eyebrow i { width: 8px; height: 8px; background: var(--k-or); box-shadow: 0 0 12px var(--k-or); }
.ix-slide h2 { margin: 0; font-size: clamp(40px, 5.2vw, 86px); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.ix-slide h2 .w { display: inline-block; animation: k-word .7s cubic-bezier(.2,.8,.2,1) both; }
.ix-slide h2 .v { color: var(--k-or); }
@keyframes k-word { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.ix-slide p { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--k-muted); animation: k-up .7s .45s both; }
.ix-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-top: 18px; border-top: 1px solid var(--k-line); }
.ix-bars { display: flex; gap: 6px; }
.ix-bar { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.ix-bar::before { content: ""; flex: 1; height: 2px; background: var(--k-line); }
.ix-bar { position: relative; }
.ix-bar i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--k-or); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 8px var(--k-or); }
.ix-ctrl { display: flex; gap: 8px; }
.ix-btn { height: 46px; min-width: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; cursor: pointer; font-family: var(--k-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ix-btn.ghost { border: 1px solid var(--k-line); background: transparent; color: var(--k-text); }
.ix-btn.ghost:hover:not(:disabled) { border-color: var(--k-text); }
.ix-btn.ghost:disabled { opacity: .35; cursor: default; }
.ix-btn.primary { padding: 0 20px; border: 0; background: var(--k-btn); color: var(--k-btn-tx); transition: box-shadow .25s; }
.ix-btn.primary:hover, .ix-btn.primary.last { box-shadow: 0 0 0 1px var(--k-or), 0 16px 36px -14px var(--k-or); }
.ix-btn:focus-visible { outline: 2px solid var(--k-or); outline-offset: 3px; }
@media (max-width: 900px) {
  .ix-frame { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .ix-stage { grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .ix-orb { width: min(82vw, 44vh); }
  .ix-slide { gap: 12px; }
  .ix-slide h2 { font-size: clamp(34px, 10vw, 52px); }
  .ix-slide p { font-size: 15.5px; }
  .ix-eyebrow { font-size: 10.5px; }
  .ix-foot { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .ix-ctrl { justify-content: flex-end; }
  .ix-ctrl .ix-btn.primary { flex: 1; }
  .ix-topr { gap: 12px; font-size: 11px; }
}
@media (max-height: 620px) and (max-width: 900px) { .ix-orb { width: min(60vw, 34vh); } .ix-slide p { display: none; } }

/* sign-in, steady (owner, 29 Oct: no moving lines, nothing that jumps; the intro first) */
html.authboot body { background: #0A0A0A; }
@media (prefers-color-scheme: light) { html.authboot:not([data-theme="dark"]) body { background: #F8F7F4; } }
html.authboot[data-theme="light"] body { background: #F8F7F4; }
html.authboot #ust, html.authboot .skip, html.authboot #icerik > .wrap { visibility: hidden; }
@keyframes k-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-word { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.ax-runner { display: none; }
.ax-badge i { animation: none; }
.ax-termbody { justify-content: flex-start; }
.intro.instant { animation: none; }
/* sign-in: one screen, no scrolling on phones or desktops (owner, 29 Oct) */
html.authboot, html:has(body.authmode), body.authmode { height: 100%; overflow: hidden; overscroll-behavior: none; }
.authx { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.ax-grid { height: 100%; min-height: 0; }
.ax-hero { grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: 0; }
.ax-copy { align-self: start; padding-top: clamp(20px, 6vh, 72px); }
.ax-earth { height: auto; min-height: 0; }
.ax-panel { min-height: 0; overflow-y: auto; scrollbar-width: none; }
.ax-panel::-webkit-scrollbar { display: none; }
@media (max-width: 1080px) {
  .ax-grid { height: 100%; }
  .ax-hero > .ax-brandrow { flex: none; padding-top: 14px; }
  .ax-copy { flex: none; padding: 14px 18px 0; gap: 10px; }
  .ax-title { font-size: clamp(34px, 10.5vw, 56px); }
  .ax-play { font-size: 13px; } .ax-play .pl { width: 30px; height: 30px; }
  .ax-earth { flex: 1 1 0; min-height: 0; height: auto; margin-top: 0; }
  .ax-term, .ax-factswrap { display: none; }
  .ax-panel { flex: none; max-height: 72%; }
  .ax-formwrap { padding: 18px 18px 10px; }
  .ax-kicker { margin-bottom: 10px; }
  .ax-panel h1 { font-size: 26px; margin-bottom: 4px; }
  .ax-panel .sub { font-size: 14px; margin-bottom: 14px; }
  .ax-panel .field { margin-bottom: 12px; }
  .nf { height: 50px; margin-top: 8px; }
  .ax-panel .authopts { margin: 0 0 14px; }
  .ax-panel button[type="submit"] { height: 52px; }
  .ax-panel .foot { margin-top: 12px; font-size: 12.5px; }
  .ax-panelfoot { padding: 0 18px calc(10px + env(safe-area-inset-bottom)); font-size: 9.5px; }
  .ax-panelfoot > span:first-child { display: none; }
}
@media (max-width: 1080px) and (max-height: 700px) { .ax-earth { display: none; } .ax-tags { display: none; } .ax-panel { max-height: none; flex: 1 1 auto; } }
/* sign-in: no entrance effects at all — the text is simply there (owner: nothing may jump) */
.ax-hero > .ax-brandrow, .ax-badge, .ax-title .ln, .ax-title .mark::after, .ax-tags, .ax-play, .ax-term, .ax-formwrap { animation: none !important; opacity: 1 !important; transform: none !important; }
/* the side ticks (owner, 29 Oct, Neurofield): at rest dim; inside the field a light sweeps up and down them; it stops when you leave */
.nf-ticks { display: block; width: 7px; height: 32px; gap: 0; background-color: color-mix(in srgb, var(--k-or) 24%, transparent); background-repeat: no-repeat;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); }
.nf-ticks i { display: none; }
.nf.filled:not(.focus) .nf-ticks { background-color: color-mix(in srgb, var(--k-or) 45%, transparent); }
.nf.focus .nf-ticks { background-color: color-mix(in srgb, var(--k-or) 30%, transparent);
  background-image: linear-gradient(to top, transparent 0%, transparent 32%, #FB5206 40%, #FFD2BA 50%, #FB5206 60%, transparent 68%, transparent 100%);
  background-size: 100% 300%; animation: nf-sweep .9s ease-in-out infinite alternate; }
.nf.focus > .nf-ticks:last-child { animation-delay: -.45s; }
.nf.typing .nf-ticks { animation-duration: .38s; }
@keyframes nf-sweep { from { background-position: 0 100%; } to { background-position: 0 0%; } }
/* phones and tablets (owner, 29 Oct): the turning globe sits behind the form; the form panel is frosted crystal */
@media (max-width: 1080px) {
  .ax-earth { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; height: auto; z-index: 0; pointer-events: none; }
  .ax-globe { -webkit-mask-image: none; mask-image: none; }
  .ax-hero > .ax-brandrow, .ax-copy { position: relative; z-index: 1; }
  .ax-panel { position: relative; z-index: 2; margin-top: auto; border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 22px 22px 0 0;
    background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 40%, rgba(10,10,10,.30));
    backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.03), 0 -20px 60px -20px rgba(0,0,0,.6); }
  .ax-panel .nf { background-color: rgba(10,10,10,.35); }
}
@media (max-width: 1080px) and (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ax-panel { border-color: rgba(10,10,10,.08); background: linear-gradient(160deg, rgba(255,255,255,.70), rgba(255,255,255,.40) 45%, rgba(248,247,244,.55)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 -20px 60px -24px rgba(0,0,0,.18); } :root:not([data-theme="dark"]) .ax-panel .nf { background-color: rgba(255,255,255,.55); } }
@media (max-width: 1080px) { :root[data-theme="light"] .ax-panel { border-color: rgba(10,10,10,.08); background: linear-gradient(160deg, rgba(255,255,255,.70), rgba(255,255,255,.40) 45%, rgba(248,247,244,.55)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 -20px 60px -24px rgba(0,0,0,.18); } :root[data-theme="light"] .ax-panel .nf { background-color: rgba(255,255,255,.55); } }
/* the theme button turns only under a mouse (a tap left it tilted) */
.ax-theme:hover { transform: none; }
@media (hover: hover) { .ax-theme:hover { transform: rotate(-15deg); } }
@media (max-width: 1080px) { .ax-brandrow .brandmark .product { font-size: 15px; white-space: nowrap; } .ax-brandrow .brandmark img { height: 28px; } }
@media (max-width: 1080px) and (max-height: 700px) { .ax-earth { display: block; top: 22%; } }

/* intro top row on phones (owner, 29 Oct): one line — the counter never wraps; on narrow phones the bars show the step */
.ix-top { flex-wrap: nowrap; min-width: 0; }
.ix-top .ax-brandrow { min-width: 0; }
.ix-top .brandmark .product { white-space: nowrap; }
.ix-topr { flex: none; white-space: nowrap; }
.ix-count { white-space: nowrap; }
@media (max-width: 900px) { .ix-top .brandmark img { height: 24px; } .ix-top .brandmark .product { font-size: 14px; } }
@media (max-width: 440px) { .ix-count { display: none; } }

/* install the app */
.kurbox:empty { display: none; }
.menu .kurbtn.kurrow { display: flex; width: 100%; justify-content: flex-start; gap: 10px; margin: 4px 0; padding: 10px 12px; border: 1px solid var(--orange); border-radius: 5px; background: color-mix(in srgb, var(--orange) 8%, transparent); color: var(--text); font-weight: 600; }
.kurico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--orange); color: #0A0A0A; font-size: 14px; font-weight: 800; }
.ax-install { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 8px 14px; border: 1px solid var(--k-or); border-radius: 8px; background: transparent; color: var(--k-text); font-family: var(--k-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ax-install .kurico { width: 18px; height: 18px; font-size: 12px; border-radius: 4px; }
.iossteps { margin: 6px 0 16px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.devtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.devtable th, .devtable td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.devtable th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.ax-panelfoot > .kurbox { display: inline-flex !important; }
.ax-panelfoot > .kurbox:empty { display: none !important; }
.ax-panelfoot .tls { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1080px) { .ax-panelfoot .tls { display: none; } }

/* the sign-in, simpler (owner, 29 Oct): the logo moves into the panel; one line in the foot */
@media (min-width: 1081px) { .ax-hero > .ax-brandrow { visibility: hidden; } }
.ax-panelbrand { margin-bottom: 22px; }
.ax-panelbrand .brandmark img { height: 32px; }
.ax-panelbrand .brandmark .product { font-size: 17px; color: var(--k-text); display: inline-block !important; }
@media (max-width: 1080px) { .ax-panelbrand { display: none; } }
.ax-panelfoot .legal { color: var(--k-muted); letter-spacing: .08em; }
/* the line under "Teknoloji": thin, in the brand's colour run, dashed, sliding slowly */
.ax-title .mark::after { height: 6px; bottom: -.02em; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #FB5206 0 26px, #005952 26px 52px, #009F92 52px 78px, #7ADCD0 78px 104px, #F8F7F4 104px 130px, #D4D1C7 130px 156px);
  animation: k-stripes 9s linear infinite !important; transform: none !important; opacity: 1 !important; }
@keyframes k-stripes { to { background-position: 156px 0; } }
@media (max-width: 1080px) { .ax-title .mark::after { height: 4px; } }

/* the installed app's opening screen */
.splash { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: #0A0A0A; color: #FFFFFF; transition: opacity .55s ease, transform .55s ease; }
.splash::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 70%); }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-core { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
.sp-mark { position: relative; display: grid; place-items: center; width: 200px; height: 200px; }
.sp-mark .kmark rect { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-pop .45s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes sp-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.sp-mark .kmark { filter: drop-shadow(0 0 18px rgba(0,230,208,.35)); animation: sp-glow 1.6s 1s ease-in-out both; }
@keyframes sp-glow { 50% { filter: drop-shadow(0 0 32px rgba(0,230,208,.7)) drop-shadow(0 0 14px rgba(255,90,31,.5)); } }
.sp-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); animation: sp-ring 2.2s .3s ease-out both; }
.sp-ring.r2 { border-color: rgba(251,82,6,.4); animation-delay: .7s; }
@keyframes sp-ring { from { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.sp-name { font-size: 26px; font-weight: 300; letter-spacing: -.01em; opacity: 0; animation: k-fade .6s .9s forwards; }
.sp-name b { font-weight: 700; }
.sp-hello { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #A3A3A3; opacity: 0; animation: k-fade .6s 1.2s forwards; }
.sp-bar { width: 160px; height: 2px; background: #262626; overflow: hidden; opacity: 0; animation: k-fade .3s 1.2s forwards; }
.sp-bar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #FB5206 0 16px, #009F92 16px 32px, #7ADCD0 32px 48px); transform-origin: left; transform: scaleX(0); animation: sp-load 1s 1.25s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes sp-load { to { transform: scaleX(1); } }
.sp-foot { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #5C5C5C; }

/* profile sheet: install as a row like the account header; top bar: an icon beside fullscreen */
.menu .kurcard { display: flex; align-items: center; gap: 12px; width: 100%; margin: 2px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.menu .kurcard:hover { border-color: var(--orange); }
.menu .kurcard .kc-mark { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #0A0A0A; }
.menu .kurcard .kc-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.menu .kurcard .kc-text b { font-size: 15px; }
.menu .kurcard .kc-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .kurcard > svg { color: var(--orange); flex: 0 0 auto; }
.kurtop { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); color: var(--orange); cursor: pointer; }
.kurtop:hover { background: var(--orange); color: #0A0A0A; }
.topbar .kurbox:empty { display: none; }
.sesrow { gap: 8px; flex-wrap: nowrap; }
.sespick { min-width: 150px; }

/* Hesabım › E-posta bildirimleri */
.mailkinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }

/* the notification ask */
.izinkart { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); animation: ik-up .35s cubic-bezier(.2,.8,.2,1) both; }
.izinkart.out { animation: ik-down .3s ease both; }
@keyframes ik-up { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes ik-down { to { transform: translate(-50%, 30px); opacity: 0; } }
.izinkart .ik-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #0A0A0A; }
.izinkart .ik-text { display: grid; gap: 2px; }
.izinkart .ik-text b { font-size: 16px; }
.izinkart .ik-text span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.izinkart .ik-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 767px) { .izinkart { bottom: calc(76px + env(safe-area-inset-bottom)); } }
/* Bildirim gönder */
.duyurugrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .duyurugrid { grid-template-columns: 1fr; } }
.duyurukisi { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.duyurukisi[hidden] { display: none; }
.duyurupv { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(30,30,30,.92); color: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.duyurupv .pv-app { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #bbb; }
.duyurupv .pv-app i { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #FF5A1F 0 50%, #00E6D0 50%); }
.duyurupv .pv-app em { margin-left: auto; font-style: normal; }
.duyurupv b { font-size: 14px; }
.duyurupv span { font-size: 13px; color: #ddd; white-space: pre-wrap; }

/* Sistem ayarları › DKIM */
.dkimbox { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dkimbox h3 { margin: 0; font-size: 15px; }
.dkimrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dkimrow code { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: 12.5px; overflow-wrap: anywhere; }
.dkimrow code.long { max-height: 96px; overflow: auto; }
@media (max-width: 640px) { .dkimrow { grid-template-columns: 1fr; } }

/* ===== Mesajlar — the app (M2) ===== */
.wa { --wa-bg: #EFEBE3; --wa-side: var(--surface); --wa-mine: #D7F3EC; --wa-theirs: #FFFFFF; --wa-line: var(--line); --wa-hover: color-mix(in srgb, var(--text) 5%, transparent); --wa-sel: color-mix(in srgb, var(--accent) 12%, var(--surface)); --wa-tick: #00A99A; --wa-meta: #667781;
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(10,10,10,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wa-in .18s ease both; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa { --wa-bg: #0C1215; --wa-mine: #0F4A44; --wa-theirs: #1D262A; --wa-sel: #1B2A2D; --wa-meta: #8FA0A6; --wa-tick: #4FD1C5; } }
:root[data-theme="dark"] .wa { --wa-bg: #0C1215; --wa-mine: #0F4A44; --wa-theirs: #1D262A; --wa-sel: #1B2A2D; --wa-meta: #8FA0A6; --wa-tick: #4FD1C5; }
.wa.out { animation: wa-out .18s ease both; }
@keyframes wa-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wa-out { to { opacity: 0; } }
body.wa-open { overflow: hidden; }
.wa-win { position: relative; display: grid; grid-template-columns: 360px minmax(0, 1fr); width: min(1240px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); border-radius: 14px; overflow: hidden; background: var(--wa-side); border: 1px solid var(--wa-line); box-shadow: 0 30px 90px -20px rgba(0,0,0,.55); animation: wa-pop .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wa-pop { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* the list */
.wa-side { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); min-height: 0; border-right: 1px solid var(--wa-line); background: var(--wa-side); }
.wa-sidehead { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px 18px; }
.wa-sidehead h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.wa-acts { display: flex; gap: 4px; }
.wa-ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; flex: 0 0 auto; }
.wa-ib:hover { background: var(--wa-hover); color: var(--text); }
.wa-ib.danger { color: var(--red, #d93636); }
.wa-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 0 12px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--muted); }
.wa-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; font-size: 14.5px; color: var(--text); outline: none; }
.wa-chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.wa-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--wa-line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wa-chip.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: transparent; color: var(--accent); }
.wa-chip b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; display: inline-grid; place-items: center; }
.wa-list { overflow-y: auto; overscroll-behavior: contain; }
.wa-sec { margin: 12px 18px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wa-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 16px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; position: relative; }
.wa-item::after { content: ""; position: absolute; left: 72px; right: 0; bottom: 0; height: 1px; background: var(--wa-line); opacity: .6; }
.wa-item:hover { background: var(--wa-hover); }
.wa-item.on { background: var(--wa-sel); }
.wa-it { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wa-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wa-row1 b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-row1 time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.wa-item.unread .wa-row1 time { color: var(--accent); font-weight: 700; }
.wa-row2 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wa-prev { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-prev em { color: var(--accent); font-style: normal; font-weight: 600; }
.wa-row3 { font-size: 11.5px; color: var(--muted); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-badge { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.wa-empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.wa-room { flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: #fff; font-weight: 800; font-size: 18px; overflow: hidden; }
.wa-room img { width: 100%; height: 100%; object-fit: cover; }
.wa-av { position: relative; flex: 0 0 auto; display: inline-block; }
.wa-av .avatar { width: 100% !important; height: 100% !important; font-size: 16px; }
.wa-on { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; border: 2px solid var(--wa-side); }

/* the chat */
.wa-main { min-width: 0; min-height: 0; display: grid; background: var(--wa-bg); }
.wa-welcome { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px; color: var(--muted); }
.wa-wlogo { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.wa-welcome h3 { margin: 6px 0 0; color: var(--text); font-size: 20px; }
.wa-welcome p { margin: 0; max-width: 360px; font-size: 14px; }
.wa-chat { position: relative; display: flex; flex-direction: column; min-height: 0; height: 100%; }
/* only the messages stretch; the head, bands, bars, emoji panel and the writing line keep their own height */
.wa-chat > * { flex: 0 0 auto; }
.wa-chat > .wa-logwrap { flex: 1 1 auto; min-height: 0; }
.wa-chat.drop::after { content: ""; position: absolute; inset: 0; border: 3px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); pointer-events: none; }
.wa-chathead { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--wa-side); border-bottom: 1px solid var(--wa-line); min-width: 0; }
.wa-back { display: none; margin-left: -8px; }
.wa-ht { flex: 1; min-width: 0; display: grid; }
.wa-ht b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-typing { color: var(--accent); font-style: normal; font-weight: 600; }
.wa-logwrap { position: relative; min-height: 0; display: grid; }
.wa-log { overflow-y: auto; overscroll-behavior: contain; padding: 12px 6% 16px; display: flex; flex-direction: column; gap: 2px;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1.5px); background-size: 22px 22px; }
.wa-loading { margin: auto; display: flex; gap: 6px; }
.wa-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: wa-dot 1s ease-in-out infinite; }
.wa-loading i:nth-child(2) { animation-delay: .15s; } .wa-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 50% { transform: translateY(-5px); opacity: .5; } }
.wa-day, .wa-newline { display: flex; justify-content: center; margin: 12px 0 8px; }
.wa-day span { padding: 5px 12px; border-radius: 8px; background: var(--wa-theirs); color: var(--wa-meta); font-size: 12px; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-newline span { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, var(--wa-theirs)); color: var(--accent); font-size: 12px; font-weight: 700; }
.wa-nomsg { margin: auto; padding: 12px 16px; border-radius: 10px; background: var(--wa-theirs); color: var(--wa-meta); font-size: 13.5px; text-align: center; max-width: 360px; }
.wa-older { display: flex; justify-content: center; margin: 4px 0 8px; }
.wa-msg { display: flex; align-items: flex-end; gap: 6px; margin-top: 6px; position: relative; }
.wa-msg.mine { flex-direction: row-reverse; }
.wa-msg:has(.wa-b.grp) { margin-top: 1px; }
.wa-msg > .avatar, .wa-avsp { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; }
.wa-msg.flash .wa-b { animation: wa-flash 1.4s ease; }
@keyframes wa-flash { 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); } }
.wa-b { position: relative; max-width: min(560px, 76%); padding: 6px 9px 6px 10px; border-radius: 10px; background: var(--wa-theirs); color: var(--text); box-shadow: 0 1px 1px rgba(0,0,0,.08); transition: transform .15s; overflow-wrap: anywhere; }
.wa-b.mine { background: var(--wa-mine); }
.wa-msg.theirs .wa-b:not(.grp) { border-top-left-radius: 2px; }
.wa-msg.mine .wa-b:not(.grp) { border-top-right-radius: 2px; }
.wa-b.pic { padding: 4px; }
.wa-from { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.wa-text { font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.wa-text p { margin: 0; }
.wa-meta { float: right; display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 -2px 10px; font-size: 11px; color: var(--wa-meta); white-space: nowrap; }
.wa-b.pic .wa-meta { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; }
.wa-tick { color: var(--wa-meta); }
.wa-tick.goruldu { color: var(--wa-tick); }
.wa-seen { font-size: 11px; }
.wa-del { margin: 0; font-style: italic; color: var(--wa-meta); font-size: 13.5px; }
.wa-quote { display: grid; gap: 1px; width: 100%; margin: 0 0 4px; padding: 6px 8px; border: 0; border-left: 4px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.wa-quote b { font-size: 12.5px; color: var(--accent); }
.wa-quote span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-img { display: block; border-radius: 8px; overflow: hidden; max-width: 320px; }
.wa-img img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.wa-file { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 8px 10px; margin-bottom: 2px; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); text-decoration: none; }
.wa-fico { position: relative; display: grid; place-items: center; width: 38px; height: 44px; color: var(--accent); flex: 0 0 auto; }
.wa-fico i { position: absolute; bottom: 3px; font-style: normal; font-size: 8.5px; font-weight: 800; color: var(--text); }
.wa-fname { flex: 1; min-width: 0; display: grid; }
.wa-fname b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-fname span { font-size: 12px; color: var(--muted); }
.wa-voice { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 4px 2px 0; }
.wa-play { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.wa-vbody { flex: 1; display: grid; gap: 4px; }
.wa-track { position: relative; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; }
.wa-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--accent); }
.wa-dur { font-size: 11.5px; color: var(--wa-meta); }
.wa-vmic { color: var(--accent); }
.wa-more { position: absolute; top: 2px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--wa-theirs); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.wa-msg.theirs .wa-more { left: calc(min(560px, 76%) + 38px); position: relative; align-self: flex-start; }
.wa-msg.mine .wa-more { position: relative; align-self: flex-start; }
.wa-msg:hover .wa-more { opacity: 1; }
@media (hover: none) { .wa-more { display: none; } }
.wa-menu { position: absolute; z-index: 5; min-width: 180px; padding: 6px; border: 1px solid var(--wa-line); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); display: grid; }
.wa-menu button { padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.wa-menu button:hover { background: var(--wa-hover); }
.wa-menu button.danger { color: var(--red, #d93636); }
.wa-tobottom { position: absolute; right: 18px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.wa-tobottom[hidden] { display: none; }

/* composing */
.wa-replybar, .wa-filebar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; background: var(--wa-side); border-top: 1px solid var(--wa-line); }
.wa-replybar[hidden], .wa-filebar[hidden] { display: none; }
.wa-rq { flex: 1; min-width: 0; display: grid; padding: 6px 10px; border-left: 4px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.wa-rq b { font-size: 12.5px; color: var(--accent); }
.wa-rq span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-filebar img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.wa-composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--wa-side); border-top: 1px solid var(--wa-line); }
.wa-inbox { flex: 1; min-width: 0; }
.wa-inbox textarea { display: block; width: 100%; min-height: 42px; max-height: 140px; resize: none; box-sizing: border-box; padding: 10px 14px !important; border-radius: 21px !important; border: 1px solid var(--wa-line) !important; background: var(--wa-bg) !important; font-size: 15px; line-height: 1.4; }
.wa-send { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; transition: transform .12s; }
.wa-send:active { transform: scale(.94); }
.wa-send:disabled { opacity: .6; }
.wa-ro { margin: 0; padding: 6px 8px; width: 100%; text-align: center; color: var(--muted); font-size: 13.5px; }
.wa-recbar { display: flex; align-items: center; gap: 10px; width: 100%; }
.wa-rdot { width: 10px; height: 10px; border-radius: 50%; background: #E53935; animation: wa-blink 1s ease-in-out infinite; }
@keyframes wa-blink { 50% { opacity: .3; } }
.wa-rtime { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 40px; }
.wa-rwave { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; overflow: hidden; }
.wa-rwave i { flex: 1; max-width: 4px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: center; animation: wa-wave .9s ease-in-out infinite alternate; }
@keyframes wa-wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* phones: the whole screen, list or chat */
@media (max-width: 899px) {
  .wa { background: var(--wa-side); backdrop-filter: none; -webkit-backdrop-filter: none; place-items: stretch; }
  .wa-win { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; grid-template-columns: 100%; box-shadow: none; animation: none; }
  .wa-side, .wa-main { grid-area: 1 / 1; }
  .wa-main { transform: translateX(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); z-index: 1; }
  .wa.in-chat .wa-main { transform: none; }
  .wa-back { display: inline-grid; }
  .wa-sidehead { padding-top: calc(12px + env(safe-area-inset-top)); }
  .wa-chathead { padding-top: calc(8px + env(safe-area-inset-top)); }
  .wa-log { padding: 10px 10px 14px; }
  .wa-b { max-width: 84%; }
}
/* the buttons that open the app */
.wabtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.wabtn .wa-cnt, .tabitem .wa-cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tabitem { position: relative; }
.tabitem .wa-cnt { top: 2px; right: calc(50% - 22px); }
.wa-cnt[hidden] { display: none; }
.walaunch { display: grid; place-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
/* phones: messages live in the bottom tab bar, so the top-bar message button goes */
@media (max-width: 767px) { .topbar .wabtn { display: none; } }

/* ===== M4 — aramalar: arama ekranı, gelen arama, sohbetteki arama kaydı (Mesajlar penceresinin, 150, üstünde) ===== */
.callui { position: fixed; inset: 0; z-index: 170; display: grid; grid-template-rows: auto 1fr auto; background: #0B0D0D; color: #F8F7F4; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.call-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.call-head { flex: 1; min-width: 0; text-align: center; }
.call-title b { display: block; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-title .small, .call-status { color: rgba(248,247,244,.7); font-size: 13px; }
.call-status { margin-top: 2px; font-variant-numeric: tabular-nums; }
.call-ib { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; }
.call-tiles { position: relative; display: grid; gap: 8px; padding: 0 12px; min-height: 0; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); }
.call-tiles[data-n="2"] { grid-template-columns: 1fr 1fr; }
.call-tiles[data-n="3"] { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .call-tiles[data-n="2"], .call-tiles[data-n="3"] { grid-template-columns: 1fr; } }
.call-tile { position: relative; overflow: hidden; border-radius: 14px; background: #1A1D1D; min-height: 0; }
.call-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-tile video.mirror { transform: scaleX(-1); }
.call-tile .call-av { position: absolute; inset: 0; display: none; place-items: center; }
.call-tile .call-av .avatar { width: 96px; height: 96px; font-size: 36px; }
.call-tile.novideo video { opacity: 0; }
.call-tile.novideo .call-av { display: grid; }
.call-name { position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.45); font-size: 13px; }
/* my own picture: a small window in the corner */
.call-tile.local { position: absolute; right: 22px; bottom: 12px; width: min(28vw, 180px); aspect-ratio: 3 / 4; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 2; }
.call-tile.local .call-av .avatar { width: 48px; height: 48px; font-size: 18px; }
.call-wait { display: grid; place-items: center; }
.call-wait .avatar { width: 120px; height: 120px; font-size: 44px; animation: call-pulse 1.6s ease-in-out infinite; }
@keyframes call-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,159,146,.5); } 50% { box-shadow: 0 0 0 18px rgba(0,159,146,0); } }
@media (prefers-reduced-motion: reduce) { .call-wait .avatar { animation: none; } }
.call-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 16px 12px 22px; }
.call-btn { display: grid; justify-items: center; gap: 6px; min-width: 64px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; font-size: 12px; }
.call-btn svg { box-sizing: content-box; padding: 15px; border-radius: 50%; background: rgba(255,255,255,.12); }
.call-btn:hover svg { background: rgba(255,255,255,.2); }
.call-btn.off svg { background: #F8F7F4; color: #0A0A0A; }
.call-btn.on svg { background: var(--teal); color: #fff; }
.call-btn.end svg { background: #E5372B; color: #fff; }
.call-btn.ok svg { background: #12A150; color: #fff; }
.call-btn:focus-visible svg { outline: 2px solid #7ADCD0; outline-offset: 3px; }
/* small: a floating window over the page, the head opens it again */
.callui.mini { inset: auto 16px calc(84px + env(safe-area-inset-bottom)) auto; width: 260px; height: auto; border-radius: 16px; padding: 0; box-shadow: 0 12px 40px rgba(0,0,0,.45); grid-template-rows: auto auto auto; }
.callui.mini .call-head { cursor: pointer; text-align: left; }
.callui.mini .call-tiles { height: 150px; padding: 0 10px; }
.callui.mini .call-tile.local { width: 64px; right: 16px; bottom: 6px; }
.callui.mini .call-controls { gap: 6px; padding: 10px; }
.callui.mini .call-btn span { display: none; }
.callui.mini .call-btn svg { padding: 10px; }
/* an incoming call */
.callring { position: fixed; z-index: 180; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; border-radius: 18px; background: #111414; color: #F8F7F4; box-shadow: 0 16px 48px rgba(0,0,0,.45); animation: ring-in .25s ease-out; }
@keyframes ring-in { from { transform: translate(-50%, -16px); opacity: 0; } }
.callring-av .avatar { width: 52px; height: 52px; font-size: 20px; }
.callring-t b { display: block; font-size: 16px; }
.callring-t .small { color: rgba(248,247,244,.7); }
.callring-btns { grid-column: 1 / -1; display: flex; justify-content: space-around; }
@media (max-width: 640px) { .callring { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); } @keyframes ring-in { from { transform: translate(-50%, 16px); opacity: 0; } } }
/* the call's record in the chat */
.wa-call { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 4px 2px 2px; }
.wa-callico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,159,146,.14); color: var(--teal); flex: 0 0 auto; }
.wa-call.missed .wa-callico { background: rgba(229,55,43,.12); color: #E5372B; }
.wa-callt { flex: 1; display: grid; }
.wa-callt span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* M4 (2): the incoming call fills a phone's screen; the join bar; the call log; the "tap for sound" button */
.callring.full { inset: 0; top: 0; bottom: 0; left: 0; transform: none; width: auto; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; justify-items: center; text-align: center; padding: calc(48px + env(safe-area-inset-top)) 24px calc(48px + env(safe-area-inset-bottom)); background: radial-gradient(120% 80% at 50% 20%, #12322F 0%, #0B0D0D 70%); animation: none; }
.callring.full .callring-av { align-self: center; }
.callring.full .callring-av .avatar { width: 128px; height: 128px; font-size: 48px; animation: call-pulse 1.6s ease-in-out infinite; }
.callring.full .callring-t b { font-size: 24px; margin-top: 18px; }
.callring.full .callring-btns { width: 100%; max-width: 360px; margin-top: 40px; }
.callring.full .call-btn svg { padding: 20px; }
@media (prefers-reduced-motion: reduce) { .callring.full .callring-av .avatar { animation: none; } }
.call-unmute { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); z-index: 3; padding: 10px 16px; border: 0; border-radius: 999px; background: #F8F7F4; color: #0A0A0A; font: inherit; font-weight: 600; cursor: pointer; }
.wa-joinbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: color-mix(in srgb, var(--teal) 12%, var(--wa-side)); border-bottom: 1px solid var(--wa-line); font-size: 14px; }
.wa-joinbar > span:nth-child(2) { flex: 1; min-width: 0; }
.wa-joinbar[hidden] { display: none; }
.wa-callrow { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
.wa-callopen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.wa-calldir { display: inline-grid; color: #12A150; margin-right: 4px; }
.wa-callrow.cevapsiz .wa-calldir, .wa-callrow.cevapsiz .wa-row1 b { color: #E5372B; }
.wa-chip.missed b { background: #E5372B; color: #fff; }

/* ===== Mesajlar: emoji paneli, ataç menüsü, ek formları ve kartları (WhatsApp tarzı) ===== */
.em-panel { display: grid; grid-template-rows: auto auto 1fr auto; height: min(420px, 50vh); background: var(--wa-side); border-top: 1px solid var(--wa-line); }
.em-tabs { display: flex; justify-content: space-between; padding: 6px 10px 0; border-bottom: 1px solid var(--wa-line); }
.em-tab { flex: 1; display: grid; place-items: center; height: 42px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.em-tab.on { color: var(--teal); border-bottom-color: var(--teal); }
.em-searchrow { padding: 10px 12px 4px; }
.em-searchrow[hidden] { display: none; }
.em-search { width: 100%; border-radius: 999px; padding: 9px 16px; border: 1.5px solid var(--wa-line); background: var(--surface); }
.em-search:focus { border-color: var(--teal); outline: none; }
.em-body { overflow-y: auto; padding: 4px 10px 8px; overscroll-behavior: contain; }
.em-sec h4 { margin: 12px 4px 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.em-cell { height: 42px; border: 0; border-radius: 8px; background: none; font-size: 26px; line-height: 1; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.em-cell:hover, .em-cell:focus-visible { background: var(--wa-hover); }
.em-empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.em-modes { display: flex; justify-content: center; padding: 6px 0 8px; }
.em-mode { display: grid; place-items: center; width: 64px; height: 36px; border: 1px solid var(--wa-line); background: var(--surface); color: var(--muted); cursor: pointer; }
.em-mode:first-child { border-radius: 999px 0 0 999px; }
.em-mode:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.em-mode.on { background: var(--wa-sel); color: var(--teal); }
.em-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 10px 0; }
.em-sticker, .em-newsticker { aspect-ratio: 1; border: 0; border-radius: 12px; background: none; cursor: pointer; padding: 4px; }
.em-sticker:hover { background: var(--wa-hover); }
.em-sticker img { width: 100%; height: 100%; object-fit: contain; }
.em-newsticker { display: grid; place-content: center; gap: 4px; border: 2px dashed var(--wa-line); color: var(--teal); font-size: 28px; }
.em-newsticker span { font-size: 12px; color: var(--muted); }
@media (max-width: 899px) { .em-panel { height: 46vh; } }

.wa-composer { position: relative; }
.ek-menu { position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 5; min-width: 250px; padding: 8px; border-radius: 16px; background: var(--wa-side); border: 1px solid var(--wa-line); box-shadow: 0 12px 36px rgba(0,0,0,.28); animation: ek-in .14s ease-out; }
@keyframes ek-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.ek-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ek-item:hover, .ek-item:focus-visible { background: var(--wa-hover); outline: none; }
.ek-ico { display: grid; place-items: center; }

.ek-dlg { width: min(460px, calc(100vw - 24px)); }
.ek-dlg.wide { width: min(720px, calc(100vw - 24px)); }
.ek-form h3 { margin: 0 0 12px; }
.ek-form .stack { display: grid; gap: 12px; }
.ek-form .field { display: grid; gap: 6px; }
.ek-form .field > span { font-size: 13px; color: var(--muted); }
.ek-form input[type=text], .ek-form input[type=search], .ek-form input[type=date], .ek-form input[type=time], .ek-form textarea { width: 100%; }
.ek-form .row.end { margin-top: 16px; }
.ek-err { color: #E5372B; margin: 8px 0 0; }
.ek-err[hidden] { display: none; }
.ek-opts { display: grid; gap: 8px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.ek-people { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.ek-person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ek-person.on { background: var(--wa-sel, var(--surface-2)); outline: 2px solid var(--teal); }
.ek-person:hover { background: var(--wa-hover, var(--surface-2)); }
.ek-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.ek-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.ek-thumb img, .ek-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ek-thumb .ek-fname { padding: 8px; font-size: 12px; word-break: break-all; }
.ek-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ek-cam { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; display: block; margin-bottom: 12px; }
.ek-shutter { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--teal); background: #fff; cursor: pointer; }
.ek-stickerwrap { display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border-radius: 12px; padding: 12px; }
.ek-stickercanvas { width: min(280px, 70vw); height: auto; aspect-ratio: 1; touch-action: none; cursor: grab; }

/* in the chat */
.wa-b.sticker { background: none !important; box-shadow: none; padding: 0; }
.wa-b.sticker .wa-meta { background: rgba(0,0,0,.35); color: #fff; border-radius: 8px; padding: 1px 6px; }
.wa-sticker { display: block; width: 160px; height: 160px; object-fit: contain; }
.wa-video { display: block; width: min(320px, 70vw); max-height: 420px; border-radius: 8px; background: #000; }
.wa-b.card { min-width: min(300px, 75vw); }
.ek-card { display: grid; gap: 8px; padding: 2px 0 4px; }
.ek-contact-top { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.ek-contact-top > div { display: grid; }
.ek-cardbtn { display: block; padding: 8px 0 2px; border: 0; background: none; color: var(--wa-tick); font: inherit; font-weight: 600; text-align: center; cursor: pointer; text-decoration: none; }
.ek-cardbtn:disabled { color: var(--muted); cursor: default; }
.ek-q { font-size: 15px; }
.ek-hint { color: var(--wa-meta); }
.ek-opt { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ek-opt:disabled { cursor: default; }
.ek-box { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wa-meta); }
.ek-box.sq { border-radius: 5px; }
.ek-opt.on .ek-box { background: var(--wa-tick); border-color: var(--wa-tick); box-shadow: inset 0 0 0 3px var(--wa-side); }
.ek-optt { display: grid; gap: 5px; }
.ek-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.ek-bar i { display: block; height: 100%; background: var(--wa-tick); border-radius: 3px; transition: width .25s ease; }
.ek-voters { display: grid; gap: 4px; font-size: 13px; color: var(--wa-meta); padding-top: 4px; }
.ek-voters[hidden] { display: none; }
.ek-ev-top { display: flex; gap: 12px; align-items: flex-start; }
.ek-ev-top > div { display: grid; gap: 2px; }
.ek-ev-day { display: grid; place-items: center; min-width: 48px; padding: 6px 4px; border-radius: 10px; background: color-mix(in srgb, var(--wa-tick) 16%, transparent); color: var(--wa-tick); line-height: 1.1; }
.ek-ev-day b { font-size: 20px; }
.ek-ev-day span { font-size: 11px; text-transform: uppercase; }
.ek-ev-desc { margin: 0; white-space: pre-wrap; }
.ek-answers { display: flex; gap: 6px; flex-wrap: wrap; }
.ek-ans { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.ek-ans.on { background: var(--wa-tick); border-color: var(--wa-tick); color: #fff; }
.ek-ans b { font-weight: 600; }

/* ===== W1 — mesaj eylemleri ve WhatsApp düzeni (yazma satırı, başlık) ===== */
/* the writing line: a pill with the text (and on a phone 😊 📎 📷 inside), the round send/microphone outside */
.wa-composer { align-items: flex-end; gap: 6px; }
.wa-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 0; border-radius: 24px; background: var(--wa-bg); border: 1px solid var(--wa-line); padding: 0 4px; }
.wa-pill .wa-inbox textarea { border: 0 !important; background: transparent !important; padding: 11px 8px !important; border-radius: 0 !important; }
.wa-pill .wa-inbox textarea:focus { outline: none; box-shadow: none; }
.wa-pill:focus-within { border-color: var(--teal); }
.wa-pill > .wa-ib { width: 40px; height: 44px; }
.wa-send { width: 48px; height: 48px; background: #00A884; color: #fff; }
@media (max-width: 899px) {
  .wa-composer { background: transparent; border-top: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .wa-pill { background: var(--wa-side); border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
  .wa-hide-phone { display: none !important; }
  .wa-chathead { gap: 8px; padding-left: 4px; padding-right: 4px; }
  .wa-chathead .wa-room, .wa-chathead .wa-av { width: 38px !important; height: 38px !important; }
}
.wa-callbtn { width: auto; padding: 0 8px; gap: 2px; display: inline-flex; border-radius: 20px; }
.wa-menu button svg { vertical-align: -3px; }

/* next to a message: reaction, reply, menu (on hover; on a phone the long press opens the menu) */
.wa-msg { align-items: center; }
.wa-bwrap { position: relative; max-width: min(560px, 76%); display: grid; }
.wa-bwrap .wa-b { max-width: 100%; }
.wa-msg.mine .wa-bwrap { justify-items: end; }
.wa-bwrap.has-r { margin-bottom: 14px; }
.ma-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.wa-msg:hover .ma-acts, .ma-acts:focus-within { opacity: 1; }
@media (hover: none) { .ma-acts { display: none; } }
.ma-act { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--wa-side); color: var(--wa-meta); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.ma-act:hover { color: var(--text); }
.wa-more { display: none; }
/* the reactions under a bubble */
.ma-reacts { position: absolute; bottom: -16px; display: flex; gap: 3px; z-index: 1; }
.wa-msg.theirs .ma-reacts { left: 8px; }
.wa-msg.mine .ma-reacts { right: 8px; }
.ma-chip { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 7px; border-radius: 13px; border: 1px solid var(--wa-line); background: var(--wa-side); font-size: 15px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ma-chip b { font-size: 12px; color: var(--wa-meta); font-weight: 600; }
.ma-chip.on { border-color: var(--wa-tick); background: color-mix(in srgb, var(--wa-tick) 14%, var(--wa-side)); }
/* the quick reactions */
.ma-pop { position: absolute; z-index: 8; }
.ma-quick { display: flex; gap: 2px; padding: 6px 8px; border-radius: 28px; background: var(--wa-side); border: 1px solid var(--wa-line); box-shadow: 0 8px 28px rgba(0,0,0,.25); animation: ek-in .12s ease-out; }
.ma-q { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 24px; cursor: pointer; transition: transform .1s; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ma-q:hover { transform: scale(1.22); }
.ma-q.on { background: var(--wa-sel); }
.ma-q.plus { font-size: 22px; color: var(--wa-meta); background: var(--wa-hover); }
.ma-more { width: min(380px, calc(100vw - 24px)); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.ma-more .em-panel { height: 360px; border-top: 0; }
.wa-menu .ma-menuquick { display: flex; gap: 0; padding: 2px 0 6px; border-bottom: 1px solid var(--wa-line); margin-bottom: 4px; }
.wa-menu .ma-menuquick .ma-q { padding: 0; width: 36px; height: 36px; font-size: 22px; }
/* marks */
.wa-fwd { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-style: italic; color: var(--wa-meta); margin-bottom: 2px; }
.wa-star, .wa-timer { display: inline-grid; vertical-align: -1px; margin-right: 3px; color: var(--wa-meta); }
.wa-star svg { fill: currentColor; }
.wa-sys { display: flex; justify-content: center; margin: 10px 0; }
.wa-sys > span { display: inline-flex; align-items: center; gap: 4px; max-width: 80%; padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--wa-side) 92%, transparent); color: var(--wa-meta); font-size: 12.5px; text-align: center; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
/* the pinned band */
.ma-pins { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--wa-side); border-bottom: 1px solid var(--wa-line); }
.ma-pins[hidden] { display: none; }
.ma-pinbars { display: grid; gap: 2px; align-self: stretch; }
.ma-pinbars i { width: 3px; border-radius: 2px; background: var(--wa-line); }
.ma-pinbars i.on { background: var(--wa-tick); }
.ma-pinbody { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 2px 0; }
.ma-pinbody > span { min-width: 0; display: grid; }
.ma-pinbody b { font-size: 12.5px; color: var(--wa-tick); }
.ma-pinbody span span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
/* the side panel of a chat (search, starred) */
.wa-chat { position: relative; }
.ma-side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: min(380px, 100%); display: grid; grid-template-rows: auto 1fr; background: var(--wa-side); border-left: 1px solid var(--wa-line); box-shadow: -8px 0 24px rgba(0,0,0,.12); }
.ma-side > header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--wa-line); padding-top: calc(10px + env(safe-area-inset-top)); }
.ma-sidebody { display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 12px; min-height: 0; }
.ma-hits { overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.ma-hit { display: grid; gap: 2px; padding: 10px; border: 0; border-bottom: 1px solid var(--wa-line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ma-hit:hover { background: var(--wa-hover); }
.ma-hit-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--wa-meta); }
.ma-hit-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-radios { display: grid; gap: 10px; margin-top: 10px; }
