@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url('fonts/mona-sans-latin-ext-wdth-normal.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url('fonts/mona-sans-latin-wdth-normal.woff2') format('woff2-variations');
  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: dark;

  --void: #07080b;
  --text: #f3f4f7;
  --text-2: rgb(243 244 247 / .64);
  --text-3: rgb(243 244 247 / .42);

  --fill-1: rgb(255 255 255 / .05);
  --fill-2: rgb(255 255 255 / .09);
  --fill-3: rgb(255 255 255 / .14);
  --edge: rgb(255 255 255 / .09);
  --edge-2: rgb(255 255 255 / .17);

  --solid: #f5f6f9;
  --on-solid: #0a0b0f;

  --ice: #dfe2ea;
  --amber: #ffc97a;
  --mint: #8ce8c2;
  --rose: #ff9d94;

  --chart-reached: #c8cbd3;
  --chart-missed: #6e717a;
  --heat-0: #1b1c20;
  --heat-1: #33353b;
  --heat-2: #585b63;
  --heat-3: #94979f;
  --heat-4: #e4e6eb;

  --mascot-plate: var(--solid);
  --mascot-eye: var(--on-solid);
  --focus-glow: rgb(255 255 255 / .12);
  --selection: rgb(255 255 255 / .22);

  --r-panel: 22px;
  --r-control: 12px;
  --r-key: 14px;
}

:root[data-theme='color'] {
  --ice: #aac6ff;

  --chart-reached: #5a8cff;
  --chart-missed: #c7812a;
  --heat-0: #1e2535;
  --heat-1: #2c3f68;
  --heat-2: #3f62ad;
  --heat-3: #6d95ee;
  --heat-4: #bcd1ff;

  --mascot-plate: url(#mascot-fill);
  --mascot-eye: #fff;
  --focus-glow: rgb(170 198 255 / .16);
  --selection: rgb(170 198 255 / .32);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  background: var(--void);
  color: var(--text);
  font-family: 'Mona Sans', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  font-weight: 430;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Renkli tema: cam ancak arkasında ışık varken cam gibi görünür */

[data-theme='color'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(62vw 46vw at 10% 4%, rgb(66 98 255 / .34), transparent 64%),
    radial-gradient(52vw 52vw at 92% 10%, rgb(128 82 240 / .24), transparent 62%),
    radial-gradient(70vw 46vw at 74% 100%, rgb(22 150 176 / .2), transparent 64%),
    radial-gradient(46vw 38vw at 14% 96%, rgb(214 112 84 / .1), transparent 62%),
    var(--void);
}

/* Ince gren, koyu geçişlerdeki bantlanmayı kapatır */

[data-theme='color'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass {
  background: linear-gradient(165deg, rgb(255 255 255 / .085), rgb(255 255 255 / .03) 46%, rgb(255 255 255 / .05));
  border: 1px solid var(--edge);
  border-radius: var(--r-panel);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .12),
    0 28px 60px -32px rgb(0 0 0 / .8);
}

/* Düz siyahın önünde bulanıklık görünmez, boşuna ekran kartı harcar */

[data-theme='color'] .glass {
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
}

.sprite { position: absolute; width: 0; height: 0; }

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mascot { display: block; width: 100%; height: 100%; }
.mascot-plate { fill: var(--mascot-plate); }
.mascot-eye { fill: var(--mascot-eye); }

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

h1, h2, h3 { font-weight: 560; letter-spacing: -.012em; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

::selection { background: var(--selection); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / .12);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgb(255 255 255 / .22); }

option { background: #15171d; color: var(--text); }

kbd {
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  opacity: .55;
  margin-left: 6px;
}

/* Giriş */

.login { flex: 1; display: grid; place-items: center; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(380px, 100%);
  padding: 30px 28px;
}

.login-form h1 { font-size: 30px; font-weight: 300; letter-spacing: -.03em; margin-bottom: 8px; }
.login-form .dial { width: 100%; margin-top: 6px; }

/* Üst panel */

.topbar {
  position: relative;
  z-index: 6;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);
  column-gap: clamp(14px, 2vw, 28px);
  align-items: center;
  height: 46px;
  padding: 0 6px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--text-2);
}

.tab:hover { color: var(--text); }

/* Yazısız menüde ad, üstüne gelince beklemeden görünür */

.tab::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 3px 10px;
  background: #17181d;
  border: 1px solid var(--edge-2);
  border-radius: 9px;
  color: var(--text);
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .1s;
}

.tab:hover::after, .tab:focus-visible::after { opacity: 1; }
[data-view='channels'] .tab::after { display: none; }

.tab-badge {
  position: absolute;
  top: 1px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: var(--solid);
  border-radius: 8px;
  color: var(--on-solid);
  font-size: 10.5px;
  font-weight: 620;
  line-height: 15px;
  text-align: center;
}

.tab[aria-current='page'] {
  background: var(--fill-3);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
}

.progress {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.today {
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.goal {
  width: 100%;
  height: 2px;
  background: var(--fill-2);
  border-radius: 2px;
  overflow: hidden;
}

.goal span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), #fff);
  border-radius: 2px;
}

.views { flex: 1; min-height: 0; display: flex; }

.view { flex: 1; min-width: 0; }

/* Arama ekranı */

.desk {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.queue-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.queue-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 6px;
}

.queue-filters { display: flex; gap: 6px; }
.queue-filters select { flex: 1; min-width: 0; padding: 0 4px 0 10px; font-size: 13.5px; }

