:root {
  --bg: #11161d; --panel: #1a212b; --panel2: #232c38; --line: #2f3a48; --text: #e9eef4; --muted: #8d99a8;
  --accent: #f26b2a; --ok: #3fbf6a; --warn: #f0b429; --bad: #e0443a; --blue: #3b8fd9;
  --top: 56px; --foot: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { display: grid; grid-template-rows: minmax(var(--top), auto) 1fr var(--foot); height: 100vh; height: 100dvh; overflow: hidden; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
button, select, input { font: inherit; color: inherit; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }

/* üst çubuk */
.top { display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.brand { font-size: 20px; letter-spacing: .5px; white-space: nowrap; line-height: 0; } .brand b { color: var(--accent); } .brand img.logo { height: 26px; width: auto; display: block; }
.devices { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.dev { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer; white-space: nowrap; min-height: 38px; }
.dev em { font-style: normal; display: none; }
.dev i { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; }
.dev.on i { background: var(--ok); box-shadow: 0 0 6px var(--ok); } .dev.connecting i { background: var(--warn); animation: blink 1s infinite; } .dev.error i { background: var(--bad); }
.dev small { color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
@keyframes blink { 50% { opacity: .3; } }
.tools { display: flex; gap: 8px; align-items: center; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 7px 12px; cursor: pointer; font-weight: 600; min-height: 38px; }
.seg button.on { background: var(--accent); color: #fff; }
.icon { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 38px; cursor: pointer; font-size: 18px; }

/* ana alan */
.stage { display: grid; grid-template-columns: 1fr 360px; min-height: 0; }
.view { position: relative; min-height: 0; overflow: hidden; background: #1b2430; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.side { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); background: var(--bg); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
#map { height: 210px; border-radius: 8px; background: #223; }
#profile { width: 100%; height: 80px; display: block; margin-bottom: 8px; }
#wchart { width: 100%; height: 70px; display: block; margin-bottom: 8px; background: #151b23; border-radius: 6px; }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; margin-top: 12px; }
select, input:not([type]), input[type=text], input[type=number], input[type=url], input[type=password], input[type=date], input[type=email] { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 38px; min-width: 0; }
.row select { flex: 1; } .row.wrap select { flex: 1 1 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; cursor: pointer; min-height: 42px; white-space: nowrap; }
.btn.small { padding: 6px 10px; min-height: 36px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.danger { background: #3a1f22; border-color: #6b2b30; }
.btn.strava { background: #fc4c02; border-color: #fc4c02; color: #fff; }
.btn.youtube { background: #e62117; border-color: #e62117; color: #fff; font-weight: 600; }
.btn.spotify { background: #1db954; border-color: #1db954; color: #06140b; font-weight: 600; }
.btn:disabled { opacity: .4; cursor: default; }
.slider { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 8px; margin: 6px 0; }
.slider input { width: 100%; accent-color: var(--accent); } .slider b { text-align: right; }

/* HUD */
.hud { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(13,18,25,.72); backdrop-filter: blur(6px); border-radius: 12px; padding: 8px 12px; max-width: calc(100% - 20px); flex-wrap: wrap; justify-content: center; }
.m { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 0 6px; }
.m label { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.m b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m u { text-decoration: none; font-size: 11px; color: var(--muted); }
.m.big b { font-size: 44px; color: #fff; } .m.big em { font-style: normal; font-size: 12px; color: var(--muted); }
.grade { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(13,18,25,.75); border-radius: 12px; padding: 10px 14px; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.grade.up { color: #ff9a5c; } .grade.steep { color: #ff5a4a; } .grade.down { color: #6cc0ff; }
.target { position: absolute; left: 14px; bottom: 14px; background: rgba(13,18,25,.82); border-radius: 12px; padding: 10px 14px; box-sizing: border-box; width: var(--tw); max-width: calc(100% - 28px); border-left: 6px solid var(--ok); }
.target .tname, .target .tnext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target.low { border-left-color: var(--blue); } .target.high { border-left-color: var(--bad); }
.tname { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.trow { display: flex; gap: 18px; } .trow label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.trow b { font-size: 30px; font-variant-numeric: tabular-nums; } .trow u { text-decoration: none; color: var(--muted); margin-left: 2px; }
.topen { display: block; width: 100%; margin: 6px 0 2px; padding: 7px 10px; border: 1px dashed rgba(255,255,255,.45); border-radius: 8px; background: rgba(242,107,42,.18); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.target.open { border-left-color: var(--accent); } .target.open .tbar span { background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, rgba(242,107,42,.45) 8px 16px); background-size: 22px 22px; animation: topen 1.2s linear infinite; }
@keyframes topen { to { background-position: 22px 0; } }
.tbar { height: 6px; background: #333c48; border-radius: 3px; margin: 8px 0 4px; overflow: hidden; } .tbar span { display: block; height: 100%; background: var(--accent); width: 0; }
.tnext { font-size: 12.5px; color: var(--muted); }
.toast { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(13,18,25,.9); padding: 12px 20px; border-radius: 10px; font-size: 18px; opacity: 0; transition: opacity .3s; pointer-events: none; text-align: center; max-width: 90%; }
.toast.show { opacity: 1; }
.paused { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 28px; font-weight: 800; letter-spacing: 3px; color: #fff; text-shadow: 0 2px 10px #000; }

/* alt çubuk */
.controls { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel); border-top: 1px solid var(--line); }
.controls .btn { min-width: 110px; }

/* diyaloglar */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg { padding: 18px; } .dlg h2 { margin: 0 0 12px; } .dlg h3 { margin: 16px 0 8px; font-size: 14px; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dlg label.check { flex-direction: row; align-items: center; gap: 8px; margin-top: 10px; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.stats div { background: var(--panel2); border-radius: 8px; padding: 8px 10px; } .stats label { font-size: 11px; color: var(--muted); text-transform: uppercase; display: block; } .stats b { font-size: 20px; }
.list { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.list .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel2); padding: 8px 10px; border-radius: 8px; }
#upMsg { margin-top: 8px; } #upMsg a { color: #ff8a50; }
.ok { color: var(--ok); } .err { color: var(--bad); }

/* grup */
.grp.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pack { position: absolute; left: 10px; top: 92px; background: rgba(13,18,25,.72); border-radius: 10px; padding: 6px 8px; font-size: 13px; max-height: calc(100% - 230px); overflow: hidden; min-width: 170px; }
.pack div { display: flex; align-items: center; gap: 6px; padding: 2px 0; white-space: nowrap; }
.pack i, .members i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.pack span { flex: 1; overflow: hidden; text-overflow: ellipsis; max-width: 120px; } .pack b { font-variant-numeric: tabular-nums; }
.pack .me span { font-weight: 700; } .off { opacity: .45; }
.chatov { position: absolute; right: 14px; bottom: 80px; width: min(320px, 45%); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.chatov div { background: rgba(13,18,25,.8); border-radius: 8px; padding: 5px 9px; font-size: 13px; animation: fadeout 12s forwards; overflow-wrap: anywhere; }
@keyframes fadeout { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.gbtns { float: right; display: flex; gap: 4px; } .card h3 .btn.small { min-height: 28px; padding: 3px 8px; font-size: 12px; }
.members { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; font-size: 13px; }
.members div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.members b { font-variant-numeric: tabular-nums; } .members small { color: var(--muted); }
.chat { height: 170px; overflow-y: auto; background: #151b23; border-radius: 8px; padding: 6px 8px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.chat .sys { color: var(--muted); font-style: italic; } .chat .coach b { color: var(--warn); }
.chat div { overflow-wrap: anywhere; }
#gChatForm input { flex: 1; }
.ctable { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 13px; }
.ctable .r { display: grid; grid-template-columns: 1fr 64px 92px; gap: 6px; align-items: center; background: var(--panel2); border-radius: 8px; padding: 6px 8px; border-left: 5px solid #555; }
.ctable .r.ok { border-left-color: var(--ok); } .ctable .r.low { border-left-color: var(--blue); } .ctable .r.high { border-left-color: var(--bad); }
.ctable .nm { overflow: hidden; } .ctable .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctable .nm small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctable .pw { text-align: right; font-variant-numeric: tabular-nums; } .ctable .pw b { font-size: 17px; } .ctable .pw small { display: block; color: var(--muted); }
.ctable .ac { display: flex; flex-direction: column; gap: 3px; } .ctable .ac button, .ctable .ac select { min-height: 26px; padding: 2px 4px; font-size: 11.5px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.ctable .int { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 2px; font-size: 11.5px; text-align: center; }
.tabs { display: flex; gap: 6px; margin: 12px 0 10px; } .tabs button { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px; cursor: pointer; }
.tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.voicebar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.voicebar input[type=range] { width: 90px; vertical-align: middle; }
.members .vc { font-size: 12px; margin-left: 2px; opacity: .85; }
.members .speak span, .pack .speak span { color: #4bd16b; text-shadow: 0 0 6px rgba(75,209,107,.6); }
.vmic { position: absolute; left: 10px; top: 92px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: rgba(13,18,25,.8); color: #fff; font-size: 19px; cursor: pointer; z-index: 5; }
.vmic.muted { background: rgba(160,40,40,.85); }
.vmic.speak { border-color: #4bd16b; box-shadow: 0 0 10px rgba(75,209,107,.7); }
.badge-grp { position: absolute; left: 10px; top: 60px; background: var(--blue); color: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; }

#dlgGroupCard .card { border: 0; padding: 0; }
#dlgGroupCard .chat { height: 40vh; }

/* üyelik ve hesap */
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent); background: var(--panel2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; flex: none; }
.avatar:hover, .icon:hover, .btn:hover:not(:disabled) { filter: brightness(1.15); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.auth { width: min(440px, calc(100vw - 24px)); }
dialog.wide { width: min(820px, calc(100vw - 24px)); }
.authbrand { font-size: 30px; font-weight: 800; text-align: center; margin: 4px 0 6px; letter-spacing: .3px; } .authbrand b { color: var(--accent); }
.authbrand img.logo { display: block; height: 60px; width: auto; margin: 0 auto 4px; }
.authbrand small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.dlg form[data-pane] { display: flex; flex-direction: column; gap: 10px; }
.dlg form[data-pane].hidden { display: none; }
.btn.wide { width: 100%; margin-top: 4px; }
.linkbtn { background: none; border: 0; color: #ff9a5c; cursor: pointer; padding: 4px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.dlg a { color: #ff9a5c; }
.guest { text-align: center; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; } .guest .linkbtn { color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pwmeter { height: 4px; background: var(--panel2); border-radius: 2px; overflow: hidden; margin-top: -4px; }
.pwmeter span { display: block; height: 100%; width: 0; transition: width .2s; background: var(--bad); }
.pwmeter .s2 { background: var(--warn); } .pwmeter .s3, .pwmeter .s4 { background: var(--ok); }
.msg { min-height: 1.2em; margin-top: 8px; } .msg.ok { color: var(--ok); } .msg.err { color: #ff6b5f; }
.row.between { justify-content: space-between; }
.note { background: #3a2f12; border: 1px solid #6b5520; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.linkcard { background: var(--panel2); border-radius: 10px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.linkcard form input { flex: 1 1 140px; }
.list .item.ride { align-items: flex-start; } .list .item.ride b { display: block; }
input.code { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; font-size: 20px; text-align: center; }
#dlgAccount .tabs button { flex: 1 1 auto; }
#dlgAccount section { min-height: 220px; }
#dlgConfirm { width: min(440px, calc(100vw - 24px)); }
dialog[open] { animation: pop .16s ease-out; } @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* yapay zekâ antrenör */
.coachbtn { background: linear-gradient(135deg, #6d4bd8, #3b8fd9); border-color: transparent; color: #fff; }
.coout { margin-top: 12px; } .coout h3 { margin: 6px 0; } .coout h4 { margin: 14px 0 6px; font-size: 14px; }
.cochart { width: 100%; height: 90px; display: block; background: #151b23; border-radius: 8px; margin: 8px 0; }
.colist { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; } .cotips { list-style: none; padding: 0; margin: 10px 0; font-size: 13.5px; color: #c4cfdc; display: grid; gap: 4px; }
textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: inherit; font: inherit; resize: vertical; width: 100%; }
.loadbadge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--panel2); }
.loadbadge.ok { background: rgba(63,191,106,.18); color: var(--ok); } .loadbadge.low { background: rgba(59,143,217,.18); color: #7cb8ee; } .loadbadge.high { background: rgba(224,68,58,.18); color: #ff8a80; }
#dlgCoach .dlg { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; }

/* tablet dikey ve telefon */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 58%) 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-content: start; }
  #map { height: 170px; }
}
@media (max-width: 640px) {
  :root { --top: 52px; --foot: 60px; }
  .brand { display: none; }
  .dev span, .dev small { display: none; } .dev em { display: inline; } .dev { padding: 6px 10px; }
  .m.opt, .m.big em { display: none; }
  .m { min-width: 56px; } .m b { font-size: 20px; } .m.big b { font-size: 32px; }
  .hud { top: 6px; padding: 6px; gap: 2px; }
  .grade { font-size: 22px; padding: 6px 10px; top: auto; bottom: 12px; transform: none; }
  .target { width: auto; max-width: none; right: 80px; left: 8px; bottom: 8px; padding: 8px 10px; } .trow b { font-size: 22px; } .trow { gap: 12px; }
  .controls .btn { min-width: 0; flex: 1; } .hide-sm { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-xs { display: none; } .tools { gap: 5px; } .grid3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  #dlgAccount .tabs { flex-wrap: wrap; } .list .item.ride { flex-direction: column; }
  .pack { display: none; } .chatov { bottom: 120px; right: 8px; width: 70%; }
  .badge-grp { top: auto; bottom: 120px; left: 8px; } .vmic { top: auto; bottom: 150px; left: 8px; }
}
/* yatay telefon: yan panel gizlenir, sürüş tam ekran */
@media (max-height: 500px) and (orientation: landscape) {
  .stage { grid-template-columns: 1fr; grid-template-rows: 1fr; } .side { display: none; }
  .hud { flex-wrap: nowrap; top: 4px; padding: 4px 8px; } .m { min-width: 54px; } .m b { font-size: 20px; } .m.big b { font-size: 28px; } .m.big em, .m.opt { display: none; }
  .target { bottom: 6px; left: 6px; padding: 6px 10px; width: var(--tw); max-width: calc(100% - 100px); right: auto; } .trow b { font-size: 22px; } .tnext { display: none; }
  .grade { font-size: 22px; padding: 6px 10px; top: auto; bottom: 6px; transform: none; }
  .pack { top: 60px; max-height: calc(100% - 130px); } .chatov { bottom: 60px; } .badge-grp { top: 60px; bottom: auto; left: auto; right: 10px; } .vmic { top: 92px; bottom: auto; left: auto; right: 10px; }
}
/* küçük ekranlar (tablet dikey, yatay telefon): üst çubuk sıkı, sensörler yalnızca simge + durum noktası */
@media (max-width: 980px), (max-height: 500px) and (orientation: landscape) {
  .top { gap: 6px; padding: 0 8px; }
  .brand { font-size: 16px; }
  .dev span, .dev small { display: none; } .dev em { display: inline; font-size: 15px; line-height: 1; }
  .dev { padding: 4px 8px; gap: 5px; min-height: 32px; }
  .dev.on { border-color: rgba(63,191,106,.6); } .dev.error { border-color: rgba(224,68,58,.6); }
  .hide-sm { display: none; }
  .tools { gap: 5px; }
  .seg button { padding: 4px 9px; min-height: 32px; font-size: 13px; }
  .icon { width: 34px; height: 32px; font-size: 15px; }
  .btn.small.dashbtn, .btn.small.coachbtn, .btn.small.grp { padding: 4px 8px; min-height: 32px; font-size: 15px; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top: 44px; }
  .brand { display: none; }
}
/* dikey telefon: sensörler ikinci satırda, hepsi görünür */
@media (max-width: 640px) and (orientation: portrait) {
  :root { --top: 84px; }
  .top { flex-wrap: wrap; align-content: center; row-gap: 4px; padding: 4px 8px; }
  .brand { display: block; flex: 1; }
  .devices { order: 2; flex: 1 1 100%; }
}
.delopt { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #3a2a2e; border-radius: 10px; margin-bottom: 8px; }
.delopt p { margin: 4px 0 0; } .delopt .btn { flex: none; }
@media (max-width: 520px) { .delopt { flex-direction: column; align-items: stretch; } }
/* hazır antrenmanlar */
#dlgLib .dlg { max-height: 86vh; overflow: auto; }
#dlgLib label select { width: 100%; margin-top: 4px; }
.libcat { margin: 18px 0 8px; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.libcard { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; border: 1px solid #2c3746; background: #18202a; color: inherit; font: inherit; cursor: pointer; position: relative; }
.libcard:hover, .libcard:focus-visible { border-color: #3b8fd9; outline: none; }
.libcard b { padding-right: 44px; } .libcard .small { color: #b7c3d1; line-height: 1.35; }
.tbadge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: #f26b2a; color: #fff; }
.zones { border: 1px solid #2c3746; border-radius: 10px; padding: 12px; margin-top: 12px; background: #151b23; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 8px; }
.zgrid div { display: flex; flex-direction: column; background: #1c2531; border-radius: 8px; padding: 6px 8px; } .zgrid b { font-size: 14px; }
#libDetail h3 { margin: 12px 0 4px; }
/* FTP testi sonucu (özet) */
.ftpres { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px; margin: 10px 0; border-radius: 10px; border: 1px solid #f26b2a; background: rgba(242,107,42,.1); }
.ftpres .ftpnum { display: flex; flex-direction: column; } .ftpres .ftpnum b { font-size: 28px; color: #ff8a4c; line-height: 1.1; }
.ftpres > div:nth-child(2) { flex: 1; min-width: 160px; }

/* ===== sürüş ekranı: yenilenmiş gösterge ===== */
.hud { border: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 24px rgba(0,0,0,.35); background: linear-gradient(180deg, rgba(20,27,36,.86), rgba(12,16,22,.78)); }
#hPwBox, #hHrBox { border-bottom: 3px solid var(--zc, transparent); border-radius: 4px; transition: border-color .4s; padding-bottom: 2px; }
.viewtools { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.viewtools button { background: rgba(13,18,25,.72); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; width: 38px; height: 36px; cursor: pointer; font-size: 16px; }
.viewtools button:hover { background: rgba(40,50,64,.9); }
.viewtools button.rec { width: auto; padding: 0 10px; background: rgba(200,30,30,.88); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 50% { background: rgba(140,20,20,.88); } }
.clipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 8px; }
.clipitem video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #151b23; display: block; margin-bottom: 4px; }
.gearbox { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; background: rgba(13,18,25,.82); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 6px; }
.gearbox button { width: 38px; height: 44px; border-radius: 8px; border: 0; background: var(--panel2); font-size: 22px; cursor: pointer; }
.gearbox div { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.gearbox label { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; } .gearbox b { font-size: 26px; font-variant-numeric: tabular-nums; }
.gearbox.pulse b { animation: gpulse .35s; } @keyframes gpulse { 40% { color: var(--accent); transform: scale(1.25); } }
.realgear { position: absolute; right: 14px; bottom: 84px; display: flex; flex-direction: column; align-items: center; background: rgba(13,18,25,.82); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 6px 12px; min-width: 72px; }
.realgear label { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.realgear div { display: flex; align-items: baseline; gap: 3px; } .realgear b { font-size: 24px; font-variant-numeric: tabular-nums; } .realgear i { color: var(--muted); font-style: normal; } .realgear small { color: var(--muted); font-size: 12px; }
.realgear.pulse b { animation: gpulse .35s; }
.draft { position: absolute; right: 14px; top: calc(50% + 44px); background: rgba(59,143,217,.85); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.segban { position: absolute; left: 50%; transform: translateX(-50%); top: 118px; background: rgba(120,40,160,.86); color: #fff; border-radius: 10px; padding: 6px 14px; font-size: 14px; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.segban span { font-variant-numeric: tabular-nums; }
.miniprof { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(520px, 50%); height: 64px; background: rgba(13,18,25,.6); border-radius: 10px; }
/* antrenman kutusu yerindeyken rota profili kutunun sağına, vites kutusunun soluna geçer */
.view { --tw: clamp(260px, 36%, 400px); --tl: 14px; }
@media (max-height: 500px) and (orientation: landscape) { .view { --tw: clamp(240px, 34%, 340px); --tl: 6px; } }
/* antrenman kutusu sürüklenebilir; çift dokunuş eski yerine döndürür */
.target { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.target.dragging { cursor: grabbing; opacity: .92; }
body.noside .stage { grid-template-columns: 1fr; grid-template-rows: 1fr; } body.noside .side { display: none; }
.dashbtn { background: #2a3a52; border-color: #3b5577; }
.goalmini { background: var(--panel2); border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; }
.gbar { height: 8px; background: #11161d; border-radius: 5px; overflow: hidden; margin-top: 4px; } .gbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb547); border-radius: 5px; }
.gbar.big { height: 14px; margin: 8px 0; }
.botsel { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; color: var(--text) !important; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#rideOpts label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
#rideOpts label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); margin-top: 6px; font-size: 13px; }
.sumextra { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.xprow { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #3a2a10, #23180b); border: 1px solid #6b5520; border-radius: 8px; padding: 8px 10px; } .xprow b { color: #ffcf5c; font-size: 18px; }
.newbadges { display: flex; flex-wrap: wrap; gap: 6px; } .bdgchip { background: #2a3a52; border-radius: 14px; padding: 4px 10px; font-size: 13px; }
.prline { color: #9be36d; }

/* ===== panel ===== */
dialog.full { width: min(1100px, calc(100vw - 16px)); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; }
dialog.full .dlg { height: 100%; display: flex; flex-direction: column; }
#dashBody { flex: 1; overflow-y: auto; padding-right: 4px; }
.tabs.scroll { overflow-x: auto; scrollbar-width: thin; flex: none; } .tabs.scroll button { flex: 0 0 auto; white-space: nowrap; }
.dpane h4 { margin: 18px 0 6px; font-size: 14px; }
.dchart { width: 100%; height: 180px; display: block; background: #151b23; border-radius: 8px; }
.stats div small { display: block; font-size: 11.5px; }
.besttbl, .hrz { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.besttbl div, .hrz div { background: var(--panel2); border-radius: 8px; padding: 6px 8px; border-left: 4px solid var(--line); }
.besttbl label, .hrz label { display: block; font-size: 11px; color: var(--muted); } .besttbl b, .hrz b { font-variant-numeric: tabular-nums; }
.besttbl small { display: block; }
.zbar { display: grid; grid-template-columns: 130px 1fr 110px; gap: 8px; align-items: center; font-size: 12.5px; margin: 3px 0; }
.zbar div { height: 12px; background: #151b23; border-radius: 6px; overflow: hidden; } .zbar i { display: block; height: 100%; } .zbar b { font-weight: 500; text-align: right; color: var(--muted); }
.ridemap { height: 260px; border-radius: 8px; background: #223; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.profform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.lvl { display: flex; gap: 14px; align-items: center; background: var(--panel2); border-radius: 10px; padding: 12px; }
.lvl > div:last-child { flex: 1; }
.lvnum { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffb547, #f26b2a); display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; flex: none; }
.goalbox { background: var(--panel2); border-radius: 8px; padding: 10px; margin-top: 8px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bdg { background: var(--panel2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; opacity: .4; filter: grayscale(1); }
.bdg.got { opacity: 1; filter: none; border: 1px solid #6b5520; } .bdg .bi { font-size: 30px; } .bdg small { color: var(--muted); font-size: 11.5px; }
.segcard, .clubcard, .card2 { background: var(--panel2); border-radius: 10px; padding: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.card2 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.lb div { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; } .lb .me { color: #ffb547; font-weight: 600; }
.feed { display: flex; flex-direction: column; gap: 6px; }
.feeditem { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: var(--panel2); border-radius: 10px; padding: 8px 10px; }
.fav { width: 40px; height: 40px; border-radius: 50%; background: #2a3a52; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.kudo { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px; cursor: pointer; } .kudo.on { background: #3a2a10; border-color: #b8862b; } .kudo:disabled { opacity: .5; cursor: default; }
.events { display: flex; flex-direction: column; gap: 8px; }
.evcard { display: grid; grid-template-columns: 64px 1fr; gap: 10px; background: var(--panel2); border-radius: 10px; padding: 10px; }
.evcard > .row { grid-column: 1 / -1; margin-top: 0; } .evcard.invited { border: 1px solid var(--accent); }
.evdate { background: var(--panel); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; }
.evdate b { font-size: 24px; line-height: 1; } .evdate small { font-size: 11px; color: var(--muted); }
.accent { color: #ff9a5c; }
/* takvim */
.calhead { background: var(--panel2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.calhead label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calnav { margin: 10px 0 6px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calgrid .dow { text-align: center; font-size: 11px; color: var(--muted); padding: 2px; }
.calgrid .day { min-height: 74px; background: var(--panel2); border: 1px solid transparent; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 2px; align-items: stretch; text-align: left; cursor: pointer; overflow: hidden; }
.calgrid .day.other { opacity: .45; } .calgrid .day.today { border-color: var(--accent); }
.day .dn { font-size: 12px; color: var(--muted); } .day .wk { font-size: 11px; background: #2a3a52; border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .done { font-size: 11px; color: #9be36d; }
.dayedit { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
/* editör */
.edwrap { display: grid; grid-template-columns: 240px 1fr; gap: 12px; }
.edlist .item { cursor: pointer; border: 1px solid transparent; text-align: left; } .edlist .item.on { border-color: var(--accent); }
.edlist label { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; color: var(--muted); }
.edmain label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.edmain textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--text); font: inherit; }
.blocks { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.blk { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; background: var(--panel2); border-radius: 8px; padding: 6px; }
.blk label { margin: 0 !important; font-size: 11px !important; } .blk input { width: 74px; } .blk select { width: auto; }
.blk .icon { width: 32px; height: 32px; font-size: 14px; }
@media (max-width: 760px) {
  .edwrap { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; }
  .calgrid .day { min-height: 54px; } .day .wk { font-size: 9.5px; }
  .zbar { grid-template-columns: 90px 1fr 80px; }
  .segban { top: 96px; font-size: 12.5px; } .gearbox b { font-size: 20px; } .gearbox button { width: 32px; height: 36px; }
}
.garmin { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.garmin p { margin: 0; } .msg.ok, .small.ok { color: #9be36d; }

/* ===== çok sporlu editör ve saat ===== */
.mshead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .msicon { font-size: 26px; }
.msinfo { font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.msbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #151b23; margin-bottom: 8px; }
.msbar i { display: block; height: 100%; border-right: 1px solid #11161d; }
.k-isinma { --kc: #3b8fd9; } .k-calisma { --kc: #f26b2a; } .k-dinlenme { --kc: #4bb34f; } .k-soguma { --kc: #6fb4ff; } .k-gecis { --kc: #a23bd1; }
.msbar i { background: var(--kc, #555); }
.msteps { display: flex; flex-direction: column; gap: 6px; }
.msrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--panel2); border-radius: 8px; padding: 6px; border-left: 4px solid var(--kc, var(--line)); }
.msrow select { width: auto; flex: 0 0 auto; padding: 6px; } .msrow input { padding: 6px; }
.msval { width: 80px; } .mst { width: 64px; } .msnote { flex: 1 1 140px; min-width: 120px; }
.msrow .icon { width: 32px; height: 32px; font-size: 14px; }
.msrep { border: 1px dashed var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.msrep label { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; } .msrep label input { width: 60px; }
.msinner { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; }
.msadd { margin-top: 2px; } .grow { flex: 1; }
.watchcode { font-size: 26px; letter-spacing: 3px; font-variant-numeric: tabular-nums; color: #ffb547; }
#watchCard .list { max-height: none; }

/* ===== sürüş fotoğrafları ===== */
.sumphotos h3, .sumphotos h4 { margin: 14px 0 6px; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.phitem { position: relative; border-radius: 8px; overflow: hidden; background: #151b23; aspect-ratio: 16 / 9; border: 2px solid transparent; }
.phitem.cover { border-color: var(--accent); }
.phitem img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.phbtn { position: absolute; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(13,18,25,.75); color: #fff; cursor: pointer; font-size: 14px; }
.phbtn.star { left: 4px; } .phitem.cover .phbtn.star { color: #ffb547; } .phbtn.rm { right: 4px; }
dialog.photo { width: min(1100px, calc(100vw - 16px)); } dialog.photo img { width: 100%; border-radius: 8px; display: block; }
.feeditem { grid-template-columns: 40px 1fr auto; } .feedphoto { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* Sürüşte sade ekran: çubuklar yavaşça kaybolur */
body { transition: grid-template-rows .9s ease; }
.top, .controls { transition: opacity .9s ease, border-color .9s; overflow: hidden; }
body.immersive { grid-template-rows: 0 1fr 0; }
body.immersive .top, body.immersive .controls { opacity: 0; pointer-events: none; border-color: transparent; }
/* Değer paneli: kenarda, küçük, yatay sürüklenebilir */
.hud { left: 8px; transform: none; flex-wrap: nowrap; max-width: none; padding: 5px 8px; gap: 2px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.hud.drag { cursor: grabbing; box-shadow: 0 0 0 2px var(--accent), 0 6px 24px rgba(0,0,0,.35); }
.hud .m { min-width: 54px; padding: 0 4px; } .hud .m label { font-size: 9.5px; } .hud .m u { font-size: 9.5px; }
.hud .m b { font-size: 20px; } .hud .m.big b { font-size: 30px; } .hud .m.big em { font-size: 10px; }
@media (max-width: 980px) { .hud .m.opt { display: none; } }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .hud { top: 6px; padding: 3px 6px; } .hud .m { min-width: 44px; padding: 0 2px; }
  .hud .m b { font-size: 16px; } .hud .m.big b { font-size: 22px; } .hud .m label, .hud .m u { font-size: 8.5px; }
  /* vites eğim göstergesinin üstüne */
  .gearbox { bottom: 58px; right: 10px; }
  .grade { right: 10px; }
}
/* Reklam alanı: sağ alt köşe; görününce vites ve eğim yukarı kayar */
.adbox { position: absolute; right: 10px; bottom: 10px; width: 240px; display: flex; align-items: center; gap: 8px; background: rgba(13,18,25,.86); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 6px 8px 6px 6px; box-shadow: 0 6px 24px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; z-index: 3; }
.adbox.in { opacity: 1; transform: none; } .adbox.link { cursor: pointer; }
.adbox small { position: absolute; top: -8px; left: 8px; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; background: #3a4452; color: #c9d3df; border-radius: 4px; padding: 0 5px; }
.adbox img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.adtxt { display: flex; flex-direction: column; min-width: 0; } .adtxt b { font-size: 13.5px; } .adtxt span { font-size: 12px; color: #c9d3df; line-height: 1.25; }
.grade, .gearbox { transition: bottom .5s, top .5s, transform .5s; }
.view.adon .gearbox { bottom: 84px; }
@media (min-width: 641px) and (min-height: 501px) { .view.adon .grade { top: auto; transform: none; bottom: 160px; } .view.adon .gearbox { bottom: 84px; } }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .adbox { width: 200px; bottom: 6px; right: 10px; padding: 4px 6px 4px 4px; } .adbox img { width: 56px; height: 42px; }
  .adtxt b { font-size: 12px; } .adtxt span { font-size: 11px; }
  .view.adon .grade { bottom: 62px; } .view.adon .gearbox { bottom: 112px; }
}
/* birleşik triatlon/duatlon: bölümler ve T1/T2 */
.race { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; font-size: 12.5px; }
.race .leg { background: var(--panel2); border-radius: 6px; padding: 2px 7px; }
.race .tr { color: var(--accent); font-weight: 600; font-size: 11.5px; }
.item.ride .row { display: flex; gap: 6px; margin-top: 4px; }

/* sonraki adıma geri sayım */
.stepcue { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(13,18,25,.86); border: 2px solid var(--accent); border-radius: 14px; padding: 6px 14px 6px 10px; box-shadow: 0 6px 24px rgba(0,0,0,.4); z-index: 4; }
.stepcue b { font-size: 34px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.stepcue .ca { font-size: 22px; } .stepcue.up .ca { color: #ff6b5a; } .stepcue.down .ca { color: #6cc0ff; }
.stepcue div { display: flex; flex-direction: column; } .stepcue small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; } .stepcue span { font-weight: 600; }
.stepcue.urgent { animation: cuepulse .5s ease-in-out infinite alternate; border-color: #ff6b5a; }
@keyframes cuepulse { to { transform: translateX(-50%) scale(1.08); } }
.pack .gap { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .stepcue { top: 62px; padding: 4px 10px 4px 8px; } .stepcue b { font-size: 26px; } }

/* Değer paneli: bölge rozetleri, ayraçlar, birim yanında */
.hud { align-items: stretch; }
.hud .m { justify-content: center; position: relative; }
.hud .m + .m::before { content: ''; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 1px; background: rgba(255,255,255,.08); }
.hud .m .vu { display: flex; align-items: baseline; gap: 2px; }
.hud .m.big { padding-right: 8px; }
.hud .m.big .vu u { font-size: 11px; font-weight: 600; }
#hPwBox, #hHrBox { border-bottom: 0; padding-bottom: 0; }
.hud .zc { font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1; letter-spacing: .3px; white-space: nowrap; margin-top: 3px; padding: 2px 6px; border-radius: 999px; color: #0d1219; background: var(--zc, transparent); transition: background .4s; }
.hud .zc:empty { display: none; }
.hud .m.fb label { color: var(--warn); }
.hud .m.fb label::after { content: ' ⚠'; }
.hud .m.est label::after { content: ' ~'; }
.grade { border-left: 4px solid rgba(255,255,255,.12); transition: color .4s, border-color .4s; }
.grade.up { border-left-color: #ff9a5c; } .grade.steep { border-left-color: #ff5a4a; } .grade.down { border-left-color: #6cc0ff; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .hud .zc { font-size: 8px; padding: 1px 4px; } .hud .m.big .zc { display: none; } }
/* Antrenman hedef kutusu: güç farkı, adım ilerlemesi ve küçük antrenman profili */
.target { backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08); border-left-width: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: border-color .4s; }
.target .tdelta { font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 6px; padding: 1px 6px; border-radius: 999px; vertical-align: 6px; }
.target .tdelta:empty { display: none; }
.target .tdelta.ok { background: rgba(63,191,106,.18); color: var(--ok); } .target .tdelta.low { background: rgba(59,143,217,.2); color: #6cb4ff; } .target .tdelta.high { background: rgba(224,68,58,.2); color: #ff7a6e; }
.target .tbar { height: 4px; margin: 8px 0 6px; } .target .tbar span { transition: width .25s linear; }
.tprof { display: block; width: 100%; max-width: 100%; min-width: 0; contain: size; height: 34px; border-radius: 4px; background: rgba(255,255,255,.04); margin-bottom: 4px; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .tprof { height: 22px; } .target .tdelta { font-size: 11px; vertical-align: 3px; } }
/* ekipman */
.gearlist .item.gear.retired { opacity: .6; }
.gearlist .part { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto auto; gap: 8px; align-items: center; margin-top: 4px; font-size: 13px; }
.gearlist .part .pbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.gearlist .part .pbar i { display: block; height: 100%; background: var(--accent); }
.gearlist .part.worn .pbar i { background: #e5484d; } .gearlist .part.worn > span:first-child { color: #e5484d; font-weight: 600; }
.gearform { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.gearform .list .item input { flex: 1; min-width: 0; } .gearform .list .item input[type=number] { max-width: 120px; }
.gearsel { max-width: 220px; }
@media (max-width: 560px) { .gearlist .part { grid-template-columns: 1fr auto; } .gearlist .part .pbar { grid-column: 1 / -1; } }
.mcpurl { background: var(--panel2); padding: 4px 8px; border-radius: 6px; font-size: 13px; user-select: all; word-break: break-all; }
/* dış aktiviteler, spor renkleri */
.extbox { margin-bottom: 14px; }
.extbox h4 { margin: 4px 0; }
.srctag { display: inline-block; font-size: 10.5px; font-weight: 600; color: #fff; padding: 1px 6px; border-radius: 8px; vertical-align: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; color: var(--muted, #9aa7b5); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: 0; }

/* hedef yarış kartı */
.racecard { background: linear-gradient(135deg, rgba(242,107,42,.14), rgba(59,143,217,.10) 60%, var(--panel2)); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.racetop { display: flex; gap: 14px; align-items: center; }
.racetop .ring { position: relative; width: 84px; height: 84px; flex: none; }
.racetop .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.racetop .ring circle { fill: none; stroke-width: 7; } .racetop .ring .bg { stroke: rgba(255,255,255,.08); }
.racetop .ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.racetop .rnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.racetop .rnum b { font-size: 26px; color: #fff; } .racetop .rnum small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.rttl { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .rttl .rname { font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.phtag { align-self: flex-start; color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 20px; padding: 2px 10px; margin-top: 2px; }
.phstrip { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.phstrip .ph { flex: 1; height: var(--h); background: var(--c); border-radius: 3px 3px 0 0; opacity: .85; min-width: 3px; }
.phstrip .ph.past { opacity: .35; } .phstrip .ph.now { opacity: 1; box-shadow: 0 0 0 2px #fff inset, 0 0 10px var(--c); }
.rstats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } .rstats span { display: block; } .rstats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.racechart { width: 100%; height: 120px; display: block; }
.legend i.hollow { background: transparent; border: 1.5px solid #f2a52a; }
.rnotes { display: flex; flex-direction: column; gap: 4px; } .rnote { display: flex; gap: 8px; font-size: 12.5px; background: rgba(255,255,255,.04); border-radius: 6px; padding: 5px 8px; }
.rnote small { flex: none; min-width: 44px; }
.raceform { display: flex; flex-direction: column; gap: 10px; } .raceform label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.raceform .rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.raceform .hrsl b { color: var(--text); } .raceform input[type=range] { accent-color: var(--accent); }
.daychips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.daychips .chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer; color: var(--muted); min-height: 36px; }
.daychips .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.day .wk.rp { background: color-mix(in srgb, var(--c) 30%, #1d2633); border-left: 3px solid var(--c); }
.day .wk.rp.hard { font-weight: 600; }
.calgrid .day.raceday { background: linear-gradient(160deg, rgba(232,69,91,.45), var(--panel2)); border-color: #e8455b; }
@media (prefers-reduced-motion: reduce) { .racetop .ring .fg { transition: none; } }

/* toparlanma ve hazırlık puanı */
.wellhero { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in srgb, var(--c, #3fbf6a) 18%, transparent), var(--panel2) 70%); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.wellwatch { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.wwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.wwtile { background: var(--panel); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.wwtile b { font-size: 1.05rem; }
.wleft { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.gauge { position: relative; width: 180px; height: 100px; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 14; stroke-linecap: round; } .gauge .gbg { stroke: rgba(255,255,255,.08); }
.gauge .gfg { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge .gnum { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; line-height: 1; }
.gauge .gnum b { font-size: 38px; color: #fff; } .gauge .gnum small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.wlevel { color: #10151b; font-weight: 700; border-radius: 20px; padding: 3px 14px; font-size: 13px; }
.wright { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; } .wadv { font-size: 16px; line-height: 1.35; }
.wflag { background: rgba(240,180,41,.12); border-radius: 6px; padding: 4px 8px; }
.wparts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wpart { display: grid; grid-template-columns: 110px 1fr 30px; gap: 2px 8px; align-items: center; font-size: 12.5px; }
.wpart small { grid-column: 1 / -1; padding-left: 118px; margin-top: -3px; }
.wbar { height: 7px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; } .wbar i { display: block; height: 100%; border-radius: 4px; transition: width .8s ease; }
.wellform { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.wellform label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); } .wellform .slp b { color: var(--text); }
.wellform .wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.wellform input[type=range] { accent-color: #7b6cf0; }
.wscales { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px 16px; }
.wscale { display: flex; flex-direction: column; gap: 3px; } .wscale small { min-height: 1em; }
.emo { display: flex; gap: 4px; }
.emo button { flex: 1; font-size: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; cursor: pointer; filter: grayscale(.7); opacity: .7; transition: transform .15s, filter .15s, opacity .15s; }
.emo button:hover { opacity: 1; filter: none; } .emo button.on { filter: none; opacity: 1; border-color: var(--accent); background: rgba(242,107,42,.15); transform: scale(1.08); }
.welltrends { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.wchart { background: var(--panel2); border-radius: 10px; padding: 8px 10px; } .wchart canvas { width: 100%; display: block; margin-top: 4px; }
.rchip { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; text-align: left; } .rchip i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
@media (max-width: 520px) { .wpart { grid-template-columns: 90px 1fr 26px; } .wpart small { padding-left: 0; } .gauge { width: 150px; height: 84px; } }
@media (prefers-reduced-motion: reduce) { .gauge .gfg, .wbar i, .emo button { transition: none; } }

/* bildirim zili */
.bell { position: relative; } .bell[hidden] { display: none; }
.bell b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--panel); }
.bell.ring { animation: bellring 1.2s ease 2; transform-origin: 50% 10%; }
@keyframes bellring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.notifpop { position: fixed; top: 58px; right: 12px; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; z-index: 1200; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 10px; display: flex; flex-direction: column; gap: 8px; animation: popin .16s ease-out; }
.notifpop[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nlist { display: flex; flex-direction: column; gap: 4px; }
.nitem { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: start; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 8px; cursor: pointer; color: inherit; }
.nitem:hover { background: var(--panel2); } .nitem.unread { background: rgba(59,143,217,.10); } .nitem.unread .nago::before { content: '●'; color: var(--blue); margin-right: 4px; }
.nic { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-size: 17px; }
.ntx { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ntx b { font-size: 13.5px; font-weight: 600; } .ntx small { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nago { white-space: nowrap; font-size: 11px; }
.nempty { color: var(--muted); font-size: 13px; padding: 18px 8px; text-align: center; line-height: 1.5; }
.nset { border-top: 1px solid var(--line); padding-top: 8px; } .nset summary { cursor: pointer; color: var(--muted); }
.nset .tgl { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 0; }
.npush { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-start; }
@media (prefers-reduced-motion: reduce) { .bell.ring, .notifpop { animation: none; } }

/* grup yarışı: geri sayım, yarış göstergesi, sonuçlar */
.racecd { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 30; pointer-events: none; background: radial-gradient(circle, rgba(0,0,0,.35), transparent 70%); }
.racecd .line { width: min(80%, 620px); height: 22px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 22px 22px; border-radius: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.5); transform: perspective(300px) rotateX(35deg); }
.racecd b { font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); line-height: 1; animation: cdpop .9s ease-out; }
.racecd b.hot { color: #ffd34d; } .racecd b.go { color: #5be37d; font-size: 96px; }
.racecd small { color: #fff; font-size: 16px; text-shadow: 0 2px 8px #000; }
@keyframes cdpop { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); } }
.racehud { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: baseline; gap: 8px; background: rgba(12,16,22,.82); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px 14px 10px; color: #fff; overflow: hidden; }
.racehud .pos { font-size: 26px; } .racehud small { color: var(--muted); } .racehud .left { font-size: 18px; font-weight: 700; margin-left: 6px; }
.racehud .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: linear-gradient(90deg, var(--accent), #ffd34d); transition: width .9s linear; }
.racehud.final { border-color: #ffd34d; box-shadow: 0 0 16px rgba(255,211,77,.35); } .racehud.final .left { color: #ffd34d; }
.raceres { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 40; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: popin .25s ease-out; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 14px 0 10px; }
.podium > div { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 30%; max-width: 150px; text-align: center; }
.podium .medal { font-size: 30px; } .podium b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .podium small { color: var(--muted); }
.podium i { display: block; width: 100%; border-radius: 6px 6px 0 0; margin-top: 4px; }
.podium .p1 i { height: 70px; background: linear-gradient(#f5c84c, #b8902a); } .podium .p2 i { height: 50px; background: linear-gradient(#d6dde5, #8e99a6); } .podium .p3 i { height: 36px; background: linear-gradient(#e0995a, #9c5f2c); }
.podium .me b { color: var(--accent); }
.restable { width: 100%; border-collapse: collapse; font-size: 13px; } .restable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.restable td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.05); } .restable tr.me td { background: rgba(242,107,42,.12); font-weight: 600; }
.craceset { gap: 6px; margin-top: 6px; align-items: center; } .craceset input { width: 80px; }
.racelog { background: var(--panel2); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; } .racelog summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .racelog .medal { font-size: 18px; } .racelog table { margin-top: 8px; }
/* aylık meydan okumalar */
.chgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-bottom: 8px; }
.chcard { display: flex; gap: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent), var(--panel2) 65%); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.chcard.joined { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); } .chcard.done { box-shadow: 0 0 0 1px var(--c), 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.chring { position: relative; width: 64px; height: 64px; flex: none; } .chring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.chring circle { fill: none; stroke-width: 6; } .chring .bg { stroke: rgba(255,255,255,.08); } .chring .fg { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.chring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.chtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .chval { font-weight: 700; font-size: 15px; }
.chtx .ok { color: var(--ok); } .chtx .warn { color: var(--warn); } .chtx .row { gap: 8px; align-items: center; margin-top: 4px; }
.chlead { font-size: 12.5px; } .chlead summary { cursor: pointer; color: var(--muted); } .chlead .row { padding: 2px 0; } .chlead .me { color: var(--accent); font-weight: 600; }
.bdg.got[style] { border-color: var(--c); }
@media (prefers-reduced-motion: reduce) { .racecd b, .raceres, .chring .fg, .racehud .bar { animation: none; transition: none; } }

/* sporcular: takip, profil, yorumlar */
.fav { color: #fff; text-shadow: 0 1px 2px #0005; flex: none; } .fav.click { cursor: pointer; }
.athname { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: inherit; text-align: left; }
.athname:hover b, .athname:hover span { text-decoration: underline; } .athname.col { flex-direction: column; gap: 4px; text-align: center; }
.athcard { background: linear-gradient(160deg, #1f2a3a, var(--panel2)); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; margin-bottom: 14px; }
.athhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .athhead h4 { margin: 0; flex: 1; }
.athstats { display: flex; gap: 6px; justify-content: center; }
.athstat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; display: grid; justify-items: center; cursor: pointer; min-width: 64px; color: inherit; }
div.athstat { cursor: default; } .athstat b { font-size: 18px; } .athstat small { color: var(--muted); font-size: 11px; }
.athcode { background: repeating-linear-gradient(45deg, #2a1b10, #2a1b10 8px, #301f12 8px, #301f12 16px); border: 1px dashed var(--accent); border-radius: 10px; padding: 4px 12px; display: grid; cursor: pointer; color: inherit; }
.athcode small { font-size: 10.5px; color: var(--muted); } .athcode b { font-family: ui-monospace, monospace; letter-spacing: 2px; color: var(--accent); }
.athsearch { display: flex; gap: 6px; } .athsearch input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.athlist { display: grid; gap: 6px; } .athlist:empty { display: none; }
.athrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); border-radius: 10px; padding: 6px 8px; }
.athrow > div:first-child { display: grid; min-width: 0; }
.athreq { display: grid; gap: 6px; background: #2b2412; border: 1px solid #6b5420; border-radius: 10px; padding: 8px; }
.athsug { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.sugcard { flex: 0 0 130px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.sugcard b { font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athprv summary { cursor: pointer; color: var(--muted); } .athprv .chk { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 8px 0; } .athprv .chk small { grid-column: 2; }
.btn.following { background: #173322; border-color: #2f7a4a; color: #9be3b5; }
.athpop { position: fixed; inset: 0; z-index: 1300; background: #000a; display: grid; place-items: center; padding: 16px; animation: fadeIn .15s; }
.athinner { width: min(440px, 100%); max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 0 14px 14px; display: grid; gap: 10px; box-shadow: 0 20px 60px #000a; animation: popUp .22s cubic-bezier(.2, 1.4, .4, 1); }
.athbanner { margin: 0 -14px; height: 84px; border-radius: 18px 18px 0 0; background: radial-gradient(circle at 20% 120%, #f26b2a88, transparent 60%), radial-gradient(circle at 90% -20%, #3b8fd988, transparent 55%), linear-gradient(120deg, #1d2735, #2a1d2e); display: flex; justify-content: flex-end; align-items: flex-start; padding: 8px; }
.athbanner .icon { background: #0006; border: 0; border-radius: 50%; width: 32px; height: 32px; color: #fff; cursor: pointer; }
.athid { display: grid; justify-items: center; gap: 6px; margin-top: -48px; text-align: center; } .athid h3 { margin: 0; } .fav.big { border: 4px solid var(--panel); box-shadow: 0 6px 20px #0008; }
.athtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .athtiles div { background: var(--panel2); border-radius: 10px; padding: 8px; display: grid; justify-items: center; } .athtiles b { font-size: 17px; } .athtiles small { color: var(--muted); font-size: 11px; }
.athbars { width: 100%; height: auto; } .athbars rect { fill: #3b8fd9; transform-origin: bottom; transform-box: fill-box; animation: growUp .5s ease-out backwards; } .athbars rect.cur { fill: var(--accent); }
.athbars text { fill: var(--muted); font-size: 9px; text-anchor: middle; } .athbars g:hover rect { filter: brightness(1.3); }
.athbadges { display: flex; gap: 6px; flex-wrap: wrap; } .athbadges span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--c) 25%, var(--panel2)); border: 2px solid var(--c); }
.athride { background: var(--panel2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.center { text-align: center; }
@keyframes popUp { from { transform: translateY(20px) scale(.96); opacity: 0; } }
@keyframes growUp { from { transform: scaleY(0); } }
@keyframes fadeIn { from { opacity: 0; } }
.feeditem { grid-template-columns: 40px 1fr; } .feeditem .sbar { grid-column: 1 / -1; }
.sbar { display: grid; gap: 6px; } .sbar .row { gap: 6px; }
.kudo.pop { animation: kpop .45s; } @keyframes kpop { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.cthread { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.clist { display: grid; gap: 8px; } .citem { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; animation: fadeIn .2s; }
.cbody { background: var(--panel); border-radius: 4px 12px 12px 12px; padding: 6px 10px; min-width: 0; } .citem.mine .cbody { background: #2b2216; }
.ctext { overflow-wrap: anywhere; white-space: pre-wrap; } .citem .icon.small { background: none; border: 0; cursor: pointer; opacity: .5; } .citem .icon.small:hover { opacity: 1; }
.cform { display: flex; gap: 6px; } .cform input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 7px 12px; }
.cquick { display: flex; gap: 6px; flex-wrap: wrap; } .chip { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px; cursor: pointer; font-size: 12.5px; } .chip:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .athinner, .athbars rect, .kudo.pop, .citem, .athpop { animation: none; } }

/* sürüşte beslenme */
.fuelopts { margin: 2px 0 4px 24px; } .fuelopts label { font-size: 12.5px; }
.fuelhud { position: absolute; right: 10px; top: 120px; z-index: 6; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.fring { position: relative; width: 46px; display: grid; justify-items: center; background: #0b0f15b0; border-radius: 12px; padding: 4px 2px 3px; backdrop-filter: blur(4px); }
.fring svg { width: 36px; height: 36px; transform: rotate(-90deg); } .fring circle { fill: none; stroke-width: 4; } .fring .bg { stroke: #ffffff22; }
.fring .fg { stroke-linecap: round; transition: stroke-dashoffset .6s ease; } .fring.water .fg { stroke: #45b3f5; } .fring.food .fg { stroke: #f2b632; }
.fring.low .fg { stroke: #e8604c; } .fring span { position: absolute; top: 12px; font-size: 15px; } .fring small { font-size: 10.5px; color: #dfe7f1; font-variant-numeric: tabular-nums; }
.fuelcue { position: absolute; left: 50%; top: 170px; z-index: 8; transform: translateX(-50%); width: min(420px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center;
  background: linear-gradient(135deg, #12324a, #16222f); border: 1px solid #3c86b8; border-radius: 16px; padding: 12px 14px 14px; box-shadow: 0 10px 30px #0009; overflow: hidden; animation: cueIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.fuelcue.eat, .fuelcue.both { background: linear-gradient(135deg, #3b2c0e, #1f1a12); border-color: #c08a22; }
.fuelcue.out { animation: cueOut .25s forwards; } .fuelcue b { display: block; font-size: 16px; } .fuelcue small { color: #c9d4e0; }
.fuelcue .row { grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
.ficon { font-size: 34px; grid-row: span 1; animation: wobble 1.2s ease-in-out infinite; }
.fbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ffffff70; transform-origin: left; animation: drain linear forwards; }
@keyframes cueIn { from { transform: translate(-50%, -30px); opacity: 0; } } @keyframes cueOut { to { transform: translate(-50%, -20px); opacity: 0; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 50% { transform: rotate(8deg); } }
@keyframes drain { to { transform: scaleX(0); } }
.fuelsum { display: grid; gap: 6px; background: var(--panel2); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.fsrow { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; }
.fsbar { height: 8px; background: #ffffff14; border-radius: 4px; overflow: hidden; } .fsbar i { display: block; height: 100%; border-radius: 4px; transition: width .8s; }
.fsbar i.ok { background: linear-gradient(90deg, #2f9c58, #4fd283); } .fsbar i.mid { background: linear-gradient(90deg, #c08a22, #f2b632); } .fsbar i.low { background: linear-gradient(90deg, #b8402f, #e8604c); }
@media (prefers-reduced-motion: reduce) { .fuelcue, .ficon, .fbar { animation: none; } }
.authlang { position: absolute; top: 14px; right: 16px; }

/* ---- Sürüşlerim: ısı haritası, ay başlıkları, sürüş kartları ---- */
.heat { background: linear-gradient(135deg, rgba(242,107,42,.10), rgba(59,143,217,.06)); border: 1px solid #2c3542; border-radius: 12px; padding: 10px 12px 8px; margin: 6px 0 10px; }
.heathead { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.hchip { display: inline-flex; align-items: baseline; gap: 5px; background: var(--panel2); border-radius: 999px; padding: 4px 11px; font-size: 12px; }
.hchip i { font-style: normal; } .hchip b { font-size: 16px; } .hchip small { color: var(--muted); }
.heat.onfire .hchip:first-child { background: linear-gradient(90deg, #f26b2a, #ffb547); color: #fff; } .heat.onfire .hchip:first-child small { color: #fff; opacity: .85; }
.heat.onfire .hchip:first-child i { display: inline-block; animation: flick 1.4s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.18) rotate(-6deg); } }
.heatsvg { width: 100%; height: auto; display: block; max-height: 180px; }
.heatsvg .hl { fill: var(--muted); font-size: 9px; }
.hc { fill: #2a3340; animation: hpop .35s ease-out backwards; transform-box: fill-box; transform-origin: center; }
.hc.l1 { fill: #5a3524; } .hc.l2 { fill: #9a4a25; } .hc.l3 { fill: #d85f27; } .hc.l4 { fill: #ffa04d; }
.hc.today { stroke: #fff; stroke-width: 1.5; }
@keyframes hpop { from { opacity: 0; transform: scale(.4); } }
.heatleg { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.heatleg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: #2a3340; } .heatleg span { margin: 0 3px; }
.heatleg i.l1 { background: #5a3524; } .heatleg i.l2 { background: #9a4a25; } .heatleg i.l3 { background: #d85f27; } .heatleg i.l4 { background: #ffa04d; }
.stats.icons div { position: relative; overflow: hidden; } .stats.icons .sic { position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 22px; opacity: .35; }
.list.rides { max-height: 56vh; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 2px 2px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.mhead b { font-size: 14px; } .mhead span { font-size: 12px; color: var(--muted); }
.list .item.ride { align-items: center; text-align: left; border: 1px solid transparent; transition: border-color .15s, transform .15s, background .15s; cursor: pointer; }
.list .item.ride:hover { border-color: #3a4757; background: #263040; transform: translateX(2px); }
.item.ride .rmain { flex: 1; min-width: 0; }
.rbadge { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; }
.rbadge i { font-style: normal; }
.rbadge.z1 { background: rgba(140,150,165,.22); box-shadow: inset 0 0 0 1px #8c96a5; }
.rbadge.z2 { background: rgba(59,143,217,.22); box-shadow: inset 0 0 0 1px #3b8fd9; }
.rbadge.z3 { background: rgba(63,191,106,.22); box-shadow: inset 0 0 0 1px #3fbf6a; }
.rbadge.z4 { background: rgba(240,180,41,.22); box-shadow: inset 0 0 0 1px #f0b429; }
.rbadge.z5 { background: rgba(224,68,58,.24); box-shadow: inset 0 0 0 1px #e0443a; }
.rdist { height: 3px; background: #1a212a; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.rdist i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb547); border-radius: 2px; }
.item.ride .chev { font-size: 18px; }
@media (max-width: 700px) { .list .item.ride { flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { .hc, .heat.onfire .hchip:first-child i { animation: none; } }
canvas.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
/* Saat veri ekranı tasarımcısı */
.wsdesign { margin-top: 8px; }
.wrlist { display: grid; gap: 6px; margin-top: 8px; } .wrrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line, #333); border-radius: 8px; }
.wrinfo { flex: 1; min-width: 0; } .wrinfo b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrprev { width: 64px; height: 40px; flex: none; } .wrprev polyline { fill: none; stroke: var(--accent, #f26b2a); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; } .wsdesign summary { cursor: pointer; padding: 6px 0; }
.wstabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wsbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 10px; align-items: start; }
.wscard { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.wscard select { max-width: 100%; }
.wsface { width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; background: #000; border: 3px solid #3a4452; display: flex; flex-direction: column; justify-content: center; padding: 22px 14px; gap: 2px; box-sizing: border-box; overflow: hidden; }
.wsrow { display: flex; flex: 1; gap: 2px; border-top: 1px solid #2a2f36; } .wsrow:first-child { border-top: 0; }
.wscell { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; padding: 0; }
.wscell:hover, .wscell:focus-visible { background: #1d2a38; outline: 1px solid #f26b2a; }
.wscell small { color: #9aa6b4; font-size: 9px; letter-spacing: .04em; } .wscell b { font-size: 20px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wsedit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .wspick { flex: 1; min-width: 0; }
.wsadd { align-self: center; justify-self: center; }
.wscard > .row.between { flex-wrap: wrap; gap: 4px; } .wscard > .row.between .row { gap: 4px; }

/* ---------- Antrenmanda müzik (music.js) ---------- */
.viewtools button.playing { background: rgba(29,185,84,.85); animation: mpulse 2.4s ease-in-out infinite; } @keyframes mpulse { 50% { background: rgba(29,185,84,.55); } }
.musicdock { position: absolute; right: 10px; top: 54px; z-index: 7; width: min(320px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 6px; max-height: calc(100% - 64px); pointer-events: none; }
.musicdock > * { pointer-events: auto; }
.ytbox { background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.4); flex: none; }
.ythost { width: 100%; height: 200px; } .ythost iframe { display: block; width: 100%; height: 100%; border: 0; }
.mctl, .mnow { display: flex; align-items: center; gap: 4px; background: rgba(13,18,25,.86); padding: 4px 6px; }
.mctl input[type=range] { flex: 1; min-width: 40px; accent-color: #e62117; }
.mnow { border-radius: 12px; border: 1px solid rgba(29,185,84,.35); flex: none; }
.mnow img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; }
.mtx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mtx b, .mtx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mtx b { font-size: 13px; } .mtx small { color: var(--muted); font-size: 11.5px; }
.mb { background: transparent; border: 0; border-radius: 8px; min-width: 34px; height: 34px; cursor: pointer; font-size: 15px; color: var(--text); flex: none; }
.mb:hover, .mb:focus-visible { background: rgba(255,255,255,.1); }
.mpanel { background: rgba(17,22,29,.95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.mhead { display: flex; gap: 4px; align-items: center; } .mhead .mb { margin-left: auto; }
.mtab { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--text); }
.mtab.sp.on { background: #1db954; border-color: #1db954; color: #06140b; font-weight: 700; } .mtab.yt.on { background: #e62117; border-color: #e62117; color: #fff; font-weight: 700; }
.mpane { display: flex; flex-direction: column; gap: 6px; } .mpane p { margin: 0; } .mpane .row { gap: 6px; } .mpane .row select, .mpane .row input { flex: 1; min-width: 0; }
.mpane > input { width: 100%; box-sizing: border-box; } .mvol input { flex: 1; accent-color: #1db954; }
.mres { display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow-y: auto; }
.mrow { display: flex; gap: 2px; align-items: center; } .mrow .mitem { flex: 1; min-width: 0; }
.mitem { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--panel2); border: 1px solid transparent; border-radius: 8px; padding: 5px 9px; cursor: pointer; color: var(--text); min-width: 0; }
.mitem:hover, .mitem:focus-visible { border-color: var(--line); } .mitem b, .mitem small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mitem b { font-size: 13px; font-weight: 600; } .mitem small { color: var(--muted); font-size: 11px; }
.mmsg:empty { display: none; } .mmsg.err { color: #ff8a80; } .mmsg.ok { color: var(--ok); }
.view:has(.musicdock.on) .fuelhud { right: calc(min(320px, 100% - 20px) + 20px); }
@media (min-width: 641px) and (min-height: 501px) { .view:has(.musicdock.on) .grade { top: auto; transform: none; bottom: 160px; } }
@media (max-width: 640px) { .musicdock { width: min(232px, calc(100% - 20px)); } .view:has(.musicdock.on) .fuelhud { right: 10px; top: auto; bottom: 120px; } }
.mb.on { background: rgba(230,33,23,.55); }

/* Sürüş göstergeleri: hudlayout.js yerleştirir (ölçek, çakışmasız konum, sürükleme) */
.wdg { transform-origin: 0 0; margin: 0; transition: none !important; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.wdg.dragging { cursor: grabbing; opacity: .92; box-shadow: 0 0 0 2px var(--accent), 0 6px 24px rgba(0,0,0,.35); z-index: 30; }
.wdg button { cursor: pointer; }
.target.wdg { width: var(--tw) !important; max-width: none !important; }
.hud.wdg { max-width: none; }
.fuelhud.wdg { pointer-events: auto; }
.mapw { position: absolute; z-index: 0; isolation: isolate; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 6px 24px rgba(0,0,0,.35); background: #223; }
.mapw #map { height: 100%; border-radius: 0; }
.mapw .leaflet-control-attribution { font-size: 8px; line-height: 1.2; padding: 0 3px; }
.mapw .leaflet-container { cursor: grab; }
.miniprof.wdg { width: min(420px, 46%); height: 64px; border: 1px solid rgba(255,255,255,.08); }

/* ===== ana ekran: açılışta; sensör, rota, antrenman, panel ve ayarlar buradan ===== */
body.home { grid-template-rows: minmax(var(--top), auto) 1fr 0; }
body.home .controls { display: none; }
body.home .stage { grid-template-columns: 1fr; grid-template-rows: 1fr; }
body.home .view { display: none; }
body.home .side { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); align-content: start; gap: 12px; padding: 12px; border: 0; width: 100%; max-width: 1400px; margin: 0 auto; }
body.home .side > .card { min-width: 0; }
body.home .homecard { grid-column: 1 / -1; }
body.home .brand { display: block; }
body.riding .homecard { display: none; }
.homecard { background: linear-gradient(135deg, #1d2633, #19202a); }
.homehead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.homecard h2 { margin: 0; font-size: 20px; }
.steps { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.steps li > b { width: 26px; height: 26px; border-radius: 50%; background: #3a4452; display: grid; place-items: center; font-size: 13px; flex: none; }
.steps li.ok > b { background: var(--ok); color: #0d1219; }
.steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.steps li span { font-weight: 600; }
.steps li small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sensslot .devices { flex-wrap: wrap; overflow: visible; gap: 6px; }
.sensslot .dev span { display: inline; } .sensslot .dev em { display: inline; font-style: normal; }
.sensslot .dev small { display: inline; }
.sensslot .dev { min-height: 38px; padding: 6px 12px; }
.gobtn { width: 100%; font-size: 18px; font-weight: 700; padding: 12px; margin: 12px 0 10px; min-height: 50px; }
.hometiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.hometiles button { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; font-size: 22px; cursor: pointer; }
.hometiles button:hover { border-color: var(--accent); }
.hometiles span { font-size: 12.5px; }
/* sürüş ekranı: üst çubukta yalnızca sensör durumları, SIM/ERG ve tam ekran */
body.riding .top .dashbtn, body.riding .top .coachbtn, body.riding .top .grp, body.riding #btnSettings, body.riding #btnAccount, body.riding #btnBell, body.riding .notifpop { display: none !important; }
body.riding .brand { display: none; }

/* ===== değer paneli + antrenman kutusu: tek gösterge (durum %20, antrenman %50 daha küçük) ===== */
.hudock { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; width: max-content; z-index: 2; }
.hudock .hud { position: static; transform: none; padding: 4px 6px; }
.hudock .hud .m { min-width: 44px; padding: 0 3px; }
.hudock .hud .m b { font-size: 16px; } .hudock .hud .m.big b { font-size: 24px; }
.hudock .hud .m label, .hudock .hud .m u { font-size: 8px; } .hudock .hud .m.big em { font-size: 8px; }
.hudock .hud .zc { font-size: 7.5px; padding: 1px 4px; margin-top: 2px; }
.hudock .target { position: static; width: auto !important; max-width: none !important; padding: 3px 8px 4px; border-left-width: 4px; border-radius: 10px; }
.hudock .tname { font-size: 10px; margin-bottom: 0; line-height: 1.3; }
.hudock .trow { gap: 12px; align-items: baseline; }
.hudock .trow > div { display: flex; align-items: baseline; gap: 4px; }
.hudock .trow label { font-size: 8.5px; display: inline; }
.hudock .trow b { font-size: 17px; line-height: 1.15; }
.hudock .target .tdelta { font-size: 9.5px; vertical-align: 2px; margin-left: 3px; padding: 0 4px; }
.hudock .target .tbar { height: 3px; margin: 3px 0 2px; }
.hudock .tprof { height: 14px; margin-bottom: 0; width: 0; min-width: 100%; } /* genişlik içerikten değil kutudan: tuval boyutu kutuyu her karede büyütüyordu */
.hudock .tnext { display: none; }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .hudock .hud .m { min-width: 36px; } .hudock .hud .m b { font-size: 13px; } .hudock .hud .m.big b { font-size: 18px; }
  .hudock .hud .m label, .hudock .hud .m u { font-size: 7px; }
  .hudock .trow b { font-size: 15px; } .hudock .tprof { height: 12px; }
}

/* aynı rotadaki üyeler */
.riders { position: absolute; left: 10px; top: 45%; background: rgba(13,18,25,.8); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 5px 8px; font-size: 12px; min-width: 150px; max-width: 210px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.riders h4 { margin: 0 0 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.riders h4 b { color: var(--text); }
.riders #rrList > div { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.riders #rrList span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riders #rrList b { font-variant-numeric: tabular-nums; font-weight: 600; } .riders b.ahead { color: #ff9a5c; } .riders b.behind { color: #6cc0ff; }

/* gösterge boyut tutamacı */
.wgrip { position: absolute; width: 22px; height: 22px; z-index: 31; cursor: nwse-resize; touch-action: none; opacity: .5; transition: opacity .6s;
  background: linear-gradient(135deg, transparent 52%, rgba(255,255,255,.75) 52%, rgba(255,255,255,.75) 60%, transparent 60%, transparent 70%, rgba(255,255,255,.75) 70%, rgba(255,255,255,.75) 78%, transparent 78%); border-radius: 0 0 8px 0; }
.wgrip:hover, .wgrip.on { opacity: 1; }
body.immersive .wgrip { opacity: 0; pointer-events: none; }
body.riding .dev span, body.riding .dev small { display: none; } body.riding .dev em { display: inline; font-style: normal; font-size: 15px; line-height: 1; }
body.riding .dev { padding: 4px 8px; gap: 5px; min-height: 32px; }
body.riding .dev.on { border-color: rgba(63,191,106,.6); } body.riding .dev.error { border-color: rgba(224,68,58,.6); }
@media (max-width: 640px) and (orientation: portrait) { body.home { --top: 52px; } .hometiles { grid-template-columns: repeat(5, 1fr); gap: 6px; } .hometiles button { font-size: 20px; padding: 8px 2px; } .hometiles span { font-size: 11px; } }

/* Android küçük pencere (resim içinde resim): yalnız temel değerler, pencere boyutuna göre ölçeklenir */
.pipview { display: none; }
body.pip > *:not(.pipview) { display: none !important; }
body.pip { overflow: hidden; background: #0b0f14; }
body.pip .pipview { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1vh; position: fixed; inset: 0; padding: 3vh 4vw; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums; }
.pippw { --zc: transparent; display: flex; align-items: baseline; gap: 1.5vw; border-bottom: .8vh solid var(--zc); line-height: 1; }
.pippw b { font-size: 26vh; font-weight: 800; } .pippw small { font-size: 9vh; color: var(--muted); }
.piptime { font-size: 11vh; font-weight: 600; color: var(--accent); line-height: 1.1; }
.pipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .5vh 6vw; font-size: 10vh; line-height: 1.15; }
.pipgrid small { font-size: 6vh; color: var(--muted); }
.piptgt { font-size: 8vh; color: var(--warn); line-height: 1.1; } .piptgt:empty { display: none; }
.pippause { font-size: 8vh; font-weight: 700; color: var(--bad); letter-spacing: .1em; }
/* antrenörün yazdığı antrenman */
.day .wk.coach { background: #3b2f52; border-left: 3px solid #b48cff; }
.coachby { color: #c9adff; margin: 4px 0; }
/* aktivite ayrıntısı (her spor) */
.actdetail .pad { padding: 14px 16px 18px; }
.actdetail canvas { width: 100%; }
.actstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.actstats .stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; }
.tblwrap { overflow-x: auto; }
table.laps { width: 100%; border-collapse: collapse; font-size: 13px; }
table.laps th, table.laps td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.laps th:nth-child(2), table.laps td:nth-child(2) { text-align: left; }
table.laps tr.rest td { opacity: .55; }
.day .done.act { cursor: pointer; }
