/* Time Bottle visual mode (#129) for focus rooms */
.ql-bottle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px auto 6px;
  z-index: 4;
}
.ql-bottle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.28);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ql-bottle-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ql-bottle-toggle[aria-pressed="true"] {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(94, 234, 212, 0.72);
  color: #ecfdf5;
}
#ql-time-bottle {
  display: none;
  width: min(410px, 96%);
  margin: 6px auto 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(12, 22, 36, 0.56);
  backdrop-filter: blur(10px);
  color: #f1f5f9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  text-align: left;
}
html.ql-bottle-mode #ql-time-bottle {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
html.ql-bottle-mode #time_percent,
html.ql-bottle-mode #ring-container,
html.ql-bottle-mode[data-focus-skin="dream"] .fs-personal-ring,
html.ql-bottle-mode[data-focus-skin="dream"] .fs-timer-face:after {
  display: none !important;
}
html.ql-bottle-mode[data-focus-skin="dream"] .fs-timer-face {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 4px auto 6px !important;
}
html.ql-bottle-mode.ql-stage-compact-h #ql-time-bottle {
  padding: 9px 14px;
  gap: 12px;
}
.ql-bottle-svg-wrap {
  width: 88px;
  height: 132px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
html.ql-bottle-mode.ql-stage-compact-h .ql-bottle-svg-wrap {
  width: 78px;
  height: 118px;
}
.ql-bottle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ql-bottle-liquid-rect {
  transition: y 0.55s cubic-bezier(0.22, 1, 0.36, 1), height 0.55s cubic-bezier(0.22, 1, 0.36, 1), fill 0.3s;
}
.ql-bottle-wave {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), fill 0.3s;
}
.ql-bottle-wave-path {
  animation: qlBottleWave 4.2s linear infinite;
}
@keyframes qlBottleWave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-44px); }
}
.ql-bottle-bubble {
  opacity: 0;
}
#ql-time-bottle[data-running="true"] .ql-bottle-bubble {
  animation: qlBottleBubble 2.8s ease-in infinite;
}
#ql-time-bottle[data-running="true"] .ql-bottle-bubble.b2 {
  animation-delay: 1.1s;
  animation-duration: 3.3s;
}
@keyframes qlBottleBubble {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 0.72; }
  85%  { opacity: 0.45; }
  100% { transform: translateY(-48px); opacity: 0; }
}
.ql-bottle-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.ql-bottle-subtabs {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ql-bottle-subtabs button {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
}
.ql-bottle-subtabs button[aria-pressed="true"] {
  background: rgba(45, 212, 191, 0.24);
  border-color: rgba(94, 234, 212, 0.72);
  color: #f0fdfa;
  font-weight: 700;
}
.ql-bottle-subtabs button[hidden] {
  display: none;
}
.ql-bottle-phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}
.ql-bottle-phase strong {
  color: #5eead4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#ql-time-bottle[data-phase="rest"] .ql-bottle-phase strong {
  color: #fbbf24;
}
#ql-time-bottle[data-sub="goal"] .ql-bottle-phase strong {
  color: #c4b5fd;
}
.ql-bottle-readout {
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ql-bottle-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ql-bottle-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #5eead4);
  transition: width 0.45s ease, background 0.3s;
}
#ql-time-bottle[data-phase="rest"] .ql-bottle-progress-fill {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
#ql-time-bottle[data-sub="goal"] .ql-bottle-progress-fill {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}
.ql-bottle-meta {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  .ql-bottle-wave-path,
  .ql-bottle-bubble,
  .ql-bottle-liquid-rect,
  .ql-bottle-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}