.queue-tools input, .queue-tools select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.queue-tools input::placeholder { color: var(--text-3); }

.queue { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; }

.queue-group h2 {
  padding: 12px 8px 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}


.queue-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  text-align: left;
}

.queue-row:hover { background: var(--fill-1); }

.queue-row[aria-current='true'] {
  background: var(--fill-2);
  border-color: var(--edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1);
}

.queue-name {
  font-weight: 520;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-meta, .queue-unsaved {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-unsaved { color: var(--amber); }

.lamp {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
}

.lamp-due {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 10px 1px rgb(255 201 122 / .7);
}

.lamp-waiting {
  background: var(--text-3);
  border-color: transparent;
}

/* Arama föyü */

.sheet {
  display: flex;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
}

.call-sheet {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  overflow-y: auto;
}

@container (min-width: 880px) {
  .call-sheet {
    grid-template-columns: minmax(0, 1fr) 344px;
    overflow: hidden;
  }

  .sheet-main, .sheet-side { overflow-y: auto; }
  .number { font-size: clamp(50px, 7.6cqi, 86px); }
}

.sheet-main { min-width: 0; padding: 20px 26px 24px; }

.who-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  color: var(--text-2);
  font-size: 13.5px;
}

.status {
  padding: 2px 10px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.who-line .link { margin-left: auto; }

.who {
  margin-top: 12px;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 540;
  letter-spacing: -.022em;
  max-width: 28ch;
}

.place, .facts { color: var(--text-2); }
.place { margin-top: 3px; }
.place:empty, .facts:empty { display: none; }

.lookups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 5px;
  font-size: 13px;
}

.lookups .link { color: var(--text-3); font-weight: 460; }
.lookups .link:hover { color: var(--text); }

/* Ekranın kahramanı numara: ince, büyük, sessiz */

.number {
  margin-top: 16px;
  font-size: clamp(48px, 10cqi, 86px);
  line-height: 1.02;
  font-weight: 230;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, rgb(255 255 255 / .62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: text;
  white-space: nowrap;
}

.in-call .number { font-size: clamp(32px, 4.6cqi, 44px); font-weight: 280; letter-spacing: -.03em; }

.alt-number {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 4px;
  color: var(--text-2);
}

.dial-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}

.dial {
  min-width: 160px;
  height: 48px;
  padding: 0 26px;
  background: var(--solid);
  border: 0;
  border-radius: 999px;
  color: var(--on-solid);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 10px 34px -12px rgb(255 255 255 / .42);
}

.dial:hover { background: #fff; }
.dial:active { transform: scale(.985); }
.dial:disabled { opacity: .6; }
.dial kbd { opacity: .45; }
.in-call .dial kbd { display: none; }

/* Sonuç seçimi anında görünsün, geçiş efekti beklemesin */
.key, .save { transition: none; }

.method {
  display: flex;
  padding: 3px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.method button {
  padding: 0 14px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
}

.method button[aria-pressed='true'] {
  background: var(--fill-3);
  color: #fff;
}

.ghost {
  padding: 0 15px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
}

.ghost:hover { background: var(--fill-2); color: var(--text); }

.series { display: inline-flex; align-items: center; gap: 9px; }
.series[aria-pressed='true'] { border-color: rgb(255 201 122 / .5); color: var(--text); }

.call-state {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 22px;
  margin-top: 10px;
  color: var(--mint);
  font-size: 13.5px;
  font-weight: 500;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.key {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-key);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  text-align: left;
}

.key:hover { background: var(--fill-2); border-color: var(--edge-2); }
.key:active { transform: scale(.985); }

.key-digit {
  font-size: 17px;
  line-height: 1;
  font-weight: 300;
  color: var(--text-3);
}

.key-label { font-weight: 500; line-height: 1.2; }

.key[aria-pressed='true'] {
  background: var(--solid);
  border-color: transparent;
  color: var(--on-solid);
}

.key[aria-pressed='true'] .key-digit { color: rgb(10 11 15 / .5); }

.followups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.followups-title { margin-right: 4px; color: var(--text-2); font-weight: 500; }

.followups input {
  height: 32px;
  padding: 0 10px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.miss-hint { margin-top: 10px; color: var(--amber); font-weight: 500; }

.chip {
  height: 32px;
  padding: 0 13px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 480;
}

.chip:hover { background: var(--fill-2); color: var(--text); }

.chip[aria-pressed='true'] {
  background: var(--solid);
  border-color: transparent;
  color: var(--on-solid);
  font-weight: 540;
}

/* Görüşme yardımı */

.sheet-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.coach-tabs {
  display: flex;
  padding: 3px;
  background: rgb(0 0 0 / .22);
  border-radius: var(--r-control);
}

.coach-tabs button {
  flex: 1;
  height: 32px;
  background: none;
  border: 0;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 500;
}

.coach-tabs button[aria-pressed='true'] {
  background: var(--fill-3);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14);
}

.coach-body {
  max-height: 262px;
  overflow-y: auto;
  padding: 12px 6px 4px;
  line-height: 1.55;
}

.coach-step + .coach-step { margin-top: 12px; }

.coach-step h3 {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

.coach-step p, .coach-objection p { white-space: pre-line; }

.coach-notice {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge);
  color: var(--text-2);
}

.coach-objection { border-top: 1px solid var(--edge); padding: 8px 0; }
.coach-objection:first-child { border-top: 0; padding-top: 0; }
.coach-objection summary { cursor: pointer; font-weight: 500; }
.coach-objection p { margin-top: 5px; color: var(--text-2); }

.coach-message {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--edge);
}

.coach-message:first-child { border-top: 0; padding-top: 0; }
.coach-message .link, .coach-message .hint { flex: none; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { color: var(--text-2); font-size: 13px; font-weight: 500; }

.field input, .field textarea, .field select, .paste-area {
  width: 100%;
  padding: 9px 12px;
  background: rgb(0 0 0 / .2);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
  color: var(--text);
  resize: vertical;
}

.field input::placeholder, .field textarea::placeholder, .paste-area::placeholder { color: var(--text-3); }
.field input, .field select { height: 40px; padding-block: 0; }

.field input:focus, .field textarea:focus, .field select:focus, .paste-area:focus {
  border-color: var(--edge-2);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-glow);
}

.save {
  height: 44px;
  padding: 0 20px;
  background: var(--solid);
  border: 0;
  border-radius: var(--r-control);
  color: var(--on-solid);
  font-weight: 600;
}

.save:hover:not(:disabled) { background: #fff; }
.save:disabled { background: var(--fill-1); color: var(--text-3); }
.save kbd { opacity: .45; }

.plain {
  height: 38px;
  padding: 0 15px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
  font-weight: 500;
}

.plain:hover { background: var(--fill-2); border-color: var(--edge-2); }

.link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--ice);
  font-weight: 500;
}

.link:hover { color: #fff; }

.danger {
  height: 38px;
  padding: 0 15px;
  background: none;
  border: 1px solid rgb(255 157 148 / .4);
  border-radius: var(--r-control);
  color: var(--rose);
  font-weight: 500;
}

.danger[data-armed] { background: var(--rose); border-color: transparent; color: #220806; }
.danger-link { color: var(--rose); align-self: flex-start; }

.contact-note {
  padding: 9px 12px;
  background: rgb(0 0 0 / .2);
  border-radius: var(--r-control);
  color: var(--text-2);
  white-space: pre-wrap;
}

.side-title { margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }

.history { display: flex; flex-direction: column; }
.sheet-side > * { flex-shrink: 0; }

.history li { padding: 10px 0; border-top: 1px solid var(--edge); }
.history-head { color: var(--text-3); }
.history-head strong { color: var(--text); font-weight: 540; }
.history-detail { font-size: 13px; color: var(--text-3); }
.history-note { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.history-player audio { width: 100%; margin-top: 6px; }
.history .history-empty { color: var(--text-3); border-top: 0; padding-top: 0; }

.sheet-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 max(36px, 12%);
}

.sheet-empty h1 { font-size: 52px; line-height: 1.05; font-weight: 240; letter-spacing: -.04em; }
.sheet-empty p { margin-top: 10px; color: var(--text-2); }

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.empty-actions .save { height: 40px; border-radius: 999px; }

/* Liste */

.list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px 0;
}

.list-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.list-bar input {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  height: 38px;
  padding: 0 12px;
  background: rgb(0 0 0 / .2);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.list-bar input::placeholder { color: var(--text-3); }

.list-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.table-wrap { flex: 1; min-height: 0; margin-top: 12px; overflow: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #171a22;
  border-bottom: 1px solid var(--edge-2);
  padding: 9px 14px 9px 0;
  text-align: left;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

tbody td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--edge);
  color: var(--text-2);
}

.sort { padding: 0; background: none; border: 0; color: inherit; font-weight: 500; }
th[aria-sort] .sort { color: #fff; }

.row-open {
  padding: 0;
  background: none;
  border: 0;
  font-weight: 520;
  text-align: left;
  color: var(--text);
}

.row-open:hover { color: var(--ice); }

.list-empty { padding: 32px 0; color: var(--text-2); }
.list-empty .link { margin-top: 8px; }
.more { margin: 14px 0 20px; }

/* Senaryo ve Ayarlar */

.page { overflow-y: auto; }

.page-column {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 34px 40px;
}

.page-column h1, .report h1 {
  font-size: 32px;
  font-weight: 280;
  letter-spacing: -.03em;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-head .chips { margin-top: 0; }

.settings-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--edge);
}

.settings-block h2 { font-size: 17px; }
.settings-block > p { color: var(--text-2); }

.settings-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.steps { list-style: decimal; padding-left: 20px; color: var(--text-2); }
.steps li { margin-top: 3px; }

.hint { color: var(--text-3); font-size: 13.5px; }
.settings-block > .hint { color: var(--text-3); }

.settings-form { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 6px; }

.check { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.check input { width: 17px; height: 17px; accent-color: var(--ice); }

.settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.settings-result { color: var(--mint); font-weight: 500; }
.settings-failed { color: var(--rose); }

.share-body { width: 100%; margin-top: 6px; }
.share-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.share-form .field { flex: 1; min-width: 220px; }

.share-on {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.share-qr {
  display: block;
  width: 156px;
  height: 156px;
  background: #fff;
  border-radius: 14px;
  image-rendering: pixelated;
}

.share-url {
  font-size: 21px;
  font-weight: 340;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.share-steps { margin-top: 8px; color: var(--text-2); }
.share-steps li { margin-top: 3px; }
.share-on .settings-actions { margin-top: 12px; }

.play-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
}

.variables { width: 100%; margin-top: 4px; }
.variables summary { cursor: pointer; font-weight: 500; color: var(--text-2); }

.variables dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 14px;
  margin-top: 8px;
}

.variables dt { font-weight: 500; }
.variables dd { color: var(--text-2); }

/* Rapor */

.report {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 34px 36px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 52px;
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--edge);
}

.stat-value {
  font-size: 52px;
  line-height: 1;
  font-weight: 230;
  letter-spacing: -.04em;
}

.stat-label { margin-top: 5px; color: var(--text-3); font-size: 13px; font-weight: 500; }

.insight { margin-top: 18px; font-size: 16.5px; font-weight: 440; color: var(--text); max-width: 70ch; }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 34px 52px;
  margin-top: 28px;
}

.chart h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-bottom: 14px; }

