/* Yapılacaklar ekranı ve haftalık paneldeki "Bu haftanın görevleri" */
.todos { flex: 1; min-height: 0; overflow-y: auto; }
.td-wrap { max-width: 860px; margin: 0 auto; padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 14px; }

.td-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.td-hl h1 { margin: 0 0 8px; font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: .02em; font-weight: 400; line-height: 1; color: var(--strong); }
.td-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.td-stat { display: flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.td-stat b { font-size: 14px; font-variant-numeric: tabular-nums; }
.td-stat span { font-size: 12px; color: var(--muted); }
.td-week { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.td-week > span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.td-week select { height: 32px; min-width: 200px; font-weight: 600; }

/* ekleme kutusu */
.td-add {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.td-add .td-new { height: 40px; font-size: 15px; border-color: transparent; background: var(--panel-2); }
.td-add .td-new:focus { background: var(--panel); }
.td-add-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-add-opts select { height: 30px; min-width: 150px; }
.td-add-opts .btn.primary { margin-left: auto; }
.td-ol { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* filtre */
.td-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-seg { display: flex; background: var(--hover); border-radius: 9px; padding: 3px; gap: 2px; }
.td-seg button { height: 28px; padding: 0 12px; border: none; border-radius: 7px; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
.td-seg button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.td-tip { flex: 1; min-width: 200px; }

/* liste */
.td-list { display: flex; flex-direction: column; gap: 6px; }
.td-group { display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.td-group:first-child { margin-top: 0; }
.td-group .dot { width: 10px; height: 10px; border-radius: 50%; }
.td-group .muted { font-weight: 500; text-transform: none; letter-spacing: 0; }
.td-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 10px 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line-2)); border-radius: 10px;
}
.td-item:hover { border-color: var(--line-2); border-left-color: var(--c, var(--line-2)); }
.td-item.open { box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.td-item.done { background: var(--panel-2); }
.td-item.done .td-title { text-decoration: line-through; color: var(--muted); }

.td-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; color: transparent; flex: none;
}
.td-check:hover { border-color: var(--ok); color: var(--ok); }
.td-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.td-check.on:hover { background: var(--panel); color: var(--ok); }

.td-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-title {
  width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 6px; margin-left: -6px;
  font-weight: 600; font-size: 14px; min-width: 0;
}
.td-title:hover { border-color: var(--line); }
.td-title:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.td-title.static { padding: 3px 0; margin: 0; border: none; }
.td-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.td-est { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-2); }
.td-prog { color: var(--ok); font-weight: 600; }
.td-wk {
  height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent-2); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.td-wk small { font-weight: 500; opacity: .8; }
.td-wk.done { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok-text); }
.td-acts { display: flex; align-items: center; gap: 4px; }
.td-in { color: var(--ok); border-color: var(--ok-line); }

.td-details { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.td-details textarea { width: 100%; font-size: 13px; }
.td-drow { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.td-drow .grow { flex: 1; min-width: 160px; }
.td-drow.end { align-items: center; }

.td-empty {
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 36px 20px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--muted); line-height: 1.45;
}
.td-empty b { color: var(--text); font-size: 14px; }
.td-foot { display: flex; justify-content: flex-end; margin-top: 6px; }

/* ---------- haftalık panel: bu haftanın görevleri ---------- */
.panel h4.tk-h { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.panel h4.tk-h .btn { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-2); }
.tk-list { display: flex; flex-direction: column; gap: 6px; }
.tk {
  display: flex; align-items: center; gap: 7px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 8px; background: var(--panel);
}
.tk.active { border-color: var(--text); border-left-color: var(--c); box-shadow: 0 0 0 1px var(--text); }
.tk.done { background: var(--panel-2); }
.tk.done .tk-title { text-decoration: line-through; color: var(--muted); }
.tk .td-check { width: 20px; height: 20px; }
.tk-main { flex: 1; min-width: 0; cursor: pointer; }
.tk.done .tk-main { cursor: default; }
.tk-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sub { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-sub.ok { color: var(--ok); } .tk-sub.warn { color: var(--warn); }
.tk .stepper input { width: 36px; }
.tk .stepper button { width: 22px; }
.tk-add { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tk-add .field { height: 30px; }
.tk-pool { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--panel-2); }
.tk-pool summary { cursor: pointer; padding: 8px 0; font-weight: 600; font-size: 12px; color: var(--text-2); }
.tk-pi { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.tk-pi .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tk-pi .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pool .tk-pi:last-child { padding-bottom: 8px; }
.ed-task { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-start; }

@media (max-width: 900px) {
  .td-wrap { padding: 12px 10px 24px; gap: 12px; }
  .td-hl h1 { font-size: 32px; }
  .td-week { width: 100%; }
  .td-week select { flex: 1; min-width: 0; }
  .td-add-opts .btn.primary { flex: 1; justify-content: center; height: 38px; }
  .td-add-opts select { flex: 1; min-width: 0; height: 36px; }
  .td-item { grid-template-columns: auto 1fr; padding: 9px 9px 9px 10px; }
  .td-acts { grid-column: 2; justify-content: flex-start; }
  .td-details { grid-column: 1 / 3; }
  .td-check { width: 26px; height: 26px; }
  .td-tip { display: none; }
  .tk { flex-wrap: wrap; }
  .tk-main { flex-basis: calc(100% - 40px); }
}

/* ---------- Beklenenler ---------- */
.aw-fmt button { padding: 0 10px; }
.aw-date { height: 30px; }
.aw-check { align-items: center; font-size: 12.5px; white-space: nowrap; }
.aw-check input { margin-top: 0; }
.aw-item { grid-template-columns: 1fr auto; }
.aw-item .td-details { grid-column: 1 / -1; }
.aw-item .td-body { gap: 4px; }
.aw-count { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; min-width: 92px; text-align: right; margin-right: 4px; }
.aw-count b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .02em; color: var(--strong); white-space: nowrap; }
.aw-count span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.aw-count.soon b { color: var(--warn); }
.td-item.done .aw-count b { color: var(--muted); }
.aw-count.big { align-items: flex-start; text-align: left; margin: 8px 0 4px; }
.aw-count.big b { font-size: 52px; line-height: .95; }
.aw-count.big span { font-size: 13px; }
.aw-bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; max-width: 340px; margin-top: 2px; }
.aw-bar i { display: block; height: 100%; background: var(--c, var(--accent)); }
.aw-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 600;
  background: var(--hover); color: var(--text-2); border: 1px solid var(--line);
}
button.aw-chip { cursor: pointer; }
.aw-chip.todo { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.aw-chip.todo.done { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-line); }
.aw-hero {
  position: relative; padding: 16px 18px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  border-top: 5px solid var(--c); box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 60%);
}
.aw-hk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aw-hk > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.aw-ht { font-size: 22px; font-weight: 700; margin-top: 6px; color: var(--strong); }
.aw-hd { color: var(--muted); font-size: 13px; }
.aw-hp { display: flex; align-items: center; gap: 10px; }
.aw-hp .aw-bar { flex: 1; height: 6px; border-radius: 3px; max-width: none; }
.aw-hp span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aw-hacts { position: absolute; top: 12px; right: 12px; }
.aw-hero .td-details { margin-top: 12px; }
.aw-reminds { display: flex; gap: 6px; flex-wrap: wrap; }
.aw-rm { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 12px; color: var(--text-2); }
.aw-rm.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.aw-details .td-drow .stepper { margin-left: auto; }

