/* TT Task — bileşenler (referans: arayüz/01-05.png) */

/* ============================================================ kart */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
}
.card--tight { padding: 12px; }
.card--flush { padding: 0; overflow: hidden; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-title {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.link-more {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--blue-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.section-title {
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ============================================================ üst bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
}
.topbar__avatar { position: relative; flex: none; display: block; }
.topbar__texts { flex: 1; min-width: 0; text-align: left; }
.topbar__avatar:active, .topbar__texts:active { opacity: .7; }
.topbar__hello {
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}
.topbar__name {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-btn {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  position: relative;
  transition: transform .12s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn__dot {
  position: absolute; top: 10px; right: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--surface);
}

/* sayfa başlığı (geri + başlık) */
.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 4px;
}
.page-head__title {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -.02em;
}
.page-head__action { margin-left: auto; }

/* ============================================================ avatar */
.avatar {
  --size: 40px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  object-fit: cover;
  display: grid; place-items: center;
  font-size: calc(var(--size) * .36);
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--surface);
  overflow: hidden;
  flex: none;
  user-select: none;
}
.avatar--lg { --size: 52px; }
.avatar--xl { --size: 84px; }
.avatar--sm { --size: 30px; }
.avatar__online {
  position: absolute; right: 1px; bottom: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--surface);
}

.avatars { display: flex; align-items: center; }
.avatars > * { margin-left: -10px; }
.avatars > *:first-child { margin-left: 0; }
.avatars__more {
  --size: 30px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: var(--t-xxs);
  font-weight: 700;
  border: 2px solid var(--surface);
  flex: none;
}

/* ============================================================ pastel ikon dairesi */
.bubble {
  --size: 46px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  color: var(--ink);
  background: var(--blue-soft);
}
.bubble--sm { --size: 38px; }
.bubble--lg { --size: 52px; }
.bubble--solid-blue   { background: var(--blue);   color: #fff; }
.bubble--solid-yellow { background: var(--yellow); color: #4A3B00; }
.bubble--solid-coral  { background: var(--coral);  color: #5C1412; }
.bubble--solid-green  { background: var(--green);  color: #123B05; }
.bubble--blue   { background: var(--blue-soft);   color: var(--blue-ink); }
.bubble--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.bubble--green  { background: var(--green-soft);  color: var(--green-ink); }
.bubble--mint   { background: var(--mint);        color: #0E6A4C; }
.bubble--purple { background: var(--purple-soft); color: var(--purple-ink); }
.bubble--coral  { background: var(--red-chip);    color: var(--red-ink); }

/* ============================================================ özet kartları */
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.summary-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 12px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: transform .12s ease;
}
.summary-card:active { transform: scale(.98); }
.summary-card__label {
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.25;
}
.summary-card__value {
  font-size: var(--t-h2);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.summary-card__value small {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

/* ============================================================ chip / etiket */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--t-xxs);
  font-weight: 600;
  white-space: nowrap;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.chip--high    { background: var(--red-chip);    color: var(--red-ink); }
.chip--medium  { background: var(--yellow-chip); color: var(--yellow-ink); }
.chip--low     { background: var(--green-soft);  color: var(--green-ink); }
.chip--info    { background: var(--blue-soft);   color: var(--blue-ink); }
.chip--purple  { background: var(--purple-soft); color: var(--purple-ink); }
.chip--muted   { background: #EFF3F7;            color: var(--muted); }
.chip--sm { height: 21px; padding: 0 8px; font-size: 10px; }

.tag-chip {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600;
}

/* ============================================================ timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 46px 26px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  position: relative;
  text-align: left;
  width: 100%;
}
.tl-item + .tl-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  border-top: 1px dashed var(--dash);
}
.tl-item__time {
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: 500;
  padding-top: 3px;
}
.tl-item__rail { position: relative; display: flex; justify-content: center; }
.tl-item__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 4px solid var(--blue);
  background: var(--surface);
  display: grid; place-items: center;
  flex: none;
  z-index: 1;
}
.tl-item__dot svg { width: 12px; height: 12px; color: #fff; }
.tl-item--done   .tl-item__dot { background: var(--green);      border-color: var(--green); }
.tl-item--late   .tl-item__dot { border-color: var(--coral); }
.tl-item--active .tl-item__dot { border-color: var(--yellow-ring); }
.tl-item--soft   .tl-item__dot { border-color: var(--purple); background: var(--purple-soft); }
.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 68px; width: 2px;
  top: 34px; bottom: -1px;
  background: #E6EDF3;
}
.tl-item__body { min-width: 0; }
.tl-item__title {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tl-item--done .tl-item__title { color: var(--ink); }
.tl-item__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tl-item__end { padding-top: 2px; }

/* ============================================================ hızlı işlemler */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quick-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease;
}
.quick-item:active { transform: scale(.96); }
.quick-item__label {
  font-size: var(--t-xxs);
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.25;
  /* Dar ekranlarda uzun tek kelimeler kartın dışına taşmasın */
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ============================================================ görev kartı */
.task-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.task-card:active { transform: scale(.99); }
.task-card__top { display: flex; align-items: flex-start; gap: 12px; }
.task-card__title {
  font-size: var(--t-h3);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.task-card__menu { flex: none; color: var(--muted-2); padding: 2px; }
.task-card__meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; flex-wrap: wrap;
}
.task-card__date {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-xs); color: var(--muted); font-weight: 500;
}
.task-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px;
}
.task-card--done .task-card__title { color: var(--muted); text-decoration: line-through; }

/* satır içi (dashboard) varyantı */
.task-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; width: 100%; text-align: left;
}
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row__body { flex: 1; min-width: 0; }
.task-row__title {
  font-size: var(--t-h3); font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-row__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font-size: var(--t-xs); color: var(--muted); flex-wrap: wrap;
}

.meta-counts { display: flex; align-items: center; gap: 14px; }
.meta-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-xs); color: var(--muted); font-weight: 500;
}
.meta-count svg { width: 15px; height: 15px; }

/* ============================================================ ilerleme */
.progress {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.progress__track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--blue-track);
  overflow: visible;
}
.progress__fill {
  position: absolute; inset: 0 auto 0 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  transition: width .3s ease;
}
.progress__knob {
  position: absolute; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--surface);
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.55) 0 2px, rgba(255,255,255,0) 2px 4px);
  box-shadow: 0 1px 4px rgba(16, 96, 156, .3);
}
.progress__value {
  font-size: var(--t-xs); font-weight: 700; color: var(--ink);
  min-width: 34px; text-align: right;
}
.progress--yellow .progress__fill,
.progress--yellow .progress__knob { background-color: var(--yellow-ring); }
.progress--yellow .progress__track { background: #FDF0C7; }
.progress--green .progress__fill,
.progress--green .progress__knob { background-color: #35C42A; }
.progress--green .progress__track { background: #DEF6D9; }

/* ============================================================ arama & sekmeler */
.searchbar { display: flex; align-items: center; gap: 12px; }
.searchbar__field {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  color: var(--muted);
}
.searchbar__field input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: var(--t-body); color: var(--ink); min-width: 0;
}
.searchbar__field input::placeholder { color: var(--muted-2); }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #DCE7EF;
  margin: 2px 0 2px;
}
.tab {
  flex: 1;
  padding: 10px 4px 12px;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--muted);
  position: relative;
  text-align: center;
}
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab[aria-selected="true"]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.segmented__btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.segmented__btn[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* ============================================================ alt navigasyon */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  padding: 0 var(--gutter) calc(var(--safe-bottom) + 10px);
  pointer-events: none;
}
.bottom-nav__inner {
  pointer-events: auto;
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: 0 6px 24px rgba(16, 96, 156, .12);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  padding-top: 2px;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item[aria-current="page"] { color: var(--blue); }
.nav-center {
  position: relative;
  display: grid;
  place-items: center;
}
.nav-center__btn {
  position: absolute;
  bottom: 6px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-blue);
  border: 5px solid rgba(255, 255, 255, .92);
  transition: transform .14s ease;
}
.nav-center__btn:active { transform: scale(.93); }
.nav-center__btn img { width: 40px; height: 40px; border-radius: 50%; }