.funnel { display: flex; flex-direction: column; gap: 9px; }

.funnel li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 40px 44px;
  align-items: center;
  gap: 10px;
}

.funnel.reasons li { grid-template-columns: 150px minmax(0, 1fr) 40px; }

.funnel-label { color: var(--text-2); }
.funnel-value { text-align: right; font-weight: 520; }
.funnel-rate { text-align: right; color: var(--text-3); }

.bar-track { display: block; height: 8px; }

.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--chart-reached);
  border-radius: 0 4px 4px 0;
}

.legend { display: flex; gap: 16px; margin-bottom: 10px; color: var(--text-2); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend-mark { width: 10px; height: 10px; border-radius: 3px; }
.mark-reached { background: var(--chart-reached); }
.mark-missed { background: var(--chart-missed); }

.columns {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}

.columns-max {
  position: absolute;
  top: 2px;
  left: 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 196px;
  border-radius: 6px;
}

.col:hover, .col:focus-visible { background: var(--fill-1); }

.col-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 3px;
  border-bottom: 1px solid var(--edge);
}

.col-stack span { display: block; }
.col-reached { background: var(--chart-reached); }
.col-missed { background: var(--chart-missed); border-radius: 4px 4px 0 0; }

.col-label {
  height: 22px;
  padding-top: 4px;
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
  color: var(--text-3);
}

