/* Kulvar — "Haftanı kur" oluşturucu (v5) */
.hb { padding: clamp(80px, 9vw, 140px) 0 clamp(90px, 9vw, 150px); position: relative; overflow: clip; }
.hb-head { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.hb-head h2 { text-transform: uppercase; font-weight: 700; font-size: clamp(56px, 7vw, 112px); line-height: .94; }
.hb-head p { margin: 0; color: var(--ink3); }
.hb-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.hb-pl { position: absolute; left: 0; right: 0; bottom: 18px; height: 70px; opacity: .9; }
/* denetimler */
.hb-ctl { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px 20px 6px; position: sticky; top: 84px; box-shadow: var(--sh2); }
.hb-g { border: 0; margin: 0 0 20px; padding: 0; }
.hb-g legend { font: 600 20px/1 var(--fd); text-transform: uppercase; padding: 0; margin-bottom: 10px; letter-spacing: .01em; }
.hb-gl { display: grid; gap: 4px; }
.hb-go { position: relative; }
.hb-go input { position: absolute; opacity: 0; }
.hb-go > span:not(.hb-gi) { }
.hb-go { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--rb); cursor: pointer; transition: background .15s; }
.hb-go:hover { background: var(--ink2); }
.hb-gi { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink3); border-radius: 2px; }
.hb-gt b { display: block; font-weight: 600; font-size: 15px; }
.hb-gt small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.3; }
.hb-go:has(input:checked) { background: #fff; color: var(--ink); }
.hb-go:has(input:checked) .hb-gi { background: var(--or); color: #fff; }
.hb-go:has(input:checked) small { color: var(--mute); }
.hb-go:has(input:focus-visible) { outline: 2px solid var(--or); }
.hb-ctl .seg { border-color: var(--lw); }
.hb-ctl .seg span { color: rgba(255, 255, 255, .6); }
.hb-ctl .seg label:hover span, .hb-ctl .seg input:checked + span { color: #fff; }
.hb-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin: 8px 0 0; }
.hb-cnt, .hb-days { display: flex; gap: 4px; flex-wrap: wrap; }
.hb-cnt label, .hb-days label, .hb-win label { position: relative; }
.hb-cnt input, .hb-days input, .hb-win input { position: absolute; opacity: 0; }
.hb-cnt span { width: 54px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--lw); border-radius: var(--rb); font: 600 24px/1 var(--fd); cursor: pointer; }
.hb-days span { width: 42px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--lw); border-radius: var(--rb); font-size: 13px; cursor: pointer; }
.hb-win { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hb-win span { display: grid; padding: 9px 10px; border: 1.5px solid var(--lw); border-radius: var(--rb); cursor: pointer; }
.hb-win b { font-weight: 600; font-size: 14px; } .hb-win small { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.hb-cnt label:hover span, .hb-days label:hover span, .hb-win label:hover span { border-color: #fff; }
.hb-cnt input:checked + span { background: var(--or); border-color: var(--or); }
.hb-days input:checked + span, .hb-win input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.hb-win input:checked + span small { color: var(--mute); }
.hb-cnt input:focus-visible + span, .hb-days input:focus-visible + span, .hb-win input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
/* çıktı */
.hb-out { display: grid; gap: 16px; min-width: 0; }
.hb-top { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.hb-stats { display: flex; gap: 0; }
.hb-stats div { padding: 0 20px; border-left: 1px solid var(--line); }
.hb-stats div:first-child { padding-left: 0; border: 0; }
.hb-stats dt { font-size: 12px; color: var(--mute); }
.hb-stats dd { font-size: 14px; white-space: nowrap; }
.hb-stats dd b { font: 600 32px/1 var(--fd); margin-right: 2px; }
.hb-stats dd small { color: var(--mute); margin-left: 4px; font-size: 12px; }
.hb-msg { margin: 0; font-size: 14px; color: var(--ink3); line-height: 1.45; }
/* takvim */
.hb-cal { background: #fff; border-radius: var(--r); box-shadow: var(--sh2); padding: 14px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; overflow: hidden; }
.hb-ph { grid-column: 1 / -1; color: var(--mute); padding: 40px; text-align: center; }
.hb-rows { display: grid; grid-template-rows: 74px repeat(3, minmax(96px, auto)); gap: 6px; }
.hb-rows span { font: 600 15px/1 var(--fd); text-transform: uppercase; color: var(--mute); writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; align-self: center; }
.hb-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hb-col { display: grid; grid-template-rows: 74px repeat(3, minmax(96px, auto)); gap: 6px; min-width: 0; }
.hb-hd { padding: 8px 8px; border-radius: var(--rb); background: var(--mist); }
.hb-col.today .hb-hd { background: var(--ink); color: #fff; }
.hb-dh { margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.hb-dh b { font: 600 20px/1 var(--fd); text-transform: uppercase; }
.hb-dh span { font-size: 12px; opacity: .7; }
.hb-train, .hb-rest { margin: 6px 0 0; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.hb-rest { color: var(--mute); }
.hb-col.today .hb-rest { color: rgba(255, 255, 255, .7); }
.hb-rest .ic { width: 13px; height: 13px; }
.hb-cell { border-radius: var(--rb); background: repeating-linear-gradient(0deg, transparent 0 23px, var(--mist) 23px 24px); display: grid; align-content: start; gap: 4px; padding: 3px; min-width: 0; }
.hb-cell.off { background: repeating-linear-gradient(-45deg, var(--mist) 0 2px, transparent 2px 9px); }
.hb-blk { --c: var(--z4); display: grid; gap: 3px; text-align: left; border: 0; border-radius: var(--rb); padding: 8px 8px 8px 11px; background: var(--ink); color: #fff; position: relative; min-width: 0; overflow: hidden; animation: pop .25s var(--ease); }
.hb-blk::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.hb-blk.i1 { --c: var(--z1); } .hb-blk.i2 { --c: var(--z2); } .hb-blk.i3 { --c: var(--z3); } .hb-blk.i4 { --c: var(--z4); } .hb-blk.i5 { --c: var(--z5); }
.hb-bt { display: flex; justify-content: space-between; gap: 4px; }
.hb-bt b { font: 600 18px/1 var(--fd); } .hb-bt small { font-size: 11px; opacity: .6; }
.hb-bn { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.hb-bn i { font: 600 12px/1 var(--fd); font-style: normal; background: var(--c); color: var(--ink); padding: 2px 4px; }
.hb-bm { font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-bc { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .8; }
.hb-bc .cap-bar { width: 36px; height: 4px; background: rgba(255, 255, 255, .2); }
.hb-bc .cap-bar i { background: #fff; }
.hb-bx { position: absolute; right: 4px; top: 4px; opacity: 0; transition: opacity .15s; }
.hb-bx .ic { width: 14px; height: 14px; }
.hb-blk:hover .hb-bx, .hb-blk:focus-visible .hb-bx { opacity: 1; }
.hb-blk:hover { background: var(--ink2); }
.hb-gh { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px; text-align: left; border: 1.5px dashed var(--line2); background: #fff; border-radius: var(--rb); padding: 6px 7px; font-size: 12px; min-width: 0; }
.hb-gh .ic { width: 13px; height: 13px; }
.hb-gh b { font: 600 14px/1 var(--fd); }
.hb-gh span { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-gh small { color: var(--mute); grid-row: 1; grid-column: 3; }
.hb-gh:hover { border-color: var(--or); border-style: solid; color: var(--or-t); }
.hb-gh.is-rec { border-color: var(--z1); }
/* grafikler */
.hb-viz { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hb-load, .hb-bal { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 18px 20px; }
.hb-viz h3 { font-size: 22px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.hb-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 120px; align-items: end; }
.hb-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.hb-bv { align-self: end; height: var(--h); background: var(--ink); position: relative; min-height: 2px; border-radius: 2px 2px 0 0; transition: height .4s var(--ease); }
.hb-bar.r .hb-bv { background: var(--mist2); }
.hb-bv em { position: absolute; top: -18px; left: 0; right: 0; font: 500 12px/1 var(--fd); font-style: normal; color: var(--mute); }
.hb-bar small { font-size: 11px; color: var(--mute); }
.hb-gauge { position: relative; height: 10px; background: var(--mist2); margin: 18px 0 8px; border-radius: 2px; }
.hb-gb { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); background: var(--volt); }
.hb-gm { position: absolute; top: -6px; bottom: -6px; width: 4px; left: var(--v); background: var(--or); transform: translateX(-2px); transition: left .4s var(--ease); }
.hb-lt { font-size: 13.5px; color: var(--ink3); margin: 8px 0 0; line-height: 1.45; }
.hb-gl2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hb-gl2 li { display: grid; grid-template-columns: 136px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb-gb2 { height: 8px; background: var(--mist2); position: relative; border-radius: 2px; overflow: hidden; }
.hb-gb2 i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); transition: width .4s var(--ease); }
.hb-gl2 b { font: 600 15px/1 var(--fd); text-align: right; }
.hb-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hb-fine { width: 100%; font-size: 13px; color: var(--mute); margin: 2px 0 0; }
/* ayırtma penceresi */
.hbd { border: 0; padding: 0; border-radius: var(--r); width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--sh3); }
.hbd::backdrop { background: rgba(14, 15, 18, .55); }
.hbd[open] { animation: pop .15s var(--ease); }
.hbd-in { padding: 24px; }
.hbd-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }
.hbd-k { font-size: 13px; color: var(--mute); margin: 0 0 4px; }
.hbd-top h2 { font-size: 40px; text-transform: uppercase; font-weight: 700; }
.hbd-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1.5px solid var(--ink); }
.hbd-list li { display: grid; grid-template-columns: 70px 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hbd-d b { display: block; font-weight: 600; } .hbd-d { font-size: 12.5px; color: var(--mute); }
.hbd-t { font: 600 22px/1 var(--fd); }
.hbd-c b { margin-right: 6px; } .hbd-c small { display: block; color: var(--mute); font-size: 12.5px; }
.hbd-l { font-style: normal; font: 600 13px/1 var(--fd); background: var(--ink); color: #fff; padding: 3px 6px; margin-right: 6px; }
.hbd-tip { font-size: 13.5px; color: var(--ink3); background: var(--mist); padding: 12px 14px; border-radius: var(--rb); }
.hbd-f h3 { font-size: 26px; text-transform: uppercase; margin: 18px 0 14px; }
.hbd-foot { display: grid; gap: 4px; }
.hbd-ok h3 { font-size: 40px; text-transform: uppercase; margin-bottom: 10px; }
.hbd-mini { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 4px; }
.hbd-mini li { display: flex; gap: 10px; font-size: 14px; } .hbd-mini small { margin-left: auto; color: var(--mute); }
.dw-ok-a { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

@media (max-width: 1180px) {
  .hb-grid { grid-template-columns: 1fr; }
  .hb-ctl { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .hb-goals { grid-row: span 3; }
}
@media (max-width: 860px) {
  .hb-head { grid-template-columns: 1fr; gap: 16px; }
  .hb-ctl { grid-template-columns: 1fr; }
  .hb-top { grid-template-columns: 1fr; }
  .hb-stats { flex-wrap: wrap; gap: 10px 0; }
  .hb-viz { grid-template-columns: 1fr; }
  .hb-cal { grid-template-columns: 1fr; overflow-x: auto; }
  .hb-rows { display: none; }
  .hb-cols { grid-template-columns: repeat(7, minmax(118px, 1fr)); }
  .hb-cell::before { content: attr(data-wl); font-size: 11px; color: var(--mute); padding: 2px 2px 0; }
}
@media (max-width: 560px) {
  .hb-stats div { padding: 0 14px; }
  .hb-stats dd b { font-size: 26px; }
  .hbd-list li { grid-template-columns: 60px 1fr auto; }
  .hbd-t { grid-column: 1; grid-row: 2; }
  .hbd-c { grid-column: 2; grid-row: 1 / 3; }
  .hb-gl2 li { grid-template-columns: 110px 1fr 28px; }
}