/* son tarih rozeti (Yapılacaklar) */
.td-due {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); cursor: pointer;
}
.td-due.soon { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-text); }
.td-due.late { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-text); }

/* planlardaki işaretler: planlayıcı kartları ve haftalık gün başlıkları */
.aw-marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.aw-mark {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 22px; padding: 0 7px; border-radius: 11px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--panel));
  background: color-mix(in srgb, var(--c) 13%, var(--panel));
}
.aw-mark .ic { color: var(--c); }
.aw-mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aw-mark small { color: var(--muted); font-weight: 500; }
.aw-mark.more { --c: var(--muted-2); }
.g-day .dw {
  display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin-top: 2px; padding: 1px 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--panel)); background: color-mix(in srgb, var(--c) 14%, var(--panel));
  color: var(--text); font-size: 10.5px; font-weight: 600;
}
.g-day .dw .ic { color: var(--c); }
.g-day .dw.rel { cursor: default; }
/* hicri */
.aw-hj { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line-2); color: #2e8b57; font-weight: 600; }
:root[data-theme="dark"] .aw-hj, :root[data-theme="dark"] .aw-chip.hj, :root[data-theme="dark"] .aw-dt-p { color: #5fc792; }
.aw-hd .aw-hj { font-size: 13px; }
.aw-chip.hj { color: #2e8b57; }
.aw-dt { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aw-dt .aw-hd { width: 62px; } .aw-dt .aw-hm { width: 140px; } .aw-dt .aw-hy { width: 76px; }
.aw-dt-t { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.aw-dt-t:hover { border-color: var(--muted-2); }
.aw-dt-p { font-size: 12px; color: #2e8b57; font-weight: 600; }
.aw-rep { height: 30px; }
.aw-rep-tip { align-self: flex-end; padding-bottom: 6px; }
.aw-item.rel { background: color-mix(in srgb, var(--c) 5%, var(--panel)); }
.aw-item.rel .td-title.static { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.aw-relbtn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 12px; color: var(--muted); }
.aw-relbtn.on { border-color: #2e8b57; color: #2e8b57; background: color-mix(in srgb, #2e8b57 9%, var(--panel)); }
.aw-mark.rel { cursor: default; }
/* beklenen renk seçici */
.aw-colors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aw-sw {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); background: var(--c); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px var(--line-2); flex: none;
}
.aw-sw.on { box-shadow: 0 0 0 2px var(--text); }
.aw-sw.cat { width: auto; height: 26px; border-radius: 13px; padding: 0 10px 0 22px; position: relative; background: var(--panel); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.aw-sw.cat::before { content: ''; position: absolute; left: 6px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--c); }
.aw-sw.custom { position: relative; overflow: hidden; background: conic-gradient(#e0603a, #e39b17, #4caf50, #00a39a, #2563c9, #6d4c9f, #c2417b, #e0603a); }
.aw-sw.custom input { position: absolute; inset: -4px; width: 40px; height: 40px; opacity: 0; cursor: pointer; }
.g-day .dw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

@media (max-width: 900px) {
  .aw-fmt { width: 100%; }
  .aw-fmt button { flex: 1; padding: 0 4px; }
  .aw-item { grid-template-columns: 1fr auto; }
  .aw-item .td-acts { grid-column: 2; grid-row: 1; align-self: start; }
  .aw-item .td-details { grid-column: 1 / 3; }
  .aw-count { min-width: 0; }
  .aw-count b { font-size: 20px; }
  .aw-count.big b { font-size: 42px; }
  /* ekleme kutusu: tarih + kategori, sonra iki kutucuk, sonra Ekle */
  #awaitView .td-add-opts .aw-date, #awaitView .td-add-opts select { flex: 1 1 40%; min-width: 0; height: 38px; }
  .aw-check { flex: 1 1 40%; }
}

/* ---------- Beklenenler: vitrin, kaçırma şeridi, zaman çizelgesi ---------- */
.aw-wrap { gap: 16px; max-width: 1240px; }
.aw-show { display: flex; flex-direction: column; gap: 10px; }
.aw-sh { display: flex; align-items: center; gap: 10px; }
.aw-sh h2, .aw-th h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.aw-sh h2 .ic { color: #E39B17; fill: #E39B17; }
.aw-show-empty { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); line-height: 1.45; }
.aw-show-empty .ic { color: #E39B17; flex: none; }
.aw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 2px 2px 8px; }
.aw-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px; border-radius: 14px; cursor: grab;
  background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--c); scroll-snap-align: start; min-width: 0;
  background-image: linear-gradient(150deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 65%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06); transition: box-shadow .12s;
}
.aw-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); }
.aw-card.dragging { opacity: .4; }
.aw-card.over { outline: 2px dashed var(--c); outline-offset: 2px; }
.aw-ck { display: flex; align-items: center; gap: 6px; }
.aw-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.aw-flag.imp { display: inline-flex; color: var(--danger); }
.aw-mv { width: 24px; height: 24px; border: none; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity .12s; }
.aw-card:hover .aw-mv, .aw-mv:focus-visible { opacity: 1; }
.aw-mv:hover { background: var(--hover); color: var(--text); }
.aw-mv:disabled { opacity: 0 !important; pointer-events: none; }
.aw-ct { font-size: 18px; font-weight: 700; color: var(--strong); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aw-cd { font-size: 12px; color: var(--muted); }
.aw-cd .aw-hj { font-size: 12px; }
.aw-card .aw-count.big { margin: 6px 0 2px; }
.aw-card .aw-count.big b { font-size: 40px; }
.aw-cprep { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--warn-text); margin-top: 4px; }
.aw-cprep.ok { color: var(--ok-text); }
.aw-next { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.aw-count.since b { color: color-mix(in srgb, var(--c) 70%, var(--strong)); }

.aw-alerts { border-radius: 12px; border: 1px solid var(--warn-line); background: var(--warn-soft); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.aw-alerts.calm { border-color: var(--ok-line); background: var(--ok-soft); }
.aw-ah { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.aw-ah b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--warn-text); }
.aw-alerts.calm .aw-ah b { color: var(--ok-text); }
.aw-calm { display: flex; align-items: center; gap: 6px; color: var(--ok-text); font-weight: 600; font-size: 12.5px; }
.aw-alist { display: flex; flex-direction: column; gap: 4px; }
.aw-al {
  display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); cursor: pointer; font: inherit; color: inherit; width: 100%;
}
.aw-al:hover { border-color: var(--line-2); border-left-color: var(--c); }
.aw-al.rel { cursor: default; }
.aw-al-i { display: inline-flex; color: var(--c); }
.aw-al.imp .aw-al-i { color: var(--danger); }
.aw-al-t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-al-t small { margin-left: 8px; font-weight: 500; color: var(--warn-text); }
.aw-al-w { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aw-al-c { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .02em; min-width: 64px; text-align: right; }
.aw-al.now .aw-al-c { color: var(--danger); }

.aw-add-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.aw-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.aw-kb { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.aw-kb:hover { border-color: var(--muted-2); }
.aw-kb.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.aw-tg { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.aw-tg.excited.on { border-color: #E39B17; color: #a86d00; background: color-mix(in srgb, #E39B17 14%, var(--panel)); }
.aw-tg.excited.on .ic { fill: #E39B17; color: #E39B17; }
.aw-tg.important.on { border-color: var(--danger-line); color: var(--danger-text); background: var(--danger-soft); }
.aw-ol { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.aw-th { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.aw-views { display: flex; gap: 4px; flex-wrap: wrap; }
.aw-vb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.aw-vb small { font-weight: 500; opacity: .75; }
.aw-vb.on { background: var(--text); border-color: var(--text); color: var(--panel); }
.aw-vb.rel.on { background: #2e8b57; border-color: #2e8b57; color: #fff; }

.aw-item { grid-template-columns: auto 1fr auto; }
.aw-item .td-details { grid-column: 1 / -1; }
.aw-ki { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--panel)); align-self: start; margin-top: 2px; }
.aw-tgi { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-2); padding: 0; }
.aw-tgi:hover { background: var(--hover); color: var(--text-2); }
.aw-tgi.excited.on { color: #E39B17; }
.aw-tgi.excited.on .ic { fill: #E39B17; }
.aw-tgi.important.on { color: var(--danger); }
.aw-chip.warn { background: var(--warn-soft); color: var(--warn-text); border-color: var(--warn-line); }
.aw-chip.ok { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-line); }
.aw-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.aw-prep { display: flex; flex-direction: column; gap: 4px; }
.aw-pi { display: flex; align-items: center; gap: 6px; }
.aw-pi .field { flex: 1; height: 28px; }
.aw-pi.done .field { text-decoration: line-through; color: var(--muted); }
.aw-pi input[type=checkbox] { accent-color: var(--ok); width: 16px; height: 16px; }
.aw-prep > .field { height: 30px; }

@media (hover: none) { .aw-mv { opacity: 1; } .aw-card { cursor: default; } .aw-sh .aw-drag-tip { display: none; } }
@media (max-width: 900px) {
  .aw-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x proximity; }
  .aw-sh { flex-wrap: wrap; row-gap: 4px; }
  .aw-sh .spacer { display: none; }
  .aw-card .aw-count.big b { font-size: 34px; }
  .aw-item { grid-template-columns: auto 1fr; }
  .aw-item .td-acts { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
  .aw-al { grid-template-columns: 20px 1fr auto; }
  .aw-al-w { display: none; }
  .aw-al-t small { display: block; margin: 0; }
}
.aw-more { align-self: flex-start; }

/* ---------- Beklenenler: başlık düğmesi, açılır pencere, üç sütun, gerçekleşenler ---------- */
.aw-hr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.aw-new { height: 36px; padding: 0 14px; }
.modal.aw-modal-w { width: 620px; }
.modal.aw-modal-w .mb { max-height: min(70vh, 640px); overflow-y: auto; }
.aw-newform { gap: 12px; }
.aw-newform .td-new { height: 38px; font-size: 15px; }
.aw-kb { --c: var(--accent); }
.aw-kb .ic { color: var(--c); }
.aw-kb.on { background: var(--c); border-color: var(--c); color: #fff; }
.aw-kb.on .ic { color: #fff; }
.aw-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.aw-details { display: flex; flex-direction: column; gap: 10px; }
.aw-details .aw-dtitle { height: 38px; font-size: 15px; font-weight: 600; }
.aw-details textarea { width: 100%; }

.aw-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.aw-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.aw-col-h { display: flex; align-items: center; gap: 7px; padding: 2px 4px 4px; color: var(--text-2); }
.aw-col-h b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.aw-col-h small { margin-left: auto; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; }
.aw-col.duty .aw-col-h .ic { color: #E0603A; }
.aw-col.plans .aw-col-h .ic { color: #00A39A; }
.aw-col.days .aw-col-h .ic { color: #D94F8A; }
.aw-col-empty { color: var(--muted); font-size: 12px; padding: 14px 8px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 10px; line-height: 1.4; }
.aw-col-sub { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 4px 0; }
.aw-ci {
  display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 8px; border-radius: 10px; cursor: pointer; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c);
}
.aw-ci:hover { border-color: var(--line-2); border-left-color: var(--c); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.aw-ci:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.aw-ci.flash { animation: awflash 1.4s ease; }
@keyframes awflash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); } 100% { box-shadow: none; } }
.aw-ci-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aw-ki.sm { width: 26px; height: 26px; border-radius: 7px; margin: 0; align-self: center; flex: none; }
.aw-ci-t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-count.sm { min-width: 0; margin: 0; }
.aw-count.sm b { font-size: 19px; }
.aw-count.sm span { font-size: 9.5px; }
.aw-ci-m { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 11.5px; color: var(--muted); }
.aw-ci-m .aw-hj { font-size: 11.5px; }
.aw-ci-c { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 22px; }
.aw-ci-c .aw-chip { height: 18px; font-size: 10.5px; padding: 0 6px; }
.aw-ci-c .aw-next { font-size: 11px; }
.aw-chip.impc { background: var(--danger-soft); color: var(--danger-text); border-color: var(--danger-line); }
.aw-ci .aw-tgi { width: 24px; height: 24px; opacity: .55; }
.aw-ci:hover .aw-tgi, .aw-ci .aw-tgi.on { opacity: 1; }
.aw-ci .aw-bar { max-width: none; height: 3px; }
.aw-ci.rel-like { cursor: default; }
.aw-col .aw-item.rel { padding: 8px 10px; border-radius: 10px; grid-template-columns: 1fr auto; gap: 2px 8px; }
.aw-col .aw-item.rel .td-title.static { font-size: 13px; }
.aw-col .aw-item.rel .td-meta { font-size: 11px; }
.aw-col .aw-item.rel .aw-count b { font-size: 17px; }
.aw-col .aw-item.rel .td-acts { grid-column: 2; grid-row: 1 / span 2; }
.aw-relmore { align-self: center; color: #2e8b57; }

.aw-past { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 12px; }
.aw-past summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; font-weight: 700; color: var(--text-2); }
.aw-past summary span { display: inline-flex; align-items: center; gap: 6px; }
.aw-past summary small { color: var(--muted); font-weight: 600; }
.aw-past[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.aw-past .td-list { padding-bottom: 10px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .aw-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-col.days { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .aw-cols { grid-template-columns: minmax(0, 1fr); }
  .aw-hr { width: 100%; justify-content: stretch; }
  .aw-new { width: 100%; justify-content: center; height: 42px; }
  .modal.aw-modal-w { width: 100%; }
  .modal.aw-modal-w .mb { max-height: none; }
  .aw-ci .aw-tgi { opacity: 1; }
}
.aw-modal div.lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.aw-modal div.lbl > .aw-dt, .aw-modal div.lbl > .aw-kinds { color: var(--text); }