.heat {
  display: grid;
  grid-template-columns: 36px repeat(9, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}

.heat-hour { text-align: center; font-size: 12.5px; color: var(--text-3); }
.heat-day { font-size: 12.5px; color: var(--text-3); }

.heat-cell {
  display: block;
  height: 28px;
  border-radius: 6px;
}

.heat-empty { background: var(--fill-1); }
.heat-0 { background: var(--heat-0); }
.heat-1 { background: var(--heat-1); }
.heat-2 { background: var(--heat-2); }
.heat-3 { background: var(--heat-3); }
.heat-4 { background: var(--heat-4); }

.heat-scale {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

.heat-scale .heat-cell { width: 22px; height: 10px; border-radius: 3px; }
.heat-scale span:first-child { margin-right: 6px; }
.heat-scale span:last-child { margin-left: 6px; }

.table-view { margin-top: 28px; }
.table-view summary { cursor: pointer; font-weight: 500; color: var(--text-2); }

.table-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 10px;
}

.chart-tip {
  position: fixed;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  background: rgb(14 16 22 / .92);
  border: 1px solid var(--edge-2);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

/* Pencereler */

.modal {
  width: min(660px, calc(100vw - 24px));
  max-height: 88vh;
  padding: 24px 26px;
  background: rgb(24 26 34 / .76);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-panel);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -30px rgb(0 0 0 / .9);
  -webkit-backdrop-filter: blur(44px) saturate(150%);
  backdrop-filter: blur(44px) saturate(150%);
}

.modal-wide { width: min(880px, calc(100vw - 24px)); }
.modal::backdrop { background: rgb(4 5 8 / .5); }
.modal h2 { font-size: 20px; margin-bottom: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }

.form-error { margin-top: 12px; color: var(--rose); font-weight: 500; }
.login-form .form-error { margin-top: 0; }

.modal-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.modal-actions .save { height: 38px; }
.spacer { flex: 1; }

.import-summary { font-weight: 500; }

.import-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.import-preview { margin-top: 14px; }
.import-issues { margin-top: 10px; }
.import-issues summary { cursor: pointer; font-weight: 500; color: var(--text-2); }
.import-issues ul { margin-top: 6px; max-height: 150px; overflow-y: auto; color: var(--text-2); }

.paste-area { width: 100%; margin-top: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(640px, 90vw);
  padding: 10px 18px;
  background: rgb(26 28 36 / .86);
  border: 1px solid var(--edge-2);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.toast-error { color: var(--rose); white-space: normal; border-radius: 16px; }

/* Telefon: tek sütun, gezinme başparmağın altında */

@media (max-width: 860px) {
  html, body { height: auto; min-height: 100%; }

  body {
    display: block;
    padding: max(8px, env(safe-area-inset-top)) 10px calc(82px + env(safe-area-inset-bottom));
    overflow: auto;
    font-size: 15px;
  }

  .topbar { display: flex; justify-content: space-between; height: 40px; padding: 0 6px; margin-bottom: 8px; }
  .today { font-size: 12px; }

  .tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 20;
    background: rgb(26 28 36 / .72);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .tab { flex: 1; width: auto; height: 42px; }
  .tab::after { display: none; }
  .today-detail { display: none; }

  .views { display: block; }
  .desk { display: flex; flex-direction: column; }
  .queue-pane { order: 2; }
  .queue { max-height: 300px; }
  .sheet { display: block; order: 1; }
  .call-sheet { display: flex; flex-direction: column; overflow: visible; }
  .sheet-main, .sheet-side { overflow: visible; }
  .sheet-main { padding: 18px; }
  .sheet-empty { padding: 44px 22px; }

  .who { font-size: 24px; }
  .number { font-size: clamp(38px, 12.6vw, 72px); }
  .in-call .number { font-size: clamp(28px, 8vw, 40px); }

  .dial { width: 100%; height: 54px; font-size: 17px; }
  .method { flex: 1; min-height: 44px; }
  .method button { flex: 1; }
  .series { display: none; }
  #s-delay-field { display: none; }
  kbd { display: none; }

  .keypad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key:last-child { grid-column: 1 / -1; }
  .key { min-height: 54px; }
  .chip { height: 38px; }
  .save { height: 50px; }

  /* Telefonda görüşme kulakta geçer: önce kayıt alanları, metin altta */
  .coach { order: 5; }
  .contact-note { order: 6; }
  .side-title { order: 7; }
  .history { order: 8; }
  .history li:nth-child(n + 4) { display: none; }
  .coach-body { max-height: none; }

  .list { padding: 14px; }
  .list-actions { margin-left: 0; }
  .table-wrap { overflow-x: auto; }

  .page { overflow: visible; }
  .page-column, .report { padding: 22px 18px 28px; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 14px 30px; }
  .stat-value { font-size: 42px; }
  .funnel li { grid-template-columns: 112px minmax(0, 1fr) 30px 38px; }
  .funnel.reasons li { grid-template-columns: 112px minmax(0, 1fr) 30px; }

  .form-grid, .settings-pair, .import-map { grid-template-columns: minmax(0, 1fr); }
  .form-grid .wide { grid-column: auto; }
  .share-on { grid-template-columns: minmax(0, 1fr); }
  table { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-panel { animation: none; }

  button { transition: none; }
  .dial:active, .key:active { transform: none; }
}

/* Mesaj yazma ve gelen cevaplar */

.compose-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.compose-note { margin-top: 10px; }

.mail-status { color: var(--mint); font-weight: 500; overflow-wrap: anywhere; }

.lamp-replied {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 10px 1px rgb(140 232 194 / .7);
}

.history .history-incoming {
  margin: 2px -8px;
  padding: 10px 8px;
  background: rgb(140 232 194 / .07);
  border-top: 0;
  border-radius: var(--r-control);
}


/* Proje seçici */

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }

.project-select {
  min-width: 0;
  max-width: 190px;
  height: 34px;
  padding: 0 10px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
  font-weight: 540;
}

.project-add {
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
}

.project-add:hover { background: var(--fill-2); color: var(--text); }
.project-name { margin-top: 14px; }
.project-head { align-items: stretch; }

/* Mesajlar: gerçek site sağdaki boş camın üstüne oturur */

.channels {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.channel-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.channel-tabs { display: flex; flex-direction: column; gap: 2px; }

.channel-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  color: var(--text-2);
  font-weight: 500;
  text-align: left;
}

.channel-tab:hover { background: var(--fill-1); color: var(--text); }

.channel-tab[aria-pressed='true'] {
  background: var(--fill-2);
  border-color: var(--edge);
  color: #fff;
}

.unread {
  min-width: 20px;
  padding: 0 6px;
  background: var(--solid);
  border-radius: 999px;
  color: var(--on-solid);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.channel-rail .side-title { margin-top: 10px; }

.rail-library {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
}

.rail-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 5px;
  background: var(--fill-1);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  cursor: grab;
}

.rail-file:hover { border-color: var(--edge-2); }

.rail-file .file-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  pointer-events: none;
}

.rail-file span {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.channel-slot { display: grid; place-items: center; color: var(--text-3); }

/* Kütüphane */

.library { display: flex; flex-direction: column; min-height: 0; padding: 16px 20px; }

.library-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: min-content;
  gap: 12px;
  min-height: 0;
  margin-top: 14px;
  overflow-y: auto;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 16px;
}

.file-card[draggable='true'] { cursor: grab; }

.file-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgb(0 0 0 / .3);
  border-radius: 10px;
}

