.recent-panel {
  margin-top: 14px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 44px;
  padding: 12px;
  background: var(--surface);
}

.recent-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recent-panel-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.recent-list {
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 178px);
  justify-content: start;
  align-items: start;
  gap: 12px;
}

.recent-message {
  grid-column: 1 / -1;
}

.recent-item {
  width: 178px;
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: var(--surface-soft);
  text-align: left;
  color: var(--ink);
}

.recent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.recent-actions .button {
  padding: 7px 10px;
  font-size: 0.76rem;
}

.recent-item:hover,
.recent-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
  outline: none;
}

.recent-item strong,
.recent-title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
}

.mini-board {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-strong);
}

.mini-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(0.42rem, 1.5vw, 0.72rem);
  font-weight: 800;
  line-height: 1;
}

.mini-cell:nth-child(3n) {
  border-right: 2px solid var(--line-strong);
}

.mini-cell:nth-child(9n) {
  border-right: 0;
}

.mini-cell:nth-child(n + 19):nth-child(-n + 27),
.mini-cell:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid var(--line-strong);
}

.mini-cell:nth-child(n + 73) {
  border-bottom: 0;
}

.mini-cell.is-empty {
  color: transparent;
}

.mini-cube {
  width: min(100%, 92px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-strong);
  margin: 0 auto;
}

.mini-cube-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.mini-cube-cell:nth-child(3n) {
  border-right: 0;
}

.mini-cube-cell:nth-child(n + 7) {
  border-bottom: 0;
}

.mini-cube-cell.is-empty {
  color: transparent;
}