/* ============================================================ butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--r-inner);
  font-size: var(--t-h3);
  font-weight: 700;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn--soft { background: var(--blue-soft); color: var(--blue-ink); }
.btn--danger { background: var(--red-chip); color: var(--red-ink); }
.btn--block { width: 100%; }
.btn--sm { height: 40px; font-size: var(--t-sm); border-radius: 12px; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* yapışkan alt aksiyon */
.sticky-actions {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
  margin-top: 4px;
  padding-top: 4px;
}

/* ============================================================ form alanları */
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field:focus-within {
  border-color: #BEDFFB;
  box-shadow: 0 0 0 3px rgba(21, 141, 253, .10);
}
.field--stack { align-items: flex-start; }
.field__control { flex: 1; min-width: 0; }
.field__label {
  display: block;
  font-size: var(--t-xxs);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: var(--t-body);
  color: var(--ink);
  padding: 0;
}
.field textarea { resize: none; min-height: 92px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field__chev { color: var(--muted-2); flex: none; }
.field__value { font-size: var(--t-body); color: var(--ink); }
.field__value--empty { color: var(--muted-2); }
.field--button { width: 100%; text-align: left; }

.field-error {
  font-size: var(--t-xs);
  color: var(--red-ink);
  padding: 4px 4px 0;
}
.field--invalid { border-color: #F5C2C4; }

.form-stack { display: flex; flex-direction: column; gap: 12px; }

/* yükleme alanı */
.upload-zone {
  width: 100%;
  border: 1.5px dashed #C9DCEA;
  border-radius: var(--r-field);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: #FCFEFF;
}
.upload-zone__title { font-size: var(--t-h3); font-weight: 600; }
.upload-zone__hint { font-size: var(--t-xs); color: var(--muted-2); }

/* anahtar */
.switch {
  position: relative;
  width: 50px; height: 29px;
  border-radius: var(--r-pill);
  background: #D5DCE3;
  flex: none;
  transition: background .18s ease;
}
.switch::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 23px; height: 23px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(21px); }

/* seçim listesi satırı */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px var(--card-pad);
  text-align: left;
  color: var(--ink);
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-size: var(--t-body); font-weight: 600; }
.list-row__sub { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.list-row__end { flex: none; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }

.checkbox {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.8px solid #C6D2DD;
  display: grid; place-items: center;
  flex: none;
  color: transparent;
  transition: background .14s ease, border-color .14s ease;
}
.checkbox[aria-checked="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.checkbox svg { width: 13px; height: 13px; }

/* ============================================================ görev detayı */
.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--dash);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row__icon { color: var(--muted); flex: none; }
.detail-row__label { font-size: var(--t-body); color: var(--muted); flex: 1; }
.detail-row__value {
  font-size: var(--t-body); font-weight: 700; color: var(--ink);
  text-align: right; display: flex; align-items: center; gap: 8px;
}
.detail-block { padding: 14px 0; border-bottom: 1px dashed var(--dash); }
.detail-block:last-child { border-bottom: 0; }
.detail-block__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: var(--t-body); font-weight: 700; color: var(--ink);
}
.detail-block__head svg { color: var(--muted); }
.detail-text { font-size: var(--t-body); color: var(--ink-2); line-height: 1.6; }