.file-generic {
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
}

.file-name {
  width: 100%;
  padding: 2px 4px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.file-name:hover, .file-name:focus { border-color: var(--edge-2); outline: none; }

.file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 2px;
  color: var(--text-3);
  font-size: 13px;
}

.file-meta span { margin-right: auto; }
.file-meta a { text-decoration: none; }

.library-empty { grid-column: 1 / -1; padding: 64px 12%; }
.library-empty h2 { font-size: 34px; font-weight: 260; letter-spacing: -.03em; }
.library-empty p { margin-top: 8px; color: var(--text-2); max-width: 60ch; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgb(7 8 11 / .72);
  font-size: 34px;
  font-weight: 260;
  letter-spacing: -.03em;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Lead listesi */

.swatch-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.swatch-slate { background: #8d94a3; }
.swatch-ice { background: var(--ice); }
.swatch-violet { background: #c2a8ff; }
.swatch-amber { background: var(--amber); }
.swatch-mint { background: var(--mint); }
.swatch-rose { background: var(--rose); }

.status-cell { display: inline-flex; align-items: center; }

.status-cell select {
  padding: 3px 2px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--text);
}

.status-cell select:hover { background: var(--fill-2); }

.row-check { width: 34px; padding-right: 0; }
.row-check input { width: 16px; height: 16px; accent-color: var(--ice); }

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--fill-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.bulk-bar select {
  height: 34px;
  padding: 0 8px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 9px;
}

.bulk-bar .danger { height: 34px; }
.bulk-count { margin-right: 8px; font-weight: 520; }

.column-chooser { position: relative; }
.column-chooser summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.column-chooser summary::-webkit-details-marker { display: none; }

.column-menu {
  position: absolute;
  z-index: 3;
  top: 38px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
  padding: 12px 14px;
  background: rgb(24 26 34 / .92);
  border-radius: 14px;
}

/* Proje düzenleyici */

.status-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.status-row, .outcome-row {
  display: grid;
  align-items: center;
  gap: 8px;
}

.status-row { grid-template-columns: 22px minmax(0, 1fr) auto 30px 30px auto; }
.status-row.field-row { grid-template-columns: minmax(0, 1fr) auto; }
.outcome-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); }

