.pomo-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.pomo-timer,
.pomo-record {
  border: 1px solid #e5dcd1;
  background: #fffdfa;
  border-radius: 24px;
  padding: 24px;
  color: #6a3b27;
  min-width: 0;
}
.pomo-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #958471;
}
.pomo-analog {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 18px auto;
}
.pomo-analog canvas,
.pomo-analog img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pomo-analog img {
  z-index: 1;
}
#pomo-paw {
  position: absolute;
  z-index: 2;
  left: 38%;
  top: 38%;
  width: 24%;
  height: 24%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
#pomo-paw:focus-visible {
  outline: 3px solid #649bc6;
  outline-offset: 3px;
}
#pomo-paw:disabled {
  cursor: default;
}
#pomo-state {
  text-align: center;
  font-size: 14px;
  min-height: 22px;
}
.pomo-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.pomo-time strong {
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  font-family: var(--f-body);
}
.pomo-time .btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 24px;
}
.pomo-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
}
.pomo-record h2 {
  margin-top: 14px;
}
.pomo-day {
  display: grid;
  grid-template-columns: 90px 1fr 35px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee7df;
  font-size: 12px;
}
.pomo-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pomo-circles i {
  width: 19px;
  height: 19px;
  border: 5px solid #619fd0;
  border-radius: 50%;
  box-sizing: border-box;
}
.pomo-cheer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef1e6;
  border-radius: 16px;
  padding: 12px;
}
.pomo-cheer[hidden],
.pomo-layout [hidden] {
  display: none !important;
}
.pomo-cheer img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
@media (max-width: 740px) {
  .pomo-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pomo-timer,
  .pomo-record {
    padding: 18px;
  }
  .nav {
    flex-wrap: wrap;
  }
}

.pomo-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.pomo-leaderboard {
  border: 1px solid #e5dcd1;
  background: #fffdfa;
  border-radius: 24px;
  padding: 24px;
  color: #6a3b27;
  min-width: 0;
}
.pomo-leaderboard h2 {
  margin: 12px 0;
}
.pomo-hall {
  background: linear-gradient(145deg, #fffdfa, #fff1f5);
  border-color: #efd3db;
}
.pomo-hall-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pomo-hall-title select {
  font: inherit;
  font-size: 13px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid #e6cbd3;
  background: #fffdfa;
  color: inherit;
  max-width: 100%;
}
.pomo-rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #eee5e0;
  font-size: 14px;
}
.pomo-rank-row > span {
  overflow-wrap: anywhere;
}
.pomo-rank-row > strong {
  font-variant-numeric: tabular-nums;
}
.pomo-rank-row.is-me {
  background: #fff0f5;
  border-radius: 10px;
}
.pomo-rank-row small {
  font-size: 11px;
  font-weight: normal;
  color: #977d80;
}
.pomo-mine {
  font-size: 13px;
  color: #96717c;
  margin: 16px 0 0;
}
#pomo-week-list,
#pomo-month-list {
  max-height: 340px;
  overflow: auto;
}
#pomo-days {
  max-height: 280px;
  overflow: auto;
}
@media (max-width: 740px) {
  .pomo-leaderboard {
    padding: 18px;
  }
}