.checklist { display: flex; flex-direction: column; gap: 2px; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; width: 100%; text-align: left;
}
.checklist__title { font-size: var(--t-body); color: var(--ink-2); flex: 1; line-height: 1.4; }
.checklist__item--done .checklist__title { color: var(--muted-2); text-decoration: line-through; }

.attachment {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.attachment + .attachment { margin-top: 8px; }
.attachment__name { font-size: var(--t-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment__size { font-size: var(--t-xs); color: var(--muted); }

.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment__bubble {
  flex: 1;
  background: #F4F8FB;
  border-radius: 12px;
  padding: 10px 12px;
}
.comment__author { font-size: var(--t-sm); font-weight: 700; }
.comment__body { font-size: var(--t-sm); color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.comment__time { font-size: var(--t-xs); color: var(--muted-2); margin-top: 6px; }

.comment-form { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.comment-form__field {
  flex: 1; display: flex; align-items: center;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.comment-form__field input { width: 100%; border: 0; outline: none; background: none; font-size: var(--t-sm); }

/* ============================================================ takvim */
.calendar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 12px;
}
.calendar__month { font-size: var(--t-h2); font-weight: 700; }
.calendar__nav {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar__dow {
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 8px;
}
.calendar__day {
  position: relative;
  aspect-ratio: 1 / 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-pill);
}
.calendar__day--muted { color: #C2CDD8; }
.calendar__day--today { color: var(--blue); font-weight: 800; }
.calendar__day[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}
.calendar__dots { display: flex; gap: 3px; height: 6px; align-items: center; }
.calendar__dot { width: 6px; height: 6px; border-radius: 50%; }
.calendar__day[aria-selected="true"] .calendar__dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-strip__day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 0;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.week-strip__dow { font-size: var(--t-xs); color: var(--muted); }
.week-strip__num { font-size: var(--t-h3); color: var(--ink); }
.week-strip__day[aria-selected="true"] { background: var(--blue); }
.week-strip__day[aria-selected="true"] .week-strip__dow,
.week-strip__day[aria-selected="true"] .week-strip__num { color: #fff; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.stat-row__item {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
}
.stat-row__item + .stat-row__item { border-left: 1px solid var(--line); padding-left: 12px; }
.stat-row__label { font-size: var(--t-xs); color: var(--muted); }
.stat-row__value { font-size: var(--t-h2); font-weight: 800; letter-spacing: -.02em; }
.stat-row__value small { font-size: var(--t-xs); font-weight: 500; color: var(--muted); margin-left: 3px; }

/* ============================================================ sheet / modal */
.overlay {
  position: fixed; inset: 0;
  background: rgba(12, 42, 66, .38);
  backdrop-filter: blur(2px);
  z-index: var(--z-sheet);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in .16s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  padding: 10px var(--gutter) calc(var(--safe-bottom) + 18px);
  display: flex; flex-direction: column;
  animation: sheet-up .26s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grip {
  width: 42px; height: 4px; border-radius: 2px;
  background: #DCE3EA; margin: 4px auto 12px; flex: none;
}
.sheet__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px;
}
.sheet__title { font-size: var(--t-h2); font-weight: 700; flex: 1; }
.sheet__body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet__foot { padding-top: 14px; flex: none; }

/* ============================================================ toast */
.toast-host {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  padding: 0 var(--gutter);
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: 460px;
  padding: 12px 16px;
  border-radius: var(--r-inner);
  background: #1B2732;
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 500;
  box-shadow: 0 8px 26px rgba(16, 40, 60, .28);
  animation: toast-in .2s ease both;
}
.toast--success { background: #1E7A3C; }
.toast--error { background: #B4232B; }
.toast--offline { background: #3B4756; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================ boş durum / iskelet */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 16px;
  text-align: center;
}
.empty__title { font-size: var(--t-h3); font-weight: 700; }
.empty__text { font-size: var(--t-sm); color: var(--muted); max-width: 260px; line-height: 1.5; }

.skeleton {
  background: linear-gradient(90deg, #EDF3F8 25%, #F6FAFD 37%, #EDF3F8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ============================================================ sürükle-bırak */
.dragging { opacity: .55; }
.drag-target { box-shadow: 0 0 0 2px var(--blue) inset; }
.sortable-ghost { opacity: .3; }

/* ============================================================ çevrimdışı şeridi */
.offline-bar {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #3B4756;
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(16, 40, 60, .25);
}

/* dashboard görev satırı — referans 01.png yerleşimi */
.task-row__head { display: flex; align-items: flex-start; gap: 10px; }
.task-row__head .task-row__title { flex: 1; }
.task-row__head .avatars { flex: none; }
.task-row__bottom {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
}
.task-row__bottom .progress { margin-top: 0; flex: 1; min-width: 0; }
.task-row__bottom .meta-counts { flex: none; margin-left: auto; }

/* özet kartlarında değer her zaman alta hizalanır (etiket 2 satıra düşse de) */
.summary-card__value { margin-top: auto; }

/* görev kartı başlığı buton olduğu için hizalama sıfırlanır */
.task-card__title { text-align: left; }

/* tarih / saat girdileri: yerel takvim düğmesi tüm alanı kaplar, ikon bizim */
.field { position: relative; }
.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"] {
  appearance: none;
  -webkit-appearance: none;
  background: none;
}
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.field input[data-empty]::-webkit-datetime-edit { color: var(--muted-2); }

/* uzun etiketli butonlar dar ekranda iki satıra sarabilmeli */
.btn {
  height: auto;
  min-height: 52px;
  padding: 10px 16px;
  line-height: 1.25;
  text-align: center;
}
.btn--sm { min-height: 40px; padding: 8px 14px; }
.btn-row { align-items: stretch; }

/* ============================================================ mobil ince ayar */

/* dokunma hedefleri en az ~40px olacak şekilde genişletilir */
.link-more {
  padding: 8px 4px;
  margin: -8px -4px;
  display: inline-block;
}
.task-card__menu {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: -7px -8px -7px 0;
}
.searchbar__field { min-width: 0; }

/* dar telefonlarda (iPhone SE / mini) daha sıkı yerleşim */
@media (max-width: 380px) {
  :root {
    --gutter: 14px;
    --card-pad: 13px;
  }
  .summary-row { gap: 8px; }
  .summary-card { padding: 10px 10px 11px; }
  .quick-grid { gap: 8px; }
  .quick-item { padding: 11px 4px 9px; }
  .quick-item__label { font-size: 10px; }
  .calendar__grid { gap: 1px; }
  .calendar__day { font-size: var(--t-sm); }
  .stat-row { gap: 6px; }
  .stat-row__item { gap: 7px; }
  .stat-row__item + .stat-row__item { padding-left: 8px; }
  .stat-row__value { font-size: var(--t-h3); }
  .stat-row__label { font-size: 10.5px; }
  .stat-row .bubble { --size: 32px; }
  .tl-item { grid-template-columns: 40px 24px 1fr auto; gap: 8px; }
  .tl-item:not(:last-child)::after { left: 59px; }
}

/* çok dar ekranda özet kartları ikiye sarsın */
@media (max-width: 330px) {
  .stat-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .stat-row__item:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* klavye açıkken alt menü gizlenir; form alanı ve yapışkan butonlar kaymaz */
body.keyboard-open .bottom-nav { display: none; }
body.keyboard-open .screen { padding-bottom: calc(var(--safe-bottom) + 24px); }
body.keyboard-open .sticky-actions { bottom: calc(var(--safe-bottom) + 12px); }
body.keyboard-open .toast-host { bottom: calc(var(--safe-bottom) + 16px); }

/* ------------------------------------------------------------------ karşılama akışı */
.onboard {
  min-height: 100dvh;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 14px) var(--gutter) calc(var(--safe-bottom) + 22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.onboard[data-enter] { animation: screen-in .24s ease both; }

.onboard__ust { min-height: 34px; display: flex; justify-content: flex-end; align-items: center; }
.onboard__atla {
  background: none; border: 0; padding: 6px 4px; font: inherit; cursor: pointer;
  font-size: var(--t-sm); font-weight: 600; color: var(--muted);
}
.onboard__atla:hover { color: var(--ink); }

.onboard__govde {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.onboard__gorsel { position: relative; display: grid; place-items: center; margin-bottom: 6px; }
.onboard__halka {
  position: absolute;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,141,253,.14) 0%, rgba(21,141,253,0) 70%);
}
.onboard__gorsel .bubble { position: relative; width: 76px; height: 76px; border-radius: 26px; }

.onboard__baslik {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.22;
  color: var(--ink);
}
.onboard__metin {
  margin: 0;
  max-width: 34ch;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--muted);
}

.onboard__adimlar {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
  max-width: 340px;
}
.onboard__adimlar li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink);
}
.onboard__no {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.onboard__liste {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  max-width: 300px;
}
.onboard__liste li {
  position: relative;
  padding-left: 24px;
  font-size: var(--t-sm);
  color: var(--ink);
}
.onboard__liste li::before {
  content: '';
  position: absolute;
  left: 4px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.onboard__adres {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

.onboard__alt { display: flex; flex-direction: column; gap: 10px; }

/* slaytlar */
.onboard--slayt { padding-left: 0; padding-right: 0; }
.onboard--slayt .onboard__ust,
.onboard--slayt .onboard__alt { padding: 0 var(--gutter); }

.slayt-ray {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slayt-ray::-webkit-scrollbar { display: none; }
.slayt {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 6px var(--gutter);
  min-width: 0;
}

/* Slayttaki telefon çerçevesi */
.slayt__telefon {
  position: relative;
  flex: 0 1 auto;
  aspect-ratio: 720 / 1558;
  max-height: min(48vh, 380px);
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, #2B3040, #11131A);
  box-shadow: 0 18px 40px rgba(17, 22, 42, .22), 0 2px 6px rgba(17, 22, 42, .14);
  overflow: hidden;
}
.slayt__ekran {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  background: #E7F6FE;
  display: block;
}
.slayt__centik {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  border-radius: 0 0 12px 12px;
  background: #11131A;
  z-index: 2;
}
.slayt__yazi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.slayt__yazi .onboard__baslik { font-size: 21px; }

.noktalar { display: flex; justify-content: center; gap: 7px; padding: 2px 0 6px; }
.nokta {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--blue-track, #CBD9EC);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.nokta--etkin { width: 24px; background: var(--blue); }

/* anasayfa bildirim kartı */
.uyari-kart { position: relative; gap: 12px; display: flex; flex-direction: column; }
.uyari-kart__ic { display: flex; gap: 12px; align-items: flex-start; }
.uyari-kart__govde { flex: 1; min-width: 0; }
.uyari-kart__baslik { font-size: var(--t-body); font-weight: 700; color: var(--ink); }
.uyari-kart__metin {
  margin: 3px 0 0;
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--muted);
  padding-right: 18px;
}
.uyari-kart__alt { display: flex; }
.uyari-kart__kapat {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.uyari-kart__kapat:hover { background: rgba(0,0,0,.05); color: var(--ink); }

/* ------------------------------------------------------------------ güncelleme şeridi */
.guncelleme-serit {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--safe-top) + 10px);
  z-index: var(--z-toast);
  width: min(calc(100% - 24px), 520px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 22, 42, .28);
  animation: guncelleme-in .24s ease both;
}
@keyframes guncelleme-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.guncelleme__ikon { flex: none; opacity: .85; display: grid; place-items: center; }
.guncelleme__yazi { flex: 1; min-width: 0; line-height: 1.25; }
.guncelleme__yazi strong { display: block; font-size: 13.5px; font-weight: 700; }
.guncelleme__yazi small { display: block; font-size: 11.5px; opacity: .7; }
.guncelleme__btn {
  flex: none;
  padding: 8px 14px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.guncelleme__btn:disabled { opacity: .6; }
.guncelleme__kapat {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  opacity: .55;
}
.guncelleme__kapat:hover { opacity: 1; }

/* sürüm satırı */
.surum-satiri {
  text-align: center;
  font-size: var(--t-xs);
  color: var(--muted-2);
  padding: 2px 0 6px;
}