.status-row input:not([type='checkbox']), .outcome-row input, .outcome-row select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: rgb(0 0 0 / .2);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.swatch {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}

.row-move {
  height: 30px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 9px;
  color: var(--text-2);
}

/* Mesaja dosya ekleme */

.compose-files { display: flex; flex-direction: column; gap: 8px; }
.compose-files-head { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; font-weight: 500; }

.file-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
}

.file-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  background: var(--fill-1);
  border-radius: 10px;
  cursor: pointer;
}

.file-choice img, .file-mini {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.file-mini {
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / .3);
  color: var(--text-3);
  font-size: 9px;
}

.file-choice input { flex: none; accent-color: var(--ice); }

.file-choice-name {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 860px) {
  .project-select { max-width: 150px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .library { padding: 14px; }
  .status-row { grid-template-columns: 22px minmax(0, 1fr) 30px 30px; }
  .status-row .check, .status-row .danger-link { grid-column: 2 / -1; }
}

.status-row .danger-link { align-self: center; }

/* Pencere tuşları: Windows'un başlık çubuğu yerine üst panelin parçası */

.topbar { -webkit-app-region: drag; }
.brand, .tabs, .window-controls { -webkit-app-region: no-drag; }

.top-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.window-controls {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 12px;
}

.window-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  background: none;
  border: 0;
  border-radius: 9px;
  color: var(--text-2);
}

.window-controls button:hover { background: var(--fill-3); color: #fff; }
.window-controls .window-close:hover { background: var(--rose); color: #220806; }

.is-mac .topbar { padding-left: 76px; }

/* Asistan: sağ altta hep hazır, panel ekranın üstünde açılır */

.agent-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  width: 54px;
  height: 54px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / .85);
  transition: transform .16s ease-out;
}

.agent-launcher:hover { transform: scale(1.06); }
.agent-launcher:active { transform: scale(.97); }

.agent-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  width: 400px;
  height: min(640px, calc(100vh - 86px));
  background: #101116;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-panel);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 34px 80px -24px rgb(0 0 0 / .95);
  transform-origin: bottom right;
  animation: agent-open .14s ease-out;
}

@keyframes agent-open {
  from { opacity: 0; transform: scale(.96); }
}

.agent-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  border-bottom: 1px solid var(--edge);
}

.agent-head .mascot { flex: none; width: 34px; height: 34px; }
.agent-title { flex: 1; min-width: 0; }
.agent-title h2 { font-size: 15px; font-weight: 560; line-height: 1.25; }

.agent-title p {
  overflow: hidden;
  color: var(--text-3);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agent-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--text-2);
}

.agent-icon:hover { background: var(--fill-2); color: var(--text); }
.agent-icon .icon { width: 17px; height: 17px; }

/* Mesajlar'da gerçek site sayfanın üstünde durur: elemana ve panele yer açılır */

[data-view='channels'] .channels { padding-right: 78px; }
[data-view='channels'].agent-open .channels { padding-right: 428px; }

.followup-group h2 {
  padding: 12px 8px 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}

.followup-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 7px 8px;
  background: none;
  border: 0;
  border-radius: var(--r-control);
  text-align: left;
}

.followup-row:hover { background: var(--fill-1); }
.followup-name { font-weight: 520; }
.followup-why { font-size: 12.5px; color: var(--text-3); }

.agent-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.agent-message { max-width: 92%; }
.agent-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-assistant p + p, .agent-assistant p + ul, .agent-assistant ul + p { margin-top: 6px; }
.agent-assistant strong { font-weight: 620; }

.agent-list { padding-left: 17px; list-style: disc; }
.agent-list li + li { margin-top: 3px; }
.agent-list li::marker { color: var(--text-3); }

.agent-user {
  align-self: flex-end;
  padding: 9px 14px;
  background: var(--fill-3);
  border-radius: 16px 16px 4px 16px;
}

.agent-assistant { align-self: flex-start; line-height: 1.6; }

.agent-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-key);
}

.agent-draft { color: var(--text-2); }
.agent-action-buttons { display: flex; gap: 6px; }

.agent-approve {
  background: var(--solid);
  border-color: transparent;
  color: var(--on-solid);
  font-weight: 540;
}

.agent-approve:hover { background: #fff; color: var(--on-solid); }

.agent-done { margin-top: 6px; color: var(--text-3); font-size: 13px; }
.agent-thinking { color: var(--text-3); }

.agent-empty { margin: auto 0; padding: 0 6px; }
.agent-empty h2 { font-size: 30px; font-weight: 260; letter-spacing: -.03em; }
.agent-empty p { margin-top: 8px; color: var(--text-2); }
.agent-empty .save { margin-top: 16px; }
.agent-empty .chip { height: auto; min-height: 30px; padding-block: 4px; text-align: left; }

.agent-form {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--edge);
}

