/* Saat: önce dikey telefon; yatay telefon ve geniş ekran bağımsız yerleşimlerdir. */
body:not(.zen-fullscreen-mode) #timerPage.active {
  --bl-timer-header: calc(64px + env(safe-area-inset-top,0px));
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: calc(100dvh - var(--nav-h,64px) - env(safe-area-inset-bottom,0px)) !important;
  overflow: auto !important;
  padding: var(--bl-timer-header) 0 0 !important;
}
body:not(.zen-fullscreen-mode) #timerPage.active #timerTopMeta {
  position: absolute !important;
  inset: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr);
  gap: 8px;
  height: var(--bl-timer-header) !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  align-content: center !important;
  box-sizing: border-box !important;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px !important;
}
#timerPage .timer-top-meta>div:first-child { gap: 8px !important; }
#timerPage .timer-lvl-badge { color:var(--t-text-secondary)!important; background:var(--t-bg-input)!important; border-color:var(--t-border-subtle)!important; }
#timerPage .timer-xp-fill { background:var(--t-text-secondary)!important; }
#timerPage .timer-xp-txt { color:var(--t-text-muted)!important; }
#timerPage .timer-total-chip { min-width:0!important; max-width:100%; justify-self:end; }
#timerPage .timer-total-val { font-variant-numeric:tabular-nums; font-size:12px!important; white-space:normal; }
#timerPage .timer-total-lbl { font-size:9px!important; letter-spacing:.06em!important; }
#timerPage #timerStatusChip {
  width:44px!important; min-width:44px!important; height:44px!important;
  padding:0!important; border:0!important; background:transparent!important;
  margin:0!important; border-radius:12px!important;
}
#timerPage #timerStatusChip .status-chip-text { display:none!important; }
#timerPage #timerStatusChip { position:relative!important; }
#timerPage #timerStatusChip>svg { width:22px; height:22px; color:var(--t-text-secondary); }
#timerPage #timerStatusChip .timer-status-dot { position:absolute!important; right:8px; bottom:8px; width:7px!important; height:7px!important; box-shadow:0 0 0 2px var(--t-bg-app)!important; }
/* Eski mutlak konumlu profil animasyonundan bağımsız, sabit durum alanı. */
#timerPage #timerStatusChip[data-layout="stable"] {
  display:flex!important; align-items:center!important; justify-content:center!important;
  gap:8px!important; overflow:visible!important; transform:none!important;
}
#timerPage #timerStatusChip[data-layout="stable"]>svg { display:none!important; }
#timerPage #timerStatusChip[data-layout="stable"] .status-chip-avatar {
  display:flex!important; position:relative!important; inset:auto!important;
  width:28px!important; height:28px!important; min-width:28px;
  align-items:center; justify-content:center; font-size:12px; font-weight:650;
  color:var(--t-text-primary); background-color:var(--t-bg-input);
  opacity:1!important; transform:none!important; animation:none!important;
  box-shadow:none!important; border:1px solid var(--t-border-subtle);
}
#timerPage #timerStatusChip[data-layout="stable"] .status-chip-username {
  display:none!important; position:static!important; inset:auto!important;
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--t-text-secondary)!important; font-size:12px!important;
  opacity:1!important; transform:none!important; animation:none!important;
}
#timerPage #timerStatusChip[data-layout="stable"] #statusDot {
  top:auto!important; left:auto!important; right:6px!important; bottom:6px!important;
  opacity:1!important; transform:none!important; animation:none!important;
}
body:not(.zen-fullscreen-mode) #timerPage.active .timer-main-stage {
  width:100%!important; max-width:1200px!important;
  position:relative!important; inset:auto!important;
  display:flex!important; flex-direction:column!important;
  flex:1 0 auto!important;
  min-height:calc(100dvh - var(--nav-h,64px) - var(--bl-timer-header) - env(safe-area-inset-bottom,0px))!important;
  height:auto!important; max-height:none!important;
  opacity:1!important; visibility:visible!important;
  transform:none!important;
  padding:20px 20px 8px!important;
  gap:16px!important; overflow:visible!important;
  background:transparent!important; box-sizing:border-box!important;
}
body:not(.zen-fullscreen-mode) #timerPage.active .timer-duel {
  flex:1 0 auto!important; height:auto!important; min-height:0!important; width:100%;
  padding:0!important; display:flex; align-items:center; justify-content:center;
}
body:not(.zen-fullscreen-mode) #timerPage.active .timer-solo {
  height:auto!important; width:100%; min-width:0; gap:12px!important;
  justify-content:center!important;
}
#timerPage .timer-real-clock { color:var(--t-text-muted)!important; font-size:12px!important; letter-spacing:.09em!important; margin:0!important; }
body:not(.zen-fullscreen-mode) #timerPage.active .timer-hourglass-frame { gap:12px!important; width:100%!important; }
body:not(.zen-fullscreen-mode) #timerPage.active .timer-display-solo.hg-integrated-display {
  gap:clamp(14px,4vw,36px)!important; max-width:100%; padding-right:24px; box-sizing:border-box;
}
body:not(.zen-fullscreen-mode) #timerPage.active .hg-digit-block {
  font-size:clamp(64px,20vw,152px)!important; letter-spacing:-.045em!important;
  font-weight:800!important; line-height:1!important;
}
body:not(.zen-fullscreen-mode) #timerPage.active.timer-has-hours .hg-digit-block { font-size:clamp(56px,17vw,132px)!important; }
body:not(.zen-fullscreen-mode) #timerPage.active .hg-digit-small { font-size:clamp(18px,4.5vw,30px)!important; letter-spacing:-.03em!important; }
body:not(.zen-fullscreen-mode) #timerPage.active .hg-chamber { transform:scale(.85)!important; }
#timerPage #timerControlsBar {
  position:relative!important; inset:auto!important; transform:none!important;
  display:flex!important; flex-wrap:wrap!important; flex-direction:row!important;
  justify-content:center!important; align-items:center!important;
  flex:0 0 auto!important; width:100%!important; gap:8px!important;
  padding:0!important; margin:0!important;
}
#timerPage #timerControlsBar>button:not(.hidden), #timerPage #timerSoloPartyBtn {
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  width:46px!important; min-width:46px!important; height:46px!important;
  flex:0 0 46px!important; padding:0!important; margin:0!important;
  color:var(--t-text-secondary)!important; background:transparent!important;
  border:0!important;
  border-radius:12px!important; box-shadow:none!important; transform:none!important;
  transition:background-color 140ms ease,color 140ms ease!important;
}
#timerPage #timerControlsBar button.hidden { display:none!important; }
#timerPage #timerControlsBar .btn-text { display:none!important; }
#timerPage #timerControlsBar .btn-icon { display:inline-flex!important; }
#timerPage #timerControlsBar svg { width:21px!important; height:21px!important; stroke-width:1.8; }
#timerPage #soloPartyControlsRow { flex:0 0 auto!important; width:auto!important; margin:0!important; }
#timerPage #soloPartyControlsRow.hidden { display:none!important; }
body:has(#partyFocusOverlay.in-active-party) #timerPage #soloPartyControlsRow { display:none!important; }
body.zen-fullscreen-mode #timerPage #timerControlsBar { display:none!important; }
#timerPage #timerSoloPartyBtn { color:var(--t-text-secondary)!important; }
#timerPage #timerStopBtn:not(.hidden) { color:var(--t-danger,#dc3545)!important; }
#timerPage #timerAuxPanel { gap:12px!important; margin:0!important; justify-content:center; flex-wrap:wrap; }
body:not(.zen-fullscreen-mode) #timerPage.active #timerAuxPanel { padding-bottom:12px; align-items:center; gap:12px!important; }
#timerPage #timerControlsBar { padding-bottom:4px!important; }
#timerPage .focus-bank-shield { border:0!important; padding:6px 0!important; color:var(--t-text-muted)!important; font-size:11px!important; }
#timerPage #pomoAutoCyclePill { min-width:44px; min-height:44px; padding:0 10px!important; gap:8px; border-radius:12px!important; border-color:var(--t-border-subtle)!important; }
#timerPage #pomoAutoCyclePill .autocycle-text { display:none!important; }
#timerPage #pomoAutoCyclePill>svg { width:19px; height:19px; }
#timerPage #pomoAutoCyclePill .autocycle-indicator { box-shadow:none!important; }
#timerPage #pomoAutoCyclePill[aria-checked="true"] { color:var(--t-text-primary)!important; background:var(--t-bg-input)!important; }
#timerPage .timer-status-text { color:var(--t-text-secondary)!important; font-size:12px!important; letter-spacing:.02em!important; }
#partyFocusOverlay:not(.collapsed) { background:var(--t-bg-app)!important; border:1px solid var(--t-border-subtle)!important; box-shadow:none!important; border-radius:18px!important; }
#partyFocusOverlay :is(.party-hdr-btn,.party-ctrl-btn):not(.voice-settings-caret) { min-width:36px; min-height:44px; border-radius:10px; }
#partyFocusOverlay .party-focus-members { min-height:0; overscroll-behavior:contain; }
#partyFocusOverlay .party-focus-footer { border-top:1px solid var(--t-border-subtle); }
#screenShareOverlay.mini-mode:not(:fullscreen) { border:1px solid var(--t-border-subtle)!important; border-radius:14px!important; box-shadow:var(--bl-elevation)!important; overflow:hidden; }
#screenShareOverlay .ss-toolbar { background:var(--t-bg-popover)!important; border-bottom:1px solid var(--t-border-subtle)!important; }
#screenShareOverlay :is(.ss-tool-btn,.ss-close-btn) { min-width:44px; min-height:44px; border-radius:10px; }
@media (max-width:600px) {
  #screenShareOverlay.mini-mode:not(:fullscreen) {
    max-width:calc(100vw - 24px)!important; max-height:32dvh!important;
  }
}
@media (max-width:380px) {
  #timerPage .timer-xp-rail,#timerPage .timer-xp-txt { display:none!important; }
  #timerPage .blunk-topbar-brand { font-size:13px!important; }
  #timerPage .timer-total-val { font-size:11px!important; }
}
@media (max-width:600px) {
  #timerPage .timer-xp-rail,#timerPage .timer-xp-txt { display:none!important; }
}
@media (min-width:768px) and (min-height:541px) {
  body:not(.zen-fullscreen-mode) #timerPage.active #timerTopMeta { grid-template-columns:minmax(0,1fr) minmax(44px,220px) minmax(0,1fr); }
  #timerPage #timerStatusChip[data-layout="stable"] {
    width:auto!important; max-width:220px!important; min-width:44px!important;
    padding:0 8px!important; justify-self:center;
  }
  #timerPage #timerStatusChip[data-layout="stable"] .status-chip-username { display:block!important; max-width:160px; }
  #timerPage #timerStatusChip[data-layout="stable"] #statusDot { left:28px!important; right:auto!important; bottom:6px!important; }
  body:not(.zen-fullscreen-mode) #timerPage .timer-top-meta { padding-left:24px!important; padding-right:24px!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active .hg-digit-block { font-size:clamp(140px,19vw,310px)!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active.timer-has-hours .hg-digit-block { font-size:clamp(110px,16vw,260px)!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active .hg-digit-small { font-size:clamp(28px,3.5vw,54px)!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active .hg-chamber { transform:scale(1)!important; }
  body:not(.zen-fullscreen-mode):has(#partyFocusOverlay.in-active-party:not(.collapsed)) #timerPage .timer-main-stage {
    margin-left:316px!important; width:calc(100% - 316px)!important;
  }
}
@media (min-width:768px) and (max-width:1024px) {
  #timerPage .timer-xp-txt { display:none!important; }
}
@media (max-width:767px) {
  #partyFocusOverlay.in-active-party:not(.collapsed):not(.has-drag-pos) {
    top:auto!important; left:12px!important; right:12px!important;
    bottom:calc(var(--nav-h,64px) + env(safe-area-inset-bottom) + 12px)!important;
    width:auto!important; min-width:0!important; height:auto!important;
    max-height:min(58dvh,460px)!important;
  }
  #partyFocusOverlay.in-active-party.collapsed:not(.has-drag-pos) {
    top:calc(76px + env(safe-area-inset-top))!important; left:12px!important;
  }
}
@media (orientation:landscape) and (max-height:540px) {
  body:not(.zen-fullscreen-mode) #timerPage.active .timer-main-stage {
    display:grid!important; grid-template-columns:minmax(0,1fr) 56px!important;
    grid-template-rows:1fr auto!important; gap:8px 16px!important;
    padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))!important;
    min-height:calc(100dvh - var(--nav-h,64px) - var(--bl-timer-header) - env(safe-area-inset-bottom,0px))!important;
  }
  #timerPage .timer-duel { grid-column:1; grid-row:1; }
  #timerPage #timerControlsBar { grid-column:2; grid-row:1 / 3; flex-direction:column!important; }
  #timerPage #timerAuxPanel { grid-column:1; grid-row:2; }
  body:not(.zen-fullscreen-mode) #timerPage.active .hg-digit-block { font-size:clamp(64px,24dvh,122px)!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active.timer-has-hours .hg-digit-block { font-size:clamp(56px,21dvh,108px)!important; }
  body:not(.zen-fullscreen-mode) #timerPage.active .hg-chamber { display:none!important; }
  #timerPage .timer-real-clock { font-size:10px!important; }
  #timerPage .timer-solo { gap:6px!important; }
  #partyFocusOverlay.in-active-party:not(.collapsed):not(.has-drag-pos) {
    top:8px!important; bottom:calc(var(--nav-h,64px) + 8px)!important;
    left:max(8px,env(safe-area-inset-left))!important; right:auto!important;
    width:min(300px,48vw)!important; min-width:0!important; max-height:none!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  #timerPage :is(button,.hg-dot,.timer-xp-fill) { animation:none!important; transition:none!important; }
}