.agent-form textarea {
  max-height: 120px;
  padding: 10px 14px;
  background: rgb(0 0 0 / .22);
  border: 1px solid var(--edge);
  border-radius: var(--r-key);
  resize: none;
}

.agent-form textarea::placeholder { color: var(--text-3); }

.agent-form textarea:focus-visible {
  border-color: var(--edge-2);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-glow);
}

.history-triage {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--fill-1);
  border-radius: var(--r-control);
}

.history-triage p { flex-basis: 100%; }

/* Bugün */

.today-page { width: 100%; }

.today-title {
  max-width: 26ch;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 260;
  letter-spacing: -.035em;
}

.today-lines { margin-top: 12px; max-width: 70ch; color: var(--text-2); font-size: 15.5px; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 32px;
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid var(--edge);
}

.today-more { padding: 4px 8px 0; }

/* Takvim */

.calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  min-height: 0;
}

.calendar-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 22px 20px;
  overflow-y: auto;
}

.cal-head { align-items: center; }
.cal-head h1 { font-size: 30px; font-weight: 280; letter-spacing: -.03em; }
.cal-head .chips { margin-top: 0; }

.cal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: minmax(72px, 1fr);
  gap: 4px;
  margin-top: 14px;
}

.cal-weekday {
  align-self: end;
  padding: 0 8px 4px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 7px 8px;
  background: var(--fill-1);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  text-align: left;
  overflow: hidden;
}

.cal-day:hover { background: var(--fill-2); }
.cal-day[aria-pressed='true'] { border-color: var(--edge-2); background: var(--fill-2); }
.cal-outside { background: none; color: var(--text-3); }
.cal-number { font-weight: 480; }
.cal-today .cal-number { color: var(--ice); font-weight: 620; }
.cal-tag { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cal-demo { color: var(--ice); font-weight: 520; }
.cal-renewal { color: var(--amber); }

.cal-meeting {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.cal-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 10px;
}

.cal-day-head .cal-day-title { padding: 0; }
.cal-day-head .plain { height: 32px; padding: 0 12px; font-size: 13px; }

.meeting-times { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 10px; }
.meeting-people { margin-top: 2px; }

/* Ekip: kim ne yaptı, iş nerede */

.team {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  gap: 10px;
  min-height: 0;
}

.team-side, .team-tasks-pane { min-height: 0; padding: 14px; overflow-y: auto; }

.team-title { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.team-side .team-title + ul { margin-top: 8px; }
.team-side ul + .team-title { margin-top: 20px; }

.team-person {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
  border-top: 1px solid var(--edge);
}

.team-person:first-child { border-top: 0; }

.team-projects { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.team-project { display: flex; flex-direction: column; gap: 7px; }
.team-project h3 { font-size: 14.5px; font-weight: 540; letter-spacing: 0; }
.team-meter { display: flex; flex-direction: column; gap: 4px; }
.team-meter-text { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
.team-meter .goal { height: 3px; }

.team-feed-pane { display: flex; flex-direction: column; min-height: 0; padding: 14px; }

.team-form, .team-name-form {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.team-name-form { margin-bottom: 12px; }

.team-form textarea {
  max-height: 120px;
  padding: 10px 14px;
  background: rgb(0 0 0 / .22);
  border: 1px solid var(--edge);
  border-radius: var(--r-key);
  resize: none;
}

.team-form textarea::placeholder { color: var(--text-3); }

.team-form textarea:focus-visible {
  border-color: var(--edge-2);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-glow);
}

.team-feed-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 4px; }
.team-feed-tools .chips { margin-top: 0; }
.team-feed-tools select { height: 32px; padding: 0 8px; background: var(--fill-1); border: 1px solid var(--edge); border-radius: 10px; font-size: 13px; }

.team-feed { flex: 1; min-height: 0; padding-right: 4px; overflow-y: auto; }
.feed-day { padding: 12px 0 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.feed-event { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; padding: 3px 0; color: var(--text-2); font-size: 13.5px; }
.feed-event time, .feed-post time { color: var(--text-3); font-size: 12.5px; }
.feed-event strong { color: var(--text); font-weight: 540; }
.feed-event p { overflow-wrap: anywhere; }

.feed-post { margin: 6px 0; padding: 9px 12px; background: var(--fill-1); border: 1px solid var(--edge); border-radius: var(--r-key); }
.feed-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.feed-post-head strong { font-weight: 560; }
.feed-post p { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-firm, .feed-remove { font-size: 12.5px; }
.feed-remove { margin-left: auto; color: var(--text-3); }

.team-tasks-head { display: flex; align-items: center; justify-content: space-between; }
.team-tasks-head .plain { height: 32px; padding: 0 12px; font-size: 13px; }
.team-tasks-pane .chips { margin-top: 10px; }
.team-tasks-pane .followup-group h2 { padding: 14px 0 4px; }
.team-empty { margin-top: 14px; }

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.task-open {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 5px 6px;
  background: none;
  border: 0;
  border-radius: 10px;
  text-align: left;
}

.task-open:hover { background: var(--fill-1); }
.task-open .followup-name { overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--text-3); font-size: 12.5px; }
.task-late { color: var(--rose); }

.task-state {
  width: 92px;
  height: 28px;
  padding: 0 4px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 9px;
  font-size: 12px;
}

.sales-note { margin-bottom: 5px; font-size: 13.5px; overflow-wrap: anywhere; }
.sales-note strong { font-weight: 560; }

.calendar-side {
  min-height: 0;
  padding: 18px 12px;
  overflow-y: auto;
}

.cal-day-title { padding: 0 8px 10px; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.calendar-side .hint { padding: 0 8px; }
.cal-google { margin: 0 8px 6px; font-size: 13px; }

/* Pano */

.layout-chips {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: rgb(0 0 0 / .22);
  border-radius: 999px;
}

.layout-chips .chip { height: 28px; border-color: transparent; background: none; }
.layout-chips .chip[aria-pressed='true'] { background: var(--solid); }

.board {
  flex: 1;
  display: flex;
  gap: 8px;
  min-height: 0;
  margin-top: 12px;
  overflow-x: auto;
}

.board-column {
  flex: 1 0 172px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
  background: rgb(0 0 0 / .16);
  border: 1px solid transparent;
  border-radius: var(--r-key);
}

.board-over { border-color: var(--edge-2); background: var(--fill-1); }

.board-column h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}

.board-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
  overflow-y: auto;
}

.board-card {
  flex: none;
  padding: 9px 11px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
  cursor: grab;
}

.board-card:hover { background: var(--fill-2); }
.board-card:active { cursor: grabbing; }

.board-name {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 520;
  text-align: left;
  overflow-wrap: anywhere;
}

.board-line { margin-top: 2px; color: var(--text-3); font-size: 12.5px; }

.board-move {
  display: none;
  width: 100%;
  height: 34px;
  margin-top: 6px;
  padding: 0 8px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: 9px;
  font-size: 13px;
}

@media (hover: none) {
  .board-move { display: block; }
}

/* Firma kartı: Satış sekmesi, gelen mesaj, teklif */

.coach-body:has(.sales-block) { max-height: 470px; }
.sales-block + .sales-block { margin-top: 14px; }

.sales-block h3, .sales-offer + .plain {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

.sales-block h3 { margin-bottom: 6px; }
.sales-block .plain { margin-top: 6px; color: var(--text); font-size: 14px; }
.sales-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.sales-offer + .sales-offer { margin-top: 8px; }
.sales-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sales-block > .link { margin-top: 6px; }

.reply-panel { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.reply-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }

.coach-variants { margin: 4px 0 6px; }
.coach-variants .chip { height: 28px; }

.followups-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.history-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.history-transcript { flex-basis: 100%; }
.history-transcript summary { cursor: pointer; color: var(--text-2); }
.history-transcript p { margin-top: 4px; color: var(--text-2); white-space: pre-wrap; }

.offer-items { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 8px; }

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 120px auto;
  gap: 8px;
  align-items: center;
}

.offer-row input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: rgb(0 0 0 / .2);
  border: 1px solid var(--edge);
  border-radius: var(--r-control);
}

.offer-head { color: var(--text-2); font-size: 13px; font-weight: 500; }
.offer-terms { margin: 14px 0 12px; }
.offer-total { margin-top: 14px; font-size: 20px; font-weight: 340; letter-spacing: -.02em; }
.offer-preset { align-items: end; padding-bottom: 8px; }

/* Rapor: ciro, açılış, ekip */

.revenue { padding-bottom: 28px; margin-bottom: 4px; border-bottom: 1px solid var(--edge); }
.revenue .stats { padding-bottom: 0; border-bottom: 0; }

.goal-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.col-revenue { border-radius: 4px 4px 0 0; }

.team-table { width: 100%; border-collapse: collapse; }
.team-table th { padding: 0 8px 6px 0; color: var(--text-3); font-size: 12.5px; font-weight: 500; text-align: left; }
.team-table td { padding: 6px 8px 6px 0; border-top: 1px solid var(--edge); }
.chart-note { margin-top: 8px; }

@media (max-width: 860px) {
  .agent-launcher {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .agent-panel {
    inset: 8px 8px calc(70px + env(safe-area-inset-bottom));
    z-index: 21;
    width: auto;
    height: auto;
  }

  .team { display: flex; flex-direction: column; }
  .team-feed-pane { order: 1; }
  .team-tasks-pane { order: 2; overflow: visible; }
  .team-side { order: 3; overflow: visible; }
  .team-feed { max-height: 56vh; }
  .meeting-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-times .field:first-child { grid-column: 1 / -1; }

  .calendar { display: flex; flex-direction: column; }
  .calendar-main { padding: 14px 12px; overflow: visible; }
  .calendar-side { overflow: visible; }
  .cal-grid { grid-auto-rows: 54px; gap: 3px; }
  .cal-day { padding: 5px; }
  .cal-weekday { padding: 0 4px 2px; }

  /* Dar hücrede yazı sığmaz, her iş türü bir nokta olur */
  .cal-tag { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); font-size: 0; }
  .cal-demo { background: var(--ice); }
  .cal-renewal { background: var(--amber); }
  .cal-meeting { background: var(--text); }

  .board { padding-bottom: 8px; }
  .board-column { flex-basis: 78vw; max-height: 62vh; }
  .offer-row { grid-template-columns: minmax(0, 1fr) 56px 90px; }
  .offer-row .danger-link { grid-column: 1 / -1; justify-self: start; }
  .offer-head span:last-child { display: none; }
  .goal-line { grid-template-columns: minmax(0, 1fr) 44px; }
  .goal-line .funnel-label { grid-column: 1 / -1; }
}
